Imported Upstream version 3.0.4
[debian/gnuradio] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="gnuradio-core/src/lib/runtime/gr_vmcircbuf.cc"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 #  include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 #  include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 build
808 build_cpu
809 build_vendor
810 build_os
811 host
812 host_cpu
813 host_vendor
814 host_os
815 target
816 target_cpu
817 target_vendor
818 target_os
819 INSTALL_PROGRAM
820 INSTALL_SCRIPT
821 INSTALL_DATA
822 CYGPATH_W
823 PACKAGE
824 VERSION
825 ACLOCAL
826 AUTOCONF
827 AUTOMAKE
828 AUTOHEADER
829 MAKEINFO
830 install_sh
831 STRIP
832 INSTALL_STRIP_PROGRAM
833 mkdir_p
834 AWK
835 SET_MAKE
836 am__leading_dot
837 AMTAR
838 am__tar
839 am__untar
840 CC
841 CFLAGS
842 LDFLAGS
843 CPPFLAGS
844 ac_ct_CC
845 EXEEXT
846 OBJEXT
847 DEPDIR
848 am__include
849 am__quote
850 AMDEP_TRUE
851 AMDEP_FALSE
852 AMDEPBACKSLASH
853 CCDEPMODE
854 am__fastdepCC_TRUE
855 am__fastdepCC_FALSE
856 CPP
857 GREP
858 EGREP
859 CXX
860 CXXFLAGS
861 ac_ct_CXX
862 CXXDEPMODE
863 am__fastdepCXX_TRUE
864 am__fastdepCXX_FALSE
865 CXXCPP
866 CCAS
867 CCASFLAGS
868 LN_S
869 RM_PROG
870 ECHO
871 AR
872 RANLIB
873 DLLTOOL
874 AS
875 OBJDUMP
876 F77
877 FFLAGS
878 ac_ct_F77
879 LIBTOOL
880 ENABLE_FORTRAN_TRUE
881 ENABLE_FORTRAN_FALSE
882 FLIBS
883 NO_UNDEFINED
884 SWIG
885 PYTHON
886 PYTHON_VERSION
887 PYTHON_PREFIX
888 PYTHON_EXEC_PREFIX
889 PYTHON_PLATFORM
890 pythondir
891 pkgpythondir
892 pyexecdir
893 pkgpyexecdir
894 PYTHON_CPPFLAGS
895 PYTHON_LDFLAGS
896 SWIG_PYTHON_LIB
897 SWIG_PYTHON_OPT
898 SWIG_PYTHON_CPPFLAGS
899 XMLTO
900 HAS_XMLTO_TRUE
901 HAS_XMLTO_FALSE
902 PTHREAD_CC
903 PTHREAD_LIBS
904 PTHREAD_CFLAGS
905 OMNITHREAD_POSIX_TRUE
906 OMNITHREAD_POSIX_FALSE
907 OMNITHREAD_NT_TRUE
908 OMNITHREAD_NT_FALSE
909 CXX_FOR_BUILD
910 IPC_LIBS
911 ALLOCA
912 SHM_OPEN_LIBS
913 LIBGNURADIO_CORE_EXTRA_LDFLAGS
914 HAVE_CREATEFILEMAPPING_TRUE
915 HAVE_CREATEFILEMAPPING_FALSE
916 LIBOBJS
917 HAVE_DOT
918 PKG_CONFIG
919 FFTW3F_CFLAGS
920 FFTW3F_LIBS
921 FFTW3F_INCLUDEDIR
922 DOXYGEN
923 DOT
924 DOC_TRUE
925 DOC_FALSE
926 enable_dot
927 enable_html_docs
928 enable_latex_docs
929 generate_docs
930 MD_CPU
931 MD_SUBCPU
932 MD_CPU_x86_TRUE
933 MD_CPU_x86_FALSE
934 MD_SUBCPU_x86_64_TRUE
935 MD_SUBCPU_x86_64_FALSE
936 MD_CPU_generic_TRUE
937 MD_CPU_generic_FALSE
938 CPPUNIT_CONFIG
939 CPPUNIT_CFLAGS
940 CPPUNIT_LIBS
941 CPPUNIT_INCLUDES
942 BOOST_CFLAGS
943 DEFINES
944 USB_LIBS
945 FUSB_TECH
946 FUSB_TECH_darwin_TRUE
947 FUSB_TECH_darwin_FALSE
948 FUSB_TECH_win32_TRUE
949 FUSB_TECH_win32_FALSE
950 FUSB_TECH_generic_TRUE
951 FUSB_TECH_generic_FALSE
952 FUSB_TECH_linux_TRUE
953 FUSB_TECH_linux_FALSE
954 FUSB_TECH_ra_wb_TRUE
955 FUSB_TECH_ra_wb_FALSE
956 XCC
957 XAS
958 ALSA_CFLAGS
959 ALSA_LIBS
960 ALSA_INCLUDEDIR
961 JACK_CFLAGS
962 JACK_LIBS
963 JACK_INCLUDEDIR
964 OSS_LIBS
965 PORTAUDIO_CFLAGS
966 PORTAUDIO_LIBS
967 PORTAUDIO_INCLUDEDIR
968 WINAUDIO_LIBS
969 SDL_CONFIG
970 SDL_CFLAGS
971 SDL_LIBS
972 build_dirs
973 skipped_dirs
974 LTLIBOBJS'
975 ac_subst_files=''
976       ac_precious_vars='build_alias
977 host_alias
978 target_alias
979 CC
980 CFLAGS
981 LDFLAGS
982 LIBS
983 CPPFLAGS
984 CPP
985 CXX
986 CXXFLAGS
987 CCC
988 CXXCPP
989 CCAS
990 CCASFLAGS
991 F77
992 FFLAGS'
993
994
995 # Initialize some variables set by options.
996 ac_init_help=
997 ac_init_version=false
998 # The variables have the same names as the options, with
999 # dashes changed to underlines.
1000 cache_file=/dev/null
1001 exec_prefix=NONE
1002 no_create=
1003 no_recursion=
1004 prefix=NONE
1005 program_prefix=NONE
1006 program_suffix=NONE
1007 program_transform_name=s,x,x,
1008 silent=
1009 site=
1010 srcdir=
1011 verbose=
1012 x_includes=NONE
1013 x_libraries=NONE
1014
1015 # Installation directory options.
1016 # These are left unexpanded so users can "make install exec_prefix=/foo"
1017 # and all the variables that are supposed to be based on exec_prefix
1018 # by default will actually change.
1019 # Use braces instead of parens because sh, perl, etc. also accept them.
1020 # (The list follows the same order as the GNU Coding Standards.)
1021 bindir='${exec_prefix}/bin'
1022 sbindir='${exec_prefix}/sbin'
1023 libexecdir='${exec_prefix}/libexec'
1024 datarootdir='${prefix}/share'
1025 datadir='${datarootdir}'
1026 sysconfdir='${prefix}/etc'
1027 sharedstatedir='${prefix}/com'
1028 localstatedir='${prefix}/var'
1029 includedir='${prefix}/include'
1030 oldincludedir='/usr/include'
1031 docdir='${datarootdir}/doc/${PACKAGE}'
1032 infodir='${datarootdir}/info'
1033 htmldir='${docdir}'
1034 dvidir='${docdir}'
1035 pdfdir='${docdir}'
1036 psdir='${docdir}'
1037 libdir='${exec_prefix}/lib'
1038 localedir='${datarootdir}/locale'
1039 mandir='${datarootdir}/man'
1040
1041 ac_prev=
1042 ac_dashdash=
1043 for ac_option
1044 do
1045   # If the previous option needs an argument, assign it.
1046   if test -n "$ac_prev"; then
1047     eval $ac_prev=\$ac_option
1048     ac_prev=
1049     continue
1050   fi
1051
1052   case $ac_option in
1053   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1054   *)    ac_optarg=yes ;;
1055   esac
1056
1057   # Accept the important Cygnus configure options, so we can diagnose typos.
1058
1059   case $ac_dashdash$ac_option in
1060   --)
1061     ac_dashdash=yes ;;
1062
1063   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1064     ac_prev=bindir ;;
1065   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1066     bindir=$ac_optarg ;;
1067
1068   -build | --build | --buil | --bui | --bu)
1069     ac_prev=build_alias ;;
1070   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1071     build_alias=$ac_optarg ;;
1072
1073   -cache-file | --cache-file | --cache-fil | --cache-fi \
1074   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1075     ac_prev=cache_file ;;
1076   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1077   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1078     cache_file=$ac_optarg ;;
1079
1080   --config-cache | -C)
1081     cache_file=config.cache ;;
1082
1083   -datadir | --datadir | --datadi | --datad)
1084     ac_prev=datadir ;;
1085   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1086     datadir=$ac_optarg ;;
1087
1088   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1089   | --dataroo | --dataro | --datar)
1090     ac_prev=datarootdir ;;
1091   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1092   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1093     datarootdir=$ac_optarg ;;
1094
1095   -disable-* | --disable-*)
1096     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1097     # Reject names that are not valid shell variable names.
1098     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1099       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1100    { (exit 1); exit 1; }; }
1101     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1102     eval enable_$ac_feature=no ;;
1103
1104   -docdir | --docdir | --docdi | --doc | --do)
1105     ac_prev=docdir ;;
1106   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1107     docdir=$ac_optarg ;;
1108
1109   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1110     ac_prev=dvidir ;;
1111   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1112     dvidir=$ac_optarg ;;
1113
1114   -enable-* | --enable-*)
1115     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1116     # Reject names that are not valid shell variable names.
1117     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1118       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1119    { (exit 1); exit 1; }; }
1120     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1121     eval enable_$ac_feature=\$ac_optarg ;;
1122
1123   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1124   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1125   | --exec | --exe | --ex)
1126     ac_prev=exec_prefix ;;
1127   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1128   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1129   | --exec=* | --exe=* | --ex=*)
1130     exec_prefix=$ac_optarg ;;
1131
1132   -gas | --gas | --ga | --g)
1133     # Obsolete; use --with-gas.
1134     with_gas=yes ;;
1135
1136   -help | --help | --hel | --he | -h)
1137     ac_init_help=long ;;
1138   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1139     ac_init_help=recursive ;;
1140   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1141     ac_init_help=short ;;
1142
1143   -host | --host | --hos | --ho)
1144     ac_prev=host_alias ;;
1145   -host=* | --host=* | --hos=* | --ho=*)
1146     host_alias=$ac_optarg ;;
1147
1148   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1149     ac_prev=htmldir ;;
1150   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1151   | --ht=*)
1152     htmldir=$ac_optarg ;;
1153
1154   -includedir | --includedir | --includedi | --included | --include \
1155   | --includ | --inclu | --incl | --inc)
1156     ac_prev=includedir ;;
1157   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1158   | --includ=* | --inclu=* | --incl=* | --inc=*)
1159     includedir=$ac_optarg ;;
1160
1161   -infodir | --infodir | --infodi | --infod | --info | --inf)
1162     ac_prev=infodir ;;
1163   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1164     infodir=$ac_optarg ;;
1165
1166   -libdir | --libdir | --libdi | --libd)
1167     ac_prev=libdir ;;
1168   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1169     libdir=$ac_optarg ;;
1170
1171   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1172   | --libexe | --libex | --libe)
1173     ac_prev=libexecdir ;;
1174   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1175   | --libexe=* | --libex=* | --libe=*)
1176     libexecdir=$ac_optarg ;;
1177
1178   -localedir | --localedir | --localedi | --localed | --locale)
1179     ac_prev=localedir ;;
1180   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1181     localedir=$ac_optarg ;;
1182
1183   -localstatedir | --localstatedir | --localstatedi | --localstated \
1184   | --localstate | --localstat | --localsta | --localst | --locals)
1185     ac_prev=localstatedir ;;
1186   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1187   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1188     localstatedir=$ac_optarg ;;
1189
1190   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1191     ac_prev=mandir ;;
1192   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1193     mandir=$ac_optarg ;;
1194
1195   -nfp | --nfp | --nf)
1196     # Obsolete; use --without-fp.
1197     with_fp=no ;;
1198
1199   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1200   | --no-cr | --no-c | -n)
1201     no_create=yes ;;
1202
1203   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1204   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1205     no_recursion=yes ;;
1206
1207   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1208   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1209   | --oldin | --oldi | --old | --ol | --o)
1210     ac_prev=oldincludedir ;;
1211   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1212   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1213   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1214     oldincludedir=$ac_optarg ;;
1215
1216   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1217     ac_prev=prefix ;;
1218   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1219     prefix=$ac_optarg ;;
1220
1221   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1222   | --program-pre | --program-pr | --program-p)
1223     ac_prev=program_prefix ;;
1224   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1225   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1226     program_prefix=$ac_optarg ;;
1227
1228   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1229   | --program-suf | --program-su | --program-s)
1230     ac_prev=program_suffix ;;
1231   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1232   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1233     program_suffix=$ac_optarg ;;
1234
1235   -program-transform-name | --program-transform-name \
1236   | --program-transform-nam | --program-transform-na \
1237   | --program-transform-n | --program-transform- \
1238   | --program-transform | --program-transfor \
1239   | --program-transfo | --program-transf \
1240   | --program-trans | --program-tran \
1241   | --progr-tra | --program-tr | --program-t)
1242     ac_prev=program_transform_name ;;
1243   -program-transform-name=* | --program-transform-name=* \
1244   | --program-transform-nam=* | --program-transform-na=* \
1245   | --program-transform-n=* | --program-transform-=* \
1246   | --program-transform=* | --program-transfor=* \
1247   | --program-transfo=* | --program-transf=* \
1248   | --program-trans=* | --program-tran=* \
1249   | --progr-tra=* | --program-tr=* | --program-t=*)
1250     program_transform_name=$ac_optarg ;;
1251
1252   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1253     ac_prev=pdfdir ;;
1254   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1255     pdfdir=$ac_optarg ;;
1256
1257   -psdir | --psdir | --psdi | --psd | --ps)
1258     ac_prev=psdir ;;
1259   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1260     psdir=$ac_optarg ;;
1261
1262   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263   | -silent | --silent | --silen | --sile | --sil)
1264     silent=yes ;;
1265
1266   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1267     ac_prev=sbindir ;;
1268   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1269   | --sbi=* | --sb=*)
1270     sbindir=$ac_optarg ;;
1271
1272   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1273   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1274   | --sharedst | --shareds | --shared | --share | --shar \
1275   | --sha | --sh)
1276     ac_prev=sharedstatedir ;;
1277   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1278   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1279   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1280   | --sha=* | --sh=*)
1281     sharedstatedir=$ac_optarg ;;
1282
1283   -site | --site | --sit)
1284     ac_prev=site ;;
1285   -site=* | --site=* | --sit=*)
1286     site=$ac_optarg ;;
1287
1288   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1289     ac_prev=srcdir ;;
1290   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1291     srcdir=$ac_optarg ;;
1292
1293   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1294   | --syscon | --sysco | --sysc | --sys | --sy)
1295     ac_prev=sysconfdir ;;
1296   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1297   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1298     sysconfdir=$ac_optarg ;;
1299
1300   -target | --target | --targe | --targ | --tar | --ta | --t)
1301     ac_prev=target_alias ;;
1302   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1303     target_alias=$ac_optarg ;;
1304
1305   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1306     verbose=yes ;;
1307
1308   -version | --version | --versio | --versi | --vers | -V)
1309     ac_init_version=: ;;
1310
1311   -with-* | --with-*)
1312     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1313     # Reject names that are not valid shell variable names.
1314     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315       { echo "$as_me: error: invalid package name: $ac_package" >&2
1316    { (exit 1); exit 1; }; }
1317     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1318     eval with_$ac_package=\$ac_optarg ;;
1319
1320   -without-* | --without-*)
1321     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1322     # Reject names that are not valid shell variable names.
1323     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1324       { echo "$as_me: error: invalid package name: $ac_package" >&2
1325    { (exit 1); exit 1; }; }
1326     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1327     eval with_$ac_package=no ;;
1328
1329   --x)
1330     # Obsolete; use --with-x.
1331     with_x=yes ;;
1332
1333   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1334   | --x-incl | --x-inc | --x-in | --x-i)
1335     ac_prev=x_includes ;;
1336   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1337   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1338     x_includes=$ac_optarg ;;
1339
1340   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1341   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1342     ac_prev=x_libraries ;;
1343   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1344   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1345     x_libraries=$ac_optarg ;;
1346
1347   -*) { echo "$as_me: error: unrecognized option: $ac_option
1348 Try \`$0 --help' for more information." >&2
1349    { (exit 1); exit 1; }; }
1350     ;;
1351
1352   *=*)
1353     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1354     # Reject names that are not valid shell variable names.
1355     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1356       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1357    { (exit 1); exit 1; }; }
1358     eval $ac_envvar=\$ac_optarg
1359     export $ac_envvar ;;
1360
1361   *)
1362     # FIXME: should be removed in autoconf 3.0.
1363     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1364     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1365       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1366     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1367     ;;
1368
1369   esac
1370 done
1371
1372 if test -n "$ac_prev"; then
1373   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1374   { echo "$as_me: error: missing argument to $ac_option" >&2
1375    { (exit 1); exit 1; }; }
1376 fi
1377
1378 # Be sure to have absolute directory names.
1379 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1380                 datadir sysconfdir sharedstatedir localstatedir includedir \
1381                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1382                 libdir localedir mandir
1383 do
1384   eval ac_val=\$$ac_var
1385   case $ac_val in
1386     [\\/$]* | ?:[\\/]* )  continue;;
1387     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1388   esac
1389   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1390    { (exit 1); exit 1; }; }
1391 done
1392
1393 # There might be people who depend on the old broken behavior: `$host'
1394 # used to hold the argument of --host etc.
1395 # FIXME: To remove some day.
1396 build=$build_alias
1397 host=$host_alias
1398 target=$target_alias
1399
1400 # FIXME: To remove some day.
1401 if test "x$host_alias" != x; then
1402   if test "x$build_alias" = x; then
1403     cross_compiling=maybe
1404     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1405     If a cross compiler is detected then cross compile mode will be used." >&2
1406   elif test "x$build_alias" != "x$host_alias"; then
1407     cross_compiling=yes
1408   fi
1409 fi
1410
1411 ac_tool_prefix=
1412 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1413
1414 test "$silent" = yes && exec 6>/dev/null
1415
1416
1417 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1418 ac_ls_di=`ls -di .` &&
1419 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1420   { echo "$as_me: error: Working directory cannot be determined" >&2
1421    { (exit 1); exit 1; }; }
1422 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423   { echo "$as_me: error: pwd does not report name of working directory" >&2
1424    { (exit 1); exit 1; }; }
1425
1426
1427 # Find the source files, if location was not specified.
1428 if test -z "$srcdir"; then
1429   ac_srcdir_defaulted=yes
1430   # Try the directory containing this script, then the parent directory.
1431   ac_confdir=`$as_dirname -- "$0" ||
1432 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1433          X"$0" : 'X\(//\)[^/]' \| \
1434          X"$0" : 'X\(//\)$' \| \
1435          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1436 echo X"$0" |
1437     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1438             s//\1/
1439             q
1440           }
1441           /^X\(\/\/\)[^/].*/{
1442             s//\1/
1443             q
1444           }
1445           /^X\(\/\/\)$/{
1446             s//\1/
1447             q
1448           }
1449           /^X\(\/\).*/{
1450             s//\1/
1451             q
1452           }
1453           s/.*/./; q'`
1454   srcdir=$ac_confdir
1455   if test ! -r "$srcdir/$ac_unique_file"; then
1456     srcdir=..
1457   fi
1458 else
1459   ac_srcdir_defaulted=no
1460 fi
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1462   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1463   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1464    { (exit 1); exit 1; }; }
1465 fi
1466 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1467 ac_abs_confdir=`(
1468         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1469    { (exit 1); exit 1; }; }
1470         pwd)`
1471 # When building in place, set srcdir=.
1472 if test "$ac_abs_confdir" = "$ac_pwd"; then
1473   srcdir=.
1474 fi
1475 # Remove unnecessary trailing slashes from srcdir.
1476 # Double slashes in file names in object file debugging info
1477 # mess up M-x gdb in Emacs.
1478 case $srcdir in
1479 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1480 esac
1481 for ac_var in $ac_precious_vars; do
1482   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1483   eval ac_env_${ac_var}_value=\$${ac_var}
1484   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1485   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1486 done
1487
1488 #
1489 # Report the --help message.
1490 #
1491 if test "$ac_init_help" = "long"; then
1492   # Omit some internal or obsolete options to make the list less imposing.
1493   # This message is too long to be a string in the A/UX 3.1 sh.
1494   cat <<_ACEOF
1495 \`configure' configures this package to adapt to many kinds of systems.
1496
1497 Usage: $0 [OPTION]... [VAR=VALUE]...
1498
1499 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1500 VAR=VALUE.  See below for descriptions of some of the useful variables.
1501
1502 Defaults for the options are specified in brackets.
1503
1504 Configuration:
1505   -h, --help              display this help and exit
1506       --help=short        display options specific to this package
1507       --help=recursive    display the short help of all the included packages
1508   -V, --version           display version information and exit
1509   -q, --quiet, --silent   do not print \`checking...' messages
1510       --cache-file=FILE   cache test results in FILE [disabled]
1511   -C, --config-cache      alias for \`--cache-file=config.cache'
1512   -n, --no-create         do not create output files
1513       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1514
1515 Installation directories:
1516   --prefix=PREFIX         install architecture-independent files in PREFIX
1517                           [$ac_default_prefix]
1518   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1519                           [PREFIX]
1520
1521 By default, \`make install' will install all the files in
1522 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1523 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1524 for instance \`--prefix=\$HOME'.
1525
1526 For better control, use the options below.
1527
1528 Fine tuning of the installation directories:
1529   --bindir=DIR           user executables [EPREFIX/bin]
1530   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1531   --libexecdir=DIR       program executables [EPREFIX/libexec]
1532   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1533   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1534   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1535   --libdir=DIR           object code libraries [EPREFIX/lib]
1536   --includedir=DIR       C header files [PREFIX/include]
1537   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1538   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1539   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1540   --infodir=DIR          info documentation [DATAROOTDIR/info]
1541   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1542   --mandir=DIR           man documentation [DATAROOTDIR/man]
1543   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1544   --htmldir=DIR          html documentation [DOCDIR]
1545   --dvidir=DIR           dvi documentation [DOCDIR]
1546   --pdfdir=DIR           pdf documentation [DOCDIR]
1547   --psdir=DIR            ps documentation [DOCDIR]
1548 _ACEOF
1549
1550   cat <<\_ACEOF
1551
1552 Program names:
1553   --program-prefix=PREFIX            prepend PREFIX to installed program names
1554   --program-suffix=SUFFIX            append SUFFIX to installed program names
1555   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1556
1557 System types:
1558   --build=BUILD     configure for building on BUILD [guessed]
1559   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1560   --target=TARGET   configure for building compilers for TARGET [HOST]
1561 _ACEOF
1562 fi
1563
1564 if test -n "$ac_init_help"; then
1565
1566   cat <<\_ACEOF
1567
1568 Optional Features:
1569   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1570   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1571   --disable-dependency-tracking  speeds up one-time build
1572   --enable-dependency-tracking   do not reject slow dependency extractors
1573   --disable-assert        don't use cpp.h assert
1574   --enable-shared[=PKGS]  build shared libraries [default=yes]
1575   --enable-static[=PKGS]  build static libraries [default=no]
1576   --enable-fast-install[=PKGS]
1577                           optimize for fast installation [default=yes]
1578   --disable-libtool-lock  avoid locking (might break parallel builds)
1579   --enable-fortran        enable fortran (no)
1580   --enable-doxygen        enable documentation generation with doxygen (no)
1581   --enable-dot            use 'dot' to generate graphs in doxygen (auto)
1582   --enable-html-docs      enable HTML generation with doxygen (yes)
1583   --enable-latex-docs     enable LaTeX doc generation with doxygen (no)
1584   --enable-all-components Build all components or stop on failed dependencies
1585
1586   --enable-gnuradio-core  Fail build if gnuradio-core fails configuration
1587   --enable-gnuradio-examples  Fail build if gnuradio-examples fails configuration
1588   --enable-usrp  Fail build if usrp fails configuration
1589   --enable-gr-usrp  Fail build if gr-usrp fails configuration
1590   --enable-gr-audio-alsa  Fail build if gr-audio-alsa fails configuration
1591   --enable-gr-audio-jack  Fail build if gr-audio-jack fails configuration
1592   --enable-gr-audio-oss  Fail build if gr-audio-oss fails configuration
1593   --enable-gr-audio-osx  Fail build if gr-audio-osx fails configuration
1594   --enable-gr-audio-portaudio  Fail build if gr-audio-portaudio fails configuration
1595   --enable-gr-audio-windows  Fail build if gr-audio-windows fails configuration
1596   --enable-gr-gsm-fr-vocoder  Fail build if gr-gsm-fr-vocoder fails configuration
1597   --enable-gr-radio-astronomy  Fail build if gr-radio-astronomy fails configuration
1598   --enable-gr-trellis  Fail build if gr-trellis fails configuration
1599   --enable-gr-video-sdl  Fail build if gr-video-sdl fails configuration
1600   --disable-sdltest       Do not try to compile and run a test SDL program
1601   --enable-gr-wxgui  Fail build if gr-wxgui fails configuration
1602
1603 Optional Packages:
1604   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1605   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1606   --with-warnings         Turn on warnings
1607   --with-gprof            Turn on gprof profiling
1608   --with-prof             Turn on prof profiling
1609   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1610   --with-pic              try to use only PIC/non-PIC objects [default=use
1611                           both]
1612   --with-tags[=TAGS]      include additional configurations [automatic]
1613   --with-md-cpu=ARCH      set machine dependent speedups (auto)
1614   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1615   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1616   --with-boost-include-dir=<path>
1617                           path to boost c++ include files
1618   --with-fusb-tech=OS     set fast usb technique (auto)
1619   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1620   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1621
1622 Some influential environment variables:
1623   CC          C compiler command
1624   CFLAGS      C compiler flags
1625   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1626               nonstandard directory <lib dir>
1627   LIBS        libraries to pass to the linker, e.g. -l<library>
1628   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1629               you have headers in a nonstandard directory <include dir>
1630   CPP         C preprocessor
1631   CXX         C++ compiler command
1632   CXXFLAGS    C++ compiler flags
1633   CXXCPP      C++ preprocessor
1634   CCAS        assembler compiler command (defaults to CC)
1635   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1636   F77         Fortran 77 compiler command
1637   FFLAGS      Fortran 77 compiler flags
1638
1639 Use these variables to override the choices made by `configure' or to help
1640 it to find libraries and programs with nonstandard names/locations.
1641
1642 _ACEOF
1643 ac_status=$?
1644 fi
1645
1646 if test "$ac_init_help" = "recursive"; then
1647   # If there are subdirs, report their specific --help.
1648   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1649     test -d "$ac_dir" || continue
1650     ac_builddir=.
1651
1652 case "$ac_dir" in
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *)
1655   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1656   # A ".." for each directory in $ac_dir_suffix.
1657   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1658   case $ac_top_builddir_sub in
1659   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661   esac ;;
1662 esac
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1667
1668 case $srcdir in
1669   .)  # We are building in place.
1670     ac_srcdir=.
1671     ac_top_srcdir=$ac_top_builddir_sub
1672     ac_abs_top_srcdir=$ac_pwd ;;
1673   [\\/]* | ?:[\\/]* )  # Absolute name.
1674     ac_srcdir=$srcdir$ac_dir_suffix;
1675     ac_top_srcdir=$srcdir
1676     ac_abs_top_srcdir=$srcdir ;;
1677   *) # Relative name.
1678     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679     ac_top_srcdir=$ac_top_build_prefix$srcdir
1680     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681 esac
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683
1684     cd "$ac_dir" || { ac_status=$?; continue; }
1685     # Check for guested configure.
1686     if test -f "$ac_srcdir/configure.gnu"; then
1687       echo &&
1688       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689     elif test -f "$ac_srcdir/configure"; then
1690       echo &&
1691       $SHELL "$ac_srcdir/configure" --help=recursive
1692     else
1693       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694     fi || ac_status=$?
1695     cd "$ac_pwd" || { ac_status=$?; break; }
1696   done
1697 fi
1698
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1701   cat <<\_ACEOF
1702 configure
1703 generated by GNU Autoconf 2.61
1704
1705 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1706 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1707 This configure script is free software; the Free Software Foundation
1708 gives unlimited permission to copy, distribute and modify it.
1709 _ACEOF
1710   exit
1711 fi
1712 cat >config.log <<_ACEOF
1713 This file contains any messages produced by compilers while
1714 running configure, to aid debugging if configure makes a mistake.
1715
1716 It was created by $as_me, which was
1717 generated by GNU Autoconf 2.61.  Invocation command line was
1718
1719   $ $0 $@
1720
1721 _ACEOF
1722 exec 5>>config.log
1723 {
1724 cat <<_ASUNAME
1725 ## --------- ##
1726 ## Platform. ##
1727 ## --------- ##
1728
1729 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1730 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1731 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1732 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1733 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1734
1735 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1736 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1737
1738 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1739 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1740 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1741 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1742 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1743 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1744 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1745
1746 _ASUNAME
1747
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1750 do
1751   IFS=$as_save_IFS
1752   test -z "$as_dir" && as_dir=.
1753   echo "PATH: $as_dir"
1754 done
1755 IFS=$as_save_IFS
1756
1757 } >&5
1758
1759 cat >&5 <<_ACEOF
1760
1761
1762 ## ----------- ##
1763 ## Core tests. ##
1764 ## ----------- ##
1765
1766 _ACEOF
1767
1768
1769 # Keep a trace of the command line.
1770 # Strip out --no-create and --no-recursion so they do not pile up.
1771 # Strip out --silent because we don't want to record it for future runs.
1772 # Also quote any args containing shell meta-characters.
1773 # Make two passes to allow for proper duplicate-argument suppression.
1774 ac_configure_args=
1775 ac_configure_args0=
1776 ac_configure_args1=
1777 ac_must_keep_next=false
1778 for ac_pass in 1 2
1779 do
1780   for ac_arg
1781   do
1782     case $ac_arg in
1783     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1784     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1785     | -silent | --silent | --silen | --sile | --sil)
1786       continue ;;
1787     *\'*)
1788       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1789     esac
1790     case $ac_pass in
1791     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1792     2)
1793       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1794       if test $ac_must_keep_next = true; then
1795         ac_must_keep_next=false # Got value, back to normal.
1796       else
1797         case $ac_arg in
1798           *=* | --config-cache | -C | -disable-* | --disable-* \
1799           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1800           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1801           | -with-* | --with-* | -without-* | --without-* | --x)
1802             case "$ac_configure_args0 " in
1803               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1804             esac
1805             ;;
1806           -* ) ac_must_keep_next=true ;;
1807         esac
1808       fi
1809       ac_configure_args="$ac_configure_args '$ac_arg'"
1810       ;;
1811     esac
1812   done
1813 done
1814 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1815 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1816
1817 # When interrupted or exit'd, cleanup temporary files, and complete
1818 # config.log.  We remove comments because anyway the quotes in there
1819 # would cause problems or look ugly.
1820 # WARNING: Use '\'' to represent an apostrophe within the trap.
1821 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1822 trap 'exit_status=$?
1823   # Save into config.log some information that might help in debugging.
1824   {
1825     echo
1826
1827     cat <<\_ASBOX
1828 ## ---------------- ##
1829 ## Cache variables. ##
1830 ## ---------------- ##
1831 _ASBOX
1832     echo
1833     # The following way of writing the cache mishandles newlines in values,
1834 (
1835   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1836     eval ac_val=\$$ac_var
1837     case $ac_val in #(
1838     *${as_nl}*)
1839       case $ac_var in #(
1840       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1841 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1842       esac
1843       case $ac_var in #(
1844       _ | IFS | as_nl) ;; #(
1845       *) $as_unset $ac_var ;;
1846       esac ;;
1847     esac
1848   done
1849   (set) 2>&1 |
1850     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1851     *${as_nl}ac_space=\ *)
1852       sed -n \
1853         "s/'\''/'\''\\\\'\'''\''/g;
1854           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1855       ;; #(
1856     *)
1857       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1858       ;;
1859     esac |
1860     sort
1861 )
1862     echo
1863
1864     cat <<\_ASBOX
1865 ## ----------------- ##
1866 ## Output variables. ##
1867 ## ----------------- ##
1868 _ASBOX
1869     echo
1870     for ac_var in $ac_subst_vars
1871     do
1872       eval ac_val=\$$ac_var
1873       case $ac_val in
1874       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1875       esac
1876       echo "$ac_var='\''$ac_val'\''"
1877     done | sort
1878     echo
1879
1880     if test -n "$ac_subst_files"; then
1881       cat <<\_ASBOX
1882 ## ------------------- ##
1883 ## File substitutions. ##
1884 ## ------------------- ##
1885 _ASBOX
1886       echo
1887       for ac_var in $ac_subst_files
1888       do
1889         eval ac_val=\$$ac_var
1890         case $ac_val in
1891         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1892         esac
1893         echo "$ac_var='\''$ac_val'\''"
1894       done | sort
1895       echo
1896     fi
1897
1898     if test -s confdefs.h; then
1899       cat <<\_ASBOX
1900 ## ----------- ##
1901 ## confdefs.h. ##
1902 ## ----------- ##
1903 _ASBOX
1904       echo
1905       cat confdefs.h
1906       echo
1907     fi
1908     test "$ac_signal" != 0 &&
1909       echo "$as_me: caught signal $ac_signal"
1910     echo "$as_me: exit $exit_status"
1911   } >&5
1912   rm -f core *.core core.conftest.* &&
1913     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1914     exit $exit_status
1915 ' 0
1916 for ac_signal in 1 2 13 15; do
1917   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1918 done
1919 ac_signal=0
1920
1921 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1922 rm -f -r conftest* confdefs.h
1923
1924 # Predefined preprocessor variables.
1925
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_NAME "$PACKAGE_NAME"
1928 _ACEOF
1929
1930
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1933 _ACEOF
1934
1935
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1938 _ACEOF
1939
1940
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_STRING "$PACKAGE_STRING"
1943 _ACEOF
1944
1945
1946 cat >>confdefs.h <<_ACEOF
1947 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1948 _ACEOF
1949
1950
1951 # Let the site file select an alternate cache file if it wants to.
1952 # Prefer explicitly selected file to automatically selected ones.
1953 if test -n "$CONFIG_SITE"; then
1954   set x "$CONFIG_SITE"
1955 elif test "x$prefix" != xNONE; then
1956   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1957 else
1958   set x "$ac_default_prefix/share/config.site" \
1959         "$ac_default_prefix/etc/config.site"
1960 fi
1961 shift
1962 for ac_site_file
1963 do
1964   if test -r "$ac_site_file"; then
1965     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1966 echo "$as_me: loading site script $ac_site_file" >&6;}
1967     sed 's/^/| /' "$ac_site_file" >&5
1968     . "$ac_site_file"
1969   fi
1970 done
1971
1972 if test -r "$cache_file"; then
1973   # Some versions of bash will fail to source /dev/null (special
1974   # files actually), so we avoid doing that.
1975   if test -f "$cache_file"; then
1976     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1977 echo "$as_me: loading cache $cache_file" >&6;}
1978     case $cache_file in
1979       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1980       *)                      . "./$cache_file";;
1981     esac
1982   fi
1983 else
1984   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1985 echo "$as_me: creating cache $cache_file" >&6;}
1986   >$cache_file
1987 fi
1988
1989 # Check that the precious variables saved in the cache have kept the same
1990 # value.
1991 ac_cache_corrupted=false
1992 for ac_var in $ac_precious_vars; do
1993   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1994   eval ac_new_set=\$ac_env_${ac_var}_set
1995   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1996   eval ac_new_val=\$ac_env_${ac_var}_value
1997   case $ac_old_set,$ac_new_set in
1998     set,)
1999       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2000 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2001       ac_cache_corrupted=: ;;
2002     ,set)
2003       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2004 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2005       ac_cache_corrupted=: ;;
2006     ,);;
2007     *)
2008       if test "x$ac_old_val" != "x$ac_new_val"; then
2009         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2010 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2011         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2012 echo "$as_me:   former value:  $ac_old_val" >&2;}
2013         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2014 echo "$as_me:   current value: $ac_new_val" >&2;}
2015         ac_cache_corrupted=:
2016       fi;;
2017   esac
2018   # Pass precious variables to config.status.
2019   if test "$ac_new_set" = set; then
2020     case $ac_new_val in
2021     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2022     *) ac_arg=$ac_var=$ac_new_val ;;
2023     esac
2024     case " $ac_configure_args " in
2025       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2026       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2027     esac
2028   fi
2029 done
2030 if $ac_cache_corrupted; then
2031   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2032 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2033   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2034 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2035    { (exit 1); exit 1; }; }
2036 fi
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054 ac_ext=c
2055 ac_cpp='$CPP $CPPFLAGS'
2056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2059
2060
2061
2062 ac_config_headers="$ac_config_headers config.h"
2063
2064 ac_aux_dir=
2065 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2066   if test -f "$ac_dir/install-sh"; then
2067     ac_aux_dir=$ac_dir
2068     ac_install_sh="$ac_aux_dir/install-sh -c"
2069     break
2070   elif test -f "$ac_dir/install.sh"; then
2071     ac_aux_dir=$ac_dir
2072     ac_install_sh="$ac_aux_dir/install.sh -c"
2073     break
2074   elif test -f "$ac_dir/shtool"; then
2075     ac_aux_dir=$ac_dir
2076     ac_install_sh="$ac_aux_dir/shtool install -c"
2077     break
2078   fi
2079 done
2080 if test -z "$ac_aux_dir"; then
2081   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2082 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2083    { (exit 1); exit 1; }; }
2084 fi
2085
2086 # These three variables are undocumented and unsupported,
2087 # and are intended to be withdrawn in a future Autoconf release.
2088 # They can cause serious problems if a builder's source tree is in a directory
2089 # whose full name contains unusual characters.
2090 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2091 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2092 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2093
2094
2095 # Make sure we can run config.sub.
2096 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2097   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2098 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2099    { (exit 1); exit 1; }; }
2100
2101 { echo "$as_me:$LINENO: checking build system type" >&5
2102 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2103 if test "${ac_cv_build+set}" = set; then
2104   echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106   ac_build_alias=$build_alias
2107 test "x$ac_build_alias" = x &&
2108   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2109 test "x$ac_build_alias" = x &&
2110   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2111 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2112    { (exit 1); exit 1; }; }
2113 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2114   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2115 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2116    { (exit 1); exit 1; }; }
2117
2118 fi
2119 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2120 echo "${ECHO_T}$ac_cv_build" >&6; }
2121 case $ac_cv_build in
2122 *-*-*) ;;
2123 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2124 echo "$as_me: error: invalid value of canonical build" >&2;}
2125    { (exit 1); exit 1; }; };;
2126 esac
2127 build=$ac_cv_build
2128 ac_save_IFS=$IFS; IFS='-'
2129 set x $ac_cv_build
2130 shift
2131 build_cpu=$1
2132 build_vendor=$2
2133 shift; shift
2134 # Remember, the first character of IFS is used to create $*,
2135 # except with old shells:
2136 build_os=$*
2137 IFS=$ac_save_IFS
2138 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2139
2140
2141 { echo "$as_me:$LINENO: checking host system type" >&5
2142 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2143 if test "${ac_cv_host+set}" = set; then
2144   echo $ECHO_N "(cached) $ECHO_C" >&6
2145 else
2146   if test "x$host_alias" = x; then
2147   ac_cv_host=$ac_cv_build
2148 else
2149   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2150     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2151 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2152    { (exit 1); exit 1; }; }
2153 fi
2154
2155 fi
2156 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2157 echo "${ECHO_T}$ac_cv_host" >&6; }
2158 case $ac_cv_host in
2159 *-*-*) ;;
2160 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2161 echo "$as_me: error: invalid value of canonical host" >&2;}
2162    { (exit 1); exit 1; }; };;
2163 esac
2164 host=$ac_cv_host
2165 ac_save_IFS=$IFS; IFS='-'
2166 set x $ac_cv_host
2167 shift
2168 host_cpu=$1
2169 host_vendor=$2
2170 shift; shift
2171 # Remember, the first character of IFS is used to create $*,
2172 # except with old shells:
2173 host_os=$*
2174 IFS=$ac_save_IFS
2175 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2176
2177
2178 { echo "$as_me:$LINENO: checking target system type" >&5
2179 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2180 if test "${ac_cv_target+set}" = set; then
2181   echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183   if test "x$target_alias" = x; then
2184   ac_cv_target=$ac_cv_host
2185 else
2186   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2187     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2188 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2189    { (exit 1); exit 1; }; }
2190 fi
2191
2192 fi
2193 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2194 echo "${ECHO_T}$ac_cv_target" >&6; }
2195 case $ac_cv_target in
2196 *-*-*) ;;
2197 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2198 echo "$as_me: error: invalid value of canonical target" >&2;}
2199    { (exit 1); exit 1; }; };;
2200 esac
2201 target=$ac_cv_target
2202 ac_save_IFS=$IFS; IFS='-'
2203 set x $ac_cv_target
2204 shift
2205 target_cpu=$1
2206 target_vendor=$2
2207 shift; shift
2208 # Remember, the first character of IFS is used to create $*,
2209 # except with old shells:
2210 target_os=$*
2211 IFS=$ac_save_IFS
2212 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2213
2214
2215 # The aliases save the names the user supplied, while $host etc.
2216 # will get canonicalized.
2217 test -n "$target_alias" &&
2218   test "$program_prefix$program_suffix$program_transform_name" = \
2219     NONENONEs,x,x, &&
2220   program_prefix=${target_alias}-
2221 am__api_version="1.9"
2222 # Find a good install program.  We prefer a C program (faster),
2223 # so one script is as good as another.  But avoid the broken or
2224 # incompatible versions:
2225 # SysV /etc/install, /usr/sbin/install
2226 # SunOS /usr/etc/install
2227 # IRIX /sbin/install
2228 # AIX /bin/install
2229 # AmigaOS /C/install, which installs bootblocks on floppy discs
2230 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2231 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2232 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2233 # OS/2's system install, which has a completely different semantic
2234 # ./install, which can be erroneously created by make from ./install.sh.
2235 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2236 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2237 if test -z "$INSTALL"; then
2238 if test "${ac_cv_path_install+set}" = set; then
2239   echo $ECHO_N "(cached) $ECHO_C" >&6
2240 else
2241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH
2243 do
2244   IFS=$as_save_IFS
2245   test -z "$as_dir" && as_dir=.
2246   # Account for people who put trailing slashes in PATH elements.
2247 case $as_dir/ in
2248   ./ | .// | /cC/* | \
2249   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2250   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2251   /usr/ucb/* ) ;;
2252   *)
2253     # OSF1 and SCO ODT 3.0 have their own names for install.
2254     # Don't use installbsd from OSF since it installs stuff as root
2255     # by default.
2256     for ac_prog in ginstall scoinst install; do
2257       for ac_exec_ext in '' $ac_executable_extensions; do
2258         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2259           if test $ac_prog = install &&
2260             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2261             # AIX install.  It has an incompatible calling convention.
2262             :
2263           elif test $ac_prog = install &&
2264             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2265             # program-specific install script used by HP pwplus--don't use.
2266             :
2267           else
2268             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2269             break 3
2270           fi
2271         fi
2272       done
2273     done
2274     ;;
2275 esac
2276 done
2277 IFS=$as_save_IFS
2278
2279
2280 fi
2281   if test "${ac_cv_path_install+set}" = set; then
2282     INSTALL=$ac_cv_path_install
2283   else
2284     # As a last resort, use the slow shell script.  Don't cache a
2285     # value for INSTALL within a source directory, because that will
2286     # break other packages using the cache if that directory is
2287     # removed, or if the value is a relative name.
2288     INSTALL=$ac_install_sh
2289   fi
2290 fi
2291 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2292 echo "${ECHO_T}$INSTALL" >&6; }
2293
2294 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2295 # It thinks the first close brace ends the variable substitution.
2296 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2297
2298 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2299
2300 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2301
2302 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2303 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2304 # Just in case
2305 sleep 1
2306 echo timestamp > conftest.file
2307 # Do `set' in a subshell so we don't clobber the current shell's
2308 # arguments.  Must try -L first in case configure is actually a
2309 # symlink; some systems play weird games with the mod time of symlinks
2310 # (eg FreeBSD returns the mod time of the symlink's containing
2311 # directory).
2312 if (
2313    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2314    if test "$*" = "X"; then
2315       # -L didn't work.
2316       set X `ls -t $srcdir/configure conftest.file`
2317    fi
2318    rm -f conftest.file
2319    if test "$*" != "X $srcdir/configure conftest.file" \
2320       && test "$*" != "X conftest.file $srcdir/configure"; then
2321
2322       # If neither matched, then we have a broken ls.  This can happen
2323       # if, for instance, CONFIG_SHELL is bash and it inherits a
2324       # broken ls alias from the environment.  This has actually
2325       # happened.  Such a system could not be considered "sane".
2326       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2327 alias in your environment" >&5
2328 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2329 alias in your environment" >&2;}
2330    { (exit 1); exit 1; }; }
2331    fi
2332
2333    test "$2" = conftest.file
2334    )
2335 then
2336    # Ok.
2337    :
2338 else
2339    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2340 Check your system clock" >&5
2341 echo "$as_me: error: newly created file is older than distributed files!
2342 Check your system clock" >&2;}
2343    { (exit 1); exit 1; }; }
2344 fi
2345 { echo "$as_me:$LINENO: result: yes" >&5
2346 echo "${ECHO_T}yes" >&6; }
2347 test "$program_prefix" != NONE &&
2348   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2349 # Use a double $ so make ignores it.
2350 test "$program_suffix" != NONE &&
2351   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2352 # Double any \ or $.  echo might interpret backslashes.
2353 # By default was `s,x,x', remove it if useless.
2354 cat <<\_ACEOF >conftest.sed
2355 s/[\\$]/&&/g;s/;s,x,x,$//
2356 _ACEOF
2357 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2358 rm -f conftest.sed
2359
2360 # expand $ac_aux_dir to an absolute path
2361 am_aux_dir=`cd $ac_aux_dir && pwd`
2362
2363 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2364 # Use eval to expand $SHELL
2365 if eval "$MISSING --run true"; then
2366   am_missing_run="$MISSING --run "
2367 else
2368   am_missing_run=
2369   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2370 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2371 fi
2372
2373 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2374   # We used to keeping the `.' as first argument, in order to
2375   # allow $(mkdir_p) to be used without argument.  As in
2376   #   $(mkdir_p) $(somedir)
2377   # where $(somedir) is conditionally defined.  However this is wrong
2378   # for two reasons:
2379   #  1. if the package is installed by a user who cannot write `.'
2380   #     make install will fail,
2381   #  2. the above comment should most certainly read
2382   #     $(mkdir_p) $(DESTDIR)$(somedir)
2383   #     so it does not work when $(somedir) is undefined and
2384   #     $(DESTDIR) is not.
2385   #  To support the latter case, we have to write
2386   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2387   #  so the `.' trick is pointless.
2388   mkdir_p='mkdir -p --'
2389 else
2390   # On NextStep and OpenStep, the `mkdir' command does not
2391   # recognize any option.  It will interpret all options as
2392   # directories to create, and then abort because `.' already
2393   # exists.
2394   for d in ./-p ./--version;
2395   do
2396     test -d $d && rmdir $d
2397   done
2398   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2399   if test -f "$ac_aux_dir/mkinstalldirs"; then
2400     mkdir_p='$(mkinstalldirs)'
2401   else
2402     mkdir_p='$(install_sh) -d'
2403   fi
2404 fi
2405
2406 for ac_prog in gawk mawk nawk awk
2407 do
2408   # Extract the first word of "$ac_prog", so it can be a program name with args.
2409 set dummy $ac_prog; ac_word=$2
2410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2412 if test "${ac_cv_prog_AWK+set}" = set; then
2413   echo $ECHO_N "(cached) $ECHO_C" >&6
2414 else
2415   if test -n "$AWK"; then
2416   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2417 else
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH
2420 do
2421   IFS=$as_save_IFS
2422   test -z "$as_dir" && as_dir=.
2423   for ac_exec_ext in '' $ac_executable_extensions; do
2424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2425     ac_cv_prog_AWK="$ac_prog"
2426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427     break 2
2428   fi
2429 done
2430 done
2431 IFS=$as_save_IFS
2432
2433 fi
2434 fi
2435 AWK=$ac_cv_prog_AWK
2436 if test -n "$AWK"; then
2437   { echo "$as_me:$LINENO: result: $AWK" >&5
2438 echo "${ECHO_T}$AWK" >&6; }
2439 else
2440   { echo "$as_me:$LINENO: result: no" >&5
2441 echo "${ECHO_T}no" >&6; }
2442 fi
2443
2444
2445   test -n "$AWK" && break
2446 done
2447
2448 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2449 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2450 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2451 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2452   echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454   cat >conftest.make <<\_ACEOF
2455 SHELL = /bin/sh
2456 all:
2457         @echo '@@@%%%=$(MAKE)=@@@%%%'
2458 _ACEOF
2459 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2460 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2461   *@@@%%%=?*=@@@%%%*)
2462     eval ac_cv_prog_make_${ac_make}_set=yes;;
2463   *)
2464     eval ac_cv_prog_make_${ac_make}_set=no;;
2465 esac
2466 rm -f conftest.make
2467 fi
2468 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2469   { echo "$as_me:$LINENO: result: yes" >&5
2470 echo "${ECHO_T}yes" >&6; }
2471   SET_MAKE=
2472 else
2473   { echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6; }
2475   SET_MAKE="MAKE=${MAKE-make}"
2476 fi
2477
2478 rm -rf .tst 2>/dev/null
2479 mkdir .tst 2>/dev/null
2480 if test -d .tst; then
2481   am__leading_dot=.
2482 else
2483   am__leading_dot=_
2484 fi
2485 rmdir .tst 2>/dev/null
2486
2487 # test to see if srcdir already configured
2488 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2489    test -f $srcdir/config.status; then
2490   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2491 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2492    { (exit 1); exit 1; }; }
2493 fi
2494
2495 # test whether we have cygpath
2496 if test -z "$CYGPATH_W"; then
2497   if (cygpath --version) >/dev/null 2>/dev/null; then
2498     CYGPATH_W='cygpath -w'
2499   else
2500     CYGPATH_W=echo
2501   fi
2502 fi
2503
2504
2505 # Define the identity of the package.
2506  PACKAGE=gnuradio
2507  VERSION=3.0.4
2508
2509
2510 cat >>confdefs.h <<_ACEOF
2511 #define PACKAGE "$PACKAGE"
2512 _ACEOF
2513
2514
2515 cat >>confdefs.h <<_ACEOF
2516 #define VERSION "$VERSION"
2517 _ACEOF
2518
2519 # Some tools Automake needs.
2520
2521 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2522
2523
2524 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2525
2526
2527 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2528
2529
2530 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2531
2532
2533 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2534
2535 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2536
2537 # Installed binaries are usually stripped using `strip' when the user
2538 # run `make install-strip'.  However `strip' might not be the right
2539 # tool to use in cross-compilation environments, therefore Automake
2540 # will honor the `STRIP' environment variable to overrule this program.
2541 if test "$cross_compiling" != no; then
2542   if test -n "$ac_tool_prefix"; then
2543   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2544 set dummy ${ac_tool_prefix}strip; ac_word=$2
2545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2547 if test "${ac_cv_prog_STRIP+set}" = set; then
2548   echo $ECHO_N "(cached) $ECHO_C" >&6
2549 else
2550   if test -n "$STRIP"; then
2551   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2552 else
2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554 for as_dir in $PATH
2555 do
2556   IFS=$as_save_IFS
2557   test -z "$as_dir" && as_dir=.
2558   for ac_exec_ext in '' $ac_executable_extensions; do
2559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2560     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2562     break 2
2563   fi
2564 done
2565 done
2566 IFS=$as_save_IFS
2567
2568 fi
2569 fi
2570 STRIP=$ac_cv_prog_STRIP
2571 if test -n "$STRIP"; then
2572   { echo "$as_me:$LINENO: result: $STRIP" >&5
2573 echo "${ECHO_T}$STRIP" >&6; }
2574 else
2575   { echo "$as_me:$LINENO: result: no" >&5
2576 echo "${ECHO_T}no" >&6; }
2577 fi
2578
2579
2580 fi
2581 if test -z "$ac_cv_prog_STRIP"; then
2582   ac_ct_STRIP=$STRIP
2583   # Extract the first word of "strip", so it can be a program name with args.
2584 set dummy strip; ac_word=$2
2585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2587 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2588   echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590   if test -n "$ac_ct_STRIP"; then
2591   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596   IFS=$as_save_IFS
2597   test -z "$as_dir" && as_dir=.
2598   for ac_exec_ext in '' $ac_executable_extensions; do
2599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600     ac_cv_prog_ac_ct_STRIP="strip"
2601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602     break 2
2603   fi
2604 done
2605 done
2606 IFS=$as_save_IFS
2607
2608 fi
2609 fi
2610 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2611 if test -n "$ac_ct_STRIP"; then
2612   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2613 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2614 else
2615   { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2617 fi
2618
2619   if test "x$ac_ct_STRIP" = x; then
2620     STRIP=":"
2621   else
2622     case $cross_compiling:$ac_tool_warned in
2623 yes:)
2624 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2625 whose name does not start with the host triplet.  If you think this
2626 configuration is useful to you, please write to autoconf@gnu.org." >&5
2627 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2628 whose name does not start with the host triplet.  If you think this
2629 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2630 ac_tool_warned=yes ;;
2631 esac
2632     STRIP=$ac_ct_STRIP
2633   fi
2634 else
2635   STRIP="$ac_cv_prog_STRIP"
2636 fi
2637
2638 fi
2639 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2640
2641 # We need awk for the "check" target.  The system "awk" is bad on
2642 # some platforms.
2643 # Always define AMTAR for backward compatibility.
2644
2645 AMTAR=${AMTAR-"${am_missing_run}tar"}
2646
2647 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657   if test "$host_cpu" = "x86_64"; then
2658     { echo "$as_me:$LINENO: checking libdir for lib64 suffix" >&5
2659 echo $ECHO_N "checking libdir for lib64 suffix... $ECHO_C" >&6; }
2660     t=${libdir##*/lib}
2661     if test "$t" != 64 && test -d /lib64 && ! test -L /lib64; then
2662       libdir=${libdir}64
2663       { echo "$as_me:$LINENO: result: no. Setting libdir to $libdir" >&5
2664 echo "${ECHO_T}no. Setting libdir to $libdir" >&6; }
2665     else
2666       { echo "$as_me:$LINENO: result: yes" >&5
2667 echo "${ECHO_T}yes" >&6; }
2668     fi
2669   fi
2670                 DEPDIR="${am__leading_dot}deps"
2671
2672 ac_config_commands="$ac_config_commands depfiles"
2673
2674
2675 am_make=${MAKE-make}
2676 cat > confinc << 'END'
2677 am__doit:
2678         @echo done
2679 .PHONY: am__doit
2680 END
2681 # If we don't find an include directive, just comment out the code.
2682 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2683 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2684 am__include="#"
2685 am__quote=
2686 _am_result=none
2687 # First try GNU make style include.
2688 echo "include confinc" > confmf
2689 # We grep out `Entering directory' and `Leaving directory'
2690 # messages which can occur if `w' ends up in MAKEFLAGS.
2691 # In particular we don't look at `^make:' because GNU make might
2692 # be invoked under some other name (usually "gmake"), in which
2693 # case it prints its new name instead of `make'.
2694 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2695    am__include=include
2696    am__quote=
2697    _am_result=GNU
2698 fi
2699 # Now try BSD make style include.
2700 if test "$am__include" = "#"; then
2701    echo '.include "confinc"' > confmf
2702    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2703       am__include=.include
2704       am__quote="\""
2705       _am_result=BSD
2706    fi
2707 fi
2708
2709
2710 { echo "$as_me:$LINENO: result: $_am_result" >&5
2711 echo "${ECHO_T}$_am_result" >&6; }
2712 rm -f confinc confmf
2713
2714 # Check whether --enable-dependency-tracking was given.
2715 if test "${enable_dependency_tracking+set}" = set; then
2716   enableval=$enable_dependency_tracking;
2717 fi
2718
2719 if test "x$enable_dependency_tracking" != xno; then
2720   am_depcomp="$ac_aux_dir/depcomp"
2721   AMDEPBACKSLASH='\'
2722 fi
2723
2724
2725 if test "x$enable_dependency_tracking" != xno; then
2726   AMDEP_TRUE=
2727   AMDEP_FALSE='#'
2728 else
2729   AMDEP_TRUE='#'
2730   AMDEP_FALSE=
2731 fi
2732
2733
2734
2735 ac_ext=c
2736 ac_cpp='$CPP $CPPFLAGS'
2737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740 if test -n "$ac_tool_prefix"; then
2741   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2742 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2745 if test "${ac_cv_prog_CC+set}" = set; then
2746   echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748   if test -n "$CC"; then
2749   ac_cv_prog_CC="$CC" # Let the user override the test.
2750 else
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754   IFS=$as_save_IFS
2755   test -z "$as_dir" && as_dir=.
2756   for ac_exec_ext in '' $ac_executable_extensions; do
2757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760     break 2
2761   fi
2762 done
2763 done
2764 IFS=$as_save_IFS
2765
2766 fi
2767 fi
2768 CC=$ac_cv_prog_CC
2769 if test -n "$CC"; then
2770   { echo "$as_me:$LINENO: result: $CC" >&5
2771 echo "${ECHO_T}$CC" >&6; }
2772 else
2773   { echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6; }
2775 fi
2776
2777
2778 fi
2779 if test -z "$ac_cv_prog_CC"; then
2780   ac_ct_CC=$CC
2781   # Extract the first word of "gcc", so it can be a program name with args.
2782 set dummy gcc; ac_word=$2
2783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2785 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2786   echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788   if test -n "$ac_ct_CC"; then
2789   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2790 else
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 for as_dir in $PATH
2793 do
2794   IFS=$as_save_IFS
2795   test -z "$as_dir" && as_dir=.
2796   for ac_exec_ext in '' $ac_executable_extensions; do
2797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798     ac_cv_prog_ac_ct_CC="gcc"
2799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2800     break 2
2801   fi
2802 done
2803 done
2804 IFS=$as_save_IFS
2805
2806 fi
2807 fi
2808 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2809 if test -n "$ac_ct_CC"; then
2810   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2811 echo "${ECHO_T}$ac_ct_CC" >&6; }
2812 else
2813   { echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6; }
2815 fi
2816
2817   if test "x$ac_ct_CC" = x; then
2818     CC=""
2819   else
2820     case $cross_compiling:$ac_tool_warned in
2821 yes:)
2822 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2823 whose name does not start with the host triplet.  If you think this
2824 configuration is useful to you, please write to autoconf@gnu.org." >&5
2825 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2826 whose name does not start with the host triplet.  If you think this
2827 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2828 ac_tool_warned=yes ;;
2829 esac
2830     CC=$ac_ct_CC
2831   fi
2832 else
2833   CC="$ac_cv_prog_CC"
2834 fi
2835
2836 if test -z "$CC"; then
2837           if test -n "$ac_tool_prefix"; then
2838     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2839 set dummy ${ac_tool_prefix}cc; ac_word=$2
2840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2842 if test "${ac_cv_prog_CC+set}" = set; then
2843   echo $ECHO_N "(cached) $ECHO_C" >&6
2844 else
2845   if test -n "$CC"; then
2846   ac_cv_prog_CC="$CC" # Let the user override the test.
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2850 do
2851   IFS=$as_save_IFS
2852   test -z "$as_dir" && as_dir=.
2853   for ac_exec_ext in '' $ac_executable_extensions; do
2854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855     ac_cv_prog_CC="${ac_tool_prefix}cc"
2856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857     break 2
2858   fi
2859 done
2860 done
2861 IFS=$as_save_IFS
2862
2863 fi
2864 fi
2865 CC=$ac_cv_prog_CC
2866 if test -n "$CC"; then
2867   { echo "$as_me:$LINENO: result: $CC" >&5
2868 echo "${ECHO_T}$CC" >&6; }
2869 else
2870   { echo "$as_me:$LINENO: result: no" >&5
2871 echo "${ECHO_T}no" >&6; }
2872 fi
2873
2874
2875   fi
2876 fi
2877 if test -z "$CC"; then
2878   # Extract the first word of "cc", so it can be a program name with args.
2879 set dummy cc; ac_word=$2
2880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2882 if test "${ac_cv_prog_CC+set}" = set; then
2883   echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885   if test -n "$CC"; then
2886   ac_cv_prog_CC="$CC" # Let the user override the test.
2887 else
2888   ac_prog_rejected=no
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2891 do
2892   IFS=$as_save_IFS
2893   test -z "$as_dir" && as_dir=.
2894   for ac_exec_ext in '' $ac_executable_extensions; do
2895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2897        ac_prog_rejected=yes
2898        continue
2899      fi
2900     ac_cv_prog_CC="cc"
2901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2902     break 2
2903   fi
2904 done
2905 done
2906 IFS=$as_save_IFS
2907
2908 if test $ac_prog_rejected = yes; then
2909   # We found a bogon in the path, so make sure we never use it.
2910   set dummy $ac_cv_prog_CC
2911   shift
2912   if test $# != 0; then
2913     # We chose a different compiler from the bogus one.
2914     # However, it has the same basename, so the bogon will be chosen
2915     # first if we set CC to just the basename; use the full file name.
2916     shift
2917     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2918   fi
2919 fi
2920 fi
2921 fi
2922 CC=$ac_cv_prog_CC
2923 if test -n "$CC"; then
2924   { echo "$as_me:$LINENO: result: $CC" >&5
2925 echo "${ECHO_T}$CC" >&6; }
2926 else
2927   { echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6; }
2929 fi
2930
2931
2932 fi
2933 if test -z "$CC"; then
2934   if test -n "$ac_tool_prefix"; then
2935   for ac_prog in cl.exe
2936   do
2937     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2941 if test "${ac_cv_prog_CC+set}" = set; then
2942   echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944   if test -n "$CC"; then
2945   ac_cv_prog_CC="$CC" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2949 do
2950   IFS=$as_save_IFS
2951   test -z "$as_dir" && as_dir=.
2952   for ac_exec_ext in '' $ac_executable_extensions; do
2953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2956     break 2
2957   fi
2958 done
2959 done
2960 IFS=$as_save_IFS
2961
2962 fi
2963 fi
2964 CC=$ac_cv_prog_CC
2965 if test -n "$CC"; then
2966   { echo "$as_me:$LINENO: result: $CC" >&5
2967 echo "${ECHO_T}$CC" >&6; }
2968 else
2969   { echo "$as_me:$LINENO: result: no" >&5
2970 echo "${ECHO_T}no" >&6; }
2971 fi
2972
2973
2974     test -n "$CC" && break
2975   done
2976 fi
2977 if test -z "$CC"; then
2978   ac_ct_CC=$CC
2979   for ac_prog in cl.exe
2980 do
2981   # Extract the first word of "$ac_prog", so it can be a program name with args.
2982 set dummy $ac_prog; ac_word=$2
2983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2985 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2986   echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988   if test -n "$ac_ct_CC"; then
2989   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2993 do
2994   IFS=$as_save_IFS
2995   test -z "$as_dir" && as_dir=.
2996   for ac_exec_ext in '' $ac_executable_extensions; do
2997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2998     ac_cv_prog_ac_ct_CC="$ac_prog"
2999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3000     break 2
3001   fi
3002 done
3003 done
3004 IFS=$as_save_IFS
3005
3006 fi
3007 fi
3008 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3009 if test -n "$ac_ct_CC"; then
3010   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3011 echo "${ECHO_T}$ac_ct_CC" >&6; }
3012 else
3013   { echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6; }
3015 fi
3016
3017
3018   test -n "$ac_ct_CC" && break
3019 done
3020
3021   if test "x$ac_ct_CC" = x; then
3022     CC=""
3023   else
3024     case $cross_compiling:$ac_tool_warned in
3025 yes:)
3026 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3027 whose name does not start with the host triplet.  If you think this
3028 configuration is useful to you, please write to autoconf@gnu.org." >&5
3029 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3030 whose name does not start with the host triplet.  If you think this
3031 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3032 ac_tool_warned=yes ;;
3033 esac
3034     CC=$ac_ct_CC
3035   fi
3036 fi
3037
3038 fi
3039
3040
3041 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3042 See \`config.log' for more details." >&5
3043 echo "$as_me: error: no acceptable C compiler found in \$PATH
3044 See \`config.log' for more details." >&2;}
3045    { (exit 1); exit 1; }; }
3046
3047 # Provide some information about the compiler.
3048 echo "$as_me:$LINENO: checking for C compiler version" >&5
3049 ac_compiler=`set X $ac_compile; echo $2`
3050 { (ac_try="$ac_compiler --version >&5"
3051 case "(($ac_try" in
3052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053   *) ac_try_echo=$ac_try;;
3054 esac
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056   (eval "$ac_compiler --version >&5") 2>&5
3057   ac_status=$?
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); }
3060 { (ac_try="$ac_compiler -v >&5"
3061 case "(($ac_try" in
3062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063   *) ac_try_echo=$ac_try;;
3064 esac
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066   (eval "$ac_compiler -v >&5") 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); }
3070 { (ac_try="$ac_compiler -V >&5"
3071 case "(($ac_try" in
3072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073   *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076   (eval "$ac_compiler -V >&5") 2>&5
3077   ac_status=$?
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); }
3080
3081 cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h.  */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h.  */
3087
3088 int
3089 main ()
3090 {
3091
3092   ;
3093   return 0;
3094 }
3095 _ACEOF
3096 ac_clean_files_save=$ac_clean_files
3097 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3098 # Try to create an executable without -o first, disregard a.out.
3099 # It will help us diagnose broken compilers, and finding out an intuition
3100 # of exeext.
3101 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3102 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3103 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3104 #
3105 # List of possible output files, starting from the most likely.
3106 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3107 # only as a last resort.  b.out is created by i960 compilers.
3108 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3109 #
3110 # The IRIX 6 linker writes into existing files which may not be
3111 # executable, retaining their permissions.  Remove them first so a
3112 # subsequent execution test works.
3113 ac_rmfiles=
3114 for ac_file in $ac_files
3115 do
3116   case $ac_file in
3117     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3118     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3119   esac
3120 done
3121 rm -f $ac_rmfiles
3122
3123 if { (ac_try="$ac_link_default"
3124 case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129   (eval "$ac_link_default") 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }; then
3133   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3134 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3135 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3136 # so that the user can short-circuit this test for compilers unknown to
3137 # Autoconf.
3138 for ac_file in $ac_files ''
3139 do
3140   test -f "$ac_file" || continue
3141   case $ac_file in
3142     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3143         ;;
3144     [ab].out )
3145         # We found the default executable, but exeext='' is most
3146         # certainly right.
3147         break;;
3148     *.* )
3149         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3150         then :; else
3151            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3152         fi
3153         # We set ac_cv_exeext here because the later test for it is not
3154         # safe: cross compilers may not add the suffix if given an `-o'
3155         # argument, so we may need to know it at that point already.
3156         # Even if this section looks crufty: it has the advantage of
3157         # actually working.
3158         break;;
3159     * )
3160         break;;
3161   esac
3162 done
3163 test "$ac_cv_exeext" = no && ac_cv_exeext=
3164
3165 else
3166   ac_file=''
3167 fi
3168
3169 { echo "$as_me:$LINENO: result: $ac_file" >&5
3170 echo "${ECHO_T}$ac_file" >&6; }
3171 if test -z "$ac_file"; then
3172   echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3174
3175 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3176 See \`config.log' for more details." >&5
3177 echo "$as_me: error: C compiler cannot create executables
3178 See \`config.log' for more details." >&2;}
3179    { (exit 77); exit 77; }; }
3180 fi
3181
3182 ac_exeext=$ac_cv_exeext
3183
3184 # Check that the compiler produces executables we can run.  If not, either
3185 # the compiler is broken, or we cross compile.
3186 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3187 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3188 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3189 # If not cross compiling, check that we can run a simple program.
3190 if test "$cross_compiling" != yes; then
3191   if { ac_try='./$ac_file'
3192   { (case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197   (eval "$ac_try") 2>&5
3198   ac_status=$?
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); }; }; then
3201     cross_compiling=no
3202   else
3203     if test "$cross_compiling" = maybe; then
3204         cross_compiling=yes
3205     else
3206         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3207 If you meant to cross compile, use \`--host'.
3208 See \`config.log' for more details." >&5
3209 echo "$as_me: error: cannot run C compiled programs.
3210 If you meant to cross compile, use \`--host'.
3211 See \`config.log' for more details." >&2;}
3212    { (exit 1); exit 1; }; }
3213     fi
3214   fi
3215 fi
3216 { echo "$as_me:$LINENO: result: yes" >&5
3217 echo "${ECHO_T}yes" >&6; }
3218
3219 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3220 ac_clean_files=$ac_clean_files_save
3221 # Check that the compiler produces executables we can run.  If not, either
3222 # the compiler is broken, or we cross compile.
3223 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3224 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3225 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3226 echo "${ECHO_T}$cross_compiling" >&6; }
3227
3228 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3229 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3230 if { (ac_try="$ac_link"
3231 case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236   (eval "$ac_link") 2>&5
3237   ac_status=$?
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); }; then
3240   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3241 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3242 # work properly (i.e., refer to `conftest.exe'), while it won't with
3243 # `rm'.
3244 for ac_file in conftest.exe conftest conftest.*; do
3245   test -f "$ac_file" || continue
3246   case $ac_file in
3247     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3248     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3249           break;;
3250     * ) break;;
3251   esac
3252 done
3253 else
3254   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3255 See \`config.log' for more details." >&5
3256 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3257 See \`config.log' for more details." >&2;}
3258    { (exit 1); exit 1; }; }
3259 fi
3260
3261 rm -f conftest$ac_cv_exeext
3262 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3263 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3264
3265 rm -f conftest.$ac_ext
3266 EXEEXT=$ac_cv_exeext
3267 ac_exeext=$EXEEXT
3268 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3269 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3270 if test "${ac_cv_objext+set}" = set; then
3271   echo $ECHO_N "(cached) $ECHO_C" >&6
3272 else
3273   cat >conftest.$ac_ext <<_ACEOF
3274 /* confdefs.h.  */
3275 _ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h.  */
3279
3280 int
3281 main ()
3282 {
3283
3284   ;
3285   return 0;
3286 }
3287 _ACEOF
3288 rm -f conftest.o conftest.obj
3289 if { (ac_try="$ac_compile"
3290 case "(($ac_try" in
3291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292   *) ac_try_echo=$ac_try;;
3293 esac
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295   (eval "$ac_compile") 2>&5
3296   ac_status=$?
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); }; then
3299   for ac_file in conftest.o conftest.obj conftest.*; do
3300   test -f "$ac_file" || continue;
3301   case $ac_file in
3302     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3303     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3304        break;;
3305   esac
3306 done
3307 else
3308   echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3312 See \`config.log' for more details." >&5
3313 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3314 See \`config.log' for more details." >&2;}
3315    { (exit 1); exit 1; }; }
3316 fi
3317
3318 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3319 fi
3320 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3321 echo "${ECHO_T}$ac_cv_objext" >&6; }
3322 OBJEXT=$ac_cv_objext
3323 ac_objext=$OBJEXT
3324 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3325 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3326 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3327   echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329   cat >conftest.$ac_ext <<_ACEOF
3330 /* confdefs.h.  */
3331 _ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h.  */
3335
3336 int
3337 main ()
3338 {
3339 #ifndef __GNUC__
3340        choke me
3341 #endif
3342
3343   ;
3344   return 0;
3345 }
3346 _ACEOF
3347 rm -f conftest.$ac_objext
3348 if { (ac_try="$ac_compile"
3349 case "(($ac_try" in
3350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351   *) ac_try_echo=$ac_try;;
3352 esac
3353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354   (eval "$ac_compile") 2>conftest.er1
3355   ac_status=$?
3356   grep -v '^ *+' conftest.er1 >conftest.err
3357   rm -f conftest.er1
3358   cat conftest.err >&5
3359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360   (exit $ac_status); } && {
3361          test -z "$ac_c_werror_flag" ||
3362          test ! -s conftest.err
3363        } && test -s conftest.$ac_objext; then
3364   ac_compiler_gnu=yes
3365 else
3366   echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3368
3369         ac_compiler_gnu=no
3370 fi
3371
3372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3374
3375 fi
3376 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3377 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3378 GCC=`test $ac_compiler_gnu = yes && echo yes`
3379 ac_test_CFLAGS=${CFLAGS+set}
3380 ac_save_CFLAGS=$CFLAGS
3381 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3382 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3383 if test "${ac_cv_prog_cc_g+set}" = set; then
3384   echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386   ac_save_c_werror_flag=$ac_c_werror_flag
3387    ac_c_werror_flag=yes
3388    ac_cv_prog_cc_g=no
3389    CFLAGS="-g"
3390    cat >conftest.$ac_ext <<_ACEOF
3391 /* confdefs.h.  */
3392 _ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h.  */
3396
3397 int
3398 main ()
3399 {
3400
3401   ;
3402   return 0;
3403 }
3404 _ACEOF
3405 rm -f conftest.$ac_objext
3406 if { (ac_try="$ac_compile"
3407 case "(($ac_try" in
3408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409   *) ac_try_echo=$ac_try;;
3410 esac
3411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3412   (eval "$ac_compile") 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } && {
3419          test -z "$ac_c_werror_flag" ||
3420          test ! -s conftest.err
3421        } && test -s conftest.$ac_objext; then
3422   ac_cv_prog_cc_g=yes
3423 else
3424   echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3426
3427         CFLAGS=""
3428       cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h.  */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h.  */
3434
3435 int
3436 main ()
3437 {
3438
3439   ;
3440   return 0;
3441 }
3442 _ACEOF
3443 rm -f conftest.$ac_objext
3444 if { (ac_try="$ac_compile"
3445 case "(($ac_try" in
3446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447   *) ac_try_echo=$ac_try;;
3448 esac
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450   (eval "$ac_compile") 2>conftest.er1
3451   ac_status=$?
3452   grep -v '^ *+' conftest.er1 >conftest.err
3453   rm -f conftest.er1
3454   cat conftest.err >&5
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); } && {
3457          test -z "$ac_c_werror_flag" ||
3458          test ! -s conftest.err
3459        } && test -s conftest.$ac_objext; then
3460   :
3461 else
3462   echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465         ac_c_werror_flag=$ac_save_c_werror_flag
3466          CFLAGS="-g"
3467          cat >conftest.$ac_ext <<_ACEOF
3468 /* confdefs.h.  */
3469 _ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h.  */
3473
3474 int
3475 main ()
3476 {
3477
3478   ;
3479   return 0;
3480 }
3481 _ACEOF
3482 rm -f conftest.$ac_objext
3483 if { (ac_try="$ac_compile"
3484 case "(($ac_try" in
3485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486   *) ac_try_echo=$ac_try;;
3487 esac
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489   (eval "$ac_compile") 2>conftest.er1
3490   ac_status=$?
3491   grep -v '^ *+' conftest.er1 >conftest.err
3492   rm -f conftest.er1
3493   cat conftest.err >&5
3494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495   (exit $ac_status); } && {
3496          test -z "$ac_c_werror_flag" ||
3497          test ! -s conftest.err
3498        } && test -s conftest.$ac_objext; then
3499   ac_cv_prog_cc_g=yes
3500 else
3501   echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3503
3504
3505 fi
3506
3507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508 fi
3509
3510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511 fi
3512
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514    ac_c_werror_flag=$ac_save_c_werror_flag
3515 fi
3516 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3517 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3518 if test "$ac_test_CFLAGS" = set; then
3519   CFLAGS=$ac_save_CFLAGS
3520 elif test $ac_cv_prog_cc_g = yes; then
3521   if test "$GCC" = yes; then
3522     CFLAGS="-g -O2"
3523   else
3524     CFLAGS="-g"
3525   fi
3526 else
3527   if test "$GCC" = yes; then
3528     CFLAGS="-O2"
3529   else
3530     CFLAGS=
3531   fi
3532 fi
3533 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3534 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3535 if test "${ac_cv_prog_cc_c89+set}" = set; then
3536   echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538   ac_cv_prog_cc_c89=no
3539 ac_save_CC=$CC
3540 cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h.  */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h.  */
3546 #include <stdarg.h>
3547 #include <stdio.h>
3548 #include <sys/types.h>
3549 #include <sys/stat.h>
3550 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3551 struct buf { int x; };
3552 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3553 static char *e (p, i)
3554      char **p;
3555      int i;
3556 {
3557   return p[i];
3558 }
3559 static char *f (char * (*g) (char **, int), char **p, ...)
3560 {
3561   char *s;
3562   va_list v;
3563   va_start (v,p);
3564   s = g (p, va_arg (v,int));
3565   va_end (v);
3566   return s;
3567 }
3568
3569 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3570    function prototypes and stuff, but not '\xHH' hex character constants.
3571    These don't provoke an error unfortunately, instead are silently treated
3572    as 'x'.  The following induces an error, until -std is added to get
3573    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3574    array size at least.  It's necessary to write '\x00'==0 to get something
3575    that's true only with -std.  */
3576 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3577
3578 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3579    inside strings and character constants.  */
3580 #define FOO(x) 'x'
3581 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3582
3583 int test (int i, double x);
3584 struct s1 {int (*f) (int a);};
3585 struct s2 {int (*f) (double a);};
3586 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3587 int argc;
3588 char **argv;
3589 int
3590 main ()
3591 {
3592 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3593   ;
3594   return 0;
3595 }
3596 _ACEOF
3597 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3598         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3599 do
3600   CC="$ac_save_CC $ac_arg"
3601   rm -f conftest.$ac_objext
3602 if { (ac_try="$ac_compile"
3603 case "(($ac_try" in
3604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605   *) ac_try_echo=$ac_try;;
3606 esac
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608   (eval "$ac_compile") 2>conftest.er1
3609   ac_status=$?
3610   grep -v '^ *+' conftest.er1 >conftest.err
3611   rm -f conftest.er1
3612   cat conftest.err >&5
3613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614   (exit $ac_status); } && {
3615          test -z "$ac_c_werror_flag" ||
3616          test ! -s conftest.err
3617        } && test -s conftest.$ac_objext; then
3618   ac_cv_prog_cc_c89=$ac_arg
3619 else
3620   echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3622
3623
3624 fi
3625
3626 rm -f core conftest.err conftest.$ac_objext
3627   test "x$ac_cv_prog_cc_c89" != "xno" && break
3628 done
3629 rm -f conftest.$ac_ext
3630 CC=$ac_save_CC
3631
3632 fi
3633 # AC_CACHE_VAL
3634 case "x$ac_cv_prog_cc_c89" in
3635   x)
3636     { echo "$as_me:$LINENO: result: none needed" >&5
3637 echo "${ECHO_T}none needed" >&6; } ;;
3638   xno)
3639     { echo "$as_me:$LINENO: result: unsupported" >&5
3640 echo "${ECHO_T}unsupported" >&6; } ;;
3641   *)
3642     CC="$CC $ac_cv_prog_cc_c89"
3643     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3644 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3645 esac
3646
3647
3648 ac_ext=c
3649 ac_cpp='$CPP $CPPFLAGS'
3650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3653
3654 depcc="$CC"   am_compiler_list=
3655
3656 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3657 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3658 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3662   # We make a subdir and do the tests there.  Otherwise we can end up
3663   # making bogus files that we don't know about and never remove.  For
3664   # instance it was reported that on HP-UX the gcc test will end up
3665   # making a dummy file named `D' -- because `-MD' means `put the output
3666   # in D'.
3667   mkdir conftest.dir
3668   # Copy depcomp to subdir because otherwise we won't find it if we're
3669   # using a relative directory.
3670   cp "$am_depcomp" conftest.dir
3671   cd conftest.dir
3672   # We will build objects and dependencies in a subdirectory because
3673   # it helps to detect inapplicable dependency modes.  For instance
3674   # both Tru64's cc and ICC support -MD to output dependencies as a
3675   # side effect of compilation, but ICC will put the dependencies in
3676   # the current directory while Tru64 will put them in the object
3677   # directory.
3678   mkdir sub
3679
3680   am_cv_CC_dependencies_compiler_type=none
3681   if test "$am_compiler_list" = ""; then
3682      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3683   fi
3684   for depmode in $am_compiler_list; do
3685     # Setup a source with many dependencies, because some compilers
3686     # like to wrap large dependency lists on column 80 (with \), and
3687     # we should not choose a depcomp mode which is confused by this.
3688     #
3689     # We need to recreate these files for each test, as the compiler may
3690     # overwrite some of them when testing with obscure command lines.
3691     # This happens at least with the AIX C compiler.
3692     : > sub/conftest.c
3693     for i in 1 2 3 4 5 6; do
3694       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3695       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3696       # Solaris 8's {/usr,}/bin/sh.
3697       touch sub/conftst$i.h
3698     done
3699     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3700
3701     case $depmode in
3702     nosideeffect)
3703       # after this tag, mechanisms are not by side-effect, so they'll
3704       # only be used when explicitly requested
3705       if test "x$enable_dependency_tracking" = xyes; then
3706         continue
3707       else
3708         break
3709       fi
3710       ;;
3711     none) break ;;
3712     esac
3713     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3714     # mode.  It turns out that the SunPro C++ compiler does not properly
3715     # handle `-M -o', and we need to detect this.
3716     if depmode=$depmode \
3717        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3718        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3719        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3720          >/dev/null 2>conftest.err &&
3721        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3722        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3723        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3724       # icc doesn't choke on unknown options, it will just issue warnings
3725       # or remarks (even with -Werror).  So we grep stderr for any message
3726       # that says an option was ignored or not supported.
3727       # When given -MP, icc 7.0 and 7.1 complain thusly:
3728       #   icc: Command line warning: ignoring option '-M'; no argument required
3729       # The diagnosis changed in icc 8.0:
3730       #   icc: Command line remark: option '-MP' not supported
3731       if (grep 'ignoring option' conftest.err ||
3732           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3733         am_cv_CC_dependencies_compiler_type=$depmode
3734         break
3735       fi
3736     fi
3737   done
3738
3739   cd ..
3740   rm -rf conftest.dir
3741 else
3742   am_cv_CC_dependencies_compiler_type=none
3743 fi
3744
3745 fi
3746 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3747 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3748 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3749
3750
3751
3752 if
3753   test "x$enable_dependency_tracking" != xno \
3754   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3755   am__fastdepCC_TRUE=
3756   am__fastdepCC_FALSE='#'
3757 else
3758   am__fastdepCC_TRUE='#'
3759   am__fastdepCC_FALSE=
3760 fi
3761
3762
3763 ac_ext=c
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3769 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3770 # On Suns, sometimes $CPP names a directory.
3771 if test -n "$CPP" && test -d "$CPP"; then
3772   CPP=
3773 fi
3774 if test -z "$CPP"; then
3775   if test "${ac_cv_prog_CPP+set}" = set; then
3776   echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778       # Double quotes because CPP needs to be expanded
3779     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3780     do
3781       ac_preproc_ok=false
3782 for ac_c_preproc_warn_flag in '' yes
3783 do
3784   # Use a header file that comes with gcc, so configuring glibc
3785   # with a fresh cross-compiler works.
3786   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3787   # <limits.h> exists even on freestanding compilers.
3788   # On the NeXT, cc -E runs the code through the compiler's parser,
3789   # not just through cpp. "Syntax error" is here to catch this case.
3790   cat >conftest.$ac_ext <<_ACEOF
3791 /* confdefs.h.  */
3792 _ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h.  */
3796 #ifdef __STDC__
3797 # include <limits.h>
3798 #else
3799 # include <assert.h>
3800 #endif
3801                      Syntax error
3802 _ACEOF
3803 if { (ac_try="$ac_cpp conftest.$ac_ext"
3804 case "(($ac_try" in
3805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806   *) ac_try_echo=$ac_try;;
3807 esac
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3810   ac_status=$?
3811   grep -v '^ *+' conftest.er1 >conftest.err
3812   rm -f conftest.er1
3813   cat conftest.err >&5
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); } >/dev/null && {
3816          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3817          test ! -s conftest.err
3818        }; then
3819   :
3820 else
3821   echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3823
3824   # Broken: fails on valid input.
3825 continue
3826 fi
3827
3828 rm -f conftest.err conftest.$ac_ext
3829
3830   # OK, works on sane cases.  Now check whether nonexistent headers
3831   # can be detected and how.
3832   cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h.  */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h.  */
3838 #include <ac_nonexistent.h>
3839 _ACEOF
3840 if { (ac_try="$ac_cpp conftest.$ac_ext"
3841 case "(($ac_try" in
3842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843   *) ac_try_echo=$ac_try;;
3844 esac
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3847   ac_status=$?
3848   grep -v '^ *+' conftest.er1 >conftest.err
3849   rm -f conftest.er1
3850   cat conftest.err >&5
3851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852   (exit $ac_status); } >/dev/null && {
3853          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3854          test ! -s conftest.err
3855        }; then
3856   # Broken: success on invalid input.
3857 continue
3858 else
3859   echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3861
3862   # Passes both tests.
3863 ac_preproc_ok=:
3864 break
3865 fi
3866
3867 rm -f conftest.err conftest.$ac_ext
3868
3869 done
3870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3871 rm -f conftest.err conftest.$ac_ext
3872 if $ac_preproc_ok; then
3873   break
3874 fi
3875
3876     done
3877     ac_cv_prog_CPP=$CPP
3878
3879 fi
3880   CPP=$ac_cv_prog_CPP
3881 else
3882   ac_cv_prog_CPP=$CPP
3883 fi
3884 { echo "$as_me:$LINENO: result: $CPP" >&5
3885 echo "${ECHO_T}$CPP" >&6; }
3886 ac_preproc_ok=false
3887 for ac_c_preproc_warn_flag in '' yes
3888 do
3889   # Use a header file that comes with gcc, so configuring glibc
3890   # with a fresh cross-compiler works.
3891   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3892   # <limits.h> exists even on freestanding compilers.
3893   # On the NeXT, cc -E runs the code through the compiler's parser,
3894   # not just through cpp. "Syntax error" is here to catch this case.
3895   cat >conftest.$ac_ext <<_ACEOF
3896 /* confdefs.h.  */
3897 _ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h.  */
3901 #ifdef __STDC__
3902 # include <limits.h>
3903 #else
3904 # include <assert.h>
3905 #endif
3906                      Syntax error
3907 _ACEOF
3908 if { (ac_try="$ac_cpp conftest.$ac_ext"
3909 case "(($ac_try" in
3910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911   *) ac_try_echo=$ac_try;;
3912 esac
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3915   ac_status=$?
3916   grep -v '^ *+' conftest.er1 >conftest.err
3917   rm -f conftest.er1
3918   cat conftest.err >&5
3919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); } >/dev/null && {
3921          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3922          test ! -s conftest.err
3923        }; then
3924   :
3925 else
3926   echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929   # Broken: fails on valid input.
3930 continue
3931 fi
3932
3933 rm -f conftest.err conftest.$ac_ext
3934
3935   # OK, works on sane cases.  Now check whether nonexistent headers
3936   # can be detected and how.
3937   cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h.  */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h.  */
3943 #include <ac_nonexistent.h>
3944 _ACEOF
3945 if { (ac_try="$ac_cpp conftest.$ac_ext"
3946 case "(($ac_try" in
3947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948   *) ac_try_echo=$ac_try;;
3949 esac
3950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3952   ac_status=$?
3953   grep -v '^ *+' conftest.er1 >conftest.err
3954   rm -f conftest.er1
3955   cat conftest.err >&5
3956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957   (exit $ac_status); } >/dev/null && {
3958          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3959          test ! -s conftest.err
3960        }; then
3961   # Broken: success on invalid input.
3962 continue
3963 else
3964   echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3966
3967   # Passes both tests.
3968 ac_preproc_ok=:
3969 break
3970 fi
3971
3972 rm -f conftest.err conftest.$ac_ext
3973
3974 done
3975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3976 rm -f conftest.err conftest.$ac_ext
3977 if $ac_preproc_ok; then
3978   :
3979 else
3980   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3981 See \`config.log' for more details." >&5
3982 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3983 See \`config.log' for more details." >&2;}
3984    { (exit 1); exit 1; }; }
3985 fi
3986
3987 ac_ext=c
3988 ac_cpp='$CPP $CPPFLAGS'
3989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3992
3993
3994
3995 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3996 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3997 if test "${ac_cv_path_GREP+set}" = set; then
3998   echo $ECHO_N "(cached) $ECHO_C" >&6
3999 else
4000   # Extract the first word of "grep ggrep" to use in msg output
4001 if test -z "$GREP"; then
4002 set dummy grep ggrep; ac_prog_name=$2
4003 if test "${ac_cv_path_GREP+set}" = set; then
4004   echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006   ac_path_GREP_found=false
4007 # Loop through the user's path and test for each of PROGNAME-LIST
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4010 do
4011   IFS=$as_save_IFS
4012   test -z "$as_dir" && as_dir=.
4013   for ac_prog in grep ggrep; do
4014   for ac_exec_ext in '' $ac_executable_extensions; do
4015     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4016     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4017     # Check for GNU ac_path_GREP and select it if it is found.
4018   # Check for GNU $ac_path_GREP
4019 case `"$ac_path_GREP" --version 2>&1` in
4020 *GNU*)
4021   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4022 *)
4023   ac_count=0
4024   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4025   while :
4026   do
4027     cat "conftest.in" "conftest.in" >"conftest.tmp"
4028     mv "conftest.tmp" "conftest.in"
4029     cp "conftest.in" "conftest.nl"
4030     echo 'GREP' >> "conftest.nl"
4031     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4032     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4033     ac_count=`expr $ac_count + 1`
4034     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4035       # Best one so far, save it but keep looking for a better one
4036       ac_cv_path_GREP="$ac_path_GREP"
4037       ac_path_GREP_max=$ac_count
4038     fi
4039     # 10*(2^10) chars as input seems more than enough
4040     test $ac_count -gt 10 && break
4041   done
4042   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4043 esac
4044
4045
4046     $ac_path_GREP_found && break 3
4047   done
4048 done
4049
4050 done
4051 IFS=$as_save_IFS
4052
4053
4054 fi
4055
4056 GREP="$ac_cv_path_GREP"
4057 if test -z "$GREP"; then
4058   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4059 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4060    { (exit 1); exit 1; }; }
4061 fi
4062
4063 else
4064   ac_cv_path_GREP=$GREP
4065 fi
4066
4067
4068 fi
4069 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4070 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4071  GREP="$ac_cv_path_GREP"
4072
4073
4074 { echo "$as_me:$LINENO: checking for egrep" >&5
4075 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4076 if test "${ac_cv_path_EGREP+set}" = set; then
4077   echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4080    then ac_cv_path_EGREP="$GREP -E"
4081    else
4082      # Extract the first word of "egrep" to use in msg output
4083 if test -z "$EGREP"; then
4084 set dummy egrep; ac_prog_name=$2
4085 if test "${ac_cv_path_EGREP+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088   ac_path_EGREP_found=false
4089 # Loop through the user's path and test for each of PROGNAME-LIST
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4092 do
4093   IFS=$as_save_IFS
4094   test -z "$as_dir" && as_dir=.
4095   for ac_prog in egrep; do
4096   for ac_exec_ext in '' $ac_executable_extensions; do
4097     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4098     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4099     # Check for GNU ac_path_EGREP and select it if it is found.
4100   # Check for GNU $ac_path_EGREP
4101 case `"$ac_path_EGREP" --version 2>&1` in
4102 *GNU*)
4103   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4104 *)
4105   ac_count=0
4106   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4107   while :
4108   do
4109     cat "conftest.in" "conftest.in" >"conftest.tmp"
4110     mv "conftest.tmp" "conftest.in"
4111     cp "conftest.in" "conftest.nl"
4112     echo 'EGREP' >> "conftest.nl"
4113     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4114     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4115     ac_count=`expr $ac_count + 1`
4116     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4117       # Best one so far, save it but keep looking for a better one
4118       ac_cv_path_EGREP="$ac_path_EGREP"
4119       ac_path_EGREP_max=$ac_count
4120     fi
4121     # 10*(2^10) chars as input seems more than enough
4122     test $ac_count -gt 10 && break
4123   done
4124   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4125 esac
4126
4127
4128     $ac_path_EGREP_found && break 3
4129   done
4130 done
4131
4132 done
4133 IFS=$as_save_IFS
4134
4135
4136 fi
4137
4138 EGREP="$ac_cv_path_EGREP"
4139 if test -z "$EGREP"; then
4140   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4141 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4142    { (exit 1); exit 1; }; }
4143 fi
4144
4145 else
4146   ac_cv_path_EGREP=$EGREP
4147 fi
4148
4149
4150    fi
4151 fi
4152 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4153 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4154  EGREP="$ac_cv_path_EGREP"
4155
4156
4157
4158 { echo "$as_me:$LINENO: checking for AIX" >&5
4159 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4160 cat >conftest.$ac_ext <<_ACEOF
4161 /* confdefs.h.  */
4162 _ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h.  */
4166 #ifdef _AIX
4167   yes
4168 #endif
4169
4170 _ACEOF
4171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4172   $EGREP "yes" >/dev/null 2>&1; then
4173   { echo "$as_me:$LINENO: result: yes" >&5
4174 echo "${ECHO_T}yes" >&6; }
4175 cat >>confdefs.h <<\_ACEOF
4176 #define _ALL_SOURCE 1
4177 _ACEOF
4178
4179 else
4180   { echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6; }
4182 fi
4183 rm -f conftest*
4184
4185
4186 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4187 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4188 if test "${ac_cv_search_strerror+set}" = set; then
4189   echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191   ac_func_search_save_LIBS=$LIBS
4192 cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h.  */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h.  */
4198
4199 /* Override any GCC internal prototype to avoid an error.
4200    Use char because int might match the return type of a GCC
4201    builtin and then its argument prototype would still apply.  */
4202 #ifdef __cplusplus
4203 extern "C"
4204 #endif
4205 char strerror ();
4206 int
4207 main ()
4208 {
4209 return strerror ();
4210   ;
4211   return 0;
4212 }
4213 _ACEOF
4214 for ac_lib in '' cposix; do
4215   if test -z "$ac_lib"; then
4216     ac_res="none required"
4217   else
4218     ac_res=-l$ac_lib
4219     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4220   fi
4221   rm -f conftest.$ac_objext conftest$ac_exeext
4222 if { (ac_try="$ac_link"
4223 case "(($ac_try" in
4224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225   *) ac_try_echo=$ac_try;;
4226 esac
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228   (eval "$ac_link") 2>conftest.er1
4229   ac_status=$?
4230   grep -v '^ *+' conftest.er1 >conftest.err
4231   rm -f conftest.er1
4232   cat conftest.err >&5
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); } && {
4235          test -z "$ac_c_werror_flag" ||
4236          test ! -s conftest.err
4237        } && test -s conftest$ac_exeext &&
4238        $as_test_x conftest$ac_exeext; then
4239   ac_cv_search_strerror=$ac_res
4240 else
4241   echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4243
4244
4245 fi
4246
4247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4248       conftest$ac_exeext
4249   if test "${ac_cv_search_strerror+set}" = set; then
4250   break
4251 fi
4252 done
4253 if test "${ac_cv_search_strerror+set}" = set; then
4254   :
4255 else
4256   ac_cv_search_strerror=no
4257 fi
4258 rm conftest.$ac_ext
4259 LIBS=$ac_func_search_save_LIBS
4260 fi
4261 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4262 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4263 ac_res=$ac_cv_search_strerror
4264 if test "$ac_res" != no; then
4265   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4266
4267 fi
4268
4269 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4270 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4271 if test "${ac_cv_header_stdc+set}" = set; then
4272   echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274   cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h.  */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h.  */
4280 #include <stdlib.h>
4281 #include <stdarg.h>
4282 #include <string.h>
4283 #include <float.h>
4284
4285 int
4286 main ()
4287 {
4288
4289   ;
4290   return 0;
4291 }
4292 _ACEOF
4293 rm -f conftest.$ac_objext
4294 if { (ac_try="$ac_compile"
4295 case "(($ac_try" in
4296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297   *) ac_try_echo=$ac_try;;
4298 esac
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300   (eval "$ac_compile") 2>conftest.er1
4301   ac_status=$?
4302   grep -v '^ *+' conftest.er1 >conftest.err
4303   rm -f conftest.er1
4304   cat conftest.err >&5
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); } && {
4307          test -z "$ac_c_werror_flag" ||
4308          test ! -s conftest.err
4309        } && test -s conftest.$ac_objext; then
4310   ac_cv_header_stdc=yes
4311 else
4312   echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4314
4315         ac_cv_header_stdc=no
4316 fi
4317
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319
4320 if test $ac_cv_header_stdc = yes; then
4321   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4322   cat >conftest.$ac_ext <<_ACEOF
4323 /* confdefs.h.  */
4324 _ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h.  */
4328 #include <string.h>
4329
4330 _ACEOF
4331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4332   $EGREP "memchr" >/dev/null 2>&1; then
4333   :
4334 else
4335   ac_cv_header_stdc=no
4336 fi
4337 rm -f conftest*
4338
4339 fi
4340
4341 if test $ac_cv_header_stdc = yes; then
4342   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4343   cat >conftest.$ac_ext <<_ACEOF
4344 /* confdefs.h.  */
4345 _ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h.  */
4349 #include <stdlib.h>
4350
4351 _ACEOF
4352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4353   $EGREP "free" >/dev/null 2>&1; then
4354   :
4355 else
4356   ac_cv_header_stdc=no
4357 fi
4358 rm -f conftest*
4359
4360 fi
4361
4362 if test $ac_cv_header_stdc = yes; then
4363   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4364   if test "$cross_compiling" = yes; then
4365   :
4366 else
4367   cat >conftest.$ac_ext <<_ACEOF
4368 /* confdefs.h.  */
4369 _ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h.  */
4373 #include <ctype.h>
4374 #include <stdlib.h>
4375 #if ((' ' & 0x0FF) == 0x020)
4376 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4377 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4378 #else
4379 # define ISLOWER(c) \
4380                    (('a' <= (c) && (c) <= 'i') \
4381                      || ('j' <= (c) && (c) <= 'r') \
4382                      || ('s' <= (c) && (c) <= 'z'))
4383 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4384 #endif
4385
4386 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4387 int
4388 main ()
4389 {
4390   int i;
4391   for (i = 0; i < 256; i++)
4392     if (XOR (islower (i), ISLOWER (i))
4393         || toupper (i) != TOUPPER (i))
4394       return 2;
4395   return 0;
4396 }
4397 _ACEOF
4398 rm -f conftest$ac_exeext
4399 if { (ac_try="$ac_link"
4400 case "(($ac_try" in
4401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402   *) ac_try_echo=$ac_try;;
4403 esac
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405   (eval "$ac_link") 2>&5
4406   ac_status=$?
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4409   { (case "(($ac_try" in
4410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411   *) ac_try_echo=$ac_try;;
4412 esac
4413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414   (eval "$ac_try") 2>&5
4415   ac_status=$?
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); }; }; then
4418   :
4419 else
4420   echo "$as_me: program exited with status $ac_status" >&5
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 ( exit $ac_status )
4425 ac_cv_header_stdc=no
4426 fi
4427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4428 fi
4429
4430
4431 fi
4432 fi
4433 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4434 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4435 if test $ac_cv_header_stdc = yes; then
4436
4437 cat >>confdefs.h <<\_ACEOF
4438 #define STDC_HEADERS 1
4439 _ACEOF
4440
4441 fi
4442
4443 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4454                   inttypes.h stdint.h unistd.h
4455 do
4456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4460   echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462   cat >conftest.$ac_ext <<_ACEOF
4463 /* confdefs.h.  */
4464 _ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h.  */
4468 $ac_includes_default
4469
4470 #include <$ac_header>
4471 _ACEOF
4472 rm -f conftest.$ac_objext
4473 if { (ac_try="$ac_compile"
4474 case "(($ac_try" in
4475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476   *) ac_try_echo=$ac_try;;
4477 esac
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479   (eval "$ac_compile") 2>conftest.er1
4480   ac_status=$?
4481   grep -v '^ *+' conftest.er1 >conftest.err
4482   rm -f conftest.er1
4483   cat conftest.err >&5
4484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); } && {
4486          test -z "$ac_c_werror_flag" ||
4487          test ! -s conftest.err
4488        } && test -s conftest.$ac_objext; then
4489   eval "$as_ac_Header=yes"
4490 else
4491   echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4493
4494         eval "$as_ac_Header=no"
4495 fi
4496
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498 fi
4499 ac_res=`eval echo '${'$as_ac_Header'}'`
4500                { echo "$as_me:$LINENO: result: $ac_res" >&5
4501 echo "${ECHO_T}$ac_res" >&6; }
4502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4503   cat >>confdefs.h <<_ACEOF
4504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4505 _ACEOF
4506
4507 fi
4508
4509 done
4510
4511
4512 if test "${ac_cv_header_minix_config_h+set}" = set; then
4513   { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4514 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4515 if test "${ac_cv_header_minix_config_h+set}" = set; then
4516   echo $ECHO_N "(cached) $ECHO_C" >&6
4517 fi
4518 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4519 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4520 else
4521   # Is the header compilable?
4522 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4523 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4524 cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h.  */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h.  */
4530 $ac_includes_default
4531 #include <minix/config.h>
4532 _ACEOF
4533 rm -f conftest.$ac_objext
4534 if { (ac_try="$ac_compile"
4535 case "(($ac_try" in
4536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537   *) ac_try_echo=$ac_try;;
4538 esac
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540   (eval "$ac_compile") 2>conftest.er1
4541   ac_status=$?
4542   grep -v '^ *+' conftest.er1 >conftest.err
4543   rm -f conftest.er1
4544   cat conftest.err >&5
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); } && {
4547          test -z "$ac_c_werror_flag" ||
4548          test ! -s conftest.err
4549        } && test -s conftest.$ac_objext; then
4550   ac_header_compiler=yes
4551 else
4552   echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4554
4555         ac_header_compiler=no
4556 fi
4557
4558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4560 echo "${ECHO_T}$ac_header_compiler" >&6; }
4561
4562 # Is the header present?
4563 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4564 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4565 cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h.  */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h.  */
4571 #include <minix/config.h>
4572 _ACEOF
4573 if { (ac_try="$ac_cpp conftest.$ac_ext"
4574 case "(($ac_try" in
4575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576   *) ac_try_echo=$ac_try;;
4577 esac
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4580   ac_status=$?
4581   grep -v '^ *+' conftest.er1 >conftest.err
4582   rm -f conftest.er1
4583   cat conftest.err >&5
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); } >/dev/null && {
4586          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4587          test ! -s conftest.err
4588        }; then
4589   ac_header_preproc=yes
4590 else
4591   echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4593
4594   ac_header_preproc=no
4595 fi
4596
4597 rm -f conftest.err conftest.$ac_ext
4598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4599 echo "${ECHO_T}$ac_header_preproc" >&6; }
4600
4601 # So?  What about this header?
4602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4603   yes:no: )
4604     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4605 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4606     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4607 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4608     ac_header_preproc=yes
4609     ;;
4610   no:yes:* )
4611     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4612 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4613     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4614 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4615     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4616 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4617     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4618 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4619     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4620 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4621     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4622 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4623
4624     ;;
4625 esac
4626 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4627 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4628 if test "${ac_cv_header_minix_config_h+set}" = set; then
4629   echo $ECHO_N "(cached) $ECHO_C" >&6
4630 else
4631   ac_cv_header_minix_config_h=$ac_header_preproc
4632 fi
4633 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4634 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4635
4636 fi
4637 if test $ac_cv_header_minix_config_h = yes; then
4638   MINIX=yes
4639 else
4640   MINIX=
4641 fi
4642
4643
4644 if test "$MINIX" = yes; then
4645
4646 cat >>confdefs.h <<\_ACEOF
4647 #define _POSIX_SOURCE 1
4648 _ACEOF
4649
4650
4651 cat >>confdefs.h <<\_ACEOF
4652 #define _POSIX_1_SOURCE 2
4653 _ACEOF
4654
4655
4656 cat >>confdefs.h <<\_ACEOF
4657 #define _MINIX 1
4658 _ACEOF
4659
4660 fi
4661
4662
4663
4664 ac_ext=cpp
4665 ac_cpp='$CXXCPP $CPPFLAGS'
4666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4669 if test -z "$CXX"; then
4670   if test -n "$CCC"; then
4671     CXX=$CCC
4672   else
4673     if test -n "$ac_tool_prefix"; then
4674   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4675   do
4676     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4677 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4680 if test "${ac_cv_prog_CXX+set}" = set; then
4681   echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683   if test -n "$CXX"; then
4684   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689   IFS=$as_save_IFS
4690   test -z "$as_dir" && as_dir=.
4691   for ac_exec_ext in '' $ac_executable_extensions; do
4692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695     break 2
4696   fi
4697 done
4698 done
4699 IFS=$as_save_IFS
4700
4701 fi
4702 fi
4703 CXX=$ac_cv_prog_CXX
4704 if test -n "$CXX"; then
4705   { echo "$as_me:$LINENO: result: $CXX" >&5
4706 echo "${ECHO_T}$CXX" >&6; }
4707 else
4708   { echo "$as_me:$LINENO: result: no" >&5
4709 echo "${ECHO_T}no" >&6; }
4710 fi
4711
4712
4713     test -n "$CXX" && break
4714   done
4715 fi
4716 if test -z "$CXX"; then
4717   ac_ct_CXX=$CXX
4718   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4719 do
4720   # Extract the first word of "$ac_prog", so it can be a program name with args.
4721 set dummy $ac_prog; ac_word=$2
4722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4724 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4725   echo $ECHO_N "(cached) $ECHO_C" >&6
4726 else
4727   if test -n "$ac_ct_CXX"; then
4728   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4729 else
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4732 do
4733   IFS=$as_save_IFS
4734   test -z "$as_dir" && as_dir=.
4735   for ac_exec_ext in '' $ac_executable_extensions; do
4736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737     ac_cv_prog_ac_ct_CXX="$ac_prog"
4738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739     break 2
4740   fi
4741 done
4742 done
4743 IFS=$as_save_IFS
4744
4745 fi
4746 fi
4747 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4748 if test -n "$ac_ct_CXX"; then
4749   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4750 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4751 else
4752   { echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6; }
4754 fi
4755
4756
4757   test -n "$ac_ct_CXX" && break
4758 done
4759
4760   if test "x$ac_ct_CXX" = x; then
4761     CXX="g++"
4762   else
4763     case $cross_compiling:$ac_tool_warned in
4764 yes:)
4765 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4766 whose name does not start with the host triplet.  If you think this
4767 configuration is useful to you, please write to autoconf@gnu.org." >&5
4768 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4769 whose name does not start with the host triplet.  If you think this
4770 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4771 ac_tool_warned=yes ;;
4772 esac
4773     CXX=$ac_ct_CXX
4774   fi
4775 fi
4776
4777   fi
4778 fi
4779 # Provide some information about the compiler.
4780 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4781 ac_compiler=`set X $ac_compile; echo $2`
4782 { (ac_try="$ac_compiler --version >&5"
4783 case "(($ac_try" in
4784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785   *) ac_try_echo=$ac_try;;
4786 esac
4787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4788   (eval "$ac_compiler --version >&5") 2>&5
4789   ac_status=$?
4790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791   (exit $ac_status); }
4792 { (ac_try="$ac_compiler -v >&5"
4793 case "(($ac_try" in
4794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795   *) ac_try_echo=$ac_try;;
4796 esac
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798   (eval "$ac_compiler -v >&5") 2>&5
4799   ac_status=$?
4800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801   (exit $ac_status); }
4802 { (ac_try="$ac_compiler -V >&5"
4803 case "(($ac_try" in
4804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805   *) ac_try_echo=$ac_try;;
4806 esac
4807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808   (eval "$ac_compiler -V >&5") 2>&5
4809   ac_status=$?
4810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811   (exit $ac_status); }
4812
4813 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4814 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4815 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4816   echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818   cat >conftest.$ac_ext <<_ACEOF
4819 /* confdefs.h.  */
4820 _ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h.  */
4824
4825 int
4826 main ()
4827 {
4828 #ifndef __GNUC__
4829        choke me
4830 #endif
4831
4832   ;
4833   return 0;
4834 }
4835 _ACEOF
4836 rm -f conftest.$ac_objext
4837 if { (ac_try="$ac_compile"
4838 case "(($ac_try" in
4839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840   *) ac_try_echo=$ac_try;;
4841 esac
4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843   (eval "$ac_compile") 2>conftest.er1
4844   ac_status=$?
4845   grep -v '^ *+' conftest.er1 >conftest.err
4846   rm -f conftest.er1
4847   cat conftest.err >&5
4848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); } && {
4850          test -z "$ac_cxx_werror_flag" ||
4851          test ! -s conftest.err
4852        } && test -s conftest.$ac_objext; then
4853   ac_compiler_gnu=yes
4854 else
4855   echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4857
4858         ac_compiler_gnu=no
4859 fi
4860
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4863
4864 fi
4865 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4866 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4867 GXX=`test $ac_compiler_gnu = yes && echo yes`
4868 ac_test_CXXFLAGS=${CXXFLAGS+set}
4869 ac_save_CXXFLAGS=$CXXFLAGS
4870 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4871 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4872 if test "${ac_cv_prog_cxx_g+set}" = set; then
4873   echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4876    ac_cxx_werror_flag=yes
4877    ac_cv_prog_cxx_g=no
4878    CXXFLAGS="-g"
4879    cat >conftest.$ac_ext <<_ACEOF
4880 /* confdefs.h.  */
4881 _ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h.  */
4885
4886 int
4887 main ()
4888 {
4889
4890   ;
4891   return 0;
4892 }
4893 _ACEOF
4894 rm -f conftest.$ac_objext
4895 if { (ac_try="$ac_compile"
4896 case "(($ac_try" in
4897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4898   *) ac_try_echo=$ac_try;;
4899 esac
4900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4901   (eval "$ac_compile") 2>conftest.er1
4902   ac_status=$?
4903   grep -v '^ *+' conftest.er1 >conftest.err
4904   rm -f conftest.er1
4905   cat conftest.err >&5
4906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907   (exit $ac_status); } && {
4908          test -z "$ac_cxx_werror_flag" ||
4909          test ! -s conftest.err
4910        } && test -s conftest.$ac_objext; then
4911   ac_cv_prog_cxx_g=yes
4912 else
4913   echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4915
4916         CXXFLAGS=""
4917       cat >conftest.$ac_ext <<_ACEOF
4918 /* confdefs.h.  */
4919 _ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h.  */
4923
4924 int
4925 main ()
4926 {
4927
4928   ;
4929   return 0;
4930 }
4931 _ACEOF
4932 rm -f conftest.$ac_objext
4933 if { (ac_try="$ac_compile"
4934 case "(($ac_try" in
4935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936   *) ac_try_echo=$ac_try;;
4937 esac
4938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4939   (eval "$ac_compile") 2>conftest.er1
4940   ac_status=$?
4941   grep -v '^ *+' conftest.er1 >conftest.err
4942   rm -f conftest.er1
4943   cat conftest.err >&5
4944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945   (exit $ac_status); } && {
4946          test -z "$ac_cxx_werror_flag" ||
4947          test ! -s conftest.err
4948        } && test -s conftest.$ac_objext; then
4949   :
4950 else
4951   echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4953
4954         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4955          CXXFLAGS="-g"
4956          cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h.  */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h.  */
4962
4963 int
4964 main ()
4965 {
4966
4967   ;
4968   return 0;
4969 }
4970 _ACEOF
4971 rm -f conftest.$ac_objext
4972 if { (ac_try="$ac_compile"
4973 case "(($ac_try" in
4974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975   *) ac_try_echo=$ac_try;;
4976 esac
4977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978   (eval "$ac_compile") 2>conftest.er1
4979   ac_status=$?
4980   grep -v '^ *+' conftest.er1 >conftest.err
4981   rm -f conftest.er1
4982   cat conftest.err >&5
4983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984   (exit $ac_status); } && {
4985          test -z "$ac_cxx_werror_flag" ||
4986          test ! -s conftest.err
4987        } && test -s conftest.$ac_objext; then
4988   ac_cv_prog_cxx_g=yes
4989 else
4990   echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4992
4993
4994 fi
4995
4996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 fi
4998
4999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000 fi
5001
5002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5004 fi
5005 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5006 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5007 if test "$ac_test_CXXFLAGS" = set; then
5008   CXXFLAGS=$ac_save_CXXFLAGS
5009 elif test $ac_cv_prog_cxx_g = yes; then
5010   if test "$GXX" = yes; then
5011     CXXFLAGS="-g -O2"
5012   else
5013     CXXFLAGS="-g"
5014   fi
5015 else
5016   if test "$GXX" = yes; then
5017     CXXFLAGS="-O2"
5018   else
5019     CXXFLAGS=
5020   fi
5021 fi
5022 ac_ext=c
5023 ac_cpp='$CPP $CPPFLAGS'
5024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5027
5028 depcc="$CXX"  am_compiler_list=
5029
5030 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5031 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5032 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5033   echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5036   # We make a subdir and do the tests there.  Otherwise we can end up
5037   # making bogus files that we don't know about and never remove.  For
5038   # instance it was reported that on HP-UX the gcc test will end up
5039   # making a dummy file named `D' -- because `-MD' means `put the output
5040   # in D'.
5041   mkdir conftest.dir
5042   # Copy depcomp to subdir because otherwise we won't find it if we're
5043   # using a relative directory.
5044   cp "$am_depcomp" conftest.dir
5045   cd conftest.dir
5046   # We will build objects and dependencies in a subdirectory because
5047   # it helps to detect inapplicable dependency modes.  For instance
5048   # both Tru64's cc and ICC support -MD to output dependencies as a
5049   # side effect of compilation, but ICC will put the dependencies in
5050   # the current directory while Tru64 will put them in the object
5051   # directory.
5052   mkdir sub
5053
5054   am_cv_CXX_dependencies_compiler_type=none
5055   if test "$am_compiler_list" = ""; then
5056      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5057   fi
5058   for depmode in $am_compiler_list; do
5059     # Setup a source with many dependencies, because some compilers
5060     # like to wrap large dependency lists on column 80 (with \), and
5061     # we should not choose a depcomp mode which is confused by this.
5062     #
5063     # We need to recreate these files for each test, as the compiler may
5064     # overwrite some of them when testing with obscure command lines.
5065     # This happens at least with the AIX C compiler.
5066     : > sub/conftest.c
5067     for i in 1 2 3 4 5 6; do
5068       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5069       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5070       # Solaris 8's {/usr,}/bin/sh.
5071       touch sub/conftst$i.h
5072     done
5073     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5074
5075     case $depmode in
5076     nosideeffect)
5077       # after this tag, mechanisms are not by side-effect, so they'll
5078       # only be used when explicitly requested
5079       if test "x$enable_dependency_tracking" = xyes; then
5080         continue
5081       else
5082         break
5083       fi
5084       ;;
5085     none) break ;;
5086     esac
5087     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5088     # mode.  It turns out that the SunPro C++ compiler does not properly
5089     # handle `-M -o', and we need to detect this.
5090     if depmode=$depmode \
5091        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5092        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5093        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5094          >/dev/null 2>conftest.err &&
5095        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5096        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5097        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5098       # icc doesn't choke on unknown options, it will just issue warnings
5099       # or remarks (even with -Werror).  So we grep stderr for any message
5100       # that says an option was ignored or not supported.
5101       # When given -MP, icc 7.0 and 7.1 complain thusly:
5102       #   icc: Command line warning: ignoring option '-M'; no argument required
5103       # The diagnosis changed in icc 8.0:
5104       #   icc: Command line remark: option '-MP' not supported
5105       if (grep 'ignoring option' conftest.err ||
5106           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5107         am_cv_CXX_dependencies_compiler_type=$depmode
5108         break
5109       fi
5110     fi
5111   done
5112
5113   cd ..
5114   rm -rf conftest.dir
5115 else
5116   am_cv_CXX_dependencies_compiler_type=none
5117 fi
5118
5119 fi
5120 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5121 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5122 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5123
5124
5125
5126 if
5127   test "x$enable_dependency_tracking" != xno \
5128   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5129   am__fastdepCXX_TRUE=
5130   am__fastdepCXX_FALSE='#'
5131 else
5132   am__fastdepCXX_TRUE='#'
5133   am__fastdepCXX_FALSE=
5134 fi
5135
5136
5137 ac_ext=cpp
5138 ac_cpp='$CXXCPP $CPPFLAGS'
5139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5142 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5143 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5144 if test -z "$CXXCPP"; then
5145   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5146   echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148       # Double quotes because CXXCPP needs to be expanded
5149     for CXXCPP in "$CXX -E" "/lib/cpp"
5150     do
5151       ac_preproc_ok=false
5152 for ac_cxx_preproc_warn_flag in '' yes
5153 do
5154   # Use a header file that comes with gcc, so configuring glibc
5155   # with a fresh cross-compiler works.
5156   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5157   # <limits.h> exists even on freestanding compilers.
5158   # On the NeXT, cc -E runs the code through the compiler's parser,
5159   # not just through cpp. "Syntax error" is here to catch this case.
5160   cat >conftest.$ac_ext <<_ACEOF
5161 /* confdefs.h.  */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h.  */
5166 #ifdef __STDC__
5167 # include <limits.h>
5168 #else
5169 # include <assert.h>
5170 #endif
5171                      Syntax error
5172 _ACEOF
5173 if { (ac_try="$ac_cpp conftest.$ac_ext"
5174 case "(($ac_try" in
5175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176   *) ac_try_echo=$ac_try;;
5177 esac
5178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5179   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5180   ac_status=$?
5181   grep -v '^ *+' conftest.er1 >conftest.err
5182   rm -f conftest.er1
5183   cat conftest.err >&5
5184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185   (exit $ac_status); } >/dev/null && {
5186          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5187          test ! -s conftest.err
5188        }; then
5189   :
5190 else
5191   echo "$as_me: failed program was:" >&5
5192 sed 's/^/| /' conftest.$ac_ext >&5
5193
5194   # Broken: fails on valid input.
5195 continue
5196 fi
5197
5198 rm -f conftest.err conftest.$ac_ext
5199
5200   # OK, works on sane cases.  Now check whether nonexistent headers
5201   # can be detected and how.
5202   cat >conftest.$ac_ext <<_ACEOF
5203 /* confdefs.h.  */
5204 _ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h.  */
5208 #include <ac_nonexistent.h>
5209 _ACEOF
5210 if { (ac_try="$ac_cpp conftest.$ac_ext"
5211 case "(($ac_try" in
5212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213   *) ac_try_echo=$ac_try;;
5214 esac
5215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5216   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5217   ac_status=$?
5218   grep -v '^ *+' conftest.er1 >conftest.err
5219   rm -f conftest.er1
5220   cat conftest.err >&5
5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); } >/dev/null && {
5223          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5224          test ! -s conftest.err
5225        }; then
5226   # Broken: success on invalid input.
5227 continue
5228 else
5229   echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5231
5232   # Passes both tests.
5233 ac_preproc_ok=:
5234 break
5235 fi
5236
5237 rm -f conftest.err conftest.$ac_ext
5238
5239 done
5240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5241 rm -f conftest.err conftest.$ac_ext
5242 if $ac_preproc_ok; then
5243   break
5244 fi
5245
5246     done
5247     ac_cv_prog_CXXCPP=$CXXCPP
5248
5249 fi
5250   CXXCPP=$ac_cv_prog_CXXCPP
5251 else
5252   ac_cv_prog_CXXCPP=$CXXCPP
5253 fi
5254 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5255 echo "${ECHO_T}$CXXCPP" >&6; }
5256 ac_preproc_ok=false
5257 for ac_cxx_preproc_warn_flag in '' yes
5258 do
5259   # Use a header file that comes with gcc, so configuring glibc
5260   # with a fresh cross-compiler works.
5261   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5262   # <limits.h> exists even on freestanding compilers.
5263   # On the NeXT, cc -E runs the code through the compiler's parser,
5264   # not just through cpp. "Syntax error" is here to catch this case.
5265   cat >conftest.$ac_ext <<_ACEOF
5266 /* confdefs.h.  */
5267 _ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h.  */
5271 #ifdef __STDC__
5272 # include <limits.h>
5273 #else
5274 # include <assert.h>
5275 #endif
5276                      Syntax error
5277 _ACEOF
5278 if { (ac_try="$ac_cpp conftest.$ac_ext"
5279 case "(($ac_try" in
5280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5281   *) ac_try_echo=$ac_try;;
5282 esac
5283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5284   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5285   ac_status=$?
5286   grep -v '^ *+' conftest.er1 >conftest.err
5287   rm -f conftest.er1
5288   cat conftest.err >&5
5289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290   (exit $ac_status); } >/dev/null && {
5291          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5292          test ! -s conftest.err
5293        }; then
5294   :
5295 else
5296   echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5298
5299   # Broken: fails on valid input.
5300 continue
5301 fi
5302
5303 rm -f conftest.err conftest.$ac_ext
5304
5305   # OK, works on sane cases.  Now check whether nonexistent headers
5306   # can be detected and how.
5307   cat >conftest.$ac_ext <<_ACEOF
5308 /* confdefs.h.  */
5309 _ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h.  */
5313 #include <ac_nonexistent.h>
5314 _ACEOF
5315 if { (ac_try="$ac_cpp conftest.$ac_ext"
5316 case "(($ac_try" in
5317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318   *) ac_try_echo=$ac_try;;
5319 esac
5320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5321   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5322   ac_status=$?
5323   grep -v '^ *+' conftest.er1 >conftest.err
5324   rm -f conftest.er1
5325   cat conftest.err >&5
5326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327   (exit $ac_status); } >/dev/null && {
5328          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5329          test ! -s conftest.err
5330        }; then
5331   # Broken: success on invalid input.
5332 continue
5333 else
5334   echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5336
5337   # Passes both tests.
5338 ac_preproc_ok=:
5339 break
5340 fi
5341
5342 rm -f conftest.err conftest.$ac_ext
5343
5344 done
5345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5346 rm -f conftest.err conftest.$ac_ext
5347 if $ac_preproc_ok; then
5348   :
5349 else
5350   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5351 See \`config.log' for more details." >&5
5352 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5353 See \`config.log' for more details." >&2;}
5354    { (exit 1); exit 1; }; }
5355 fi
5356
5357 ac_ext=c
5358 ac_cpp='$CPP $CPPFLAGS'
5359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5362
5363
5364
5365
5366
5367
5368
5369   ac_ext=cpp
5370 ac_cpp='$CXXCPP $CPPFLAGS'
5371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5374
5375
5376     { echo "$as_me:$LINENO: checking whether C++ has bool" >&5
5377 echo $ECHO_N "checking whether C++ has bool... $ECHO_C" >&6; }
5378   if test "$cross_compiling" = yes; then
5379    { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5
5380 echo "$as_me: WARNING: Don't cross-compile" >&2;}
5381
5382 else
5383   cat >conftest.$ac_ext <<_ACEOF
5384 /* confdefs.h.  */
5385 _ACEOF
5386 cat confdefs.h >>conftest.$ac_ext
5387 cat >>conftest.$ac_ext <<_ACEOF
5388 /* end confdefs.h.  */
5389 main() { bool b1=true; bool b2=false; }
5390 _ACEOF
5391 rm -f conftest$ac_exeext
5392 if { (ac_try="$ac_link"
5393 case "(($ac_try" in
5394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395   *) ac_try_echo=$ac_try;;
5396 esac
5397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398   (eval "$ac_link") 2>&5
5399   ac_status=$?
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5402   { (case "(($ac_try" in
5403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404   *) ac_try_echo=$ac_try;;
5405 esac
5406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407   (eval "$ac_try") 2>&5
5408   ac_status=$?
5409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410   (exit $ac_status); }; }; then
5411    { echo "$as_me:$LINENO: result: yes" >&5
5412 echo "${ECHO_T}yes" >&6; }
5413 else
5414   echo "$as_me: program exited with status $ac_status" >&5
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5417
5418 ( exit $ac_status )
5419  { echo "$as_me:$LINENO: result: no" >&5
5420 echo "${ECHO_T}no" >&6; }
5421
5422 cat >>confdefs.h <<\_ACEOF
5423 #define CXX_HAS_NO_BOOL
5424 _ACEOF
5425
5426 fi
5427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5428 fi
5429
5430
5431
5432     { echo "$as_me:$LINENO: checking whether C++ has buggy scoping in for-loops" >&5
5433 echo $ECHO_N "checking whether C++ has buggy scoping in for-loops... $ECHO_C" >&6; }
5434   cat >conftest.$ac_ext <<_ACEOF
5435 /* confdefs.h.  */
5436 _ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h.  */
5440 #include <iostream.h>
5441 int
5442 main ()
5443 {
5444
5445    for (int i=0;i<10;i++) { }
5446    for (int i=0;i<10;i++) { }
5447
5448   ;
5449   return 0;
5450 }
5451 _ACEOF
5452 rm -f conftest.$ac_objext
5453 if { (ac_try="$ac_compile"
5454 case "(($ac_try" in
5455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456   *) ac_try_echo=$ac_try;;
5457 esac
5458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5459   (eval "$ac_compile") 2>conftest.er1
5460   ac_status=$?
5461   grep -v '^ *+' conftest.er1 >conftest.err
5462   rm -f conftest.er1
5463   cat conftest.err >&5
5464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465   (exit $ac_status); } && {
5466          test -z "$ac_cxx_werror_flag" ||
5467          test ! -s conftest.err
5468        } && test -s conftest.$ac_objext; then
5469    { echo "$as_me:$LINENO: result: no" >&5
5470 echo "${ECHO_T}no" >&6; }
5471 else
5472   echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5474
5475          { echo "$as_me:$LINENO: result: yes" >&5
5476 echo "${ECHO_T}yes" >&6; }
5477
5478 cat >>confdefs.h <<\_ACEOF
5479 #define CXX_HAS_BUGGY_FOR_LOOPS
5480 _ACEOF
5481
5482 fi
5483
5484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485
5486     { echo "$as_me:$LINENO: checking whether user wants assertions" >&5
5487 echo $ECHO_N "checking whether user wants assertions... $ECHO_C" >&6; }
5488   # Check whether --enable-assert was given.
5489 if test "${enable_assert+set}" = set; then
5490   enableval=$enable_assert;
5491 cat >>confdefs.h <<\_ACEOF
5492 #define NDEBUG
5493 _ACEOF
5494
5495                   { echo "$as_me:$LINENO: result: no" >&5
5496 echo "${ECHO_T}no" >&6; }
5497 else
5498    { echo "$as_me:$LINENO: result: yes" >&5
5499 echo "${ECHO_T}yes" >&6; }
5500 fi
5501
5502
5503     { echo "$as_me:$LINENO: checking whether C++ has std::isnan" >&5
5504 echo $ECHO_N "checking whether C++ has std::isnan... $ECHO_C" >&6; }
5505   cat >conftest.$ac_ext <<_ACEOF
5506 /* confdefs.h.  */
5507 _ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h.  */
5511 #include <cmath>
5512 int
5513 main ()
5514 {
5515
5516    std::isnan(0);
5517
5518   ;
5519   return 0;
5520 }
5521 _ACEOF
5522 rm -f conftest.$ac_objext
5523 if { (ac_try="$ac_compile"
5524 case "(($ac_try" in
5525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526   *) ac_try_echo=$ac_try;;
5527 esac
5528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5529   (eval "$ac_compile") 2>conftest.er1
5530   ac_status=$?
5531   grep -v '^ *+' conftest.er1 >conftest.err
5532   rm -f conftest.er1
5533   cat conftest.err >&5
5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535   (exit $ac_status); } && {
5536          test -z "$ac_cxx_werror_flag" ||
5537          test ! -s conftest.err
5538        } && test -s conftest.$ac_objext; then
5539    { echo "$as_me:$LINENO: result: yes" >&5
5540 echo "${ECHO_T}yes" >&6; }
5541
5542 cat >>confdefs.h <<\_ACEOF
5543 #define CXX_HAS_STD_ISNAN
5544 _ACEOF
5545
5546 else
5547   echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5549
5550          { echo "$as_me:$LINENO: result: no" >&5
5551 echo "${ECHO_T}no" >&6; }
5552 fi
5553
5554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555
5556       ac_ext=c
5557 ac_cpp='$CPP $CPPFLAGS'
5558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5561
5562
5563
5564
5565     { echo "$as_me:$LINENO: checking whether user wants warnings" >&5
5566 echo $ECHO_N "checking whether user wants warnings... $ECHO_C" >&6; }
5567
5568 # Check whether --with-warnings was given.
5569 if test "${with_warnings+set}" = set; then
5570   withval=$with_warnings;  lf_warnings=yes
5571 else
5572    lf_warnings=no
5573 fi
5574
5575   lf_warnings=yes # hard code for now -eb
5576   { echo "$as_me:$LINENO: result: $lf_warnings" >&5
5577 echo "${ECHO_T}$lf_warnings" >&6; }
5578
5579     cc_warning_flags="-Wall"
5580   cxx_warning_flags="-Wall -Woverloaded-virtual"
5581   if test $lf_warnings = yes
5582   then
5583     if test -n "${CC}"
5584     then
5585
5586   echo 'void f(){}' > conftest.c
5587   for i in $cc_warning_flags
5588   do
5589     { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
5590 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
5591     if test -z "`${CC} $i -c conftest.c 2>&1`"
5592     then
5593       CFLAGS="${CFLAGS} $i"
5594       { echo "$as_me:$LINENO: result: yes" >&5
5595 echo "${ECHO_T}yes" >&6; }
5596     else
5597       { echo "$as_me:$LINENO: result: no" >&5
5598 echo "${ECHO_T}no" >&6; }
5599     fi
5600   done
5601   rm -f conftest.c conftest.o
5602
5603     fi
5604     if test -n "${CXX}"
5605     then
5606
5607   echo 'void f(){}' > conftest.cc
5608   for i in $cxx_warning_flags
5609   do
5610     { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
5611 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
5612     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
5613     then
5614       CXXFLAGS="${CXXFLAGS} $i"
5615       { echo "$as_me:$LINENO: result: yes" >&5
5616 echo "${ECHO_T}yes" >&6; }
5617     else
5618       { echo "$as_me:$LINENO: result: no" >&5
5619 echo "${ECHO_T}no" >&6; }
5620     fi
5621   done
5622   rm -f conftest.cc conftest.o
5623
5624     fi
5625   fi
5626
5627
5628     { echo "$as_me:$LINENO: checking whether user wants gprof" >&5
5629 echo $ECHO_N "checking whether user wants gprof... $ECHO_C" >&6; }
5630
5631 # Check whether --with-gprof was given.
5632 if test "${with_gprof+set}" = set; then
5633   withval=$with_gprof;
5634 else
5635    with_gprof=no
5636 fi
5637
5638   { echo "$as_me:$LINENO: result: $with_gprof" >&5
5639 echo "${ECHO_T}$with_gprof" >&6; }
5640
5641     cc_profiling_flags="-pg"
5642   cxx_profiling_flags="-pg"
5643   ld_profiling_flags="-pg"
5644   if test $with_gprof = yes
5645   then
5646     if test -n "${CC}"
5647     then
5648
5649   echo 'void f(){}' > conftest.c
5650   for i in $cc_profiling_flags
5651   do
5652     { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
5653 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
5654     if test -z "`${CC} $i -c conftest.c 2>&1`"
5655     then
5656       CFLAGS="${CFLAGS} $i"
5657       { echo "$as_me:$LINENO: result: yes" >&5
5658 echo "${ECHO_T}yes" >&6; }
5659     else
5660       { echo "$as_me:$LINENO: result: no" >&5
5661 echo "${ECHO_T}no" >&6; }
5662     fi
5663   done
5664   rm -f conftest.c conftest.o
5665
5666     fi
5667     if test -n "${CXX}"
5668     then
5669
5670   echo 'void f(){}' > conftest.cc
5671   for i in $cxx_profiling_flags
5672   do
5673     { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
5674 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
5675     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
5676     then
5677       CXXFLAGS="${CXXFLAGS} $i"
5678       { echo "$as_me:$LINENO: result: yes" >&5
5679 echo "${ECHO_T}yes" >&6; }
5680     else
5681       { echo "$as_me:$LINENO: result: no" >&5
5682 echo "${ECHO_T}no" >&6; }
5683     fi
5684   done
5685   rm -f conftest.cc conftest.o
5686
5687     fi
5688   fi
5689
5690
5691     { echo "$as_me:$LINENO: checking whether user wants prof" >&5
5692 echo $ECHO_N "checking whether user wants prof... $ECHO_C" >&6; }
5693
5694 # Check whether --with-prof was given.
5695 if test "${with_prof+set}" = set; then
5696   withval=$with_prof;
5697 else
5698    with_prof=no
5699 fi
5700
5701   { echo "$as_me:$LINENO: result: $with_prof" >&5
5702 echo "${ECHO_T}$with_prof" >&6; }
5703
5704     cc_profiling_flags="-p"
5705   cxx_profiling_flags="-p"
5706   ld_profiling_flags="-p"
5707   if test $with_prof = yes
5708   then
5709     if test -n "${CC}"
5710     then
5711
5712   echo 'void f(){}' > conftest.c
5713   for i in $cc_profiling_flags
5714   do
5715     { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
5716 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
5717     if test -z "`${CC} $i -c conftest.c 2>&1`"
5718     then
5719       CFLAGS="${CFLAGS} $i"
5720       { echo "$as_me:$LINENO: result: yes" >&5
5721 echo "${ECHO_T}yes" >&6; }
5722     else
5723       { echo "$as_me:$LINENO: result: no" >&5
5724 echo "${ECHO_T}no" >&6; }
5725     fi
5726   done
5727   rm -f conftest.c conftest.o
5728
5729     fi
5730     if test -n "${CXX}"
5731     then
5732
5733   echo 'void f(){}' > conftest.cc
5734   for i in $cxx_profiling_flags
5735   do
5736     { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
5737 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
5738     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
5739     then
5740       CXXFLAGS="${CXXFLAGS} $i"
5741       { echo "$as_me:$LINENO: result: yes" >&5
5742 echo "${ECHO_T}yes" >&6; }
5743     else
5744       { echo "$as_me:$LINENO: result: no" >&5
5745 echo "${ECHO_T}no" >&6; }
5746     fi
5747   done
5748   rm -f conftest.cc conftest.o
5749
5750     fi
5751   fi
5752
5753 # By default we simply use the C compiler to build assembly code.
5754
5755 test "${CCAS+set}" = set || CCAS=$CC
5756 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5757
5758
5759
5760 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5761 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5762 LN_S=$as_ln_s
5763 if test "$LN_S" = "ln -s"; then
5764   { echo "$as_me:$LINENO: result: yes" >&5
5765 echo "${ECHO_T}yes" >&6; }
5766 else
5767   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5768 echo "${ECHO_T}no, using $LN_S" >&6; }
5769 fi
5770
5771 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5772 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5773 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5774 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5775   echo $ECHO_N "(cached) $ECHO_C" >&6
5776 else
5777   cat >conftest.make <<\_ACEOF
5778 SHELL = /bin/sh
5779 all:
5780         @echo '@@@%%%=$(MAKE)=@@@%%%'
5781 _ACEOF
5782 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5783 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5784   *@@@%%%=?*=@@@%%%*)
5785     eval ac_cv_prog_make_${ac_make}_set=yes;;
5786   *)
5787     eval ac_cv_prog_make_${ac_make}_set=no;;
5788 esac
5789 rm -f conftest.make
5790 fi
5791 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5792   { echo "$as_me:$LINENO: result: yes" >&5
5793 echo "${ECHO_T}yes" >&6; }
5794   SET_MAKE=
5795 else
5796   { echo "$as_me:$LINENO: result: no" >&5
5797 echo "${ECHO_T}no" >&6; }
5798   SET_MAKE="MAKE=${MAKE-make}"
5799 fi
5800
5801 # Find a good install program.  We prefer a C program (faster),
5802 # so one script is as good as another.  But avoid the broken or
5803 # incompatible versions:
5804 # SysV /etc/install, /usr/sbin/install
5805 # SunOS /usr/etc/install
5806 # IRIX /sbin/install
5807 # AIX /bin/install
5808 # AmigaOS /C/install, which installs bootblocks on floppy discs
5809 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5810 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5811 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5812 # OS/2's system install, which has a completely different semantic
5813 # ./install, which can be erroneously created by make from ./install.sh.
5814 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5815 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5816 if test -z "$INSTALL"; then
5817 if test "${ac_cv_path_install+set}" = set; then
5818   echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH
5822 do
5823   IFS=$as_save_IFS
5824   test -z "$as_dir" && as_dir=.
5825   # Account for people who put trailing slashes in PATH elements.
5826 case $as_dir/ in
5827   ./ | .// | /cC/* | \
5828   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5829   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5830   /usr/ucb/* ) ;;
5831   *)
5832     # OSF1 and SCO ODT 3.0 have their own names for install.
5833     # Don't use installbsd from OSF since it installs stuff as root
5834     # by default.
5835     for ac_prog in ginstall scoinst install; do
5836       for ac_exec_ext in '' $ac_executable_extensions; do
5837         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5838           if test $ac_prog = install &&
5839             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5840             # AIX install.  It has an incompatible calling convention.
5841             :
5842           elif test $ac_prog = install &&
5843             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5844             # program-specific install script used by HP pwplus--don't use.
5845             :
5846           else
5847             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5848             break 3
5849           fi
5850         fi
5851       done
5852     done
5853     ;;
5854 esac
5855 done
5856 IFS=$as_save_IFS
5857
5858
5859 fi
5860   if test "${ac_cv_path_install+set}" = set; then
5861     INSTALL=$ac_cv_path_install
5862   else
5863     # As a last resort, use the slow shell script.  Don't cache a
5864     # value for INSTALL within a source directory, because that will
5865     # break other packages using the cache if that directory is
5866     # removed, or if the value is a relative name.
5867     INSTALL=$ac_install_sh
5868   fi
5869 fi
5870 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5871 echo "${ECHO_T}$INSTALL" >&6; }
5872
5873 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5874 # It thinks the first close brace ends the variable substitution.
5875 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5876
5877 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5878
5879 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5880
5881 # Extract the first word of "rm", so it can be a program name with args.
5882 set dummy rm; ac_word=$2
5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885 if test "${ac_cv_path_RM_PROG+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888   case $RM_PROG in
5889   [\\/]* | ?:[\\/]*)
5890   ac_cv_path_RM_PROG="$RM_PROG" # Let the user override the test with a path.
5891   ;;
5892   *)
5893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5895 do
5896   IFS=$as_save_IFS
5897   test -z "$as_dir" && as_dir=.
5898   for ac_exec_ext in '' $ac_executable_extensions; do
5899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5900     ac_cv_path_RM_PROG="$as_dir/$ac_word$ac_exec_ext"
5901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902     break 2
5903   fi
5904 done
5905 done
5906 IFS=$as_save_IFS
5907
5908   ;;
5909 esac
5910 fi
5911 RM_PROG=$ac_cv_path_RM_PROG
5912 if test -n "$RM_PROG"; then
5913   { echo "$as_me:$LINENO: result: $RM_PROG" >&5
5914 echo "${ECHO_T}$RM_PROG" >&6; }
5915 else
5916   { echo "$as_me:$LINENO: result: no" >&5
5917 echo "${ECHO_T}no" >&6; }
5918 fi
5919
5920
5921
5922
5923
5924 # Check whether --enable-shared was given.
5925 if test "${enable_shared+set}" = set; then
5926   enableval=$enable_shared; p=${PACKAGE-default}
5927     case $enableval in
5928     yes) enable_shared=yes ;;
5929     no) enable_shared=no ;;
5930     *)
5931       enable_shared=no
5932       # Look at the argument we got.  We use all the common list separators.
5933       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5934       for pkg in $enableval; do
5935         IFS="$lt_save_ifs"
5936         if test "X$pkg" = "X$p"; then
5937           enable_shared=yes
5938         fi
5939       done
5940       IFS="$lt_save_ifs"
5941       ;;
5942     esac
5943 else
5944   enable_shared=yes
5945 fi
5946
5947         # Check whether --enable-static was given.
5948 if test "${enable_static+set}" = set; then
5949   enableval=$enable_static; p=${PACKAGE-default}
5950     case $enableval in
5951     yes) enable_static=yes ;;
5952     no) enable_static=no ;;
5953     *)
5954      enable_static=no
5955       # Look at the argument we got.  We use all the common list separators.
5956       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5957       for pkg in $enableval; do
5958         IFS="$lt_save_ifs"
5959         if test "X$pkg" = "X$p"; then
5960           enable_static=yes
5961         fi
5962       done
5963       IFS="$lt_save_ifs"
5964       ;;
5965     esac
5966 else
5967   enable_static=no
5968 fi
5969
5970
5971         # Check whether --enable-fast-install was given.
5972 if test "${enable_fast_install+set}" = set; then
5973   enableval=$enable_fast_install; p=${PACKAGE-default}
5974     case $enableval in
5975     yes) enable_fast_install=yes ;;
5976     no) enable_fast_install=no ;;
5977     *)
5978       enable_fast_install=no
5979       # Look at the argument we got.  We use all the common list separators.
5980       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5981       for pkg in $enableval; do
5982         IFS="$lt_save_ifs"
5983         if test "X$pkg" = "X$p"; then
5984           enable_fast_install=yes
5985         fi
5986       done
5987       IFS="$lt_save_ifs"
5988       ;;
5989     esac
5990 else
5991   enable_fast_install=yes
5992 fi
5993
5994
5995 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5996 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5997 if test "${lt_cv_path_SED+set}" = set; then
5998   echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000   # Loop through the user's path and test for sed and gsed.
6001 # Then use that list of sed's as ones to test for truncation.
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH
6004 do
6005   IFS=$as_save_IFS
6006   test -z "$as_dir" && as_dir=.
6007   for lt_ac_prog in sed gsed; do
6008     for ac_exec_ext in '' $ac_executable_extensions; do
6009       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6010         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6011       fi
6012     done
6013   done
6014 done
6015 lt_ac_max=0
6016 lt_ac_count=0
6017 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6018 # along with /bin/sed that truncates output.
6019 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6020   test ! -f $lt_ac_sed && continue
6021   cat /dev/null > conftest.in
6022   lt_ac_count=0
6023   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6024   # Check for GNU sed and select it if it is found.
6025   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6026     lt_cv_path_SED=$lt_ac_sed
6027     break
6028   fi
6029   while true; do
6030     cat conftest.in conftest.in >conftest.tmp
6031     mv conftest.tmp conftest.in
6032     cp conftest.in conftest.nl
6033     echo >>conftest.nl
6034     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6035     cmp -s conftest.out conftest.nl || break
6036     # 10000 chars as input seems more than enough
6037     test $lt_ac_count -gt 10 && break
6038     lt_ac_count=`expr $lt_ac_count + 1`
6039     if test $lt_ac_count -gt $lt_ac_max; then
6040       lt_ac_max=$lt_ac_count
6041       lt_cv_path_SED=$lt_ac_sed
6042     fi
6043   done
6044 done
6045
6046 fi
6047
6048 SED=$lt_cv_path_SED
6049 { echo "$as_me:$LINENO: result: $SED" >&5
6050 echo "${ECHO_T}$SED" >&6; }
6051
6052
6053 # Check whether --with-gnu-ld was given.
6054 if test "${with_gnu_ld+set}" = set; then
6055   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6056 else
6057   with_gnu_ld=no
6058 fi
6059
6060 ac_prog=ld
6061 if test "$GCC" = yes; then
6062   # Check if gcc -print-prog-name=ld gives a path.
6063   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6064 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6065   case $host in
6066   *-*-mingw*)
6067     # gcc leaves a trailing carriage return which upsets mingw
6068     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6069   *)
6070     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6071   esac
6072   case $ac_prog in
6073     # Accept absolute paths.
6074     [\\/]* | ?:[\\/]*)
6075       re_direlt='/[^/][^/]*/\.\./'
6076       # Canonicalize the pathname of ld
6077       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6078       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6079         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6080       done
6081       test -z "$LD" && LD="$ac_prog"
6082       ;;
6083   "")
6084     # If it fails, then pretend we aren't using GCC.
6085     ac_prog=ld
6086     ;;
6087   *)
6088     # If it is relative, then search for the first ld in PATH.
6089     with_gnu_ld=unknown
6090     ;;
6091   esac
6092 elif test "$with_gnu_ld" = yes; then
6093   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6094 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6095 else
6096   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6097 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6098 fi
6099 if test "${lt_cv_path_LD+set}" = set; then
6100   echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102   if test -z "$LD"; then
6103   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6104   for ac_dir in $PATH; do
6105     IFS="$lt_save_ifs"
6106     test -z "$ac_dir" && ac_dir=.
6107     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6108       lt_cv_path_LD="$ac_dir/$ac_prog"
6109       # Check to see if the program is GNU ld.  I'd rather use --version,
6110       # but apparently some variants of GNU ld only accept -v.
6111       # Break only if it was the GNU/non-GNU ld that we prefer.
6112       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6113       *GNU* | *'with BFD'*)
6114         test "$with_gnu_ld" != no && break
6115         ;;
6116       *)
6117         test "$with_gnu_ld" != yes && break
6118         ;;
6119       esac
6120     fi
6121   done
6122   IFS="$lt_save_ifs"
6123 else
6124   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6125 fi
6126 fi
6127
6128 LD="$lt_cv_path_LD"
6129 if test -n "$LD"; then
6130   { echo "$as_me:$LINENO: result: $LD" >&5
6131 echo "${ECHO_T}$LD" >&6; }
6132 else
6133   { echo "$as_me:$LINENO: result: no" >&5
6134 echo "${ECHO_T}no" >&6; }
6135 fi
6136 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6137 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6138    { (exit 1); exit 1; }; }
6139 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6140 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6141 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6142   echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6145 case `$LD -v 2>&1 </dev/null` in
6146 *GNU* | *'with BFD'*)
6147   lt_cv_prog_gnu_ld=yes
6148   ;;
6149 *)
6150   lt_cv_prog_gnu_ld=no
6151   ;;
6152 esac
6153 fi
6154 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6155 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6156 with_gnu_ld=$lt_cv_prog_gnu_ld
6157
6158
6159 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6160 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6161 if test "${lt_cv_ld_reload_flag+set}" = set; then
6162   echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164   lt_cv_ld_reload_flag='-r'
6165 fi
6166 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6167 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6168 reload_flag=$lt_cv_ld_reload_flag
6169 case $reload_flag in
6170 "" | " "*) ;;
6171 *) reload_flag=" $reload_flag" ;;
6172 esac
6173 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6174 case $host_os in
6175   darwin*)
6176     if test "$GCC" = yes; then
6177       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6178     else
6179       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6180     fi
6181     ;;
6182 esac
6183
6184 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6185 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6186 if test "${lt_cv_path_NM+set}" = set; then
6187   echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189   if test -n "$NM"; then
6190   # Let the user override the test.
6191   lt_cv_path_NM="$NM"
6192 else
6193   lt_nm_to_check="${ac_tool_prefix}nm"
6194   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6195     lt_nm_to_check="$lt_nm_to_check nm"
6196   fi
6197   for lt_tmp_nm in $lt_nm_to_check; do
6198     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6199     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6200       IFS="$lt_save_ifs"
6201       test -z "$ac_dir" && ac_dir=.
6202       tmp_nm="$ac_dir/$lt_tmp_nm"
6203       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6204         # Check to see if the nm accepts a BSD-compat flag.
6205         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6206         #   nm: unknown option "B" ignored
6207         # Tru64's nm complains that /dev/null is an invalid object file
6208         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6209         */dev/null* | *'Invalid file or object type'*)
6210           lt_cv_path_NM="$tmp_nm -B"
6211           break
6212           ;;
6213         *)
6214           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6215           */dev/null*)
6216             lt_cv_path_NM="$tmp_nm -p"
6217             break
6218             ;;
6219           *)
6220             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6221             continue # so that we can try to find one that supports BSD flags
6222             ;;
6223           esac
6224           ;;
6225         esac
6226       fi
6227     done
6228     IFS="$lt_save_ifs"
6229   done
6230   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6231 fi
6232 fi
6233 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6234 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6235 NM="$lt_cv_path_NM"
6236
6237 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6238 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6239 if test "${lt_cv_deplibs_check_method+set}" = set; then
6240   echo $ECHO_N "(cached) $ECHO_C" >&6
6241 else
6242   lt_cv_file_magic_cmd='$MAGIC_CMD'
6243 lt_cv_file_magic_test_file=
6244 lt_cv_deplibs_check_method='unknown'
6245 # Need to set the preceding variable on all platforms that support
6246 # interlibrary dependencies.
6247 # 'none' -- dependencies not supported.
6248 # `unknown' -- same as none, but documents that we really don't know.
6249 # 'pass_all' -- all dependencies passed with no checks.
6250 # 'test_compile' -- check by making test program.
6251 # 'file_magic [[regex]]' -- check by looking for files in library path
6252 # which responds to the $file_magic_cmd with a given extended regex.
6253 # If you have `file' or equivalent on your system and you're not sure
6254 # whether `pass_all' will *always* work, you probably want this one.
6255
6256 case $host_os in
6257 aix4* | aix5*)
6258   lt_cv_deplibs_check_method=pass_all
6259   ;;
6260
6261 beos*)
6262   lt_cv_deplibs_check_method=pass_all
6263   ;;
6264
6265 bsdi[45]*)
6266   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6267   lt_cv_file_magic_cmd='/usr/bin/file -L'
6268   lt_cv_file_magic_test_file=/shlib/libc.so
6269   ;;
6270
6271 cygwin*)
6272   # func_win32_libid is a shell function defined in ltmain.sh
6273   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6274   lt_cv_file_magic_cmd='func_win32_libid'
6275   ;;
6276
6277 mingw* | pw32*)
6278   # Base MSYS/MinGW do not provide the 'file' command needed by
6279   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6280   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6281   lt_cv_file_magic_cmd='$OBJDUMP -f'
6282   ;;
6283
6284 darwin* | rhapsody*)
6285   lt_cv_deplibs_check_method=pass_all
6286   ;;
6287
6288 freebsd* | dragonfly*)
6289   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6290     case $host_cpu in
6291     i*86 )
6292       # Not sure whether the presence of OpenBSD here was a mistake.
6293       # Let's accept both of them until this is cleared up.
6294       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6295       lt_cv_file_magic_cmd=/usr/bin/file
6296       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6297       ;;
6298     esac
6299   else
6300     lt_cv_deplibs_check_method=pass_all
6301   fi
6302   ;;
6303
6304 gnu*)
6305   lt_cv_deplibs_check_method=pass_all
6306   ;;
6307
6308 hpux10.20* | hpux11*)
6309   lt_cv_file_magic_cmd=/usr/bin/file
6310   case $host_cpu in
6311   ia64*)
6312     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6313     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6314     ;;
6315   hppa*64*)
6316     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6317     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6318     ;;
6319   *)
6320     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6321     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6322     ;;
6323   esac
6324   ;;
6325
6326 interix3*)
6327   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6328   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6329   ;;
6330
6331 irix5* | irix6* | nonstopux*)
6332   case $LD in
6333   *-32|*"-32 ") libmagic=32-bit;;
6334   *-n32|*"-n32 ") libmagic=N32;;
6335   *-64|*"-64 ") libmagic=64-bit;;
6336   *) libmagic=never-match;;
6337   esac
6338   lt_cv_deplibs_check_method=pass_all
6339   ;;
6340
6341 # This must be Linux ELF.
6342 linux* | k*bsd*-gnu)
6343   lt_cv_deplibs_check_method=pass_all
6344   ;;
6345
6346 netbsd* | netbsdelf*-gnu)
6347   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6348     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6349   else
6350     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6351   fi
6352   ;;
6353
6354 newos6*)
6355   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6356   lt_cv_file_magic_cmd=/usr/bin/file
6357   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6358   ;;
6359
6360 nto-qnx*)
6361   lt_cv_deplibs_check_method=unknown
6362   ;;
6363
6364 openbsd*)
6365   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6366     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6367   else
6368     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6369   fi
6370   ;;
6371
6372 osf3* | osf4* | osf5*)
6373   lt_cv_deplibs_check_method=pass_all
6374   ;;
6375
6376 solaris*)
6377   lt_cv_deplibs_check_method=pass_all
6378   ;;
6379
6380 sysv4 | sysv4.3*)
6381   case $host_vendor in
6382   motorola)
6383     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6384     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6385     ;;
6386   ncr)
6387     lt_cv_deplibs_check_method=pass_all
6388     ;;
6389   sequent)
6390     lt_cv_file_magic_cmd='/bin/file'
6391     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6392     ;;
6393   sni)
6394     lt_cv_file_magic_cmd='/bin/file'
6395     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6396     lt_cv_file_magic_test_file=/lib/libc.so
6397     ;;
6398   siemens)
6399     lt_cv_deplibs_check_method=pass_all
6400     ;;
6401   pc)
6402     lt_cv_deplibs_check_method=pass_all
6403     ;;
6404   esac
6405   ;;
6406
6407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6408   lt_cv_deplibs_check_method=pass_all
6409   ;;
6410 esac
6411
6412 fi
6413 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6414 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6415 file_magic_cmd=$lt_cv_file_magic_cmd
6416 deplibs_check_method=$lt_cv_deplibs_check_method
6417 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6418
6419
6420
6421
6422 # If no C compiler was specified, use CC.
6423 LTCC=${LTCC-"$CC"}
6424
6425 # If no C compiler flags were specified, use CFLAGS.
6426 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6427
6428 # Allow CC to be a program name with arguments.
6429 compiler=$CC
6430
6431 # Check whether --enable-libtool-lock was given.
6432 if test "${enable_libtool_lock+set}" = set; then
6433   enableval=$enable_libtool_lock;
6434 fi
6435
6436 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6437
6438 # Some flags need to be propagated to the compiler or linker for good
6439 # libtool support.
6440 case $host in
6441 ia64-*-hpux*)
6442   # Find out which ABI we are using.
6443   echo 'int i;' > conftest.$ac_ext
6444   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6445   (eval $ac_compile) 2>&5
6446   ac_status=$?
6447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); }; then
6449     case `/usr/bin/file conftest.$ac_objext` in
6450     *ELF-32*)
6451       HPUX_IA64_MODE="32"
6452       ;;
6453     *ELF-64*)
6454       HPUX_IA64_MODE="64"
6455       ;;
6456     esac
6457   fi
6458   rm -rf conftest*
6459   ;;
6460 *-*-irix6*)
6461   # Find out which ABI we are using.
6462   echo '#line 6462 "configure"' > conftest.$ac_ext
6463   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6464   (eval $ac_compile) 2>&5
6465   ac_status=$?
6466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467   (exit $ac_status); }; then
6468    if test "$lt_cv_prog_gnu_ld" = yes; then
6469     case `/usr/bin/file conftest.$ac_objext` in
6470     *32-bit*)
6471       LD="${LD-ld} -melf32bsmip"
6472       ;;
6473     *N32*)
6474       LD="${LD-ld} -melf32bmipn32"
6475       ;;
6476     *64-bit*)
6477       LD="${LD-ld} -melf64bmip"
6478       ;;
6479     esac
6480    else
6481     case `/usr/bin/file conftest.$ac_objext` in
6482     *32-bit*)
6483       LD="${LD-ld} -32"
6484       ;;
6485     *N32*)
6486       LD="${LD-ld} -n32"
6487       ;;
6488     *64-bit*)
6489       LD="${LD-ld} -64"
6490       ;;
6491     esac
6492    fi
6493   fi
6494   rm -rf conftest*
6495   ;;
6496
6497 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6498   # Find out which ABI we are using.
6499   echo 'int i;' > conftest.$ac_ext
6500   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6501   (eval $ac_compile) 2>&5
6502   ac_status=$?
6503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504   (exit $ac_status); }; then
6505     case `/usr/bin/file conftest.o` in
6506     *32-bit*)
6507       case $host in
6508         x86_64-*linux*)
6509           LD="${LD-ld} -m elf_i386"
6510           ;;
6511         ppc64-*linux*|powerpc64-*linux*)
6512           LD="${LD-ld} -m elf32ppclinux"
6513           ;;
6514         s390x-*linux*)
6515           LD="${LD-ld} -m elf_s390"
6516           ;;
6517         sparc64-*linux*)
6518           LD="${LD-ld} -m elf32_sparc"
6519           ;;
6520       esac
6521       ;;
6522     *64-bit*)
6523       case $host in
6524         x86_64-*linux*)
6525           LD="${LD-ld} -m elf_x86_64"
6526           ;;
6527         ppc*-*linux*|powerpc*-*linux*)
6528           LD="${LD-ld} -m elf64ppc"
6529           ;;
6530         s390*-*linux*)
6531           LD="${LD-ld} -m elf64_s390"
6532           ;;
6533         sparc*-*linux*)
6534           LD="${LD-ld} -m elf64_sparc"
6535           ;;
6536       esac
6537       ;;
6538     esac
6539   fi
6540   rm -rf conftest*
6541   ;;
6542
6543 *-*-sco3.2v5*)
6544   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6545   SAVE_CFLAGS="$CFLAGS"
6546   CFLAGS="$CFLAGS -belf"
6547   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6548 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6549 if test "${lt_cv_cc_needs_belf+set}" = set; then
6550   echo $ECHO_N "(cached) $ECHO_C" >&6
6551 else
6552   ac_ext=c
6553 ac_cpp='$CPP $CPPFLAGS'
6554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6557
6558      cat >conftest.$ac_ext <<_ACEOF
6559 /* confdefs.h.  */
6560 _ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h.  */
6564
6565 int
6566 main ()
6567 {
6568
6569   ;
6570   return 0;
6571 }
6572 _ACEOF
6573 rm -f conftest.$ac_objext conftest$ac_exeext
6574 if { (ac_try="$ac_link"
6575 case "(($ac_try" in
6576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577   *) ac_try_echo=$ac_try;;
6578 esac
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580   (eval "$ac_link") 2>conftest.er1
6581   ac_status=$?
6582   grep -v '^ *+' conftest.er1 >conftest.err
6583   rm -f conftest.er1
6584   cat conftest.err >&5
6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); } && {
6587          test -z "$ac_c_werror_flag" ||
6588          test ! -s conftest.err
6589        } && test -s conftest$ac_exeext &&
6590        $as_test_x conftest$ac_exeext; then
6591   lt_cv_cc_needs_belf=yes
6592 else
6593   echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6595
6596         lt_cv_cc_needs_belf=no
6597 fi
6598
6599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6600       conftest$ac_exeext conftest.$ac_ext
6601      ac_ext=c
6602 ac_cpp='$CPP $CPPFLAGS'
6603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6606
6607 fi
6608 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6609 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6610   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6611     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6612     CFLAGS="$SAVE_CFLAGS"
6613   fi
6614   ;;
6615 sparc*-*solaris*)
6616   # Find out which ABI we are using.
6617   echo 'int i;' > conftest.$ac_ext
6618   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6619   (eval $ac_compile) 2>&5
6620   ac_status=$?
6621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622   (exit $ac_status); }; then
6623     case `/usr/bin/file conftest.o` in
6624     *64-bit*)
6625       case $lt_cv_prog_gnu_ld in
6626       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6627       *)    LD="${LD-ld} -64" ;;
6628       esac
6629       ;;
6630     esac
6631   fi
6632   rm -rf conftest*
6633   ;;
6634
6635 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6636   if test -n "$ac_tool_prefix"; then
6637   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6638 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6641 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6642   echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644   if test -n "$DLLTOOL"; then
6645   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650   IFS=$as_save_IFS
6651   test -z "$as_dir" && as_dir=.
6652   for ac_exec_ext in '' $ac_executable_extensions; do
6653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6654     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6656     break 2
6657   fi
6658 done
6659 done
6660 IFS=$as_save_IFS
6661
6662 fi
6663 fi
6664 DLLTOOL=$ac_cv_prog_DLLTOOL
6665 if test -n "$DLLTOOL"; then
6666   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6667 echo "${ECHO_T}$DLLTOOL" >&6; }
6668 else
6669   { echo "$as_me:$LINENO: result: no" >&5
6670 echo "${ECHO_T}no" >&6; }
6671 fi
6672
6673
6674 fi
6675 if test -z "$ac_cv_prog_DLLTOOL"; then
6676   ac_ct_DLLTOOL=$DLLTOOL
6677   # Extract the first word of "dlltool", so it can be a program name with args.
6678 set dummy dlltool; ac_word=$2
6679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6682   echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684   if test -n "$ac_ct_DLLTOOL"; then
6685   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6686 else
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6689 do
6690   IFS=$as_save_IFS
6691   test -z "$as_dir" && as_dir=.
6692   for ac_exec_ext in '' $ac_executable_extensions; do
6693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696     break 2
6697   fi
6698 done
6699 done
6700 IFS=$as_save_IFS
6701
6702 fi
6703 fi
6704 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6705 if test -n "$ac_ct_DLLTOOL"; then
6706   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6707 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6708 else
6709   { echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6; }
6711 fi
6712
6713   if test "x$ac_ct_DLLTOOL" = x; then
6714     DLLTOOL="false"
6715   else
6716     case $cross_compiling:$ac_tool_warned in
6717 yes:)
6718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6719 whose name does not start with the host triplet.  If you think this
6720 configuration is useful to you, please write to autoconf@gnu.org." >&5
6721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6722 whose name does not start with the host triplet.  If you think this
6723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6724 ac_tool_warned=yes ;;
6725 esac
6726     DLLTOOL=$ac_ct_DLLTOOL
6727   fi
6728 else
6729   DLLTOOL="$ac_cv_prog_DLLTOOL"
6730 fi
6731
6732   if test -n "$ac_tool_prefix"; then
6733   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6734 set dummy ${ac_tool_prefix}as; ac_word=$2
6735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6737 if test "${ac_cv_prog_AS+set}" = set; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   if test -n "$AS"; then
6741   ac_cv_prog_AS="$AS" # Let the user override the test.
6742 else
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6745 do
6746   IFS=$as_save_IFS
6747   test -z "$as_dir" && as_dir=.
6748   for ac_exec_ext in '' $ac_executable_extensions; do
6749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750     ac_cv_prog_AS="${ac_tool_prefix}as"
6751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752     break 2
6753   fi
6754 done
6755 done
6756 IFS=$as_save_IFS
6757
6758 fi
6759 fi
6760 AS=$ac_cv_prog_AS
6761 if test -n "$AS"; then
6762   { echo "$as_me:$LINENO: result: $AS" >&5
6763 echo "${ECHO_T}$AS" >&6; }
6764 else
6765   { echo "$as_me:$LINENO: result: no" >&5
6766 echo "${ECHO_T}no" >&6; }
6767 fi
6768
6769
6770 fi
6771 if test -z "$ac_cv_prog_AS"; then
6772   ac_ct_AS=$AS
6773   # Extract the first word of "as", so it can be a program name with args.
6774 set dummy as; ac_word=$2
6775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6777 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6778   echo $ECHO_N "(cached) $ECHO_C" >&6
6779 else
6780   if test -n "$ac_ct_AS"; then
6781   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786   IFS=$as_save_IFS
6787   test -z "$as_dir" && as_dir=.
6788   for ac_exec_ext in '' $ac_executable_extensions; do
6789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6790     ac_cv_prog_ac_ct_AS="as"
6791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792     break 2
6793   fi
6794 done
6795 done
6796 IFS=$as_save_IFS
6797
6798 fi
6799 fi
6800 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6801 if test -n "$ac_ct_AS"; then
6802   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6803 echo "${ECHO_T}$ac_ct_AS" >&6; }
6804 else
6805   { echo "$as_me:$LINENO: result: no" >&5
6806 echo "${ECHO_T}no" >&6; }
6807 fi
6808
6809   if test "x$ac_ct_AS" = x; then
6810     AS="false"
6811   else
6812     case $cross_compiling:$ac_tool_warned in
6813 yes:)
6814 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6815 whose name does not start with the host triplet.  If you think this
6816 configuration is useful to you, please write to autoconf@gnu.org." >&5
6817 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6818 whose name does not start with the host triplet.  If you think this
6819 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6820 ac_tool_warned=yes ;;
6821 esac
6822     AS=$ac_ct_AS
6823   fi
6824 else
6825   AS="$ac_cv_prog_AS"
6826 fi
6827
6828   if test -n "$ac_tool_prefix"; then
6829   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6830 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6834   echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836   if test -n "$OBJDUMP"; then
6837   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6838 else
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 for as_dir in $PATH
6841 do
6842   IFS=$as_save_IFS
6843   test -z "$as_dir" && as_dir=.
6844   for ac_exec_ext in '' $ac_executable_extensions; do
6845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6846     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848     break 2
6849   fi
6850 done
6851 done
6852 IFS=$as_save_IFS
6853
6854 fi
6855 fi
6856 OBJDUMP=$ac_cv_prog_OBJDUMP
6857 if test -n "$OBJDUMP"; then
6858   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6859 echo "${ECHO_T}$OBJDUMP" >&6; }
6860 else
6861   { echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6; }
6863 fi
6864
6865
6866 fi
6867 if test -z "$ac_cv_prog_OBJDUMP"; then
6868   ac_ct_OBJDUMP=$OBJDUMP
6869   # Extract the first word of "objdump", so it can be a program name with args.
6870 set dummy objdump; ac_word=$2
6871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6873 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6874   echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876   if test -n "$ac_ct_OBJDUMP"; then
6877   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6878 else
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 for as_dir in $PATH
6881 do
6882   IFS=$as_save_IFS
6883   test -z "$as_dir" && as_dir=.
6884   for ac_exec_ext in '' $ac_executable_extensions; do
6885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6886     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6888     break 2
6889   fi
6890 done
6891 done
6892 IFS=$as_save_IFS
6893
6894 fi
6895 fi
6896 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6897 if test -n "$ac_ct_OBJDUMP"; then
6898   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6899 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6900 else
6901   { echo "$as_me:$LINENO: result: no" >&5
6902 echo "${ECHO_T}no" >&6; }
6903 fi
6904
6905   if test "x$ac_ct_OBJDUMP" = x; then
6906     OBJDUMP="false"
6907   else
6908     case $cross_compiling:$ac_tool_warned in
6909 yes:)
6910 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6911 whose name does not start with the host triplet.  If you think this
6912 configuration is useful to you, please write to autoconf@gnu.org." >&5
6913 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6914 whose name does not start with the host triplet.  If you think this
6915 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6916 ac_tool_warned=yes ;;
6917 esac
6918     OBJDUMP=$ac_ct_OBJDUMP
6919   fi
6920 else
6921   OBJDUMP="$ac_cv_prog_OBJDUMP"
6922 fi
6923
6924   ;;
6925
6926 esac
6927
6928 need_locks="$enable_libtool_lock"
6929
6930
6931
6932 for ac_header in dlfcn.h
6933 do
6934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6936   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6939   echo $ECHO_N "(cached) $ECHO_C" >&6
6940 fi
6941 ac_res=`eval echo '${'$as_ac_Header'}'`
6942                { echo "$as_me:$LINENO: result: $ac_res" >&5
6943 echo "${ECHO_T}$ac_res" >&6; }
6944 else
6945   # Is the header compilable?
6946 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6948 cat >conftest.$ac_ext <<_ACEOF
6949 /* confdefs.h.  */
6950 _ACEOF
6951 cat confdefs.h >>conftest.$ac_ext
6952 cat >>conftest.$ac_ext <<_ACEOF
6953 /* end confdefs.h.  */
6954 $ac_includes_default
6955 #include <$ac_header>
6956 _ACEOF
6957 rm -f conftest.$ac_objext
6958 if { (ac_try="$ac_compile"
6959 case "(($ac_try" in
6960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6961   *) ac_try_echo=$ac_try;;
6962 esac
6963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6964   (eval "$ac_compile") 2>conftest.er1
6965   ac_status=$?
6966   grep -v '^ *+' conftest.er1 >conftest.err
6967   rm -f conftest.er1
6968   cat conftest.err >&5
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); } && {
6971          test -z "$ac_c_werror_flag" ||
6972          test ! -s conftest.err
6973        } && test -s conftest.$ac_objext; then
6974   ac_header_compiler=yes
6975 else
6976   echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6978
6979         ac_header_compiler=no
6980 fi
6981
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6984 echo "${ECHO_T}$ac_header_compiler" >&6; }
6985
6986 # Is the header present?
6987 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6989 cat >conftest.$ac_ext <<_ACEOF
6990 /* confdefs.h.  */
6991 _ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h.  */
6995 #include <$ac_header>
6996 _ACEOF
6997 if { (ac_try="$ac_cpp conftest.$ac_ext"
6998 case "(($ac_try" in
6999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7000   *) ac_try_echo=$ac_try;;
7001 esac
7002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7003   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7004   ac_status=$?
7005   grep -v '^ *+' conftest.er1 >conftest.err
7006   rm -f conftest.er1
7007   cat conftest.err >&5
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); } >/dev/null && {
7010          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7011          test ! -s conftest.err
7012        }; then
7013   ac_header_preproc=yes
7014 else
7015   echo "$as_me: failed program was:" >&5
7016 sed 's/^/| /' conftest.$ac_ext >&5
7017
7018   ac_header_preproc=no
7019 fi
7020
7021 rm -f conftest.err conftest.$ac_ext
7022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7023 echo "${ECHO_T}$ac_header_preproc" >&6; }
7024
7025 # So?  What about this header?
7026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7027   yes:no: )
7028     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7032     ac_header_preproc=yes
7033     ;;
7034   no:yes:* )
7035     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7037     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7038 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7039     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7041     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7042 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7045     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7047
7048     ;;
7049 esac
7050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7053   echo $ECHO_N "(cached) $ECHO_C" >&6
7054 else
7055   eval "$as_ac_Header=\$ac_header_preproc"
7056 fi
7057 ac_res=`eval echo '${'$as_ac_Header'}'`
7058                { echo "$as_me:$LINENO: result: $ac_res" >&5
7059 echo "${ECHO_T}$ac_res" >&6; }
7060
7061 fi
7062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7063   cat >>confdefs.h <<_ACEOF
7064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7065 _ACEOF
7066
7067 fi
7068
7069 done
7070
7071
7072
7073 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7074     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7075     (test "X$CXX" != "Xg++"))) ; then
7076   ac_ext=cpp
7077 ac_cpp='$CXXCPP $CPPFLAGS'
7078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7081 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7082 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7083 if test -z "$CXXCPP"; then
7084   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7085   echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087       # Double quotes because CXXCPP needs to be expanded
7088     for CXXCPP in "$CXX -E" "/lib/cpp"
7089     do
7090       ac_preproc_ok=false
7091 for ac_cxx_preproc_warn_flag in '' yes
7092 do
7093   # Use a header file that comes with gcc, so configuring glibc
7094   # with a fresh cross-compiler works.
7095   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7096   # <limits.h> exists even on freestanding compilers.
7097   # On the NeXT, cc -E runs the code through the compiler's parser,
7098   # not just through cpp. "Syntax error" is here to catch this case.
7099   cat >conftest.$ac_ext <<_ACEOF
7100 /* confdefs.h.  */
7101 _ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h.  */
7105 #ifdef __STDC__
7106 # include <limits.h>
7107 #else
7108 # include <assert.h>
7109 #endif
7110                      Syntax error
7111 _ACEOF
7112 if { (ac_try="$ac_cpp conftest.$ac_ext"
7113 case "(($ac_try" in
7114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115   *) ac_try_echo=$ac_try;;
7116 esac
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7119   ac_status=$?
7120   grep -v '^ *+' conftest.er1 >conftest.err
7121   rm -f conftest.er1
7122   cat conftest.err >&5
7123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); } >/dev/null && {
7125          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7126          test ! -s conftest.err
7127        }; then
7128   :
7129 else
7130   echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7132
7133   # Broken: fails on valid input.
7134 continue
7135 fi
7136
7137 rm -f conftest.err conftest.$ac_ext
7138
7139   # OK, works on sane cases.  Now check whether nonexistent headers
7140   # can be detected and how.
7141   cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h.  */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h.  */
7147 #include <ac_nonexistent.h>
7148 _ACEOF
7149 if { (ac_try="$ac_cpp conftest.$ac_ext"
7150 case "(($ac_try" in
7151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7152   *) ac_try_echo=$ac_try;;
7153 esac
7154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7155   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7156   ac_status=$?
7157   grep -v '^ *+' conftest.er1 >conftest.err
7158   rm -f conftest.er1
7159   cat conftest.err >&5
7160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161   (exit $ac_status); } >/dev/null && {
7162          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7163          test ! -s conftest.err
7164        }; then
7165   # Broken: success on invalid input.
7166 continue
7167 else
7168   echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7170
7171   # Passes both tests.
7172 ac_preproc_ok=:
7173 break
7174 fi
7175
7176 rm -f conftest.err conftest.$ac_ext
7177
7178 done
7179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7180 rm -f conftest.err conftest.$ac_ext
7181 if $ac_preproc_ok; then
7182   break
7183 fi
7184
7185     done
7186     ac_cv_prog_CXXCPP=$CXXCPP
7187
7188 fi
7189   CXXCPP=$ac_cv_prog_CXXCPP
7190 else
7191   ac_cv_prog_CXXCPP=$CXXCPP
7192 fi
7193 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7194 echo "${ECHO_T}$CXXCPP" >&6; }
7195 ac_preproc_ok=false
7196 for ac_cxx_preproc_warn_flag in '' yes
7197 do
7198   # Use a header file that comes with gcc, so configuring glibc
7199   # with a fresh cross-compiler works.
7200   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7201   # <limits.h> exists even on freestanding compilers.
7202   # On the NeXT, cc -E runs the code through the compiler's parser,
7203   # not just through cpp. "Syntax error" is here to catch this case.
7204   cat >conftest.$ac_ext <<_ACEOF
7205 /* confdefs.h.  */
7206 _ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h.  */
7210 #ifdef __STDC__
7211 # include <limits.h>
7212 #else
7213 # include <assert.h>
7214 #endif
7215                      Syntax error
7216 _ACEOF
7217 if { (ac_try="$ac_cpp conftest.$ac_ext"
7218 case "(($ac_try" in
7219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7220   *) ac_try_echo=$ac_try;;
7221 esac
7222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7223   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7224   ac_status=$?
7225   grep -v '^ *+' conftest.er1 >conftest.err
7226   rm -f conftest.er1
7227   cat conftest.err >&5
7228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229   (exit $ac_status); } >/dev/null && {
7230          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7231          test ! -s conftest.err
7232        }; then
7233   :
7234 else
7235   echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.$ac_ext >&5
7237
7238   # Broken: fails on valid input.
7239 continue
7240 fi
7241
7242 rm -f conftest.err conftest.$ac_ext
7243
7244   # OK, works on sane cases.  Now check whether nonexistent headers
7245   # can be detected and how.
7246   cat >conftest.$ac_ext <<_ACEOF
7247 /* confdefs.h.  */
7248 _ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h.  */
7252 #include <ac_nonexistent.h>
7253 _ACEOF
7254 if { (ac_try="$ac_cpp conftest.$ac_ext"
7255 case "(($ac_try" in
7256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7257   *) ac_try_echo=$ac_try;;
7258 esac
7259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7260   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7261   ac_status=$?
7262   grep -v '^ *+' conftest.er1 >conftest.err
7263   rm -f conftest.er1
7264   cat conftest.err >&5
7265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266   (exit $ac_status); } >/dev/null && {
7267          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7268          test ! -s conftest.err
7269        }; then
7270   # Broken: success on invalid input.
7271 continue
7272 else
7273   echo "$as_me: failed program was:" >&5
7274 sed 's/^/| /' conftest.$ac_ext >&5
7275
7276   # Passes both tests.
7277 ac_preproc_ok=:
7278 break
7279 fi
7280
7281 rm -f conftest.err conftest.$ac_ext
7282
7283 done
7284 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7285 rm -f conftest.err conftest.$ac_ext
7286 if $ac_preproc_ok; then
7287   :
7288 else
7289   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7290 See \`config.log' for more details." >&5
7291 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7292 See \`config.log' for more details." >&2;}
7293    { (exit 1); exit 1; }; }
7294 fi
7295
7296 ac_ext=cpp
7297 ac_cpp='$CXXCPP $CPPFLAGS'
7298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7301
7302 fi
7303
7304 ac_ext=f
7305 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7306 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7307 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7308 if test -n "$ac_tool_prefix"; then
7309   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7310   do
7311     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7312 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7315 if test "${ac_cv_prog_F77+set}" = set; then
7316   echo $ECHO_N "(cached) $ECHO_C" >&6
7317 else
7318   if test -n "$F77"; then
7319   ac_cv_prog_F77="$F77" # Let the user override the test.
7320 else
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 for as_dir in $PATH
7323 do
7324   IFS=$as_save_IFS
7325   test -z "$as_dir" && as_dir=.
7326   for ac_exec_ext in '' $ac_executable_extensions; do
7327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7328     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7330     break 2
7331   fi
7332 done
7333 done
7334 IFS=$as_save_IFS
7335
7336 fi
7337 fi
7338 F77=$ac_cv_prog_F77
7339 if test -n "$F77"; then
7340   { echo "$as_me:$LINENO: result: $F77" >&5
7341 echo "${ECHO_T}$F77" >&6; }
7342 else
7343   { echo "$as_me:$LINENO: result: no" >&5
7344 echo "${ECHO_T}no" >&6; }
7345 fi
7346
7347
7348     test -n "$F77" && break
7349   done
7350 fi
7351 if test -z "$F77"; then
7352   ac_ct_F77=$F77
7353   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7354 do
7355   # Extract the first word of "$ac_prog", so it can be a program name with args.
7356 set dummy $ac_prog; ac_word=$2
7357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7359 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7360   echo $ECHO_N "(cached) $ECHO_C" >&6
7361 else
7362   if test -n "$ac_ct_F77"; then
7363   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7364 else
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368   IFS=$as_save_IFS
7369   test -z "$as_dir" && as_dir=.
7370   for ac_exec_ext in '' $ac_executable_extensions; do
7371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7372     ac_cv_prog_ac_ct_F77="$ac_prog"
7373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374     break 2
7375   fi
7376 done
7377 done
7378 IFS=$as_save_IFS
7379
7380 fi
7381 fi
7382 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7383 if test -n "$ac_ct_F77"; then
7384   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7385 echo "${ECHO_T}$ac_ct_F77" >&6; }
7386 else
7387   { echo "$as_me:$LINENO: result: no" >&5
7388 echo "${ECHO_T}no" >&6; }
7389 fi
7390
7391
7392   test -n "$ac_ct_F77" && break
7393 done
7394
7395   if test "x$ac_ct_F77" = x; then
7396     F77=""
7397   else
7398     case $cross_compiling:$ac_tool_warned in
7399 yes:)
7400 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7401 whose name does not start with the host triplet.  If you think this
7402 configuration is useful to you, please write to autoconf@gnu.org." >&5
7403 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7404 whose name does not start with the host triplet.  If you think this
7405 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7406 ac_tool_warned=yes ;;
7407 esac
7408     F77=$ac_ct_F77
7409   fi
7410 fi
7411
7412
7413 # Provide some information about the compiler.
7414 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7415 ac_compiler=`set X $ac_compile; echo $2`
7416 { (ac_try="$ac_compiler --version >&5"
7417 case "(($ac_try" in
7418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7419   *) ac_try_echo=$ac_try;;
7420 esac
7421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7422   (eval "$ac_compiler --version >&5") 2>&5
7423   ac_status=$?
7424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425   (exit $ac_status); }
7426 { (ac_try="$ac_compiler -v >&5"
7427 case "(($ac_try" in
7428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429   *) ac_try_echo=$ac_try;;
7430 esac
7431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7432   (eval "$ac_compiler -v >&5") 2>&5
7433   ac_status=$?
7434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435   (exit $ac_status); }
7436 { (ac_try="$ac_compiler -V >&5"
7437 case "(($ac_try" in
7438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7439   *) ac_try_echo=$ac_try;;
7440 esac
7441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7442   (eval "$ac_compiler -V >&5") 2>&5
7443   ac_status=$?
7444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445   (exit $ac_status); }
7446 rm -f a.out
7447
7448 # If we don't use `.F' as extension, the preprocessor is not run on the
7449 # input file.  (Note that this only needs to work for GNU compilers.)
7450 ac_save_ext=$ac_ext
7451 ac_ext=F
7452 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7453 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7454 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457   cat >conftest.$ac_ext <<_ACEOF
7458       program main
7459 #ifndef __GNUC__
7460        choke me
7461 #endif
7462
7463       end
7464 _ACEOF
7465 rm -f conftest.$ac_objext
7466 if { (ac_try="$ac_compile"
7467 case "(($ac_try" in
7468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7469   *) ac_try_echo=$ac_try;;
7470 esac
7471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7472   (eval "$ac_compile") 2>conftest.er1
7473   ac_status=$?
7474   grep -v '^ *+' conftest.er1 >conftest.err
7475   rm -f conftest.er1
7476   cat conftest.err >&5
7477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478   (exit $ac_status); } && {
7479          test -z "$ac_f77_werror_flag" ||
7480          test ! -s conftest.err
7481        } && test -s conftest.$ac_objext; then
7482   ac_compiler_gnu=yes
7483 else
7484   echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7486
7487         ac_compiler_gnu=no
7488 fi
7489
7490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7492
7493 fi
7494 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7495 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7496 ac_ext=$ac_save_ext
7497 ac_test_FFLAGS=${FFLAGS+set}
7498 ac_save_FFLAGS=$FFLAGS
7499 FFLAGS=
7500 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7501 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7502 if test "${ac_cv_prog_f77_g+set}" = set; then
7503   echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505   FFLAGS=-g
7506 cat >conftest.$ac_ext <<_ACEOF
7507       program main
7508
7509       end
7510 _ACEOF
7511 rm -f conftest.$ac_objext
7512 if { (ac_try="$ac_compile"
7513 case "(($ac_try" in
7514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7515   *) ac_try_echo=$ac_try;;
7516 esac
7517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7518   (eval "$ac_compile") 2>conftest.er1
7519   ac_status=$?
7520   grep -v '^ *+' conftest.er1 >conftest.err
7521   rm -f conftest.er1
7522   cat conftest.err >&5
7523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524   (exit $ac_status); } && {
7525          test -z "$ac_f77_werror_flag" ||
7526          test ! -s conftest.err
7527        } && test -s conftest.$ac_objext; then
7528   ac_cv_prog_f77_g=yes
7529 else
7530   echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.$ac_ext >&5
7532
7533         ac_cv_prog_f77_g=no
7534 fi
7535
7536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7537
7538 fi
7539 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7540 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7541 if test "$ac_test_FFLAGS" = set; then
7542   FFLAGS=$ac_save_FFLAGS
7543 elif test $ac_cv_prog_f77_g = yes; then
7544   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7545     FFLAGS="-g -O2"
7546   else
7547     FFLAGS="-g"
7548   fi
7549 else
7550   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7551     FFLAGS="-O2"
7552   else
7553     FFLAGS=
7554   fi
7555 fi
7556
7557 G77=`test $ac_compiler_gnu = yes && echo yes`
7558 ac_ext=c
7559 ac_cpp='$CPP $CPPFLAGS'
7560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7563
7564
7565
7566 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7567
7568 # find the maximum length of command line arguments
7569 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7570 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7571 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7572   echo $ECHO_N "(cached) $ECHO_C" >&6
7573 else
7574     i=0
7575   teststring="ABCD"
7576
7577   case $build_os in
7578   msdosdjgpp*)
7579     # On DJGPP, this test can blow up pretty badly due to problems in libc
7580     # (any single argument exceeding 2000 bytes causes a buffer overrun
7581     # during glob expansion).  Even if it were fixed, the result of this
7582     # check would be larger than it should be.
7583     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7584     ;;
7585
7586   gnu*)
7587     # Under GNU Hurd, this test is not required because there is
7588     # no limit to the length of command line arguments.
7589     # Libtool will interpret -1 as no limit whatsoever
7590     lt_cv_sys_max_cmd_len=-1;
7591     ;;
7592
7593   cygwin* | mingw*)
7594     # On Win9x/ME, this test blows up -- it succeeds, but takes
7595     # about 5 minutes as the teststring grows exponentially.
7596     # Worse, since 9x/ME are not pre-emptively multitasking,
7597     # you end up with a "frozen" computer, even though with patience
7598     # the test eventually succeeds (with a max line length of 256k).
7599     # Instead, let's just punt: use the minimum linelength reported by
7600     # all of the supported platforms: 8192 (on NT/2K/XP).
7601     lt_cv_sys_max_cmd_len=8192;
7602     ;;
7603
7604   amigaos*)
7605     # On AmigaOS with pdksh, this test takes hours, literally.
7606     # So we just punt and use a minimum line length of 8192.
7607     lt_cv_sys_max_cmd_len=8192;
7608     ;;
7609
7610   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7611     # This has been around since 386BSD, at least.  Likely further.
7612     if test -x /sbin/sysctl; then
7613       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7614     elif test -x /usr/sbin/sysctl; then
7615       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7616     else
7617       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7618     fi
7619     # And add a safety zone
7620     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7621     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7622     ;;
7623
7624   interix*)
7625     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7626     lt_cv_sys_max_cmd_len=196608
7627     ;;
7628
7629   osf*)
7630     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7631     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7632     # nice to cause kernel panics so lets avoid the loop below.
7633     # First set a reasonable default.
7634     lt_cv_sys_max_cmd_len=16384
7635     #
7636     if test -x /sbin/sysconfig; then
7637       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7638         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7639       esac
7640     fi
7641     ;;
7642   sco3.2v5*)
7643     lt_cv_sys_max_cmd_len=102400
7644     ;;
7645   sysv5* | sco5v6* | sysv4.2uw2*)
7646     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7647     if test -n "$kargmax"; then
7648       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7649     else
7650       lt_cv_sys_max_cmd_len=32768
7651     fi
7652     ;;
7653   *)
7654     # If test is not a shell built-in, we'll probably end up computing a
7655     # maximum length that is only half of the actual maximum length, but
7656     # we can't tell.
7657     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7658     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7659                = "XX$teststring") >/dev/null 2>&1 &&
7660             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7661             lt_cv_sys_max_cmd_len=$new_result &&
7662             test $i != 17 # 1/2 MB should be enough
7663     do
7664       i=`expr $i + 1`
7665       teststring=$teststring$teststring
7666     done
7667     teststring=
7668     # Add a significant safety factor because C++ compilers can tack on massive
7669     # amounts of additional arguments before passing them to the linker.
7670     # It appears as though 1/2 is a usable value.
7671     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7672     ;;
7673   esac
7674
7675 fi
7676
7677 if test -n $lt_cv_sys_max_cmd_len ; then
7678   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7679 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7680 else
7681   { echo "$as_me:$LINENO: result: none" >&5
7682 echo "${ECHO_T}none" >&6; }
7683 fi
7684
7685
7686
7687
7688 # Check for command to grab the raw symbol name followed by C symbol from nm.
7689 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7690 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7691 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7692   echo $ECHO_N "(cached) $ECHO_C" >&6
7693 else
7694
7695 # These are sane defaults that work on at least a few old systems.
7696 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7697
7698 # Character class describing NM global symbol codes.
7699 symcode='[BCDEGRST]'
7700
7701 # Regexp to match symbols that can be accessed directly from C.
7702 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7703
7704 # Transform an extracted symbol line into a proper C declaration
7705 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7706
7707 # Transform an extracted symbol line into symbol name and symbol address
7708 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7709
7710 # Define system-specific variables.
7711 case $host_os in
7712 aix*)
7713   symcode='[BCDT]'
7714   ;;
7715 cygwin* | mingw* | pw32*)
7716   symcode='[ABCDGISTW]'
7717   ;;
7718 hpux*) # Its linker distinguishes data from code symbols
7719   if test "$host_cpu" = ia64; then
7720     symcode='[ABCDEGRST]'
7721   fi
7722   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7723   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7724   ;;
7725 linux* | k*bsd*-gnu)
7726   if test "$host_cpu" = ia64; then
7727     symcode='[ABCDGIRSTW]'
7728     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7729     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7730   fi
7731   ;;
7732 irix* | nonstopux*)
7733   symcode='[BCDEGRST]'
7734   ;;
7735 osf*)
7736   symcode='[BCDEGQRST]'
7737   ;;
7738 solaris*)
7739   symcode='[BDRT]'
7740   ;;
7741 sco3.2v5*)
7742   symcode='[DT]'
7743   ;;
7744 sysv4.2uw2*)
7745   symcode='[DT]'
7746   ;;
7747 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7748   symcode='[ABDT]'
7749   ;;
7750 sysv4)
7751   symcode='[DFNSTU]'
7752   ;;
7753 esac
7754
7755 # Handle CRLF in mingw tool chain
7756 opt_cr=
7757 case $build_os in
7758 mingw*)
7759   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7760   ;;
7761 esac
7762
7763 # If we're using GNU nm, then use its standard symbol codes.
7764 case `$NM -V 2>&1` in
7765 *GNU* | *'with BFD'*)
7766   symcode='[ABCDGIRSTW]' ;;
7767 esac
7768
7769 # Try without a prefix undercore, then with it.
7770 for ac_symprfx in "" "_"; do
7771
7772   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7773   symxfrm="\\1 $ac_symprfx\\2 \\2"
7774
7775   # Write the raw and C identifiers.
7776   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7777
7778   # Check to see that the pipe works correctly.
7779   pipe_works=no
7780
7781   rm -f conftest*
7782   cat > conftest.$ac_ext <<EOF
7783 #ifdef __cplusplus
7784 extern "C" {
7785 #endif
7786 char nm_test_var;
7787 void nm_test_func(){}
7788 #ifdef __cplusplus
7789 }
7790 #endif
7791 int main(){nm_test_var='a';nm_test_func();return(0);}
7792 EOF
7793
7794   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7795   (eval $ac_compile) 2>&5
7796   ac_status=$?
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); }; then
7799     # Now try to grab the symbols.
7800     nlist=conftest.nm
7801     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7802   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7803   ac_status=$?
7804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805   (exit $ac_status); } && test -s "$nlist"; then
7806       # Try sorting and uniquifying the output.
7807       if sort "$nlist" | uniq > "$nlist"T; then
7808         mv -f "$nlist"T "$nlist"
7809       else
7810         rm -f "$nlist"T
7811       fi
7812
7813       # Make sure that we snagged all the symbols we need.
7814       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7815         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7816           cat <<EOF > conftest.$ac_ext
7817 #ifdef __cplusplus
7818 extern "C" {
7819 #endif
7820
7821 EOF
7822           # Now generate the symbol file.
7823           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7824
7825           cat <<EOF >> conftest.$ac_ext
7826 #if defined (__STDC__) && __STDC__
7827 # define lt_ptr_t void *
7828 #else
7829 # define lt_ptr_t char *
7830 # define const
7831 #endif
7832
7833 /* The mapping between symbol names and symbols. */
7834 const struct {
7835   const char *name;
7836   lt_ptr_t address;
7837 }
7838 lt_preloaded_symbols[] =
7839 {
7840 EOF
7841           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7842           cat <<\EOF >> conftest.$ac_ext
7843   {0, (lt_ptr_t) 0}
7844 };
7845
7846 #ifdef __cplusplus
7847 }
7848 #endif
7849 EOF
7850           # Now try linking the two files.
7851           mv conftest.$ac_objext conftstm.$ac_objext
7852           lt_save_LIBS="$LIBS"
7853           lt_save_CFLAGS="$CFLAGS"
7854           LIBS="conftstm.$ac_objext"
7855           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7856           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7857   (eval $ac_link) 2>&5
7858   ac_status=$?
7859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7861             pipe_works=yes
7862           fi
7863           LIBS="$lt_save_LIBS"
7864           CFLAGS="$lt_save_CFLAGS"
7865         else
7866           echo "cannot find nm_test_func in $nlist" >&5
7867         fi
7868       else
7869         echo "cannot find nm_test_var in $nlist" >&5
7870       fi
7871     else
7872       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7873     fi
7874   else
7875     echo "$progname: failed program was:" >&5
7876     cat conftest.$ac_ext >&5
7877   fi
7878   rm -f conftest* conftst*
7879
7880   # Do not use the global_symbol_pipe unless it works.
7881   if test "$pipe_works" = yes; then
7882     break
7883   else
7884     lt_cv_sys_global_symbol_pipe=
7885   fi
7886 done
7887
7888 fi
7889
7890 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7891   lt_cv_sys_global_symbol_to_cdecl=
7892 fi
7893 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7894   { echo "$as_me:$LINENO: result: failed" >&5
7895 echo "${ECHO_T}failed" >&6; }
7896 else
7897   { echo "$as_me:$LINENO: result: ok" >&5
7898 echo "${ECHO_T}ok" >&6; }
7899 fi
7900
7901 { echo "$as_me:$LINENO: checking for objdir" >&5
7902 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7903 if test "${lt_cv_objdir+set}" = set; then
7904   echo $ECHO_N "(cached) $ECHO_C" >&6
7905 else
7906   rm -f .libs 2>/dev/null
7907 mkdir .libs 2>/dev/null
7908 if test -d .libs; then
7909   lt_cv_objdir=.libs
7910 else
7911   # MS-DOS does not allow filenames that begin with a dot.
7912   lt_cv_objdir=_libs
7913 fi
7914 rmdir .libs 2>/dev/null
7915 fi
7916 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7917 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7918 objdir=$lt_cv_objdir
7919
7920
7921
7922
7923
7924 case $host_os in
7925 aix3*)
7926   # AIX sometimes has problems with the GCC collect2 program.  For some
7927   # reason, if we set the COLLECT_NAMES environment variable, the problems
7928   # vanish in a puff of smoke.
7929   if test "X${COLLECT_NAMES+set}" != Xset; then
7930     COLLECT_NAMES=
7931     export COLLECT_NAMES
7932   fi
7933   ;;
7934 esac
7935
7936 # Sed substitution that helps us do robust quoting.  It backslashifies
7937 # metacharacters that are still active within double-quoted strings.
7938 Xsed='sed -e 1s/^X//'
7939 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7940
7941 # Same as above, but do not quote variable references.
7942 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7943
7944 # Sed substitution to delay expansion of an escaped shell variable in a
7945 # double_quote_subst'ed string.
7946 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7947
7948 # Sed substitution to avoid accidental globbing in evaled expressions
7949 no_glob_subst='s/\*/\\\*/g'
7950
7951 # Constants:
7952 rm="rm -f"
7953
7954 # Global variables:
7955 default_ofile=libtool
7956 can_build_shared=yes
7957
7958 # All known linkers require a `.a' archive for static linking (except MSVC,
7959 # which needs '.lib').
7960 libext=a
7961 ltmain="$ac_aux_dir/ltmain.sh"
7962 ofile="$default_ofile"
7963 with_gnu_ld="$lt_cv_prog_gnu_ld"
7964
7965 if test -n "$ac_tool_prefix"; then
7966   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7967 set dummy ${ac_tool_prefix}ar; ac_word=$2
7968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7970 if test "${ac_cv_prog_AR+set}" = set; then
7971   echo $ECHO_N "(cached) $ECHO_C" >&6
7972 else
7973   if test -n "$AR"; then
7974   ac_cv_prog_AR="$AR" # Let the user override the test.
7975 else
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977 for as_dir in $PATH
7978 do
7979   IFS=$as_save_IFS
7980   test -z "$as_dir" && as_dir=.
7981   for ac_exec_ext in '' $ac_executable_extensions; do
7982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7983     ac_cv_prog_AR="${ac_tool_prefix}ar"
7984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7985     break 2
7986   fi
7987 done
7988 done
7989 IFS=$as_save_IFS
7990
7991 fi
7992 fi
7993 AR=$ac_cv_prog_AR
7994 if test -n "$AR"; then
7995   { echo "$as_me:$LINENO: result: $AR" >&5
7996 echo "${ECHO_T}$AR" >&6; }
7997 else
7998   { echo "$as_me:$LINENO: result: no" >&5
7999 echo "${ECHO_T}no" >&6; }
8000 fi
8001
8002
8003 fi
8004 if test -z "$ac_cv_prog_AR"; then
8005   ac_ct_AR=$AR
8006   # Extract the first word of "ar", so it can be a program name with args.
8007 set dummy ar; ac_word=$2
8008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8010 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8011   echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013   if test -n "$ac_ct_AR"; then
8014   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8015 else
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017 for as_dir in $PATH
8018 do
8019   IFS=$as_save_IFS
8020   test -z "$as_dir" && as_dir=.
8021   for ac_exec_ext in '' $ac_executable_extensions; do
8022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8023     ac_cv_prog_ac_ct_AR="ar"
8024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8025     break 2
8026   fi
8027 done
8028 done
8029 IFS=$as_save_IFS
8030
8031 fi
8032 fi
8033 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8034 if test -n "$ac_ct_AR"; then
8035   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8036 echo "${ECHO_T}$ac_ct_AR" >&6; }
8037 else
8038   { echo "$as_me:$LINENO: result: no" >&5
8039 echo "${ECHO_T}no" >&6; }
8040 fi
8041
8042   if test "x$ac_ct_AR" = x; then
8043     AR="false"
8044   else
8045     case $cross_compiling:$ac_tool_warned in
8046 yes:)
8047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8048 whose name does not start with the host triplet.  If you think this
8049 configuration is useful to you, please write to autoconf@gnu.org." >&5
8050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8051 whose name does not start with the host triplet.  If you think this
8052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8053 ac_tool_warned=yes ;;
8054 esac
8055     AR=$ac_ct_AR
8056   fi
8057 else
8058   AR="$ac_cv_prog_AR"
8059 fi
8060
8061 if test -n "$ac_tool_prefix"; then
8062   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8063 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8066 if test "${ac_cv_prog_RANLIB+set}" = set; then
8067   echo $ECHO_N "(cached) $ECHO_C" >&6
8068 else
8069   if test -n "$RANLIB"; then
8070   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8071 else
8072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 for as_dir in $PATH
8074 do
8075   IFS=$as_save_IFS
8076   test -z "$as_dir" && as_dir=.
8077   for ac_exec_ext in '' $ac_executable_extensions; do
8078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8079     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8081     break 2
8082   fi
8083 done
8084 done
8085 IFS=$as_save_IFS
8086
8087 fi
8088 fi
8089 RANLIB=$ac_cv_prog_RANLIB
8090 if test -n "$RANLIB"; then
8091   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8092 echo "${ECHO_T}$RANLIB" >&6; }
8093 else
8094   { echo "$as_me:$LINENO: result: no" >&5
8095 echo "${ECHO_T}no" >&6; }
8096 fi
8097
8098
8099 fi
8100 if test -z "$ac_cv_prog_RANLIB"; then
8101   ac_ct_RANLIB=$RANLIB
8102   # Extract the first word of "ranlib", so it can be a program name with args.
8103 set dummy ranlib; ac_word=$2
8104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8106 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8107   echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109   if test -n "$ac_ct_RANLIB"; then
8110   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8111 else
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 for as_dir in $PATH
8114 do
8115   IFS=$as_save_IFS
8116   test -z "$as_dir" && as_dir=.
8117   for ac_exec_ext in '' $ac_executable_extensions; do
8118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8119     ac_cv_prog_ac_ct_RANLIB="ranlib"
8120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8121     break 2
8122   fi
8123 done
8124 done
8125 IFS=$as_save_IFS
8126
8127 fi
8128 fi
8129 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8130 if test -n "$ac_ct_RANLIB"; then
8131   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8132 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8133 else
8134   { echo "$as_me:$LINENO: result: no" >&5
8135 echo "${ECHO_T}no" >&6; }
8136 fi
8137
8138   if test "x$ac_ct_RANLIB" = x; then
8139     RANLIB=":"
8140   else
8141     case $cross_compiling:$ac_tool_warned in
8142 yes:)
8143 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8144 whose name does not start with the host triplet.  If you think this
8145 configuration is useful to you, please write to autoconf@gnu.org." >&5
8146 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8147 whose name does not start with the host triplet.  If you think this
8148 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8149 ac_tool_warned=yes ;;
8150 esac
8151     RANLIB=$ac_ct_RANLIB
8152   fi
8153 else
8154   RANLIB="$ac_cv_prog_RANLIB"
8155 fi
8156
8157 if test -n "$ac_tool_prefix"; then
8158   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8159 set dummy ${ac_tool_prefix}strip; ac_word=$2
8160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8162 if test "${ac_cv_prog_STRIP+set}" = set; then
8163   echo $ECHO_N "(cached) $ECHO_C" >&6
8164 else
8165   if test -n "$STRIP"; then
8166   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8167 else
8168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169 for as_dir in $PATH
8170 do
8171   IFS=$as_save_IFS
8172   test -z "$as_dir" && as_dir=.
8173   for ac_exec_ext in '' $ac_executable_extensions; do
8174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8175     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8177     break 2
8178   fi
8179 done
8180 done
8181 IFS=$as_save_IFS
8182
8183 fi
8184 fi
8185 STRIP=$ac_cv_prog_STRIP
8186 if test -n "$STRIP"; then
8187   { echo "$as_me:$LINENO: result: $STRIP" >&5
8188 echo "${ECHO_T}$STRIP" >&6; }
8189 else
8190   { echo "$as_me:$LINENO: result: no" >&5
8191 echo "${ECHO_T}no" >&6; }
8192 fi
8193
8194
8195 fi
8196 if test -z "$ac_cv_prog_STRIP"; then
8197   ac_ct_STRIP=$STRIP
8198   # Extract the first word of "strip", so it can be a program name with args.
8199 set dummy strip; ac_word=$2
8200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8202 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8203   echo $ECHO_N "(cached) $ECHO_C" >&6
8204 else
8205   if test -n "$ac_ct_STRIP"; then
8206   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8207 else
8208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209 for as_dir in $PATH
8210 do
8211   IFS=$as_save_IFS
8212   test -z "$as_dir" && as_dir=.
8213   for ac_exec_ext in '' $ac_executable_extensions; do
8214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8215     ac_cv_prog_ac_ct_STRIP="strip"
8216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8217     break 2
8218   fi
8219 done
8220 done
8221 IFS=$as_save_IFS
8222
8223 fi
8224 fi
8225 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8226 if test -n "$ac_ct_STRIP"; then
8227   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8228 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8229 else
8230   { echo "$as_me:$LINENO: result: no" >&5
8231 echo "${ECHO_T}no" >&6; }
8232 fi
8233
8234   if test "x$ac_ct_STRIP" = x; then
8235     STRIP=":"
8236   else
8237     case $cross_compiling:$ac_tool_warned in
8238 yes:)
8239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8240 whose name does not start with the host triplet.  If you think this
8241 configuration is useful to you, please write to autoconf@gnu.org." >&5
8242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8243 whose name does not start with the host triplet.  If you think this
8244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8245 ac_tool_warned=yes ;;
8246 esac
8247     STRIP=$ac_ct_STRIP
8248   fi
8249 else
8250   STRIP="$ac_cv_prog_STRIP"
8251 fi
8252
8253
8254 old_CC="$CC"
8255 old_CFLAGS="$CFLAGS"
8256
8257 # Set sane defaults for various variables
8258 test -z "$AR" && AR=ar
8259 test -z "$AR_FLAGS" && AR_FLAGS=cru
8260 test -z "$AS" && AS=as
8261 test -z "$CC" && CC=cc
8262 test -z "$LTCC" && LTCC=$CC
8263 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8264 test -z "$DLLTOOL" && DLLTOOL=dlltool
8265 test -z "$LD" && LD=ld
8266 test -z "$LN_S" && LN_S="ln -s"
8267 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8268 test -z "$NM" && NM=nm
8269 test -z "$SED" && SED=sed
8270 test -z "$OBJDUMP" && OBJDUMP=objdump
8271 test -z "$RANLIB" && RANLIB=:
8272 test -z "$STRIP" && STRIP=:
8273 test -z "$ac_objext" && ac_objext=o
8274
8275 # Determine commands to create old-style static archives.
8276 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8277 old_postinstall_cmds='chmod 644 $oldlib'
8278 old_postuninstall_cmds=
8279
8280 if test -n "$RANLIB"; then
8281   case $host_os in
8282   openbsd*)
8283     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8284     ;;
8285   *)
8286     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8287     ;;
8288   esac
8289   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8290 fi
8291
8292 for cc_temp in $compiler""; do
8293   case $cc_temp in
8294     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8295     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8296     \-*) ;;
8297     *) break;;
8298   esac
8299 done
8300 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8301
8302
8303 # Only perform the check for file, if the check method requires it
8304 case $deplibs_check_method in
8305 file_magic*)
8306   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8307     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8308 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8309 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8310   echo $ECHO_N "(cached) $ECHO_C" >&6
8311 else
8312   case $MAGIC_CMD in
8313 [\\/*] |  ?:[\\/]*)
8314   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8315   ;;
8316 *)
8317   lt_save_MAGIC_CMD="$MAGIC_CMD"
8318   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8319   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8320   for ac_dir in $ac_dummy; do
8321     IFS="$lt_save_ifs"
8322     test -z "$ac_dir" && ac_dir=.
8323     if test -f $ac_dir/${ac_tool_prefix}file; then
8324       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8325       if test -n "$file_magic_test_file"; then
8326         case $deplibs_check_method in
8327         "file_magic "*)
8328           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8329           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8330           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8331             $EGREP "$file_magic_regex" > /dev/null; then
8332             :
8333           else
8334             cat <<EOF 1>&2
8335
8336 *** Warning: the command libtool uses to detect shared libraries,
8337 *** $file_magic_cmd, produces output that libtool cannot recognize.
8338 *** The result is that libtool may fail to recognize shared libraries
8339 *** as such.  This will affect the creation of libtool libraries that
8340 *** depend on shared libraries, but programs linked with such libtool
8341 *** libraries will work regardless of this problem.  Nevertheless, you
8342 *** may want to report the problem to your system manager and/or to
8343 *** bug-libtool@gnu.org
8344
8345 EOF
8346           fi ;;
8347         esac
8348       fi
8349       break
8350     fi
8351   done
8352   IFS="$lt_save_ifs"
8353   MAGIC_CMD="$lt_save_MAGIC_CMD"
8354   ;;
8355 esac
8356 fi
8357
8358 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8359 if test -n "$MAGIC_CMD"; then
8360   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8361 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8362 else
8363   { echo "$as_me:$LINENO: result: no" >&5
8364 echo "${ECHO_T}no" >&6; }
8365 fi
8366
8367 if test -z "$lt_cv_path_MAGIC_CMD"; then
8368   if test -n "$ac_tool_prefix"; then
8369     { echo "$as_me:$LINENO: checking for file" >&5
8370 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8371 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8372   echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374   case $MAGIC_CMD in
8375 [\\/*] |  ?:[\\/]*)
8376   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8377   ;;
8378 *)
8379   lt_save_MAGIC_CMD="$MAGIC_CMD"
8380   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8381   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8382   for ac_dir in $ac_dummy; do
8383     IFS="$lt_save_ifs"
8384     test -z "$ac_dir" && ac_dir=.
8385     if test -f $ac_dir/file; then
8386       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8387       if test -n "$file_magic_test_file"; then
8388         case $deplibs_check_method in
8389         "file_magic "*)
8390           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8391           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8392           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8393             $EGREP "$file_magic_regex" > /dev/null; then
8394             :
8395           else
8396             cat <<EOF 1>&2
8397
8398 *** Warning: the command libtool uses to detect shared libraries,
8399 *** $file_magic_cmd, produces output that libtool cannot recognize.
8400 *** The result is that libtool may fail to recognize shared libraries
8401 *** as such.  This will affect the creation of libtool libraries that
8402 *** depend on shared libraries, but programs linked with such libtool
8403 *** libraries will work regardless of this problem.  Nevertheless, you
8404 *** may want to report the problem to your system manager and/or to
8405 *** bug-libtool@gnu.org
8406
8407 EOF
8408           fi ;;
8409         esac
8410       fi
8411       break
8412     fi
8413   done
8414   IFS="$lt_save_ifs"
8415   MAGIC_CMD="$lt_save_MAGIC_CMD"
8416   ;;
8417 esac
8418 fi
8419
8420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8421 if test -n "$MAGIC_CMD"; then
8422   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8423 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8424 else
8425   { echo "$as_me:$LINENO: result: no" >&5
8426 echo "${ECHO_T}no" >&6; }
8427 fi
8428
8429   else
8430     MAGIC_CMD=:
8431   fi
8432 fi
8433
8434   fi
8435   ;;
8436 esac
8437
8438 enable_dlopen=no
8439 enable_win32_dll=yes
8440
8441 # Check whether --enable-libtool-lock was given.
8442 if test "${enable_libtool_lock+set}" = set; then
8443   enableval=$enable_libtool_lock;
8444 fi
8445
8446 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8447
8448
8449 # Check whether --with-pic was given.
8450 if test "${with_pic+set}" = set; then
8451   withval=$with_pic; pic_mode="$withval"
8452 else
8453   pic_mode=default
8454 fi
8455
8456 test -z "$pic_mode" && pic_mode=default
8457
8458 # Use C for the default configuration in the libtool script
8459 tagname=
8460 lt_save_CC="$CC"
8461 ac_ext=c
8462 ac_cpp='$CPP $CPPFLAGS'
8463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8466
8467
8468 # Source file extension for C test sources.
8469 ac_ext=c
8470
8471 # Object file extension for compiled C test sources.
8472 objext=o
8473 objext=$objext
8474
8475 # Code to be used in simple compile tests
8476 lt_simple_compile_test_code="int some_variable = 0;\n"
8477
8478 # Code to be used in simple link tests
8479 lt_simple_link_test_code='int main(){return(0);}\n'
8480
8481
8482 # If no C compiler was specified, use CC.
8483 LTCC=${LTCC-"$CC"}
8484
8485 # If no C compiler flags were specified, use CFLAGS.
8486 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8487
8488 # Allow CC to be a program name with arguments.
8489 compiler=$CC
8490
8491
8492 # save warnings/boilerplate of simple test code
8493 ac_outfile=conftest.$ac_objext
8494 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8495 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8496 _lt_compiler_boilerplate=`cat conftest.err`
8497 $rm conftest*
8498
8499 ac_outfile=conftest.$ac_objext
8500 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8501 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8502 _lt_linker_boilerplate=`cat conftest.err`
8503 $rm conftest*
8504
8505
8506
8507 lt_prog_compiler_no_builtin_flag=
8508
8509 if test "$GCC" = yes; then
8510   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8511
8512
8513 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8514 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8515 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8516   echo $ECHO_N "(cached) $ECHO_C" >&6
8517 else
8518   lt_cv_prog_compiler_rtti_exceptions=no
8519   ac_outfile=conftest.$ac_objext
8520    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8521    lt_compiler_flag="-fno-rtti -fno-exceptions"
8522    # Insert the option either (1) after the last *FLAGS variable, or
8523    # (2) before a word containing "conftest.", or (3) at the end.
8524    # Note that $ac_compile itself does not contain backslashes and begins
8525    # with a dollar sign (not a hyphen), so the echo should work correctly.
8526    # The option is referenced via a variable to avoid confusing sed.
8527    lt_compile=`echo "$ac_compile" | $SED \
8528    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8529    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8530    -e 's:$: $lt_compiler_flag:'`
8531    (eval echo "\"\$as_me:8531: $lt_compile\"" >&5)
8532    (eval "$lt_compile" 2>conftest.err)
8533    ac_status=$?
8534    cat conftest.err >&5
8535    echo "$as_me:8535: \$? = $ac_status" >&5
8536    if (exit $ac_status) && test -s "$ac_outfile"; then
8537      # The compiler can only warn and ignore the option if not recognized
8538      # So say no if there are warnings other than the usual output.
8539      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8540      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8541      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8542        lt_cv_prog_compiler_rtti_exceptions=yes
8543      fi
8544    fi
8545    $rm conftest*
8546
8547 fi
8548 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8549 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8550
8551 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8552     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8553 else
8554     :
8555 fi
8556
8557 fi
8558
8559 lt_prog_compiler_wl=
8560 lt_prog_compiler_pic=
8561 lt_prog_compiler_static=
8562
8563 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8564 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8565
8566   if test "$GCC" = yes; then
8567     lt_prog_compiler_wl='-Wl,'
8568     lt_prog_compiler_static='-static'
8569
8570     case $host_os in
8571       aix*)
8572       # All AIX code is PIC.
8573       if test "$host_cpu" = ia64; then
8574         # AIX 5 now supports IA64 processor
8575         lt_prog_compiler_static='-Bstatic'
8576       fi
8577       ;;
8578
8579     amigaos*)
8580       # FIXME: we need at least 68020 code to build shared libraries, but
8581       # adding the `-m68020' flag to GCC prevents building anything better,
8582       # like `-m68040'.
8583       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8584       ;;
8585
8586     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8587       # PIC is the default for these OSes.
8588       ;;
8589
8590     mingw* | pw32* | os2*)
8591       # This hack is so that the source file can tell whether it is being
8592       # built for inclusion in a dll (and should export symbols for example).
8593       lt_prog_compiler_pic='-DDLL_EXPORT'
8594       ;;
8595
8596     darwin* | rhapsody*)
8597       # PIC is the default on this platform
8598       # Common symbols not allowed in MH_DYLIB files
8599       lt_prog_compiler_pic='-fno-common'
8600       ;;
8601
8602     interix3*)
8603       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8604       # Instead, we relocate shared libraries at runtime.
8605       ;;
8606
8607     msdosdjgpp*)
8608       # Just because we use GCC doesn't mean we suddenly get shared libraries
8609       # on systems that don't support them.
8610       lt_prog_compiler_can_build_shared=no
8611       enable_shared=no
8612       ;;
8613
8614     sysv4*MP*)
8615       if test -d /usr/nec; then
8616         lt_prog_compiler_pic=-Kconform_pic
8617       fi
8618       ;;
8619
8620     hpux*)
8621       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8622       # not for PA HP-UX.
8623       case $host_cpu in
8624       hppa*64*|ia64*)
8625         # +Z the default
8626         ;;
8627       *)
8628         lt_prog_compiler_pic='-fPIC'
8629         ;;
8630       esac
8631       ;;
8632
8633     *)
8634       lt_prog_compiler_pic='-fPIC'
8635       ;;
8636     esac
8637   else
8638     # PORTME Check for flag to pass linker flags through the system compiler.
8639     case $host_os in
8640     aix*)
8641       lt_prog_compiler_wl='-Wl,'
8642       if test "$host_cpu" = ia64; then
8643         # AIX 5 now supports IA64 processor
8644         lt_prog_compiler_static='-Bstatic'
8645       else
8646         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8647       fi
8648       ;;
8649       darwin*)
8650         # PIC is the default on this platform
8651         # Common symbols not allowed in MH_DYLIB files
8652        case $cc_basename in
8653          xlc*)
8654          lt_prog_compiler_pic='-qnocommon'
8655          lt_prog_compiler_wl='-Wl,'
8656          ;;
8657        esac
8658        ;;
8659
8660     mingw* | pw32* | os2*)
8661       # This hack is so that the source file can tell whether it is being
8662       # built for inclusion in a dll (and should export symbols for example).
8663       lt_prog_compiler_pic='-DDLL_EXPORT'
8664       ;;
8665
8666     hpux9* | hpux10* | hpux11*)
8667       lt_prog_compiler_wl='-Wl,'
8668       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8669       # not for PA HP-UX.
8670       case $host_cpu in
8671       hppa*64*|ia64*)
8672         # +Z the default
8673         ;;
8674       *)
8675         lt_prog_compiler_pic='+Z'
8676         ;;
8677       esac
8678       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8679       lt_prog_compiler_static='${wl}-a ${wl}archive'
8680       ;;
8681
8682     irix5* | irix6* | nonstopux*)
8683       lt_prog_compiler_wl='-Wl,'
8684       # PIC (with -KPIC) is the default.
8685       lt_prog_compiler_static='-non_shared'
8686       ;;
8687
8688     newsos6)
8689       lt_prog_compiler_pic='-KPIC'
8690       lt_prog_compiler_static='-Bstatic'
8691       ;;
8692
8693     linux* | k*bsd*-gnu)
8694       case $cc_basename in
8695       icc* | ecc*)
8696         lt_prog_compiler_wl='-Wl,'
8697         lt_prog_compiler_pic='-KPIC'
8698         lt_prog_compiler_static='-static'
8699         ;;
8700       pgcc* | pgf77* | pgf90* | pgf95*)
8701         # Portland Group compilers (*not* the Pentium gcc compiler,
8702         # which looks to be a dead project)
8703         lt_prog_compiler_wl='-Wl,'
8704         lt_prog_compiler_pic='-fpic'
8705         lt_prog_compiler_static='-Bstatic'
8706         ;;
8707       ccc*)
8708         lt_prog_compiler_wl='-Wl,'
8709         # All Alpha code is PIC.
8710         lt_prog_compiler_static='-non_shared'
8711         ;;
8712       esac
8713       ;;
8714
8715     osf3* | osf4* | osf5*)
8716       lt_prog_compiler_wl='-Wl,'
8717       # All OSF/1 code is PIC.
8718       lt_prog_compiler_static='-non_shared'
8719       ;;
8720
8721     solaris*)
8722       lt_prog_compiler_pic='-KPIC'
8723       lt_prog_compiler_static='-Bstatic'
8724       case $cc_basename in
8725       f77* | f90* | f95*)
8726         lt_prog_compiler_wl='-Qoption ld ';;
8727       *)
8728         lt_prog_compiler_wl='-Wl,';;
8729       esac
8730       ;;
8731
8732     sunos4*)
8733       lt_prog_compiler_wl='-Qoption ld '
8734       lt_prog_compiler_pic='-PIC'
8735       lt_prog_compiler_static='-Bstatic'
8736       ;;
8737
8738     sysv4 | sysv4.2uw2* | sysv4.3*)
8739       lt_prog_compiler_wl='-Wl,'
8740       lt_prog_compiler_pic='-KPIC'
8741       lt_prog_compiler_static='-Bstatic'
8742       ;;
8743
8744     sysv4*MP*)
8745       if test -d /usr/nec ;then
8746         lt_prog_compiler_pic='-Kconform_pic'
8747         lt_prog_compiler_static='-Bstatic'
8748       fi
8749       ;;
8750
8751     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8752       lt_prog_compiler_wl='-Wl,'
8753       lt_prog_compiler_pic='-KPIC'
8754       lt_prog_compiler_static='-Bstatic'
8755       ;;
8756
8757     unicos*)
8758       lt_prog_compiler_wl='-Wl,'
8759       lt_prog_compiler_can_build_shared=no
8760       ;;
8761
8762     uts4*)
8763       lt_prog_compiler_pic='-pic'
8764       lt_prog_compiler_static='-Bstatic'
8765       ;;
8766
8767     *)
8768       lt_prog_compiler_can_build_shared=no
8769       ;;
8770     esac
8771   fi
8772
8773 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8774 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8775
8776 #
8777 # Check to make sure the PIC flag actually works.
8778 #
8779 if test -n "$lt_prog_compiler_pic"; then
8780
8781 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8782 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8783 if test "${lt_prog_compiler_pic_works+set}" = set; then
8784   echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786   lt_prog_compiler_pic_works=no
8787   ac_outfile=conftest.$ac_objext
8788    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8789    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8790    # Insert the option either (1) after the last *FLAGS variable, or
8791    # (2) before a word containing "conftest.", or (3) at the end.
8792    # Note that $ac_compile itself does not contain backslashes and begins
8793    # with a dollar sign (not a hyphen), so the echo should work correctly.
8794    # The option is referenced via a variable to avoid confusing sed.
8795    lt_compile=`echo "$ac_compile" | $SED \
8796    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8797    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8798    -e 's:$: $lt_compiler_flag:'`
8799    (eval echo "\"\$as_me:8799: $lt_compile\"" >&5)
8800    (eval "$lt_compile" 2>conftest.err)
8801    ac_status=$?
8802    cat conftest.err >&5
8803    echo "$as_me:8803: \$? = $ac_status" >&5
8804    if (exit $ac_status) && test -s "$ac_outfile"; then
8805      # The compiler can only warn and ignore the option if not recognized
8806      # So say no if there are warnings other than the usual output.
8807      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8808      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8809      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8810        lt_prog_compiler_pic_works=yes
8811      fi
8812    fi
8813    $rm conftest*
8814
8815 fi
8816 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8817 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8818
8819 if test x"$lt_prog_compiler_pic_works" = xyes; then
8820     case $lt_prog_compiler_pic in
8821      "" | " "*) ;;
8822      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8823      esac
8824 else
8825     lt_prog_compiler_pic=
8826      lt_prog_compiler_can_build_shared=no
8827 fi
8828
8829 fi
8830 case $host_os in
8831   # For platforms which do not support PIC, -DPIC is meaningless:
8832   *djgpp*)
8833     lt_prog_compiler_pic=
8834     ;;
8835   *)
8836     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8837     ;;
8838 esac
8839
8840 #
8841 # Check to make sure the static flag actually works.
8842 #
8843 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8844 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8845 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8846 if test "${lt_prog_compiler_static_works+set}" = set; then
8847   echo $ECHO_N "(cached) $ECHO_C" >&6
8848 else
8849   lt_prog_compiler_static_works=no
8850    save_LDFLAGS="$LDFLAGS"
8851    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8852    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8853    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8854      # The linker can only warn and ignore the option if not recognized
8855      # So say no if there are warnings
8856      if test -s conftest.err; then
8857        # Append any errors to the config.log.
8858        cat conftest.err 1>&5
8859        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8860        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8861        if diff conftest.exp conftest.er2 >/dev/null; then
8862          lt_prog_compiler_static_works=yes
8863        fi
8864      else
8865        lt_prog_compiler_static_works=yes
8866      fi
8867    fi
8868    $rm conftest*
8869    LDFLAGS="$save_LDFLAGS"
8870
8871 fi
8872 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8873 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8874
8875 if test x"$lt_prog_compiler_static_works" = xyes; then
8876     :
8877 else
8878     lt_prog_compiler_static=
8879 fi
8880
8881
8882 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8883 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8884 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8885   echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887   lt_cv_prog_compiler_c_o=no
8888    $rm -r conftest 2>/dev/null
8889    mkdir conftest
8890    cd conftest
8891    mkdir out
8892    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8893
8894    lt_compiler_flag="-o out/conftest2.$ac_objext"
8895    # Insert the option either (1) after the last *FLAGS variable, or
8896    # (2) before a word containing "conftest.", or (3) at the end.
8897    # Note that $ac_compile itself does not contain backslashes and begins
8898    # with a dollar sign (not a hyphen), so the echo should work correctly.
8899    lt_compile=`echo "$ac_compile" | $SED \
8900    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8901    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8902    -e 's:$: $lt_compiler_flag:'`
8903    (eval echo "\"\$as_me:8903: $lt_compile\"" >&5)
8904    (eval "$lt_compile" 2>out/conftest.err)
8905    ac_status=$?
8906    cat out/conftest.err >&5
8907    echo "$as_me:8907: \$? = $ac_status" >&5
8908    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8909    then
8910      # The compiler can only warn and ignore the option if not recognized
8911      # So say no if there are warnings
8912      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8913      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8914      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8915        lt_cv_prog_compiler_c_o=yes
8916      fi
8917    fi
8918    chmod u+w . 2>&5
8919    $rm conftest*
8920    # SGI C++ compiler will create directory out/ii_files/ for
8921    # template instantiation
8922    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8923    $rm out/* && rmdir out
8924    cd ..
8925    rmdir conftest
8926    $rm conftest*
8927
8928 fi
8929 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8930 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8931
8932
8933 hard_links="nottested"
8934 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8935   # do not overwrite the value of need_locks provided by the user
8936   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8937 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8938   hard_links=yes
8939   $rm conftest*
8940   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8941   touch conftest.a
8942   ln conftest.a conftest.b 2>&5 || hard_links=no
8943   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8944   { echo "$as_me:$LINENO: result: $hard_links" >&5
8945 echo "${ECHO_T}$hard_links" >&6; }
8946   if test "$hard_links" = no; then
8947     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8948 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8949     need_locks=warn
8950   fi
8951 else
8952   need_locks=no
8953 fi
8954
8955 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8956 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8957
8958   runpath_var=
8959   allow_undefined_flag=
8960   enable_shared_with_static_runtimes=no
8961   archive_cmds=
8962   archive_expsym_cmds=
8963   old_archive_From_new_cmds=
8964   old_archive_from_expsyms_cmds=
8965   export_dynamic_flag_spec=
8966   whole_archive_flag_spec=
8967   thread_safe_flag_spec=
8968   hardcode_libdir_flag_spec=
8969   hardcode_libdir_flag_spec_ld=
8970   hardcode_libdir_separator=
8971   hardcode_direct=no
8972   hardcode_minus_L=no
8973   hardcode_shlibpath_var=unsupported
8974   link_all_deplibs=unknown
8975   hardcode_automatic=no
8976   module_cmds=
8977   module_expsym_cmds=
8978   always_export_symbols=no
8979   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8980   # include_expsyms should be a list of space-separated symbols to be *always*
8981   # included in the symbol list
8982   include_expsyms=
8983   # exclude_expsyms can be an extended regexp of symbols to exclude
8984   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8985   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8986   # as well as any symbol that contains `d'.
8987   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8988   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8989   # platforms (ab)use it in PIC code, but their linkers get confused if
8990   # the symbol is explicitly referenced.  Since portable code cannot
8991   # rely on this symbol name, it's probably fine to never include it in
8992   # preloaded symbol tables.
8993   extract_expsyms_cmds=
8994   # Just being paranoid about ensuring that cc_basename is set.
8995   for cc_temp in $compiler""; do
8996   case $cc_temp in
8997     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8998     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8999     \-*) ;;
9000     *) break;;
9001   esac
9002 done
9003 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9004
9005   case $host_os in
9006   cygwin* | mingw* | pw32*)
9007     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9008     # When not using gcc, we currently assume that we are using
9009     # Microsoft Visual C++.
9010     if test "$GCC" != yes; then
9011       with_gnu_ld=no
9012     fi
9013     ;;
9014   interix*)
9015     # we just hope/assume this is gcc and not c89 (= MSVC++)
9016     with_gnu_ld=yes
9017     ;;
9018   openbsd*)
9019     with_gnu_ld=no
9020     ;;
9021   esac
9022
9023   ld_shlibs=yes
9024   if test "$with_gnu_ld" = yes; then
9025     # If archive_cmds runs LD, not CC, wlarc should be empty
9026     wlarc='${wl}'
9027
9028     # Set some defaults for GNU ld with shared library support. These
9029     # are reset later if shared libraries are not supported. Putting them
9030     # here allows them to be overridden if necessary.
9031     runpath_var=LD_RUN_PATH
9032     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9033     export_dynamic_flag_spec='${wl}--export-dynamic'
9034     # ancient GNU ld didn't support --whole-archive et. al.
9035     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9036         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9037       else
9038         whole_archive_flag_spec=
9039     fi
9040     supports_anon_versioning=no
9041     case `$LD -v 2>/dev/null` in
9042       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9043       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9044       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9045       *\ 2.11.*) ;; # other 2.11 versions
9046       *) supports_anon_versioning=yes ;;
9047     esac
9048
9049     # See if GNU ld supports shared libraries.
9050     case $host_os in
9051     aix3* | aix4* | aix5*)
9052       # On AIX/PPC, the GNU linker is very broken
9053       if test "$host_cpu" != ia64; then
9054         ld_shlibs=no
9055         cat <<EOF 1>&2
9056
9057 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9058 *** to be unable to reliably create shared libraries on AIX.
9059 *** Therefore, libtool is disabling shared libraries support.  If you
9060 *** really care for shared libraries, you may want to modify your PATH
9061 *** so that a non-GNU linker is found, and then restart.
9062
9063 EOF
9064       fi
9065       ;;
9066
9067     amigaos*)
9068       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9069       hardcode_libdir_flag_spec='-L$libdir'
9070       hardcode_minus_L=yes
9071
9072       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9073       # that the semantics of dynamic libraries on AmigaOS, at least up
9074       # to version 4, is to share data among multiple programs linked
9075       # with the same dynamic library.  Since this doesn't match the
9076       # behavior of shared libraries on other platforms, we can't use
9077       # them.
9078       ld_shlibs=no
9079       ;;
9080
9081     beos*)
9082       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9083         allow_undefined_flag=unsupported
9084         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9085         # support --undefined.  This deserves some investigation.  FIXME
9086         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9087       else
9088         ld_shlibs=no
9089       fi
9090       ;;
9091
9092     cygwin* | mingw* | pw32*)
9093       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9094       # as there is no search path for DLLs.
9095       hardcode_libdir_flag_spec='-L$libdir'
9096       allow_undefined_flag=unsupported
9097       always_export_symbols=no
9098       enable_shared_with_static_runtimes=yes
9099       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9100
9101       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9102         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9103         # If the export-symbols file already is a .def file (1st line
9104         # is EXPORTS), use it as is; otherwise, prepend...
9105         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9106           cp $export_symbols $output_objdir/$soname.def;
9107         else
9108           echo EXPORTS > $output_objdir/$soname.def;
9109           cat $export_symbols >> $output_objdir/$soname.def;
9110         fi~
9111         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9112       else
9113         ld_shlibs=no
9114       fi
9115       ;;
9116
9117     interix3*)
9118       hardcode_direct=no
9119       hardcode_shlibpath_var=no
9120       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9121       export_dynamic_flag_spec='${wl}-E'
9122       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9123       # Instead, shared libraries are loaded at an image base (0x10000000 by
9124       # default) and relocated if they conflict, which is a slow very memory
9125       # consuming and fragmenting process.  To avoid this, we pick a random,
9126       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9127       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9128       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9129       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9130       ;;
9131
9132     linux* | k*bsd*-gnu)
9133       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9134         tmp_addflag=
9135         case $cc_basename,$host_cpu in
9136         pgcc*)                          # Portland Group C compiler
9137           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9138           tmp_addflag=' $pic_flag'
9139           ;;
9140         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9141           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9142           tmp_addflag=' $pic_flag -Mnomain' ;;
9143         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9144           tmp_addflag=' -i_dynamic' ;;
9145         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9146           tmp_addflag=' -i_dynamic -nofor_main' ;;
9147         ifc* | ifort*)                  # Intel Fortran compiler
9148           tmp_addflag=' -nofor_main' ;;
9149         esac
9150         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9151
9152         if test $supports_anon_versioning = yes; then
9153           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9154   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9155   $echo "local: *; };" >> $output_objdir/$libname.ver~
9156           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9157         fi
9158         link_all_deplibs=no
9159       else
9160         ld_shlibs=no
9161       fi
9162       ;;
9163
9164     netbsd* | netbsdelf*-gnu)
9165       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9166         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9167         wlarc=
9168       else
9169         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9170         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9171       fi
9172       ;;
9173
9174     solaris*)
9175       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9176         ld_shlibs=no
9177         cat <<EOF 1>&2
9178
9179 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9180 *** create shared libraries on Solaris systems.  Therefore, libtool
9181 *** is disabling shared libraries support.  We urge you to upgrade GNU
9182 *** binutils to release 2.9.1 or newer.  Another option is to modify
9183 *** your PATH or compiler configuration so that the native linker is
9184 *** used, and then restart.
9185
9186 EOF
9187       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9188         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9189         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9190       else
9191         ld_shlibs=no
9192       fi
9193       ;;
9194
9195     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9196       case `$LD -v 2>&1` in
9197         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9198         ld_shlibs=no
9199         cat <<_LT_EOF 1>&2
9200
9201 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9202 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9203 *** is disabling shared libraries support.  We urge you to upgrade GNU
9204 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9205 *** your PATH or compiler configuration so that the native linker is
9206 *** used, and then restart.
9207
9208 _LT_EOF
9209         ;;
9210         *)
9211           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9212             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9213             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9214             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9215           else
9216             ld_shlibs=no
9217           fi
9218         ;;
9219       esac
9220       ;;
9221
9222     sunos4*)
9223       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9224       wlarc=
9225       hardcode_direct=yes
9226       hardcode_shlibpath_var=no
9227       ;;
9228
9229     *)
9230       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9231         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9232         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9233       else
9234         ld_shlibs=no
9235       fi
9236       ;;
9237     esac
9238
9239     if test "$ld_shlibs" = no; then
9240       runpath_var=
9241       hardcode_libdir_flag_spec=
9242       export_dynamic_flag_spec=
9243       whole_archive_flag_spec=
9244     fi
9245   else
9246     # PORTME fill in a description of your system's linker (not GNU ld)
9247     case $host_os in
9248     aix3*)
9249       allow_undefined_flag=unsupported
9250       always_export_symbols=yes
9251       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9252       # Note: this linker hardcodes the directories in LIBPATH if there
9253       # are no directories specified by -L.
9254       hardcode_minus_L=yes
9255       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9256         # Neither direct hardcoding nor static linking is supported with a
9257         # broken collect2.
9258         hardcode_direct=unsupported
9259       fi
9260       ;;
9261
9262     aix4* | aix5*)
9263       if test "$host_cpu" = ia64; then
9264         # On IA64, the linker does run time linking by default, so we don't
9265         # have to do anything special.
9266         aix_use_runtimelinking=no
9267         exp_sym_flag='-Bexport'
9268         no_entry_flag=""
9269       else
9270         # If we're using GNU nm, then we don't want the "-C" option.
9271         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9272         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9273           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9274         else
9275           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9276         fi
9277         aix_use_runtimelinking=no
9278
9279         # Test if we are trying to use run time linking or normal
9280         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9281         # need to do runtime linking.
9282         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9283           for ld_flag in $LDFLAGS; do
9284           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9285             aix_use_runtimelinking=yes
9286             break
9287           fi
9288           done
9289           ;;
9290         esac
9291
9292         exp_sym_flag='-bexport'
9293         no_entry_flag='-bnoentry'
9294       fi
9295
9296       # When large executables or shared objects are built, AIX ld can
9297       # have problems creating the table of contents.  If linking a library
9298       # or program results in "error TOC overflow" add -mminimal-toc to
9299       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9300       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9301
9302       archive_cmds=''
9303       hardcode_direct=yes
9304       hardcode_libdir_separator=':'
9305       link_all_deplibs=yes
9306
9307       if test "$GCC" = yes; then
9308         case $host_os in aix4.[012]|aix4.[012].*)
9309         # We only want to do this on AIX 4.2 and lower, the check
9310         # below for broken collect2 doesn't work under 4.3+
9311           collect2name=`${CC} -print-prog-name=collect2`
9312           if test -f "$collect2name" && \
9313            strings "$collect2name" | grep resolve_lib_name >/dev/null
9314           then
9315           # We have reworked collect2
9316           hardcode_direct=yes
9317           else
9318           # We have old collect2
9319           hardcode_direct=unsupported
9320           # It fails to find uninstalled libraries when the uninstalled
9321           # path is not listed in the libpath.  Setting hardcode_minus_L
9322           # to unsupported forces relinking
9323           hardcode_minus_L=yes
9324           hardcode_libdir_flag_spec='-L$libdir'
9325           hardcode_libdir_separator=
9326           fi
9327           ;;
9328         esac
9329         shared_flag='-shared'
9330         if test "$aix_use_runtimelinking" = yes; then
9331           shared_flag="$shared_flag "'${wl}-G'
9332         fi
9333       else
9334         # not using gcc
9335         if test "$host_cpu" = ia64; then
9336         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9337         # chokes on -Wl,-G. The following line is correct:
9338           shared_flag='-G'
9339         else
9340           if test "$aix_use_runtimelinking" = yes; then
9341             shared_flag='${wl}-G'
9342           else
9343             shared_flag='${wl}-bM:SRE'
9344           fi
9345         fi
9346       fi
9347
9348       # It seems that -bexpall does not export symbols beginning with
9349       # underscore (_), so it is better to generate a list of symbols to export.
9350       always_export_symbols=yes
9351       if test "$aix_use_runtimelinking" = yes; then
9352         # Warning - without using the other runtime loading flags (-brtl),
9353         # -berok will link without error, but may produce a broken library.
9354         allow_undefined_flag='-berok'
9355        # Determine the default libpath from the value encoded in an empty executable.
9356        cat >conftest.$ac_ext <<_ACEOF
9357 /* confdefs.h.  */
9358 _ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h.  */
9362
9363 int
9364 main ()
9365 {
9366
9367   ;
9368   return 0;
9369 }
9370 _ACEOF
9371 rm -f conftest.$ac_objext conftest$ac_exeext
9372 if { (ac_try="$ac_link"
9373 case "(($ac_try" in
9374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375   *) ac_try_echo=$ac_try;;
9376 esac
9377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378   (eval "$ac_link") 2>conftest.er1
9379   ac_status=$?
9380   grep -v '^ *+' conftest.er1 >conftest.err
9381   rm -f conftest.er1
9382   cat conftest.err >&5
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); } && {
9385          test -z "$ac_c_werror_flag" ||
9386          test ! -s conftest.err
9387        } && test -s conftest$ac_exeext &&
9388        $as_test_x conftest$ac_exeext; then
9389
9390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9391 }'`
9392 # Check for a 64-bit object if we didn't find anything.
9393 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9394 }'`; fi
9395 else
9396   echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9398
9399
9400 fi
9401
9402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9403       conftest$ac_exeext conftest.$ac_ext
9404 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9405
9406        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9407         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9408        else
9409         if test "$host_cpu" = ia64; then
9410           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9411           allow_undefined_flag="-z nodefs"
9412           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9413         else
9414          # Determine the default libpath from the value encoded in an empty executable.
9415          cat >conftest.$ac_ext <<_ACEOF
9416 /* confdefs.h.  */
9417 _ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h.  */
9421
9422 int
9423 main ()
9424 {
9425
9426   ;
9427   return 0;
9428 }
9429 _ACEOF
9430 rm -f conftest.$ac_objext conftest$ac_exeext
9431 if { (ac_try="$ac_link"
9432 case "(($ac_try" in
9433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9434   *) ac_try_echo=$ac_try;;
9435 esac
9436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9437   (eval "$ac_link") 2>conftest.er1
9438   ac_status=$?
9439   grep -v '^ *+' conftest.er1 >conftest.err
9440   rm -f conftest.er1
9441   cat conftest.err >&5
9442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443   (exit $ac_status); } && {
9444          test -z "$ac_c_werror_flag" ||
9445          test ! -s conftest.err
9446        } && test -s conftest$ac_exeext &&
9447        $as_test_x conftest$ac_exeext; then
9448
9449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9450 }'`
9451 # Check for a 64-bit object if we didn't find anything.
9452 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9453 }'`; fi
9454 else
9455   echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9457
9458
9459 fi
9460
9461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9462       conftest$ac_exeext conftest.$ac_ext
9463 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9464
9465          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9466           # Warning - without using the other run time loading flags,
9467           # -berok will link without error, but may produce a broken library.
9468           no_undefined_flag=' ${wl}-bernotok'
9469           allow_undefined_flag=' ${wl}-berok'
9470           # Exported symbols can be pulled into shared objects from archives
9471           whole_archive_flag_spec='$convenience'
9472           archive_cmds_need_lc=yes
9473           # This is similar to how AIX traditionally builds its shared libraries.
9474           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9475         fi
9476       fi
9477       ;;
9478
9479     amigaos*)
9480       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9481       hardcode_libdir_flag_spec='-L$libdir'
9482       hardcode_minus_L=yes
9483       # see comment about different semantics on the GNU ld section
9484       ld_shlibs=no
9485       ;;
9486
9487     bsdi[45]*)
9488       export_dynamic_flag_spec=-rdynamic
9489       ;;
9490
9491     cygwin* | mingw* | pw32*)
9492       # When not using gcc, we currently assume that we are using
9493       # Microsoft Visual C++.
9494       # hardcode_libdir_flag_spec is actually meaningless, as there is
9495       # no search path for DLLs.
9496       hardcode_libdir_flag_spec=' '
9497       allow_undefined_flag=unsupported
9498       # Tell ltmain to make .lib files, not .a files.
9499       libext=lib
9500       # Tell ltmain to make .dll files, not .so files.
9501       shrext_cmds=".dll"
9502       # FIXME: Setting linknames here is a bad hack.
9503       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9504       # The linker will automatically build a .lib file if we build a DLL.
9505       old_archive_From_new_cmds='true'
9506       # FIXME: Should let the user specify the lib program.
9507       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9508       fix_srcfile_path='`cygpath -w "$srcfile"`'
9509       enable_shared_with_static_runtimes=yes
9510       ;;
9511
9512     darwin* | rhapsody*)
9513       case $host_os in
9514         rhapsody* | darwin1.[012])
9515          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9516          ;;
9517        *) # Darwin 1.3 on
9518          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9519            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9520          else
9521            case ${MACOSX_DEPLOYMENT_TARGET} in
9522              10.[012])
9523                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9524                ;;
9525              10.*)
9526                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9527                ;;
9528            esac
9529          fi
9530          ;;
9531       esac
9532       archive_cmds_need_lc=no
9533       hardcode_direct=no
9534       hardcode_automatic=yes
9535       hardcode_shlibpath_var=unsupported
9536       whole_archive_flag_spec=''
9537       link_all_deplibs=yes
9538     if test "$GCC" = yes ; then
9539         output_verbose_link_cmd='echo'
9540         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9541       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9542       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9543       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9544       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9545     else
9546       case $cc_basename in
9547         xlc*)
9548          output_verbose_link_cmd='echo'
9549          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9550          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9551           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9552          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9553           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9554           ;;
9555        *)
9556          ld_shlibs=no
9557           ;;
9558       esac
9559     fi
9560       ;;
9561
9562     dgux*)
9563       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9564       hardcode_libdir_flag_spec='-L$libdir'
9565       hardcode_shlibpath_var=no
9566       ;;
9567
9568     freebsd1*)
9569       ld_shlibs=no
9570       ;;
9571
9572     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9573     # support.  Future versions do this automatically, but an explicit c++rt0.o
9574     # does not break anything, and helps significantly (at the cost of a little
9575     # extra space).
9576     freebsd2.2*)
9577       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9578       hardcode_libdir_flag_spec='-R$libdir'
9579       hardcode_direct=yes
9580       hardcode_shlibpath_var=no
9581       ;;
9582
9583     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9584     freebsd2*)
9585       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9586       hardcode_direct=yes
9587       hardcode_minus_L=yes
9588       hardcode_shlibpath_var=no
9589       ;;
9590
9591     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9592     freebsd* | dragonfly*)
9593       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9594       hardcode_libdir_flag_spec='-R$libdir'
9595       hardcode_direct=yes
9596       hardcode_shlibpath_var=no
9597       ;;
9598
9599     hpux9*)
9600       if test "$GCC" = yes; then
9601         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9602       else
9603         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9604       fi
9605       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9606       hardcode_libdir_separator=:
9607       hardcode_direct=yes
9608
9609       # hardcode_minus_L: Not really in the search PATH,
9610       # but as the default location of the library.
9611       hardcode_minus_L=yes
9612       export_dynamic_flag_spec='${wl}-E'
9613       ;;
9614
9615     hpux10*)
9616       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9617         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9618       else
9619         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9620       fi
9621       if test "$with_gnu_ld" = no; then
9622         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9623         hardcode_libdir_separator=:
9624
9625         hardcode_direct=yes
9626         export_dynamic_flag_spec='${wl}-E'
9627
9628         # hardcode_minus_L: Not really in the search PATH,
9629         # but as the default location of the library.
9630         hardcode_minus_L=yes
9631       fi
9632       ;;
9633
9634     hpux11*)
9635       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9636         case $host_cpu in
9637         hppa*64*)
9638           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9639           ;;
9640         ia64*)
9641           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9642           ;;
9643         *)
9644           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9645           ;;
9646         esac
9647       else
9648         case $host_cpu in
9649         hppa*64*)
9650           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9651           ;;
9652         ia64*)
9653           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9654           ;;
9655         *)
9656           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9657           ;;
9658         esac
9659       fi
9660       if test "$with_gnu_ld" = no; then
9661         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9662         hardcode_libdir_separator=:
9663
9664         case $host_cpu in
9665         hppa*64*|ia64*)
9666           hardcode_libdir_flag_spec_ld='+b $libdir'
9667           hardcode_direct=no
9668           hardcode_shlibpath_var=no
9669           ;;
9670         *)
9671           hardcode_direct=yes
9672           export_dynamic_flag_spec='${wl}-E'
9673
9674           # hardcode_minus_L: Not really in the search PATH,
9675           # but as the default location of the library.
9676           hardcode_minus_L=yes
9677           ;;
9678         esac
9679       fi
9680       ;;
9681
9682     irix5* | irix6* | nonstopux*)
9683       if test "$GCC" = yes; then
9684         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9685       else
9686         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9687         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9688       fi
9689       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9690       hardcode_libdir_separator=:
9691       link_all_deplibs=yes
9692       ;;
9693
9694     netbsd* | netbsdelf*-gnu)
9695       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9696         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9697       else
9698         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9699       fi
9700       hardcode_libdir_flag_spec='-R$libdir'
9701       hardcode_direct=yes
9702       hardcode_shlibpath_var=no
9703       ;;
9704
9705     newsos6)
9706       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9707       hardcode_direct=yes
9708       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9709       hardcode_libdir_separator=:
9710       hardcode_shlibpath_var=no
9711       ;;
9712
9713     openbsd*)
9714       hardcode_direct=yes
9715       hardcode_shlibpath_var=no
9716       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9717         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9718         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9719         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9720         export_dynamic_flag_spec='${wl}-E'
9721       else
9722        case $host_os in
9723          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9724            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9725            hardcode_libdir_flag_spec='-R$libdir'
9726            ;;
9727          *)
9728            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9729            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9730            ;;
9731        esac
9732       fi
9733       ;;
9734
9735     os2*)
9736       hardcode_libdir_flag_spec='-L$libdir'
9737       hardcode_minus_L=yes
9738       allow_undefined_flag=unsupported
9739       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9740       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9741       ;;
9742
9743     osf3*)
9744       if test "$GCC" = yes; then
9745         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9746         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9747       else
9748         allow_undefined_flag=' -expect_unresolved \*'
9749         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9750       fi
9751       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9752       hardcode_libdir_separator=:
9753       ;;
9754
9755     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9756       if test "$GCC" = yes; then
9757         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9758         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9759         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9760       else
9761         allow_undefined_flag=' -expect_unresolved \*'
9762         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9763         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9764         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9765
9766         # Both c and cxx compiler support -rpath directly
9767         hardcode_libdir_flag_spec='-rpath $libdir'
9768       fi
9769       hardcode_libdir_separator=:
9770       ;;
9771
9772     solaris*)
9773       no_undefined_flag=' -z text'
9774       if test "$GCC" = yes; then
9775         wlarc='${wl}'
9776         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9777         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9778           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9779       else
9780         wlarc=''
9781         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9782         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9783         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9784       fi
9785       hardcode_libdir_flag_spec='-R$libdir'
9786       hardcode_shlibpath_var=no
9787       case $host_os in
9788       solaris2.[0-5] | solaris2.[0-5].*) ;;
9789       *)
9790         # The compiler driver will combine linker options so we
9791         # cannot just pass the convience library names through
9792         # without $wl, iff we do not link with $LD.
9793         # Luckily, gcc supports the same syntax we need for Sun Studio.
9794         # Supported since Solaris 2.6 (maybe 2.5.1?)
9795         case $wlarc in
9796         '')
9797           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9798         *)
9799           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9800         esac ;;
9801       esac
9802       link_all_deplibs=yes
9803       ;;
9804
9805     sunos4*)
9806       if test "x$host_vendor" = xsequent; then
9807         # Use $CC to link under sequent, because it throws in some extra .o
9808         # files that make .init and .fini sections work.
9809         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9810       else
9811         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9812       fi
9813       hardcode_libdir_flag_spec='-L$libdir'
9814       hardcode_direct=yes
9815       hardcode_minus_L=yes
9816       hardcode_shlibpath_var=no
9817       ;;
9818
9819     sysv4)
9820       case $host_vendor in
9821         sni)
9822           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9823           hardcode_direct=yes # is this really true???
9824         ;;
9825         siemens)
9826           ## LD is ld it makes a PLAMLIB
9827           ## CC just makes a GrossModule.
9828           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9829           reload_cmds='$CC -r -o $output$reload_objs'
9830           hardcode_direct=no
9831         ;;
9832         motorola)
9833           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9834           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9835         ;;
9836       esac
9837       runpath_var='LD_RUN_PATH'
9838       hardcode_shlibpath_var=no
9839       ;;
9840
9841     sysv4.3*)
9842       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9843       hardcode_shlibpath_var=no
9844       export_dynamic_flag_spec='-Bexport'
9845       ;;
9846
9847     sysv4*MP*)
9848       if test -d /usr/nec; then
9849         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9850         hardcode_shlibpath_var=no
9851         runpath_var=LD_RUN_PATH
9852         hardcode_runpath_var=yes
9853         ld_shlibs=yes
9854       fi
9855       ;;
9856
9857     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9858       no_undefined_flag='${wl}-z,text'
9859       archive_cmds_need_lc=no
9860       hardcode_shlibpath_var=no
9861       runpath_var='LD_RUN_PATH'
9862
9863       if test "$GCC" = yes; then
9864         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9865         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9866       else
9867         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9868         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9869       fi
9870       ;;
9871
9872     sysv5* | sco3.2v5* | sco5v6*)
9873       # Note: We can NOT use -z defs as we might desire, because we do not
9874       # link with -lc, and that would cause any symbols used from libc to
9875       # always be unresolved, which means just about no library would
9876       # ever link correctly.  If we're not using GNU ld we use -z text
9877       # though, which does catch some bad symbols but isn't as heavy-handed
9878       # as -z defs.
9879       no_undefined_flag='${wl}-z,text'
9880       allow_undefined_flag='${wl}-z,nodefs'
9881       archive_cmds_need_lc=no
9882       hardcode_shlibpath_var=no
9883       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9884       hardcode_libdir_separator=':'
9885       link_all_deplibs=yes
9886       export_dynamic_flag_spec='${wl}-Bexport'
9887       runpath_var='LD_RUN_PATH'
9888
9889       if test "$GCC" = yes; then
9890         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9891         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9892       else
9893         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9894         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9895       fi
9896       ;;
9897
9898     uts4*)
9899       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9900       hardcode_libdir_flag_spec='-L$libdir'
9901       hardcode_shlibpath_var=no
9902       ;;
9903
9904     *)
9905       ld_shlibs=no
9906       ;;
9907     esac
9908   fi
9909
9910 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9911 echo "${ECHO_T}$ld_shlibs" >&6; }
9912 test "$ld_shlibs" = no && can_build_shared=no
9913
9914 #
9915 # Do we need to explicitly link libc?
9916 #
9917 case "x$archive_cmds_need_lc" in
9918 x|xyes)
9919   # Assume -lc should be added
9920   archive_cmds_need_lc=yes
9921
9922   if test "$enable_shared" = yes && test "$GCC" = yes; then
9923     case $archive_cmds in
9924     *'~'*)
9925       # FIXME: we may have to deal with multi-command sequences.
9926       ;;
9927     '$CC '*)
9928       # Test whether the compiler implicitly links with -lc since on some
9929       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9930       # to ld, don't add -lc before -lgcc.
9931       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9932 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9933       $rm conftest*
9934       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9935
9936       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9937   (eval $ac_compile) 2>&5
9938   ac_status=$?
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); } 2>conftest.err; then
9941         soname=conftest
9942         lib=conftest
9943         libobjs=conftest.$ac_objext
9944         deplibs=
9945         wl=$lt_prog_compiler_wl
9946         pic_flag=$lt_prog_compiler_pic
9947         compiler_flags=-v
9948         linker_flags=-v
9949         verstring=
9950         output_objdir=.
9951         libname=conftest
9952         lt_save_allow_undefined_flag=$allow_undefined_flag
9953         allow_undefined_flag=
9954         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9955   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9956   ac_status=$?
9957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958   (exit $ac_status); }
9959         then
9960           archive_cmds_need_lc=no
9961         else
9962           archive_cmds_need_lc=yes
9963         fi
9964         allow_undefined_flag=$lt_save_allow_undefined_flag
9965       else
9966         cat conftest.err 1>&5
9967       fi
9968       $rm conftest*
9969       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9970 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9971       ;;
9972     esac
9973   fi
9974   ;;
9975 esac
9976
9977 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9978 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9979 library_names_spec=
9980 libname_spec='lib$name'
9981 soname_spec=
9982 shrext_cmds=".so"
9983 postinstall_cmds=
9984 postuninstall_cmds=
9985 finish_cmds=
9986 finish_eval=
9987 shlibpath_var=
9988 shlibpath_overrides_runpath=unknown
9989 version_type=none
9990 dynamic_linker="$host_os ld.so"
9991 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9992 if test "$GCC" = yes; then
9993   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9994   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9995     # if the path contains ";" then we assume it to be the separator
9996     # otherwise default to the standard path separator (i.e. ":") - it is
9997     # assumed that no part of a normal pathname contains ";" but that should
9998     # okay in the real world where ";" in dirpaths is itself problematic.
9999     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10000   else
10001     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10002   fi
10003 else
10004   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10005 fi
10006 need_lib_prefix=unknown
10007 hardcode_into_libs=no
10008
10009 # when you set need_version to no, make sure it does not cause -set_version
10010 # flags to be left without arguments
10011 need_version=unknown
10012
10013 case $host_os in
10014 aix3*)
10015   version_type=linux
10016   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10017   shlibpath_var=LIBPATH
10018
10019   # AIX 3 has no versioning support, so we append a major version to the name.
10020   soname_spec='${libname}${release}${shared_ext}$major'
10021   ;;
10022
10023 aix4* | aix5*)
10024   version_type=linux
10025   need_lib_prefix=no
10026   need_version=no
10027   hardcode_into_libs=yes
10028   if test "$host_cpu" = ia64; then
10029     # AIX 5 supports IA64
10030     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10031     shlibpath_var=LD_LIBRARY_PATH
10032   else
10033     # With GCC up to 2.95.x, collect2 would create an import file
10034     # for dependence libraries.  The import file would start with
10035     # the line `#! .'.  This would cause the generated library to
10036     # depend on `.', always an invalid library.  This was fixed in
10037     # development snapshots of GCC prior to 3.0.
10038     case $host_os in
10039       aix4 | aix4.[01] | aix4.[01].*)
10040       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10041            echo ' yes '
10042            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10043         :
10044       else
10045         can_build_shared=no
10046       fi
10047       ;;
10048     esac
10049     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10050     # soname into executable. Probably we can add versioning support to
10051     # collect2, so additional links can be useful in future.
10052     if test "$aix_use_runtimelinking" = yes; then
10053       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10054       # instead of lib<name>.a to let people know that these are not
10055       # typical AIX shared libraries.
10056       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10057     else
10058       # We preserve .a as extension for shared libraries through AIX4.2
10059       # and later when we are not doing run time linking.
10060       library_names_spec='${libname}${release}.a $libname.a'
10061       soname_spec='${libname}${release}${shared_ext}$major'
10062     fi
10063     shlibpath_var=LIBPATH
10064   fi
10065   ;;
10066
10067 amigaos*)
10068   library_names_spec='$libname.ixlibrary $libname.a'
10069   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10070   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10071   ;;
10072
10073 beos*)
10074   library_names_spec='${libname}${shared_ext}'
10075   dynamic_linker="$host_os ld.so"
10076   shlibpath_var=LIBRARY_PATH
10077   ;;
10078
10079 bsdi[45]*)
10080   version_type=linux
10081   need_version=no
10082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10083   soname_spec='${libname}${release}${shared_ext}$major'
10084   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10085   shlibpath_var=LD_LIBRARY_PATH
10086   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10087   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10088   # the default ld.so.conf also contains /usr/contrib/lib and
10089   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10090   # libtool to hard-code these into programs
10091   ;;
10092
10093 cygwin* | mingw* | pw32*)
10094   version_type=windows
10095   shrext_cmds=".dll"
10096   need_version=no
10097   need_lib_prefix=no
10098
10099   case $GCC,$host_os in
10100   yes,cygwin* | yes,mingw* | yes,pw32*)
10101     library_names_spec='$libname.dll.a'
10102     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10103     postinstall_cmds='base_file=`basename \${file}`~
10104       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10105       dldir=$destdir/`dirname \$dlpath`~
10106       test -d \$dldir || mkdir -p \$dldir~
10107       $install_prog $dir/$dlname \$dldir/$dlname~
10108       chmod a+x \$dldir/$dlname'
10109     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10110       dlpath=$dir/\$dldll~
10111        $rm \$dlpath'
10112     shlibpath_overrides_runpath=yes
10113
10114     case $host_os in
10115     cygwin*)
10116       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10117       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10118       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10119       ;;
10120     mingw*)
10121       # MinGW DLLs use traditional 'lib' prefix
10122       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10123       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10124       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10125         # It is most probably a Windows format PATH printed by
10126         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10127         # path with ; separators, and with drive letters. We can handle the
10128         # drive letters (cygwin fileutils understands them), so leave them,
10129         # especially as we might pass files found there to a mingw objdump,
10130         # which wouldn't understand a cygwinified path. Ahh.
10131         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10132       else
10133         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10134       fi
10135       ;;
10136     pw32*)
10137       # pw32 DLLs use 'pw' prefix rather than 'lib'
10138       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10139       ;;
10140     esac
10141     ;;
10142
10143   *)
10144     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10145     ;;
10146   esac
10147   dynamic_linker='Win32 ld.exe'
10148   # FIXME: first we should search . and the directory the executable is in
10149   shlibpath_var=PATH
10150   ;;
10151
10152 darwin* | rhapsody*)
10153   dynamic_linker="$host_os dyld"
10154   version_type=darwin
10155   need_lib_prefix=no
10156   need_version=no
10157   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10158   soname_spec='${libname}${release}${major}$shared_ext'
10159   shlibpath_overrides_runpath=yes
10160   shlibpath_var=DYLD_LIBRARY_PATH
10161   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10162   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10163   if test "$GCC" = yes; then
10164     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10165   else
10166     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10167   fi
10168   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10169   ;;
10170
10171 dgux*)
10172   version_type=linux
10173   need_lib_prefix=no
10174   need_version=no
10175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10176   soname_spec='${libname}${release}${shared_ext}$major'
10177   shlibpath_var=LD_LIBRARY_PATH
10178   ;;
10179
10180 freebsd1*)
10181   dynamic_linker=no
10182   ;;
10183
10184 freebsd* | dragonfly*)
10185   # DragonFly does not have aout.  When/if they implement a new
10186   # versioning mechanism, adjust this.
10187   if test -x /usr/bin/objformat; then
10188     objformat=`/usr/bin/objformat`
10189   else
10190     case $host_os in
10191     freebsd[123]*) objformat=aout ;;
10192     *) objformat=elf ;;
10193     esac
10194   fi
10195   version_type=freebsd-$objformat
10196   case $version_type in
10197     freebsd-elf*)
10198       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10199       need_version=no
10200       need_lib_prefix=no
10201       ;;
10202     freebsd-*)
10203       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10204       need_version=yes
10205       ;;
10206   esac
10207   shlibpath_var=LD_LIBRARY_PATH
10208   case $host_os in
10209   freebsd2*)
10210     shlibpath_overrides_runpath=yes
10211     ;;
10212   freebsd3.[01]* | freebsdelf3.[01]*)
10213     shlibpath_overrides_runpath=yes
10214     hardcode_into_libs=yes
10215     ;;
10216   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10217   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10218     shlibpath_overrides_runpath=no
10219     hardcode_into_libs=yes
10220     ;;
10221   freebsd*) # from 4.6 on
10222     shlibpath_overrides_runpath=yes
10223     hardcode_into_libs=yes
10224     ;;
10225   esac
10226   ;;
10227
10228 gnu*)
10229   version_type=linux
10230   need_lib_prefix=no
10231   need_version=no
10232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10233   soname_spec='${libname}${release}${shared_ext}$major'
10234   shlibpath_var=LD_LIBRARY_PATH
10235   hardcode_into_libs=yes
10236   ;;
10237
10238 hpux9* | hpux10* | hpux11*)
10239   # Give a soname corresponding to the major version so that dld.sl refuses to
10240   # link against other versions.
10241   version_type=sunos
10242   need_lib_prefix=no
10243   need_version=no
10244   case $host_cpu in
10245   ia64*)
10246     shrext_cmds='.so'
10247     hardcode_into_libs=yes
10248     dynamic_linker="$host_os dld.so"
10249     shlibpath_var=LD_LIBRARY_PATH
10250     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10251     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252     soname_spec='${libname}${release}${shared_ext}$major'
10253     if test "X$HPUX_IA64_MODE" = X32; then
10254       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10255     else
10256       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10257     fi
10258     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10259     ;;
10260    hppa*64*)
10261      shrext_cmds='.sl'
10262      hardcode_into_libs=yes
10263      dynamic_linker="$host_os dld.sl"
10264      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10265      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10266      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267      soname_spec='${libname}${release}${shared_ext}$major'
10268      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10269      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10270      ;;
10271    *)
10272     shrext_cmds='.sl'
10273     dynamic_linker="$host_os dld.sl"
10274     shlibpath_var=SHLIB_PATH
10275     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10276     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277     soname_spec='${libname}${release}${shared_ext}$major'
10278     ;;
10279   esac
10280   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10281   postinstall_cmds='chmod 555 $lib'
10282   ;;
10283
10284 interix3*)
10285   version_type=linux
10286   need_lib_prefix=no
10287   need_version=no
10288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10289   soname_spec='${libname}${release}${shared_ext}$major'
10290   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10291   shlibpath_var=LD_LIBRARY_PATH
10292   shlibpath_overrides_runpath=no
10293   hardcode_into_libs=yes
10294   ;;
10295
10296 irix5* | irix6* | nonstopux*)
10297   case $host_os in
10298     nonstopux*) version_type=nonstopux ;;
10299     *)
10300         if test "$lt_cv_prog_gnu_ld" = yes; then
10301                 version_type=linux
10302         else
10303                 version_type=irix
10304         fi ;;
10305   esac
10306   need_lib_prefix=no
10307   need_version=no
10308   soname_spec='${libname}${release}${shared_ext}$major'
10309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10310   case $host_os in
10311   irix5* | nonstopux*)
10312     libsuff= shlibsuff=
10313     ;;
10314   *)
10315     case $LD in # libtool.m4 will add one of these switches to LD
10316     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10317       libsuff= shlibsuff= libmagic=32-bit;;
10318     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10319       libsuff=32 shlibsuff=N32 libmagic=N32;;
10320     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10321       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10322     *) libsuff= shlibsuff= libmagic=never-match;;
10323     esac
10324     ;;
10325   esac
10326   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10327   shlibpath_overrides_runpath=no
10328   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10329   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10330   hardcode_into_libs=yes
10331   ;;
10332
10333 # No shared lib support for Linux oldld, aout, or coff.
10334 linux*oldld* | linux*aout* | linux*coff*)
10335   dynamic_linker=no
10336   ;;
10337
10338 # This must be Linux ELF.
10339 linux* | k*bsd*-gnu)
10340   version_type=linux
10341   need_lib_prefix=no
10342   need_version=no
10343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344   soname_spec='${libname}${release}${shared_ext}$major'
10345   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10346   shlibpath_var=LD_LIBRARY_PATH
10347   shlibpath_overrides_runpath=no
10348   # This implies no fast_install, which is unacceptable.
10349   # Some rework will be needed to allow for fast_install
10350   # before this can be enabled.
10351   hardcode_into_libs=yes
10352
10353   # Append ld.so.conf contents to the search path
10354   if test -f /etc/ld.so.conf; then
10355     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10356     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10357   fi
10358
10359   # We used to test for /lib/ld.so.1 and disable shared libraries on
10360   # powerpc, because MkLinux only supported shared libraries with the
10361   # GNU dynamic linker.  Since this was broken with cross compilers,
10362   # most powerpc-linux boxes support dynamic linking these days and
10363   # people can always --disable-shared, the test was removed, and we
10364   # assume the GNU/Linux dynamic linker is in use.
10365   dynamic_linker='GNU/Linux ld.so'
10366   ;;
10367
10368 netbsdelf*-gnu)
10369   version_type=linux
10370   need_lib_prefix=no
10371   need_version=no
10372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10373   soname_spec='${libname}${release}${shared_ext}$major'
10374   shlibpath_var=LD_LIBRARY_PATH
10375   shlibpath_overrides_runpath=no
10376   hardcode_into_libs=yes
10377   dynamic_linker='NetBSD ld.elf_so'
10378   ;;
10379
10380 netbsd*)
10381   version_type=sunos
10382   need_lib_prefix=no
10383   need_version=no
10384   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10385     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10386     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10387     dynamic_linker='NetBSD (a.out) ld.so'
10388   else
10389     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10390     soname_spec='${libname}${release}${shared_ext}$major'
10391     dynamic_linker='NetBSD ld.elf_so'
10392   fi
10393   shlibpath_var=LD_LIBRARY_PATH
10394   shlibpath_overrides_runpath=yes
10395   hardcode_into_libs=yes
10396   ;;
10397
10398 newsos6)
10399   version_type=linux
10400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401   shlibpath_var=LD_LIBRARY_PATH
10402   shlibpath_overrides_runpath=yes
10403   ;;
10404
10405 nto-qnx*)
10406   version_type=linux
10407   need_lib_prefix=no
10408   need_version=no
10409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10410   soname_spec='${libname}${release}${shared_ext}$major'
10411   shlibpath_var=LD_LIBRARY_PATH
10412   shlibpath_overrides_runpath=yes
10413   ;;
10414
10415 openbsd*)
10416   version_type=sunos
10417   sys_lib_dlsearch_path_spec="/usr/lib"
10418   need_lib_prefix=no
10419   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10420   case $host_os in
10421     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10422     *)                         need_version=no  ;;
10423   esac
10424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10425   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10426   shlibpath_var=LD_LIBRARY_PATH
10427   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10428     case $host_os in
10429       openbsd2.[89] | openbsd2.[89].*)
10430         shlibpath_overrides_runpath=no
10431         ;;
10432       *)
10433         shlibpath_overrides_runpath=yes
10434         ;;
10435       esac
10436   else
10437     shlibpath_overrides_runpath=yes
10438   fi
10439   ;;
10440
10441 os2*)
10442   libname_spec='$name'
10443   shrext_cmds=".dll"
10444   need_lib_prefix=no
10445   library_names_spec='$libname${shared_ext} $libname.a'
10446   dynamic_linker='OS/2 ld.exe'
10447   shlibpath_var=LIBPATH
10448   ;;
10449
10450 osf3* | osf4* | osf5*)
10451   version_type=osf
10452   need_lib_prefix=no
10453   need_version=no
10454   soname_spec='${libname}${release}${shared_ext}$major'
10455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456   shlibpath_var=LD_LIBRARY_PATH
10457   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10458   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10459   ;;
10460
10461 solaris*)
10462   version_type=linux
10463   need_lib_prefix=no
10464   need_version=no
10465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466   soname_spec='${libname}${release}${shared_ext}$major'
10467   shlibpath_var=LD_LIBRARY_PATH
10468   shlibpath_overrides_runpath=yes
10469   hardcode_into_libs=yes
10470   # ldd complains unless libraries are executable
10471   postinstall_cmds='chmod +x $lib'
10472   ;;
10473
10474 sunos4*)
10475   version_type=sunos
10476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10477   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10478   shlibpath_var=LD_LIBRARY_PATH
10479   shlibpath_overrides_runpath=yes
10480   if test "$with_gnu_ld" = yes; then
10481     need_lib_prefix=no
10482   fi
10483   need_version=yes
10484   ;;
10485
10486 sysv4 | sysv4.3*)
10487   version_type=linux
10488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10489   soname_spec='${libname}${release}${shared_ext}$major'
10490   shlibpath_var=LD_LIBRARY_PATH
10491   case $host_vendor in
10492     sni)
10493       shlibpath_overrides_runpath=no
10494       need_lib_prefix=no
10495       export_dynamic_flag_spec='${wl}-Blargedynsym'
10496       runpath_var=LD_RUN_PATH
10497       ;;
10498     siemens)
10499       need_lib_prefix=no
10500       ;;
10501     motorola)
10502       need_lib_prefix=no
10503       need_version=no
10504       shlibpath_overrides_runpath=no
10505       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10506       ;;
10507   esac
10508   ;;
10509
10510 sysv4*MP*)
10511   if test -d /usr/nec ;then
10512     version_type=linux
10513     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10514     soname_spec='$libname${shared_ext}.$major'
10515     shlibpath_var=LD_LIBRARY_PATH
10516   fi
10517   ;;
10518
10519 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10520   version_type=freebsd-elf
10521   need_lib_prefix=no
10522   need_version=no
10523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10524   soname_spec='${libname}${release}${shared_ext}$major'
10525   shlibpath_var=LD_LIBRARY_PATH
10526   hardcode_into_libs=yes
10527   if test "$with_gnu_ld" = yes; then
10528     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10529     shlibpath_overrides_runpath=no
10530   else
10531     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10532     shlibpath_overrides_runpath=yes
10533     case $host_os in
10534       sco3.2v5*)
10535         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10536         ;;
10537     esac
10538   fi
10539   sys_lib_dlsearch_path_spec='/usr/lib'
10540   ;;
10541
10542 uts4*)
10543   version_type=linux
10544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10545   soname_spec='${libname}${release}${shared_ext}$major'
10546   shlibpath_var=LD_LIBRARY_PATH
10547   ;;
10548
10549 *)
10550   dynamic_linker=no
10551   ;;
10552 esac
10553 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10554 echo "${ECHO_T}$dynamic_linker" >&6; }
10555 test "$dynamic_linker" = no && can_build_shared=no
10556
10557 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10558 if test "$GCC" = yes; then
10559   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10560 fi
10561
10562 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10563 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10564 hardcode_action=
10565 if test -n "$hardcode_libdir_flag_spec" || \
10566    test -n "$runpath_var" || \
10567    test "X$hardcode_automatic" = "Xyes" ; then
10568
10569   # We can hardcode non-existant directories.
10570   if test "$hardcode_direct" != no &&
10571      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10572      # have to relink, otherwise we might link with an installed library
10573      # when we should be linking with a yet-to-be-installed one
10574      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10575      test "$hardcode_minus_L" != no; then
10576     # Linking always hardcodes the temporary library directory.
10577     hardcode_action=relink
10578   else
10579     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10580     hardcode_action=immediate
10581   fi
10582 else
10583   # We cannot hardcode anything, or else we can only hardcode existing
10584   # directories.
10585   hardcode_action=unsupported
10586 fi
10587 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10588 echo "${ECHO_T}$hardcode_action" >&6; }
10589
10590 if test "$hardcode_action" = relink; then
10591   # Fast installation is not supported
10592   enable_fast_install=no
10593 elif test "$shlibpath_overrides_runpath" = yes ||
10594      test "$enable_shared" = no; then
10595   # Fast installation is not necessary
10596   enable_fast_install=needless
10597 fi
10598
10599 striplib=
10600 old_striplib=
10601 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10602 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10603 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10604   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10605   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10606   { echo "$as_me:$LINENO: result: yes" >&5
10607 echo "${ECHO_T}yes" >&6; }
10608 else
10609 # FIXME - insert some real tests, host_os isn't really good enough
10610   case $host_os in
10611    darwin*)
10612        if test -n "$STRIP" ; then
10613          striplib="$STRIP -x"
10614          { echo "$as_me:$LINENO: result: yes" >&5
10615 echo "${ECHO_T}yes" >&6; }
10616        else
10617   { echo "$as_me:$LINENO: result: no" >&5
10618 echo "${ECHO_T}no" >&6; }
10619 fi
10620        ;;
10621    *)
10622   { echo "$as_me:$LINENO: result: no" >&5
10623 echo "${ECHO_T}no" >&6; }
10624     ;;
10625   esac
10626 fi
10627
10628 if test "x$enable_dlopen" != xyes; then
10629   enable_dlopen=unknown
10630   enable_dlopen_self=unknown
10631   enable_dlopen_self_static=unknown
10632 else
10633   lt_cv_dlopen=no
10634   lt_cv_dlopen_libs=
10635
10636   case $host_os in
10637   beos*)
10638     lt_cv_dlopen="load_add_on"
10639     lt_cv_dlopen_libs=
10640     lt_cv_dlopen_self=yes
10641     ;;
10642
10643   mingw* | pw32*)
10644     lt_cv_dlopen="LoadLibrary"
10645     lt_cv_dlopen_libs=
10646    ;;
10647
10648   cygwin*)
10649     lt_cv_dlopen="dlopen"
10650     lt_cv_dlopen_libs=
10651    ;;
10652
10653   darwin*)
10654   # if libdl is installed we need to link against it
10655     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10656 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10657 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10658   echo $ECHO_N "(cached) $ECHO_C" >&6
10659 else
10660   ac_check_lib_save_LIBS=$LIBS
10661 LIBS="-ldl  $LIBS"
10662 cat >conftest.$ac_ext <<_ACEOF
10663 /* confdefs.h.  */
10664 _ACEOF
10665 cat confdefs.h >>conftest.$ac_ext
10666 cat >>conftest.$ac_ext <<_ACEOF
10667 /* end confdefs.h.  */
10668
10669 /* Override any GCC internal prototype to avoid an error.
10670    Use char because int might match the return type of a GCC
10671    builtin and then its argument prototype would still apply.  */
10672 #ifdef __cplusplus
10673 extern "C"
10674 #endif
10675 char dlopen ();
10676 int
10677 main ()
10678 {
10679 return dlopen ();
10680   ;
10681   return 0;
10682 }
10683 _ACEOF
10684 rm -f conftest.$ac_objext conftest$ac_exeext
10685 if { (ac_try="$ac_link"
10686 case "(($ac_try" in
10687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688   *) ac_try_echo=$ac_try;;
10689 esac
10690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10691   (eval "$ac_link") 2>conftest.er1
10692   ac_status=$?
10693   grep -v '^ *+' conftest.er1 >conftest.err
10694   rm -f conftest.er1
10695   cat conftest.err >&5
10696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697   (exit $ac_status); } && {
10698          test -z "$ac_c_werror_flag" ||
10699          test ! -s conftest.err
10700        } && test -s conftest$ac_exeext &&
10701        $as_test_x conftest$ac_exeext; then
10702   ac_cv_lib_dl_dlopen=yes
10703 else
10704   echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.$ac_ext >&5
10706
10707         ac_cv_lib_dl_dlopen=no
10708 fi
10709
10710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10711       conftest$ac_exeext conftest.$ac_ext
10712 LIBS=$ac_check_lib_save_LIBS
10713 fi
10714 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10715 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10716 if test $ac_cv_lib_dl_dlopen = yes; then
10717   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10718 else
10719
10720     lt_cv_dlopen="dyld"
10721     lt_cv_dlopen_libs=
10722     lt_cv_dlopen_self=yes
10723
10724 fi
10725
10726    ;;
10727
10728   *)
10729     { echo "$as_me:$LINENO: checking for shl_load" >&5
10730 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10731 if test "${ac_cv_func_shl_load+set}" = set; then
10732   echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734   cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h.  */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h.  */
10740 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10742 #define shl_load innocuous_shl_load
10743
10744 /* System header to define __stub macros and hopefully few prototypes,
10745     which can conflict with char shl_load (); below.
10746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10747     <limits.h> exists even on freestanding compilers.  */
10748
10749 #ifdef __STDC__
10750 # include <limits.h>
10751 #else
10752 # include <assert.h>
10753 #endif
10754
10755 #undef shl_load
10756
10757 /* Override any GCC internal prototype to avoid an error.
10758    Use char because int might match the return type of a GCC
10759    builtin and then its argument prototype would still apply.  */
10760 #ifdef __cplusplus
10761 extern "C"
10762 #endif
10763 char shl_load ();
10764 /* The GNU C library defines this for functions which it implements
10765     to always fail with ENOSYS.  Some functions are actually named
10766     something starting with __ and the normal name is an alias.  */
10767 #if defined __stub_shl_load || defined __stub___shl_load
10768 choke me
10769 #endif
10770
10771 int
10772 main ()
10773 {
10774 return shl_load ();
10775   ;
10776   return 0;
10777 }
10778 _ACEOF
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (ac_try="$ac_link"
10781 case "(($ac_try" in
10782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783   *) ac_try_echo=$ac_try;;
10784 esac
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786   (eval "$ac_link") 2>conftest.er1
10787   ac_status=$?
10788   grep -v '^ *+' conftest.er1 >conftest.err
10789   rm -f conftest.er1
10790   cat conftest.err >&5
10791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); } && {
10793          test -z "$ac_c_werror_flag" ||
10794          test ! -s conftest.err
10795        } && test -s conftest$ac_exeext &&
10796        $as_test_x conftest$ac_exeext; then
10797   ac_cv_func_shl_load=yes
10798 else
10799   echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10801
10802         ac_cv_func_shl_load=no
10803 fi
10804
10805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10806       conftest$ac_exeext conftest.$ac_ext
10807 fi
10808 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10809 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10810 if test $ac_cv_func_shl_load = yes; then
10811   lt_cv_dlopen="shl_load"
10812 else
10813   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10814 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10815 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10816   echo $ECHO_N "(cached) $ECHO_C" >&6
10817 else
10818   ac_check_lib_save_LIBS=$LIBS
10819 LIBS="-ldld  $LIBS"
10820 cat >conftest.$ac_ext <<_ACEOF
10821 /* confdefs.h.  */
10822 _ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h.  */
10826
10827 /* Override any GCC internal prototype to avoid an error.
10828    Use char because int might match the return type of a GCC
10829    builtin and then its argument prototype would still apply.  */
10830 #ifdef __cplusplus
10831 extern "C"
10832 #endif
10833 char shl_load ();
10834 int
10835 main ()
10836 {
10837 return shl_load ();
10838   ;
10839   return 0;
10840 }
10841 _ACEOF
10842 rm -f conftest.$ac_objext conftest$ac_exeext
10843 if { (ac_try="$ac_link"
10844 case "(($ac_try" in
10845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846   *) ac_try_echo=$ac_try;;
10847 esac
10848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849   (eval "$ac_link") 2>conftest.er1
10850   ac_status=$?
10851   grep -v '^ *+' conftest.er1 >conftest.err
10852   rm -f conftest.er1
10853   cat conftest.err >&5
10854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855   (exit $ac_status); } && {
10856          test -z "$ac_c_werror_flag" ||
10857          test ! -s conftest.err
10858        } && test -s conftest$ac_exeext &&
10859        $as_test_x conftest$ac_exeext; then
10860   ac_cv_lib_dld_shl_load=yes
10861 else
10862   echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10864
10865         ac_cv_lib_dld_shl_load=no
10866 fi
10867
10868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10869       conftest$ac_exeext conftest.$ac_ext
10870 LIBS=$ac_check_lib_save_LIBS
10871 fi
10872 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10873 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10874 if test $ac_cv_lib_dld_shl_load = yes; then
10875   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10876 else
10877   { echo "$as_me:$LINENO: checking for dlopen" >&5
10878 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10879 if test "${ac_cv_func_dlopen+set}" = set; then
10880   echo $ECHO_N "(cached) $ECHO_C" >&6
10881 else
10882   cat >conftest.$ac_ext <<_ACEOF
10883 /* confdefs.h.  */
10884 _ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h.  */
10888 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10890 #define dlopen innocuous_dlopen
10891
10892 /* System header to define __stub macros and hopefully few prototypes,
10893     which can conflict with char dlopen (); below.
10894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10895     <limits.h> exists even on freestanding compilers.  */
10896
10897 #ifdef __STDC__
10898 # include <limits.h>
10899 #else
10900 # include <assert.h>
10901 #endif
10902
10903 #undef dlopen
10904
10905 /* Override any GCC internal prototype to avoid an error.
10906    Use char because int might match the return type of a GCC
10907    builtin and then its argument prototype would still apply.  */
10908 #ifdef __cplusplus
10909 extern "C"
10910 #endif
10911 char dlopen ();
10912 /* The GNU C library defines this for functions which it implements
10913     to always fail with ENOSYS.  Some functions are actually named
10914     something starting with __ and the normal name is an alias.  */
10915 #if defined __stub_dlopen || defined __stub___dlopen
10916 choke me
10917 #endif
10918
10919 int
10920 main ()
10921 {
10922 return dlopen ();
10923   ;
10924   return 0;
10925 }
10926 _ACEOF
10927 rm -f conftest.$ac_objext conftest$ac_exeext
10928 if { (ac_try="$ac_link"
10929 case "(($ac_try" in
10930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931   *) ac_try_echo=$ac_try;;
10932 esac
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934   (eval "$ac_link") 2>conftest.er1
10935   ac_status=$?
10936   grep -v '^ *+' conftest.er1 >conftest.err
10937   rm -f conftest.er1
10938   cat conftest.err >&5
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); } && {
10941          test -z "$ac_c_werror_flag" ||
10942          test ! -s conftest.err
10943        } && test -s conftest$ac_exeext &&
10944        $as_test_x conftest$ac_exeext; then
10945   ac_cv_func_dlopen=yes
10946 else
10947   echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10949
10950         ac_cv_func_dlopen=no
10951 fi
10952
10953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10954       conftest$ac_exeext conftest.$ac_ext
10955 fi
10956 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10957 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10958 if test $ac_cv_func_dlopen = yes; then
10959   lt_cv_dlopen="dlopen"
10960 else
10961   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10962 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10963 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10964   echo $ECHO_N "(cached) $ECHO_C" >&6
10965 else
10966   ac_check_lib_save_LIBS=$LIBS
10967 LIBS="-ldl  $LIBS"
10968 cat >conftest.$ac_ext <<_ACEOF
10969 /* confdefs.h.  */
10970 _ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h.  */
10974
10975 /* Override any GCC internal prototype to avoid an error.
10976    Use char because int might match the return type of a GCC
10977    builtin and then its argument prototype would still apply.  */
10978 #ifdef __cplusplus
10979 extern "C"
10980 #endif
10981 char dlopen ();
10982 int
10983 main ()
10984 {
10985 return dlopen ();
10986   ;
10987   return 0;
10988 }
10989 _ACEOF
10990 rm -f conftest.$ac_objext conftest$ac_exeext
10991 if { (ac_try="$ac_link"
10992 case "(($ac_try" in
10993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994   *) ac_try_echo=$ac_try;;
10995 esac
10996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997   (eval "$ac_link") 2>conftest.er1
10998   ac_status=$?
10999   grep -v '^ *+' conftest.er1 >conftest.err
11000   rm -f conftest.er1
11001   cat conftest.err >&5
11002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003   (exit $ac_status); } && {
11004          test -z "$ac_c_werror_flag" ||
11005          test ! -s conftest.err
11006        } && test -s conftest$ac_exeext &&
11007        $as_test_x conftest$ac_exeext; then
11008   ac_cv_lib_dl_dlopen=yes
11009 else
11010   echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11012
11013         ac_cv_lib_dl_dlopen=no
11014 fi
11015
11016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11017       conftest$ac_exeext conftest.$ac_ext
11018 LIBS=$ac_check_lib_save_LIBS
11019 fi
11020 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11021 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11022 if test $ac_cv_lib_dl_dlopen = yes; then
11023   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11024 else
11025   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11026 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11027 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11028   echo $ECHO_N "(cached) $ECHO_C" >&6
11029 else
11030   ac_check_lib_save_LIBS=$LIBS
11031 LIBS="-lsvld  $LIBS"
11032 cat >conftest.$ac_ext <<_ACEOF
11033 /* confdefs.h.  */
11034 _ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h.  */
11038
11039 /* Override any GCC internal prototype to avoid an error.
11040    Use char because int might match the return type of a GCC
11041    builtin and then its argument prototype would still apply.  */
11042 #ifdef __cplusplus
11043 extern "C"
11044 #endif
11045 char dlopen ();
11046 int
11047 main ()
11048 {
11049 return dlopen ();
11050   ;
11051   return 0;
11052 }
11053 _ACEOF
11054 rm -f conftest.$ac_objext conftest$ac_exeext
11055 if { (ac_try="$ac_link"
11056 case "(($ac_try" in
11057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11058   *) ac_try_echo=$ac_try;;
11059 esac
11060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11061   (eval "$ac_link") 2>conftest.er1
11062   ac_status=$?
11063   grep -v '^ *+' conftest.er1 >conftest.err
11064   rm -f conftest.er1
11065   cat conftest.err >&5
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); } && {
11068          test -z "$ac_c_werror_flag" ||
11069          test ! -s conftest.err
11070        } && test -s conftest$ac_exeext &&
11071        $as_test_x conftest$ac_exeext; then
11072   ac_cv_lib_svld_dlopen=yes
11073 else
11074   echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11076
11077         ac_cv_lib_svld_dlopen=no
11078 fi
11079
11080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11081       conftest$ac_exeext conftest.$ac_ext
11082 LIBS=$ac_check_lib_save_LIBS
11083 fi
11084 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11085 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11086 if test $ac_cv_lib_svld_dlopen = yes; then
11087   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11088 else
11089   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11090 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11091 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11092   echo $ECHO_N "(cached) $ECHO_C" >&6
11093 else
11094   ac_check_lib_save_LIBS=$LIBS
11095 LIBS="-ldld  $LIBS"
11096 cat >conftest.$ac_ext <<_ACEOF
11097 /* confdefs.h.  */
11098 _ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h.  */
11102
11103 /* Override any GCC internal prototype to avoid an error.
11104    Use char because int might match the return type of a GCC
11105    builtin and then its argument prototype would still apply.  */
11106 #ifdef __cplusplus
11107 extern "C"
11108 #endif
11109 char dld_link ();
11110 int
11111 main ()
11112 {
11113 return dld_link ();
11114   ;
11115   return 0;
11116 }
11117 _ACEOF
11118 rm -f conftest.$ac_objext conftest$ac_exeext
11119 if { (ac_try="$ac_link"
11120 case "(($ac_try" in
11121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122   *) ac_try_echo=$ac_try;;
11123 esac
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125   (eval "$ac_link") 2>conftest.er1
11126   ac_status=$?
11127   grep -v '^ *+' conftest.er1 >conftest.err
11128   rm -f conftest.er1
11129   cat conftest.err >&5
11130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131   (exit $ac_status); } && {
11132          test -z "$ac_c_werror_flag" ||
11133          test ! -s conftest.err
11134        } && test -s conftest$ac_exeext &&
11135        $as_test_x conftest$ac_exeext; then
11136   ac_cv_lib_dld_dld_link=yes
11137 else
11138   echo "$as_me: failed program was:" >&5
11139 sed 's/^/| /' conftest.$ac_ext >&5
11140
11141         ac_cv_lib_dld_dld_link=no
11142 fi
11143
11144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11145       conftest$ac_exeext conftest.$ac_ext
11146 LIBS=$ac_check_lib_save_LIBS
11147 fi
11148 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11149 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11150 if test $ac_cv_lib_dld_dld_link = yes; then
11151   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11152 fi
11153
11154
11155 fi
11156
11157
11158 fi
11159
11160
11161 fi
11162
11163
11164 fi
11165
11166
11167 fi
11168
11169     ;;
11170   esac
11171
11172   if test "x$lt_cv_dlopen" != xno; then
11173     enable_dlopen=yes
11174   else
11175     enable_dlopen=no
11176   fi
11177
11178   case $lt_cv_dlopen in
11179   dlopen)
11180     save_CPPFLAGS="$CPPFLAGS"
11181     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11182
11183     save_LDFLAGS="$LDFLAGS"
11184     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11185
11186     save_LIBS="$LIBS"
11187     LIBS="$lt_cv_dlopen_libs $LIBS"
11188
11189     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11190 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11191 if test "${lt_cv_dlopen_self+set}" = set; then
11192   echo $ECHO_N "(cached) $ECHO_C" >&6
11193 else
11194           if test "$cross_compiling" = yes; then :
11195   lt_cv_dlopen_self=cross
11196 else
11197   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11198   lt_status=$lt_dlunknown
11199   cat > conftest.$ac_ext <<EOF
11200 #line 11200 "configure"
11201 #include "confdefs.h"
11202
11203 #if HAVE_DLFCN_H
11204 #include <dlfcn.h>
11205 #endif
11206
11207 #include <stdio.h>
11208
11209 #ifdef RTLD_GLOBAL
11210 #  define LT_DLGLOBAL           RTLD_GLOBAL
11211 #else
11212 #  ifdef DL_GLOBAL
11213 #    define LT_DLGLOBAL         DL_GLOBAL
11214 #  else
11215 #    define LT_DLGLOBAL         0
11216 #  endif
11217 #endif
11218
11219 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11220    find out it does not work in some platform. */
11221 #ifndef LT_DLLAZY_OR_NOW
11222 #  ifdef RTLD_LAZY
11223 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11224 #  else
11225 #    ifdef DL_LAZY
11226 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11227 #    else
11228 #      ifdef RTLD_NOW
11229 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11230 #      else
11231 #        ifdef DL_NOW
11232 #          define LT_DLLAZY_OR_NOW      DL_NOW
11233 #        else
11234 #          define LT_DLLAZY_OR_NOW      0
11235 #        endif
11236 #      endif
11237 #    endif
11238 #  endif
11239 #endif
11240
11241 #ifdef __cplusplus
11242 extern "C" void exit (int);
11243 #endif
11244
11245 void fnord() { int i=42;}
11246 int main ()
11247 {
11248   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11249   int status = $lt_dlunknown;
11250
11251   if (self)
11252     {
11253       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11254       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11255       /* dlclose (self); */
11256     }
11257   else
11258     puts (dlerror ());
11259
11260     exit (status);
11261 }
11262 EOF
11263   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11264   (eval $ac_link) 2>&5
11265   ac_status=$?
11266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11268     (./conftest; exit; ) >&5 2>/dev/null
11269     lt_status=$?
11270     case x$lt_status in
11271       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11272       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11273       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11274     esac
11275   else :
11276     # compilation failed
11277     lt_cv_dlopen_self=no
11278   fi
11279 fi
11280 rm -fr conftest*
11281
11282
11283 fi
11284 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11285 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11286
11287     if test "x$lt_cv_dlopen_self" = xyes; then
11288       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11289       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11290 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11291 if test "${lt_cv_dlopen_self_static+set}" = set; then
11292   echo $ECHO_N "(cached) $ECHO_C" >&6
11293 else
11294           if test "$cross_compiling" = yes; then :
11295   lt_cv_dlopen_self_static=cross
11296 else
11297   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11298   lt_status=$lt_dlunknown
11299   cat > conftest.$ac_ext <<EOF
11300 #line 11300 "configure"
11301 #include "confdefs.h"
11302
11303 #if HAVE_DLFCN_H
11304 #include <dlfcn.h>
11305 #endif
11306
11307 #include <stdio.h>
11308
11309 #ifdef RTLD_GLOBAL
11310 #  define LT_DLGLOBAL           RTLD_GLOBAL
11311 #else
11312 #  ifdef DL_GLOBAL
11313 #    define LT_DLGLOBAL         DL_GLOBAL
11314 #  else
11315 #    define LT_DLGLOBAL         0
11316 #  endif
11317 #endif
11318
11319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11320    find out it does not work in some platform. */
11321 #ifndef LT_DLLAZY_OR_NOW
11322 #  ifdef RTLD_LAZY
11323 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11324 #  else
11325 #    ifdef DL_LAZY
11326 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11327 #    else
11328 #      ifdef RTLD_NOW
11329 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11330 #      else
11331 #        ifdef DL_NOW
11332 #          define LT_DLLAZY_OR_NOW      DL_NOW
11333 #        else
11334 #          define LT_DLLAZY_OR_NOW      0
11335 #        endif
11336 #      endif
11337 #    endif
11338 #  endif
11339 #endif
11340
11341 #ifdef __cplusplus
11342 extern "C" void exit (int);
11343 #endif
11344
11345 void fnord() { int i=42;}
11346 int main ()
11347 {
11348   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11349   int status = $lt_dlunknown;
11350
11351   if (self)
11352     {
11353       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11354       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11355       /* dlclose (self); */
11356     }
11357   else
11358     puts (dlerror ());
11359
11360     exit (status);
11361 }
11362 EOF
11363   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11364   (eval $ac_link) 2>&5
11365   ac_status=$?
11366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11368     (./conftest; exit; ) >&5 2>/dev/null
11369     lt_status=$?
11370     case x$lt_status in
11371       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11372       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11373       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11374     esac
11375   else :
11376     # compilation failed
11377     lt_cv_dlopen_self_static=no
11378   fi
11379 fi
11380 rm -fr conftest*
11381
11382
11383 fi
11384 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11385 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11386     fi
11387
11388     CPPFLAGS="$save_CPPFLAGS"
11389     LDFLAGS="$save_LDFLAGS"
11390     LIBS="$save_LIBS"
11391     ;;
11392   esac
11393
11394   case $lt_cv_dlopen_self in
11395   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11396   *) enable_dlopen_self=unknown ;;
11397   esac
11398
11399   case $lt_cv_dlopen_self_static in
11400   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11401   *) enable_dlopen_self_static=unknown ;;
11402   esac
11403 fi
11404
11405
11406 # Report which library types will actually be built
11407 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11408 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11409 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11410 echo "${ECHO_T}$can_build_shared" >&6; }
11411
11412 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11413 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11414 test "$can_build_shared" = "no" && enable_shared=no
11415
11416 # On AIX, shared libraries and static libraries use the same namespace, and
11417 # are all built from PIC.
11418 case $host_os in
11419 aix3*)
11420   test "$enable_shared" = yes && enable_static=no
11421   if test -n "$RANLIB"; then
11422     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11423     postinstall_cmds='$RANLIB $lib'
11424   fi
11425   ;;
11426
11427 aix4* | aix5*)
11428   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11429     test "$enable_shared" = yes && enable_static=no
11430   fi
11431     ;;
11432 esac
11433 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11434 echo "${ECHO_T}$enable_shared" >&6; }
11435
11436 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11437 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11438 # Make sure either enable_shared or enable_static is yes.
11439 test "$enable_shared" = yes || enable_static=yes
11440 { echo "$as_me:$LINENO: result: $enable_static" >&5
11441 echo "${ECHO_T}$enable_static" >&6; }
11442
11443 # The else clause should only fire when bootstrapping the
11444 # libtool distribution, otherwise you forgot to ship ltmain.sh
11445 # with your package, and you will get complaints that there are
11446 # no rules to generate ltmain.sh.
11447 if test -f "$ltmain"; then
11448   # See if we are running on zsh, and set the options which allow our commands through
11449   # without removal of \ escapes.
11450   if test -n "${ZSH_VERSION+set}" ; then
11451     setopt NO_GLOB_SUBST
11452   fi
11453   # Now quote all the things that may contain metacharacters while being
11454   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11455   # variables and quote the copies for generation of the libtool script.
11456   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11457     SED SHELL STRIP \
11458     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11459     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11460     deplibs_check_method reload_flag reload_cmds need_locks \
11461     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11462     lt_cv_sys_global_symbol_to_c_name_address \
11463     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11464     old_postinstall_cmds old_postuninstall_cmds \
11465     compiler \
11466     CC \
11467     LD \
11468     lt_prog_compiler_wl \
11469     lt_prog_compiler_pic \
11470     lt_prog_compiler_static \
11471     lt_prog_compiler_no_builtin_flag \
11472     export_dynamic_flag_spec \
11473     thread_safe_flag_spec \
11474     whole_archive_flag_spec \
11475     enable_shared_with_static_runtimes \
11476     old_archive_cmds \
11477     old_archive_from_new_cmds \
11478     predep_objects \
11479     postdep_objects \
11480     predeps \
11481     postdeps \
11482     compiler_lib_search_path \
11483     archive_cmds \
11484     archive_expsym_cmds \
11485     postinstall_cmds \
11486     postuninstall_cmds \
11487     old_archive_from_expsyms_cmds \
11488     allow_undefined_flag \
11489     no_undefined_flag \
11490     export_symbols_cmds \
11491     hardcode_libdir_flag_spec \
11492     hardcode_libdir_flag_spec_ld \
11493     hardcode_libdir_separator \
11494     hardcode_automatic \
11495     module_cmds \
11496     module_expsym_cmds \
11497     lt_cv_prog_compiler_c_o \
11498     exclude_expsyms \
11499     include_expsyms; do
11500
11501     case $var in
11502     old_archive_cmds | \
11503     old_archive_from_new_cmds | \
11504     archive_cmds | \
11505     archive_expsym_cmds | \
11506     module_cmds | \
11507     module_expsym_cmds | \
11508     old_archive_from_expsyms_cmds | \
11509     export_symbols_cmds | \
11510     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11511     postinstall_cmds | postuninstall_cmds | \
11512     old_postinstall_cmds | old_postuninstall_cmds | \
11513     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11514       # Double-quote double-evaled strings.
11515       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11516       ;;
11517     *)
11518       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11519       ;;
11520     esac
11521   done
11522
11523   case $lt_echo in
11524   *'\$0 --fallback-echo"')
11525     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11526     ;;
11527   esac
11528
11529 cfgfile="${ofile}T"
11530   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11531   $rm -f "$cfgfile"
11532   { echo "$as_me:$LINENO: creating $ofile" >&5
11533 echo "$as_me: creating $ofile" >&6;}
11534
11535   cat <<__EOF__ >> "$cfgfile"
11536 #! $SHELL
11537
11538 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11539 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11540 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11541 #
11542 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11543 # Free Software Foundation, Inc.
11544 #
11545 # This file is part of GNU Libtool:
11546 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11547 #
11548 # This program is free software; you can redistribute it and/or modify
11549 # it under the terms of the GNU General Public License as published by
11550 # the Free Software Foundation; either version 2 of the License, or
11551 # (at your option) any later version.
11552 #
11553 # This program is distributed in the hope that it will be useful, but
11554 # WITHOUT ANY WARRANTY; without even the implied warranty of
11555 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11556 # General Public License for more details.
11557 #
11558 # You should have received a copy of the GNU General Public License
11559 # along with this program; if not, write to the Free Software
11560 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11561 #
11562 # As a special exception to the GNU General Public License, if you
11563 # distribute this file as part of a program that contains a
11564 # configuration script generated by Autoconf, you may include it under
11565 # the same distribution terms that you use for the rest of that program.
11566
11567 # A sed program that does not truncate output.
11568 SED=$lt_SED
11569
11570 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11571 Xsed="$SED -e 1s/^X//"
11572
11573 # The HP-UX ksh and POSIX shell print the target directory to stdout
11574 # if CDPATH is set.
11575 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11576
11577 # The names of the tagged configurations supported by this script.
11578 available_tags=
11579
11580 # ### BEGIN LIBTOOL CONFIG
11581
11582 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11583
11584 # Shell to use when invoking shell scripts.
11585 SHELL=$lt_SHELL
11586
11587 # Whether or not to build shared libraries.
11588 build_libtool_libs=$enable_shared
11589
11590 # Whether or not to build static libraries.
11591 build_old_libs=$enable_static
11592
11593 # Whether or not to add -lc for building shared libraries.
11594 build_libtool_need_lc=$archive_cmds_need_lc
11595
11596 # Whether or not to disallow shared libs when runtime libs are static
11597 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11598
11599 # Whether or not to optimize for fast installation.
11600 fast_install=$enable_fast_install
11601
11602 # The host system.
11603 host_alias=$host_alias
11604 host=$host
11605 host_os=$host_os
11606
11607 # The build system.
11608 build_alias=$build_alias
11609 build=$build
11610 build_os=$build_os
11611
11612 # An echo program that does not interpret backslashes.
11613 echo=$lt_echo
11614
11615 # The archiver.
11616 AR=$lt_AR
11617 AR_FLAGS=$lt_AR_FLAGS
11618
11619 # A C compiler.
11620 LTCC=$lt_LTCC
11621
11622 # LTCC compiler flags.
11623 LTCFLAGS=$lt_LTCFLAGS
11624
11625 # A language-specific compiler.
11626 CC=$lt_compiler
11627
11628 # Is the compiler the GNU C compiler?
11629 with_gcc=$GCC
11630
11631 # An ERE matcher.
11632 EGREP=$lt_EGREP
11633
11634 # The linker used to build libraries.
11635 LD=$lt_LD
11636
11637 # Whether we need hard or soft links.
11638 LN_S=$lt_LN_S
11639
11640 # A BSD-compatible nm program.
11641 NM=$lt_NM
11642
11643 # A symbol stripping program
11644 STRIP=$lt_STRIP
11645
11646 # Used to examine libraries when file_magic_cmd begins "file"
11647 MAGIC_CMD=$MAGIC_CMD
11648
11649 # Used on cygwin: DLL creation program.
11650 DLLTOOL="$DLLTOOL"
11651
11652 # Used on cygwin: object dumper.
11653 OBJDUMP="$OBJDUMP"
11654
11655 # Used on cygwin: assembler.
11656 AS="$AS"
11657
11658 # The name of the directory that contains temporary libtool files.
11659 objdir=$objdir
11660
11661 # How to create reloadable object files.
11662 reload_flag=$lt_reload_flag
11663 reload_cmds=$lt_reload_cmds
11664
11665 # How to pass a linker flag through the compiler.
11666 wl=$lt_lt_prog_compiler_wl
11667
11668 # Object file suffix (normally "o").
11669 objext="$ac_objext"
11670
11671 # Old archive suffix (normally "a").
11672 libext="$libext"
11673
11674 # Shared library suffix (normally ".so").
11675 shrext_cmds='$shrext_cmds'
11676
11677 # Executable file suffix (normally "").
11678 exeext="$exeext"
11679
11680 # Additional compiler flags for building library objects.
11681 pic_flag=$lt_lt_prog_compiler_pic
11682 pic_mode=$pic_mode
11683
11684 # What is the maximum length of a command?
11685 max_cmd_len=$lt_cv_sys_max_cmd_len
11686
11687 # Does compiler simultaneously support -c and -o options?
11688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11689
11690 # Must we lock files when doing compilation?
11691 need_locks=$lt_need_locks
11692
11693 # Do we need the lib prefix for modules?
11694 need_lib_prefix=$need_lib_prefix
11695
11696 # Do we need a version for libraries?
11697 need_version=$need_version
11698
11699 # Whether dlopen is supported.
11700 dlopen_support=$enable_dlopen
11701
11702 # Whether dlopen of programs is supported.
11703 dlopen_self=$enable_dlopen_self
11704
11705 # Whether dlopen of statically linked programs is supported.
11706 dlopen_self_static=$enable_dlopen_self_static
11707
11708 # Compiler flag to prevent dynamic linking.
11709 link_static_flag=$lt_lt_prog_compiler_static
11710
11711 # Compiler flag to turn off builtin functions.
11712 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11713
11714 # Compiler flag to allow reflexive dlopens.
11715 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11716
11717 # Compiler flag to generate shared objects directly from archives.
11718 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11719
11720 # Compiler flag to generate thread-safe objects.
11721 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11722
11723 # Library versioning type.
11724 version_type=$version_type
11725
11726 # Format of library name prefix.
11727 libname_spec=$lt_libname_spec
11728
11729 # List of archive names.  First name is the real one, the rest are links.
11730 # The last name is the one that the linker finds with -lNAME.
11731 library_names_spec=$lt_library_names_spec
11732
11733 # The coded name of the library, if different from the real name.
11734 soname_spec=$lt_soname_spec
11735
11736 # Commands used to build and install an old-style archive.
11737 RANLIB=$lt_RANLIB
11738 old_archive_cmds=$lt_old_archive_cmds
11739 old_postinstall_cmds=$lt_old_postinstall_cmds
11740 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11741
11742 # Create an old-style archive from a shared archive.
11743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11744
11745 # Create a temporary old-style archive to link instead of a shared archive.
11746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11747
11748 # Commands used to build and install a shared archive.
11749 archive_cmds=$lt_archive_cmds
11750 archive_expsym_cmds=$lt_archive_expsym_cmds
11751 postinstall_cmds=$lt_postinstall_cmds
11752 postuninstall_cmds=$lt_postuninstall_cmds
11753
11754 # Commands used to build a loadable module (assumed same as above if empty)
11755 module_cmds=$lt_module_cmds
11756 module_expsym_cmds=$lt_module_expsym_cmds
11757
11758 # Commands to strip libraries.
11759 old_striplib=$lt_old_striplib
11760 striplib=$lt_striplib
11761
11762 # Dependencies to place before the objects being linked to create a
11763 # shared library.
11764 predep_objects=$lt_predep_objects
11765
11766 # Dependencies to place after the objects being linked to create a
11767 # shared library.
11768 postdep_objects=$lt_postdep_objects
11769
11770 # Dependencies to place before the objects being linked to create a
11771 # shared library.
11772 predeps=$lt_predeps
11773
11774 # Dependencies to place after the objects being linked to create a
11775 # shared library.
11776 postdeps=$lt_postdeps
11777
11778 # The library search path used internally by the compiler when linking
11779 # a shared library.
11780 compiler_lib_search_path=$lt_compiler_lib_search_path
11781
11782 # Method to check whether dependent libraries are shared objects.
11783 deplibs_check_method=$lt_deplibs_check_method
11784
11785 # Command to use when deplibs_check_method == file_magic.
11786 file_magic_cmd=$lt_file_magic_cmd
11787
11788 # Flag that allows shared libraries with undefined symbols to be built.
11789 allow_undefined_flag=$lt_allow_undefined_flag
11790
11791 # Flag that forces no undefined symbols.
11792 no_undefined_flag=$lt_no_undefined_flag
11793
11794 # Commands used to finish a libtool library installation in a directory.
11795 finish_cmds=$lt_finish_cmds
11796
11797 # Same as above, but a single script fragment to be evaled but not shown.
11798 finish_eval=$lt_finish_eval
11799
11800 # Take the output of nm and produce a listing of raw symbols and C names.
11801 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11802
11803 # Transform the output of nm in a proper C declaration
11804 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11805
11806 # Transform the output of nm in a C name address pair
11807 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11808
11809 # This is the shared library runtime path variable.
11810 runpath_var=$runpath_var
11811
11812 # This is the shared library path variable.
11813 shlibpath_var=$shlibpath_var
11814
11815 # Is shlibpath searched before the hard-coded library search path?
11816 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11817
11818 # How to hardcode a shared library path into an executable.
11819 hardcode_action=$hardcode_action
11820
11821 # Whether we should hardcode library paths into libraries.
11822 hardcode_into_libs=$hardcode_into_libs
11823
11824 # Flag to hardcode \$libdir into a binary during linking.
11825 # This must work even if \$libdir does not exist.
11826 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11827
11828 # If ld is used when linking, flag to hardcode \$libdir into
11829 # a binary during linking. This must work even if \$libdir does
11830 # not exist.
11831 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11832
11833 # Whether we need a single -rpath flag with a separated argument.
11834 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11835
11836 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11837 # resulting binary.
11838 hardcode_direct=$hardcode_direct
11839
11840 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11841 # resulting binary.
11842 hardcode_minus_L=$hardcode_minus_L
11843
11844 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11845 # the resulting binary.
11846 hardcode_shlibpath_var=$hardcode_shlibpath_var
11847
11848 # Set to yes if building a shared library automatically hardcodes DIR into the library
11849 # and all subsequent libraries and executables linked against it.
11850 hardcode_automatic=$hardcode_automatic
11851
11852 # Variables whose values should be saved in libtool wrapper scripts and
11853 # restored at relink time.
11854 variables_saved_for_relink="$variables_saved_for_relink"
11855
11856 # Whether libtool must link a program against all its dependency libraries.
11857 link_all_deplibs=$link_all_deplibs
11858
11859 # Compile-time system search path for libraries
11860 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11861
11862 # Run-time system search path for libraries
11863 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11864
11865 # Fix the shell variable \$srcfile for the compiler.
11866 fix_srcfile_path="$fix_srcfile_path"
11867
11868 # Set to yes if exported symbols are required.
11869 always_export_symbols=$always_export_symbols
11870
11871 # The commands to list exported symbols.
11872 export_symbols_cmds=$lt_export_symbols_cmds
11873
11874 # The commands to extract the exported symbol list from a shared archive.
11875 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11876
11877 # Symbols that should not be listed in the preloaded symbols.
11878 exclude_expsyms=$lt_exclude_expsyms
11879
11880 # Symbols that must always be exported.
11881 include_expsyms=$lt_include_expsyms
11882
11883 # ### END LIBTOOL CONFIG
11884
11885 __EOF__
11886
11887
11888   case $host_os in
11889   aix3*)
11890     cat <<\EOF >> "$cfgfile"
11891
11892 # AIX sometimes has problems with the GCC collect2 program.  For some
11893 # reason, if we set the COLLECT_NAMES environment variable, the problems
11894 # vanish in a puff of smoke.
11895 if test "X${COLLECT_NAMES+set}" != Xset; then
11896   COLLECT_NAMES=
11897   export COLLECT_NAMES
11898 fi
11899 EOF
11900     ;;
11901   esac
11902
11903   # We use sed instead of cat because bash on DJGPP gets confused if
11904   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11905   # text mode, it properly converts lines to CR/LF.  This bash problem
11906   # is reportedly fixed, but why not run on old versions too?
11907   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11908
11909   mv -f "$cfgfile" "$ofile" || \
11910     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11911   chmod +x "$ofile"
11912
11913 else
11914   # If there is no Makefile yet, we rely on a make rule to execute
11915   # `config.status --recheck' to rerun these tests and create the
11916   # libtool script then.
11917   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11918   if test -f "$ltmain_in"; then
11919     test -f Makefile && make "$ltmain"
11920   fi
11921 fi
11922
11923
11924 ac_ext=c
11925 ac_cpp='$CPP $CPPFLAGS'
11926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11929
11930 CC="$lt_save_CC"
11931
11932
11933 # Check whether --with-tags was given.
11934 if test "${with_tags+set}" = set; then
11935   withval=$with_tags; tagnames="$withval"
11936 fi
11937
11938
11939 if test -f "$ltmain" && test -n "$tagnames"; then
11940   if test ! -f "${ofile}"; then
11941     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11942 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11943   fi
11944
11945   if test -z "$LTCC"; then
11946     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11947     if test -z "$LTCC"; then
11948       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11949 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11950     else
11951       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11952 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11953     fi
11954   fi
11955   if test -z "$LTCFLAGS"; then
11956     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11957   fi
11958
11959   # Extract list of available tagged configurations in $ofile.
11960   # Note that this assumes the entire list is on one line.
11961   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11962
11963   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11964   for tagname in $tagnames; do
11965     IFS="$lt_save_ifs"
11966     # Check whether tagname contains only valid characters
11967     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11968     "") ;;
11969     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11970 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11971    { (exit 1); exit 1; }; }
11972         ;;
11973     esac
11974
11975     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11976     then
11977       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11978 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11979    { (exit 1); exit 1; }; }
11980     fi
11981
11982     # Update the list of available tags.
11983     if test -n "$tagname"; then
11984       echo appending configuration tag \"$tagname\" to $ofile
11985
11986       case $tagname in
11987       CXX)
11988         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11989             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11990             (test "X$CXX" != "Xg++"))) ; then
11991           ac_ext=cpp
11992 ac_cpp='$CXXCPP $CPPFLAGS'
11993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11996
11997
11998
11999
12000 archive_cmds_need_lc_CXX=no
12001 allow_undefined_flag_CXX=
12002 always_export_symbols_CXX=no
12003 archive_expsym_cmds_CXX=
12004 export_dynamic_flag_spec_CXX=
12005 hardcode_direct_CXX=no
12006 hardcode_libdir_flag_spec_CXX=
12007 hardcode_libdir_flag_spec_ld_CXX=
12008 hardcode_libdir_separator_CXX=
12009 hardcode_minus_L_CXX=no
12010 hardcode_shlibpath_var_CXX=unsupported
12011 hardcode_automatic_CXX=no
12012 module_cmds_CXX=
12013 module_expsym_cmds_CXX=
12014 link_all_deplibs_CXX=unknown
12015 old_archive_cmds_CXX=$old_archive_cmds
12016 no_undefined_flag_CXX=
12017 whole_archive_flag_spec_CXX=
12018 enable_shared_with_static_runtimes_CXX=no
12019
12020 # Dependencies to place before and after the object being linked:
12021 predep_objects_CXX=
12022 postdep_objects_CXX=
12023 predeps_CXX=
12024 postdeps_CXX=
12025 compiler_lib_search_path_CXX=
12026
12027 # Source file extension for C++ test sources.
12028 ac_ext=cpp
12029
12030 # Object file extension for compiled C++ test sources.
12031 objext=o
12032 objext_CXX=$objext
12033
12034 # Code to be used in simple compile tests
12035 lt_simple_compile_test_code="int some_variable = 0;\n"
12036
12037 # Code to be used in simple link tests
12038 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12039
12040 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12041
12042 # If no C compiler was specified, use CC.
12043 LTCC=${LTCC-"$CC"}
12044
12045 # If no C compiler flags were specified, use CFLAGS.
12046 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12047
12048 # Allow CC to be a program name with arguments.
12049 compiler=$CC
12050
12051
12052 # save warnings/boilerplate of simple test code
12053 ac_outfile=conftest.$ac_objext
12054 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12055 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12056 _lt_compiler_boilerplate=`cat conftest.err`
12057 $rm conftest*
12058
12059 ac_outfile=conftest.$ac_objext
12060 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12061 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12062 _lt_linker_boilerplate=`cat conftest.err`
12063 $rm conftest*
12064
12065
12066 # Allow CC to be a program name with arguments.
12067 lt_save_CC=$CC
12068 lt_save_LD=$LD
12069 lt_save_GCC=$GCC
12070 GCC=$GXX
12071 lt_save_with_gnu_ld=$with_gnu_ld
12072 lt_save_path_LD=$lt_cv_path_LD
12073 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12074   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12075 else
12076   $as_unset lt_cv_prog_gnu_ld
12077 fi
12078 if test -n "${lt_cv_path_LDCXX+set}"; then
12079   lt_cv_path_LD=$lt_cv_path_LDCXX
12080 else
12081   $as_unset lt_cv_path_LD
12082 fi
12083 test -z "${LDCXX+set}" || LD=$LDCXX
12084 CC=${CXX-"c++"}
12085 compiler=$CC
12086 compiler_CXX=$CC
12087 for cc_temp in $compiler""; do
12088   case $cc_temp in
12089     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12090     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12091     \-*) ;;
12092     *) break;;
12093   esac
12094 done
12095 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12096
12097
12098 # We don't want -fno-exception wen compiling C++ code, so set the
12099 # no_builtin_flag separately
12100 if test "$GXX" = yes; then
12101   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12102 else
12103   lt_prog_compiler_no_builtin_flag_CXX=
12104 fi
12105
12106 if test "$GXX" = yes; then
12107   # Set up default GNU C++ configuration
12108
12109
12110 # Check whether --with-gnu-ld was given.
12111 if test "${with_gnu_ld+set}" = set; then
12112   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12113 else
12114   with_gnu_ld=no
12115 fi
12116
12117 ac_prog=ld
12118 if test "$GCC" = yes; then
12119   # Check if gcc -print-prog-name=ld gives a path.
12120   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12121 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12122   case $host in
12123   *-*-mingw*)
12124     # gcc leaves a trailing carriage return which upsets mingw
12125     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12126   *)
12127     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12128   esac
12129   case $ac_prog in
12130     # Accept absolute paths.
12131     [\\/]* | ?:[\\/]*)
12132       re_direlt='/[^/][^/]*/\.\./'
12133       # Canonicalize the pathname of ld
12134       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12135       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12136         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12137       done
12138       test -z "$LD" && LD="$ac_prog"
12139       ;;
12140   "")
12141     # If it fails, then pretend we aren't using GCC.
12142     ac_prog=ld
12143     ;;
12144   *)
12145     # If it is relative, then search for the first ld in PATH.
12146     with_gnu_ld=unknown
12147     ;;
12148   esac
12149 elif test "$with_gnu_ld" = yes; then
12150   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12151 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12152 else
12153   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12154 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12155 fi
12156 if test "${lt_cv_path_LD+set}" = set; then
12157   echo $ECHO_N "(cached) $ECHO_C" >&6
12158 else
12159   if test -z "$LD"; then
12160   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12161   for ac_dir in $PATH; do
12162     IFS="$lt_save_ifs"
12163     test -z "$ac_dir" && ac_dir=.
12164     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12165       lt_cv_path_LD="$ac_dir/$ac_prog"
12166       # Check to see if the program is GNU ld.  I'd rather use --version,
12167       # but apparently some variants of GNU ld only accept -v.
12168       # Break only if it was the GNU/non-GNU ld that we prefer.
12169       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12170       *GNU* | *'with BFD'*)
12171         test "$with_gnu_ld" != no && break
12172         ;;
12173       *)
12174         test "$with_gnu_ld" != yes && break
12175         ;;
12176       esac
12177     fi
12178   done
12179   IFS="$lt_save_ifs"
12180 else
12181   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12182 fi
12183 fi
12184
12185 LD="$lt_cv_path_LD"
12186 if test -n "$LD"; then
12187   { echo "$as_me:$LINENO: result: $LD" >&5
12188 echo "${ECHO_T}$LD" >&6; }
12189 else
12190   { echo "$as_me:$LINENO: result: no" >&5
12191 echo "${ECHO_T}no" >&6; }
12192 fi
12193 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12194 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12195    { (exit 1); exit 1; }; }
12196 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12197 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12198 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12199   echo $ECHO_N "(cached) $ECHO_C" >&6
12200 else
12201   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12202 case `$LD -v 2>&1 </dev/null` in
12203 *GNU* | *'with BFD'*)
12204   lt_cv_prog_gnu_ld=yes
12205   ;;
12206 *)
12207   lt_cv_prog_gnu_ld=no
12208   ;;
12209 esac
12210 fi
12211 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12212 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12213 with_gnu_ld=$lt_cv_prog_gnu_ld
12214
12215
12216
12217   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12218   # archiving commands below assume that GNU ld is being used.
12219   if test "$with_gnu_ld" = yes; then
12220     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12221     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12222
12223     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12224     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12225
12226     # If archive_cmds runs LD, not CC, wlarc should be empty
12227     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12228     #     investigate it a little bit more. (MM)
12229     wlarc='${wl}'
12230
12231     # ancient GNU ld didn't support --whole-archive et. al.
12232     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12233         grep 'no-whole-archive' > /dev/null; then
12234       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12235     else
12236       whole_archive_flag_spec_CXX=
12237     fi
12238   else
12239     with_gnu_ld=no
12240     wlarc=
12241
12242     # A generic and very simple default shared library creation
12243     # command for GNU C++ for the case where it uses the native
12244     # linker, instead of GNU ld.  If possible, this setting should
12245     # overridden to take advantage of the native linker features on
12246     # the platform it is being used on.
12247     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12248   fi
12249
12250   # Commands to make compiler produce verbose output that lists
12251   # what "hidden" libraries, object files and flags are used when
12252   # linking a shared library.
12253   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12254
12255 else
12256   GXX=no
12257   with_gnu_ld=no
12258   wlarc=
12259 fi
12260
12261 # PORTME: fill in a description of your system's C++ link characteristics
12262 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12263 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12264 ld_shlibs_CXX=yes
12265 case $host_os in
12266   aix3*)
12267     # FIXME: insert proper C++ library support
12268     ld_shlibs_CXX=no
12269     ;;
12270   aix4* | aix5*)
12271     if test "$host_cpu" = ia64; then
12272       # On IA64, the linker does run time linking by default, so we don't
12273       # have to do anything special.
12274       aix_use_runtimelinking=no
12275       exp_sym_flag='-Bexport'
12276       no_entry_flag=""
12277     else
12278       aix_use_runtimelinking=no
12279
12280       # Test if we are trying to use run time linking or normal
12281       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12282       # need to do runtime linking.
12283       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12284         for ld_flag in $LDFLAGS; do
12285           case $ld_flag in
12286           *-brtl*)
12287             aix_use_runtimelinking=yes
12288             break
12289             ;;
12290           esac
12291         done
12292         ;;
12293       esac
12294
12295       exp_sym_flag='-bexport'
12296       no_entry_flag='-bnoentry'
12297     fi
12298
12299     # When large executables or shared objects are built, AIX ld can
12300     # have problems creating the table of contents.  If linking a library
12301     # or program results in "error TOC overflow" add -mminimal-toc to
12302     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12303     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12304
12305     archive_cmds_CXX=''
12306     hardcode_direct_CXX=yes
12307     hardcode_libdir_separator_CXX=':'
12308     link_all_deplibs_CXX=yes
12309
12310     if test "$GXX" = yes; then
12311       case $host_os in aix4.[012]|aix4.[012].*)
12312       # We only want to do this on AIX 4.2 and lower, the check
12313       # below for broken collect2 doesn't work under 4.3+
12314         collect2name=`${CC} -print-prog-name=collect2`
12315         if test -f "$collect2name" && \
12316            strings "$collect2name" | grep resolve_lib_name >/dev/null
12317         then
12318           # We have reworked collect2
12319           hardcode_direct_CXX=yes
12320         else
12321           # We have old collect2
12322           hardcode_direct_CXX=unsupported
12323           # It fails to find uninstalled libraries when the uninstalled
12324           # path is not listed in the libpath.  Setting hardcode_minus_L
12325           # to unsupported forces relinking
12326           hardcode_minus_L_CXX=yes
12327           hardcode_libdir_flag_spec_CXX='-L$libdir'
12328           hardcode_libdir_separator_CXX=
12329         fi
12330         ;;
12331       esac
12332       shared_flag='-shared'
12333       if test "$aix_use_runtimelinking" = yes; then
12334         shared_flag="$shared_flag "'${wl}-G'
12335       fi
12336     else
12337       # not using gcc
12338       if test "$host_cpu" = ia64; then
12339         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12340         # chokes on -Wl,-G. The following line is correct:
12341         shared_flag='-G'
12342       else
12343         if test "$aix_use_runtimelinking" = yes; then
12344           shared_flag='${wl}-G'
12345         else
12346           shared_flag='${wl}-bM:SRE'
12347         fi
12348       fi
12349     fi
12350
12351     # It seems that -bexpall does not export symbols beginning with
12352     # underscore (_), so it is better to generate a list of symbols to export.
12353     always_export_symbols_CXX=yes
12354     if test "$aix_use_runtimelinking" = yes; then
12355       # Warning - without using the other runtime loading flags (-brtl),
12356       # -berok will link without error, but may produce a broken library.
12357       allow_undefined_flag_CXX='-berok'
12358       # Determine the default libpath from the value encoded in an empty executable.
12359       cat >conftest.$ac_ext <<_ACEOF
12360 /* confdefs.h.  */
12361 _ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h.  */
12365
12366 int
12367 main ()
12368 {
12369
12370   ;
12371   return 0;
12372 }
12373 _ACEOF
12374 rm -f conftest.$ac_objext conftest$ac_exeext
12375 if { (ac_try="$ac_link"
12376 case "(($ac_try" in
12377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378   *) ac_try_echo=$ac_try;;
12379 esac
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381   (eval "$ac_link") 2>conftest.er1
12382   ac_status=$?
12383   grep -v '^ *+' conftest.er1 >conftest.err
12384   rm -f conftest.er1
12385   cat conftest.err >&5
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); } && {
12388          test -z "$ac_cxx_werror_flag" ||
12389          test ! -s conftest.err
12390        } && test -s conftest$ac_exeext &&
12391        $as_test_x conftest$ac_exeext; then
12392
12393 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12394 }'`
12395 # Check for a 64-bit object if we didn't find anything.
12396 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12397 }'`; fi
12398 else
12399   echo "$as_me: failed program was:" >&5
12400 sed 's/^/| /' conftest.$ac_ext >&5
12401
12402
12403 fi
12404
12405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12406       conftest$ac_exeext conftest.$ac_ext
12407 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12408
12409       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12410
12411       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12412      else
12413       if test "$host_cpu" = ia64; then
12414         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12415         allow_undefined_flag_CXX="-z nodefs"
12416         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12417       else
12418         # Determine the default libpath from the value encoded in an empty executable.
12419         cat >conftest.$ac_ext <<_ACEOF
12420 /* confdefs.h.  */
12421 _ACEOF
12422 cat confdefs.h >>conftest.$ac_ext
12423 cat >>conftest.$ac_ext <<_ACEOF
12424 /* end confdefs.h.  */
12425
12426 int
12427 main ()
12428 {
12429
12430   ;
12431   return 0;
12432 }
12433 _ACEOF
12434 rm -f conftest.$ac_objext conftest$ac_exeext
12435 if { (ac_try="$ac_link"
12436 case "(($ac_try" in
12437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438   *) ac_try_echo=$ac_try;;
12439 esac
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441   (eval "$ac_link") 2>conftest.er1
12442   ac_status=$?
12443   grep -v '^ *+' conftest.er1 >conftest.err
12444   rm -f conftest.er1
12445   cat conftest.err >&5
12446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447   (exit $ac_status); } && {
12448          test -z "$ac_cxx_werror_flag" ||
12449          test ! -s conftest.err
12450        } && test -s conftest$ac_exeext &&
12451        $as_test_x conftest$ac_exeext; then
12452
12453 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12454 }'`
12455 # Check for a 64-bit object if we didn't find anything.
12456 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12457 }'`; fi
12458 else
12459   echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12461
12462
12463 fi
12464
12465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12466       conftest$ac_exeext conftest.$ac_ext
12467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12468
12469         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12470         # Warning - without using the other run time loading flags,
12471         # -berok will link without error, but may produce a broken library.
12472         no_undefined_flag_CXX=' ${wl}-bernotok'
12473         allow_undefined_flag_CXX=' ${wl}-berok'
12474         # Exported symbols can be pulled into shared objects from archives
12475         whole_archive_flag_spec_CXX='$convenience'
12476         archive_cmds_need_lc_CXX=yes
12477         # This is similar to how AIX traditionally builds its shared libraries.
12478         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12479       fi
12480     fi
12481     ;;
12482
12483   beos*)
12484     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12485       allow_undefined_flag_CXX=unsupported
12486       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12487       # support --undefined.  This deserves some investigation.  FIXME
12488       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12489     else
12490       ld_shlibs_CXX=no
12491     fi
12492     ;;
12493
12494   chorus*)
12495     case $cc_basename in
12496       *)
12497         # FIXME: insert proper C++ library support
12498         ld_shlibs_CXX=no
12499         ;;
12500     esac
12501     ;;
12502
12503   cygwin* | mingw* | pw32*)
12504     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12505     # as there is no search path for DLLs.
12506     hardcode_libdir_flag_spec_CXX='-L$libdir'
12507     allow_undefined_flag_CXX=unsupported
12508     always_export_symbols_CXX=no
12509     enable_shared_with_static_runtimes_CXX=yes
12510
12511     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12512       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12513       # If the export-symbols file already is a .def file (1st line
12514       # is EXPORTS), use it as is; otherwise, prepend...
12515       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12516         cp $export_symbols $output_objdir/$soname.def;
12517       else
12518         echo EXPORTS > $output_objdir/$soname.def;
12519         cat $export_symbols >> $output_objdir/$soname.def;
12520       fi~
12521       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12522     else
12523       ld_shlibs_CXX=no
12524     fi
12525   ;;
12526       darwin* | rhapsody*)
12527         case $host_os in
12528         rhapsody* | darwin1.[012])
12529          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12530          ;;
12531        *) # Darwin 1.3 on
12532          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12533            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12534          else
12535            case ${MACOSX_DEPLOYMENT_TARGET} in
12536              10.[012])
12537                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12538                ;;
12539              10.*)
12540                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12541                ;;
12542            esac
12543          fi
12544          ;;
12545         esac
12546       archive_cmds_need_lc_CXX=no
12547       hardcode_direct_CXX=no
12548       hardcode_automatic_CXX=yes
12549       hardcode_shlibpath_var_CXX=unsupported
12550       whole_archive_flag_spec_CXX=''
12551       link_all_deplibs_CXX=yes
12552
12553     if test "$GXX" = yes ; then
12554       lt_int_apple_cc_single_mod=no
12555       output_verbose_link_cmd='echo'
12556       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12557        lt_int_apple_cc_single_mod=yes
12558       fi
12559       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12560        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12561       else
12562           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12563         fi
12564         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12565         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12566           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12567             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12568           else
12569             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12570           fi
12571             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12572       else
12573       case $cc_basename in
12574         xlc*)
12575          output_verbose_link_cmd='echo'
12576           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12577           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12578           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12579           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12580           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12581           ;;
12582        *)
12583          ld_shlibs_CXX=no
12584           ;;
12585       esac
12586       fi
12587         ;;
12588
12589   dgux*)
12590     case $cc_basename in
12591       ec++*)
12592         # FIXME: insert proper C++ library support
12593         ld_shlibs_CXX=no
12594         ;;
12595       ghcx*)
12596         # Green Hills C++ Compiler
12597         # FIXME: insert proper C++ library support
12598         ld_shlibs_CXX=no
12599         ;;
12600       *)
12601         # FIXME: insert proper C++ library support
12602         ld_shlibs_CXX=no
12603         ;;
12604     esac
12605     ;;
12606   freebsd[12]*)
12607     # C++ shared libraries reported to be fairly broken before switch to ELF
12608     ld_shlibs_CXX=no
12609     ;;
12610   freebsd-elf*)
12611     archive_cmds_need_lc_CXX=no
12612     ;;
12613   freebsd* | dragonfly*)
12614     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12615     # conventions
12616     ld_shlibs_CXX=yes
12617     ;;
12618   gnu*)
12619     ;;
12620   hpux9*)
12621     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12622     hardcode_libdir_separator_CXX=:
12623     export_dynamic_flag_spec_CXX='${wl}-E'
12624     hardcode_direct_CXX=yes
12625     hardcode_minus_L_CXX=yes # Not in the search PATH,
12626                                 # but as the default
12627                                 # location of the library.
12628
12629     case $cc_basename in
12630     CC*)
12631       # FIXME: insert proper C++ library support
12632       ld_shlibs_CXX=no
12633       ;;
12634     aCC*)
12635       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12636       # Commands to make compiler produce verbose output that lists
12637       # what "hidden" libraries, object files and flags are used when
12638       # linking a shared library.
12639       #
12640       # There doesn't appear to be a way to prevent this compiler from
12641       # explicitly linking system object files so we need to strip them
12642       # from the output so that they don't get included in the library
12643       # dependencies.
12644       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12645       ;;
12646     *)
12647       if test "$GXX" = yes; then
12648         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12649       else
12650         # FIXME: insert proper C++ library support
12651         ld_shlibs_CXX=no
12652       fi
12653       ;;
12654     esac
12655     ;;
12656   hpux10*|hpux11*)
12657     if test $with_gnu_ld = no; then
12658       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12659       hardcode_libdir_separator_CXX=:
12660
12661       case $host_cpu in
12662       hppa*64*|ia64*)
12663         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12664         ;;
12665       *)
12666         export_dynamic_flag_spec_CXX='${wl}-E'
12667         ;;
12668       esac
12669     fi
12670     case $host_cpu in
12671     hppa*64*|ia64*)
12672       hardcode_direct_CXX=no
12673       hardcode_shlibpath_var_CXX=no
12674       ;;
12675     *)
12676       hardcode_direct_CXX=yes
12677       hardcode_minus_L_CXX=yes # Not in the search PATH,
12678                                               # but as the default
12679                                               # location of the library.
12680       ;;
12681     esac
12682
12683     case $cc_basename in
12684       CC*)
12685         # FIXME: insert proper C++ library support
12686         ld_shlibs_CXX=no
12687         ;;
12688       aCC*)
12689         case $host_cpu in
12690         hppa*64*)
12691           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12692           ;;
12693         ia64*)
12694           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12695           ;;
12696         *)
12697           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12698           ;;
12699         esac
12700         # Commands to make compiler produce verbose output that lists
12701         # what "hidden" libraries, object files and flags are used when
12702         # linking a shared library.
12703         #
12704         # There doesn't appear to be a way to prevent this compiler from
12705         # explicitly linking system object files so we need to strip them
12706         # from the output so that they don't get included in the library
12707         # dependencies.
12708         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12709         ;;
12710       *)
12711         if test "$GXX" = yes; then
12712           if test $with_gnu_ld = no; then
12713             case $host_cpu in
12714             hppa*64*)
12715               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12716               ;;
12717             ia64*)
12718               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12719               ;;
12720             *)
12721               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12722               ;;
12723             esac
12724           fi
12725         else
12726           # FIXME: insert proper C++ library support
12727           ld_shlibs_CXX=no
12728         fi
12729         ;;
12730     esac
12731     ;;
12732   interix3*)
12733     hardcode_direct_CXX=no
12734     hardcode_shlibpath_var_CXX=no
12735     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12736     export_dynamic_flag_spec_CXX='${wl}-E'
12737     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12738     # Instead, shared libraries are loaded at an image base (0x10000000 by
12739     # default) and relocated if they conflict, which is a slow very memory
12740     # consuming and fragmenting process.  To avoid this, we pick a random,
12741     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12742     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12743     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12744     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12745     ;;
12746   irix5* | irix6*)
12747     case $cc_basename in
12748       CC*)
12749         # SGI C++
12750         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12751
12752         # Archives containing C++ object files must be created using
12753         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12754         # necessary to make sure instantiated templates are included
12755         # in the archive.
12756         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12757         ;;
12758       *)
12759         if test "$GXX" = yes; then
12760           if test "$with_gnu_ld" = no; then
12761             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12762           else
12763             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12764           fi
12765         fi
12766         link_all_deplibs_CXX=yes
12767         ;;
12768     esac
12769     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12770     hardcode_libdir_separator_CXX=:
12771     ;;
12772   linux* | k*bsd*-gnu)
12773     case $cc_basename in
12774       KCC*)
12775         # Kuck and Associates, Inc. (KAI) C++ Compiler
12776
12777         # KCC will only create a shared library if the output file
12778         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12779         # to its proper name (with version) after linking.
12780         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12781         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12782         # Commands to make compiler produce verbose output that lists
12783         # what "hidden" libraries, object files and flags are used when
12784         # linking a shared library.
12785         #
12786         # There doesn't appear to be a way to prevent this compiler from
12787         # explicitly linking system object files so we need to strip them
12788         # from the output so that they don't get included in the library
12789         # dependencies.
12790         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12791
12792         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12793         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12794
12795         # Archives containing C++ object files must be created using
12796         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12797         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12798         ;;
12799       icpc*)
12800         # Intel C++
12801         with_gnu_ld=yes
12802         # version 8.0 and above of icpc choke on multiply defined symbols
12803         # if we add $predep_objects and $postdep_objects, however 7.1 and
12804         # earlier do not add the objects themselves.
12805         case `$CC -V 2>&1` in
12806         *"Version 7."*)
12807           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12808           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12809           ;;
12810         *)  # Version 8.0 or newer
12811           tmp_idyn=
12812           case $host_cpu in
12813             ia64*) tmp_idyn=' -i_dynamic';;
12814           esac
12815           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12816           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12817           ;;
12818         esac
12819         archive_cmds_need_lc_CXX=no
12820         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12821         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12822         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12823         ;;
12824       pgCC*)
12825         # Portland Group C++ compiler
12826         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12827         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12828
12829         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12830         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12831         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12832         ;;
12833       cxx*)
12834         # Compaq C++
12835         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12836         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12837
12838         runpath_var=LD_RUN_PATH
12839         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12840         hardcode_libdir_separator_CXX=:
12841
12842         # Commands to make compiler produce verbose output that lists
12843         # what "hidden" libraries, object files and flags are used when
12844         # linking a shared library.
12845         #
12846         # There doesn't appear to be a way to prevent this compiler from
12847         # explicitly linking system object files so we need to strip them
12848         # from the output so that they don't get included in the library
12849         # dependencies.
12850         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12851         ;;
12852     esac
12853     ;;
12854   lynxos*)
12855     # FIXME: insert proper C++ library support
12856     ld_shlibs_CXX=no
12857     ;;
12858   m88k*)
12859     # FIXME: insert proper C++ library support
12860     ld_shlibs_CXX=no
12861     ;;
12862   mvs*)
12863     case $cc_basename in
12864       cxx*)
12865         # FIXME: insert proper C++ library support
12866         ld_shlibs_CXX=no
12867         ;;
12868       *)
12869         # FIXME: insert proper C++ library support
12870         ld_shlibs_CXX=no
12871         ;;
12872     esac
12873     ;;
12874   netbsd* | netbsdelf*-gnu)
12875     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12876       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12877       wlarc=
12878       hardcode_libdir_flag_spec_CXX='-R$libdir'
12879       hardcode_direct_CXX=yes
12880       hardcode_shlibpath_var_CXX=no
12881     fi
12882     # Workaround some broken pre-1.5 toolchains
12883     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12884     ;;
12885   openbsd2*)
12886     # C++ shared libraries are fairly broken
12887     ld_shlibs_CXX=no
12888     ;;
12889   openbsd*)
12890     hardcode_direct_CXX=yes
12891     hardcode_shlibpath_var_CXX=no
12892     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12893     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12894     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12895       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12896       export_dynamic_flag_spec_CXX='${wl}-E'
12897       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12898     fi
12899     output_verbose_link_cmd='echo'
12900     ;;
12901   osf3*)
12902     case $cc_basename in
12903       KCC*)
12904         # Kuck and Associates, Inc. (KAI) C++ Compiler
12905
12906         # KCC will only create a shared library if the output file
12907         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12908         # to its proper name (with version) after linking.
12909         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12910
12911         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12912         hardcode_libdir_separator_CXX=:
12913
12914         # Archives containing C++ object files must be created using
12915         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12916         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12917
12918         ;;
12919       RCC*)
12920         # Rational C++ 2.4.1
12921         # FIXME: insert proper C++ library support
12922         ld_shlibs_CXX=no
12923         ;;
12924       cxx*)
12925         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12926         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12927
12928         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12929         hardcode_libdir_separator_CXX=:
12930
12931         # Commands to make compiler produce verbose output that lists
12932         # what "hidden" libraries, object files and flags are used when
12933         # linking a shared library.
12934         #
12935         # There doesn't appear to be a way to prevent this compiler from
12936         # explicitly linking system object files so we need to strip them
12937         # from the output so that they don't get included in the library
12938         # dependencies.
12939         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12940         ;;
12941       *)
12942         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12943           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12944           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12945
12946           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12947           hardcode_libdir_separator_CXX=:
12948
12949           # Commands to make compiler produce verbose output that lists
12950           # what "hidden" libraries, object files and flags are used when
12951           # linking a shared library.
12952           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12953
12954         else
12955           # FIXME: insert proper C++ library support
12956           ld_shlibs_CXX=no
12957         fi
12958         ;;
12959     esac
12960     ;;
12961   osf4* | osf5*)
12962     case $cc_basename in
12963       KCC*)
12964         # Kuck and Associates, Inc. (KAI) C++ Compiler
12965
12966         # KCC will only create a shared library if the output file
12967         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12968         # to its proper name (with version) after linking.
12969         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12970
12971         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12972         hardcode_libdir_separator_CXX=:
12973
12974         # Archives containing C++ object files must be created using
12975         # the KAI C++ compiler.
12976         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12977         ;;
12978       RCC*)
12979         # Rational C++ 2.4.1
12980         # FIXME: insert proper C++ library support
12981         ld_shlibs_CXX=no
12982         ;;
12983       cxx*)
12984         allow_undefined_flag_CXX=' -expect_unresolved \*'
12985         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12986         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12987           echo "-hidden">> $lib.exp~
12988           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12989           $rm $lib.exp'
12990
12991         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12992         hardcode_libdir_separator_CXX=:
12993
12994         # Commands to make compiler produce verbose output that lists
12995         # what "hidden" libraries, object files and flags are used when
12996         # linking a shared library.
12997         #
12998         # There doesn't appear to be a way to prevent this compiler from
12999         # explicitly linking system object files so we need to strip them
13000         # from the output so that they don't get included in the library
13001         # dependencies.
13002         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13003         ;;
13004       *)
13005         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13006           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13007          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13008
13009           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13010           hardcode_libdir_separator_CXX=:
13011
13012           # Commands to make compiler produce verbose output that lists
13013           # what "hidden" libraries, object files and flags are used when
13014           # linking a shared library.
13015           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13016
13017         else
13018           # FIXME: insert proper C++ library support
13019           ld_shlibs_CXX=no
13020         fi
13021         ;;
13022     esac
13023     ;;
13024   psos*)
13025     # FIXME: insert proper C++ library support
13026     ld_shlibs_CXX=no
13027     ;;
13028   sunos4*)
13029     case $cc_basename in
13030       CC*)
13031         # Sun C++ 4.x
13032         # FIXME: insert proper C++ library support
13033         ld_shlibs_CXX=no
13034         ;;
13035       lcc*)
13036         # Lucid
13037         # FIXME: insert proper C++ library support
13038         ld_shlibs_CXX=no
13039         ;;
13040       *)
13041         # FIXME: insert proper C++ library support
13042         ld_shlibs_CXX=no
13043         ;;
13044     esac
13045     ;;
13046   solaris*)
13047     case $cc_basename in
13048       CC*)
13049         # Sun C++ 4.2, 5.x and Centerline C++
13050         archive_cmds_need_lc_CXX=yes
13051         no_undefined_flag_CXX=' -zdefs'
13052         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13053         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13054         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13055
13056         hardcode_libdir_flag_spec_CXX='-R$libdir'
13057         hardcode_shlibpath_var_CXX=no
13058         case $host_os in
13059           solaris2.[0-5] | solaris2.[0-5].*) ;;
13060           *)
13061             # The C++ compiler is used as linker so we must use $wl
13062             # flag to pass the commands to the underlying system
13063             # linker. We must also pass each convience library through
13064             # to the system linker between allextract/defaultextract.
13065             # The C++ compiler will combine linker options so we
13066             # cannot just pass the convience library names through
13067             # without $wl.
13068             # Supported since Solaris 2.6 (maybe 2.5.1?)
13069             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13070             ;;
13071         esac
13072         link_all_deplibs_CXX=yes
13073
13074         output_verbose_link_cmd='echo'
13075
13076         # Archives containing C++ object files must be created using
13077         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13078         # necessary to make sure instantiated templates are included
13079         # in the archive.
13080         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13081         ;;
13082       gcx*)
13083         # Green Hills C++ Compiler
13084         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13085
13086         # The C++ compiler must be used to create the archive.
13087         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13088         ;;
13089       *)
13090         # GNU C++ compiler with Solaris linker
13091         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13092           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13093           if $CC --version | grep -v '^2\.7' > /dev/null; then
13094             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13095             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13096                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13097
13098             # Commands to make compiler produce verbose output that lists
13099             # what "hidden" libraries, object files and flags are used when
13100             # linking a shared library.
13101             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13102           else
13103             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13104             # platform.
13105             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13106             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13107                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13108
13109             # Commands to make compiler produce verbose output that lists
13110             # what "hidden" libraries, object files and flags are used when
13111             # linking a shared library.
13112             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13113           fi
13114
13115           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13116         fi
13117         ;;
13118     esac
13119     ;;
13120   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13121     no_undefined_flag_CXX='${wl}-z,text'
13122     archive_cmds_need_lc_CXX=no
13123     hardcode_shlibpath_var_CXX=no
13124     runpath_var='LD_RUN_PATH'
13125
13126     case $cc_basename in
13127       CC*)
13128         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13129         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13130         ;;
13131       *)
13132         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13133         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13134         ;;
13135     esac
13136     ;;
13137   sysv5* | sco3.2v5* | sco5v6*)
13138     # Note: We can NOT use -z defs as we might desire, because we do not
13139     # link with -lc, and that would cause any symbols used from libc to
13140     # always be unresolved, which means just about no library would
13141     # ever link correctly.  If we're not using GNU ld we use -z text
13142     # though, which does catch some bad symbols but isn't as heavy-handed
13143     # as -z defs.
13144     # For security reasons, it is highly recommended that you always
13145     # use absolute paths for naming shared libraries, and exclude the
13146     # DT_RUNPATH tag from executables and libraries.  But doing so
13147     # requires that you compile everything twice, which is a pain.
13148     # So that behaviour is only enabled if SCOABSPATH is set to a
13149     # non-empty value in the environment.  Most likely only useful for
13150     # creating official distributions of packages.
13151     # This is a hack until libtool officially supports absolute path
13152     # names for shared libraries.
13153     no_undefined_flag_CXX='${wl}-z,text'
13154     allow_undefined_flag_CXX='${wl}-z,nodefs'
13155     archive_cmds_need_lc_CXX=no
13156     hardcode_shlibpath_var_CXX=no
13157     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13158     hardcode_libdir_separator_CXX=':'
13159     link_all_deplibs_CXX=yes
13160     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13161     runpath_var='LD_RUN_PATH'
13162
13163     case $cc_basename in
13164       CC*)
13165         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13166         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13167         ;;
13168       *)
13169         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13170         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13171         ;;
13172     esac
13173     ;;
13174   tandem*)
13175     case $cc_basename in
13176       NCC*)
13177         # NonStop-UX NCC 3.20
13178         # FIXME: insert proper C++ library support
13179         ld_shlibs_CXX=no
13180         ;;
13181       *)
13182         # FIXME: insert proper C++ library support
13183         ld_shlibs_CXX=no
13184         ;;
13185     esac
13186     ;;
13187   vxworks*)
13188     # FIXME: insert proper C++ library support
13189     ld_shlibs_CXX=no
13190     ;;
13191   *)
13192     # FIXME: insert proper C++ library support
13193     ld_shlibs_CXX=no
13194     ;;
13195 esac
13196 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13197 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13198 test "$ld_shlibs_CXX" = no && can_build_shared=no
13199
13200 GCC_CXX="$GXX"
13201 LD_CXX="$LD"
13202
13203
13204 cat > conftest.$ac_ext <<EOF
13205 class Foo
13206 {
13207 public:
13208   Foo (void) { a = 0; }
13209 private:
13210   int a;
13211 };
13212 EOF
13213
13214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13215   (eval $ac_compile) 2>&5
13216   ac_status=$?
13217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218   (exit $ac_status); }; then
13219   # Parse the compiler output and extract the necessary
13220   # objects, libraries and library flags.
13221
13222   # Sentinel used to keep track of whether or not we are before
13223   # the conftest object file.
13224   pre_test_object_deps_done=no
13225
13226   # The `*' in the case matches for architectures that use `case' in
13227   # $output_verbose_cmd can trigger glob expansion during the loop
13228   # eval without this substitution.
13229   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13230
13231   for p in `eval $output_verbose_link_cmd`; do
13232     case $p in
13233
13234     -L* | -R* | -l*)
13235        # Some compilers place space between "-{L,R}" and the path.
13236        # Remove the space.
13237        if test $p = "-L" \
13238           || test $p = "-R"; then
13239          prev=$p
13240          continue
13241        else
13242          prev=
13243        fi
13244
13245        if test "$pre_test_object_deps_done" = no; then
13246          case $p in
13247          -L* | -R*)
13248            # Internal compiler library paths should come after those
13249            # provided the user.  The postdeps already come after the
13250            # user supplied libs so there is no need to process them.
13251            if test -z "$compiler_lib_search_path_CXX"; then
13252              compiler_lib_search_path_CXX="${prev}${p}"
13253            else
13254              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13255            fi
13256            ;;
13257          # The "-l" case would never come before the object being
13258          # linked, so don't bother handling this case.
13259          esac
13260        else
13261          if test -z "$postdeps_CXX"; then
13262            postdeps_CXX="${prev}${p}"
13263          else
13264            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13265          fi
13266        fi
13267        ;;
13268
13269     *.$objext)
13270        # This assumes that the test object file only shows up
13271        # once in the compiler output.
13272        if test "$p" = "conftest.$objext"; then
13273          pre_test_object_deps_done=yes
13274          continue
13275        fi
13276
13277        if test "$pre_test_object_deps_done" = no; then
13278          if test -z "$predep_objects_CXX"; then
13279            predep_objects_CXX="$p"
13280          else
13281            predep_objects_CXX="$predep_objects_CXX $p"
13282          fi
13283        else
13284          if test -z "$postdep_objects_CXX"; then
13285            postdep_objects_CXX="$p"
13286          else
13287            postdep_objects_CXX="$postdep_objects_CXX $p"
13288          fi
13289        fi
13290        ;;
13291
13292     *) ;; # Ignore the rest.
13293
13294     esac
13295   done
13296
13297   # Clean up.
13298   rm -f a.out a.exe
13299 else
13300   echo "libtool.m4: error: problem compiling CXX test program"
13301 fi
13302
13303 $rm -f confest.$objext
13304
13305 # PORTME: override above test on systems where it is broken
13306 case $host_os in
13307 interix3*)
13308   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13309   # hack all around it, let's just trust "g++" to DTRT.
13310   predep_objects_CXX=
13311   postdep_objects_CXX=
13312   postdeps_CXX=
13313   ;;
13314
13315 solaris*)
13316   case $cc_basename in
13317   CC*)
13318     # Adding this requires a known-good setup of shared libraries for
13319     # Sun compiler versions before 5.6, else PIC objects from an old
13320     # archive will be linked into the output, leading to subtle bugs.
13321     postdeps_CXX='-lCstd -lCrun'
13322     ;;
13323   esac
13324   ;;
13325 esac
13326
13327
13328 case " $postdeps_CXX " in
13329 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13330 esac
13331
13332 lt_prog_compiler_wl_CXX=
13333 lt_prog_compiler_pic_CXX=
13334 lt_prog_compiler_static_CXX=
13335
13336 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13337 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13338
13339   # C++ specific cases for pic, static, wl, etc.
13340   if test "$GXX" = yes; then
13341     lt_prog_compiler_wl_CXX='-Wl,'
13342     lt_prog_compiler_static_CXX='-static'
13343
13344     case $host_os in
13345     aix*)
13346       # All AIX code is PIC.
13347       if test "$host_cpu" = ia64; then
13348         # AIX 5 now supports IA64 processor
13349         lt_prog_compiler_static_CXX='-Bstatic'
13350       fi
13351       ;;
13352     amigaos*)
13353       # FIXME: we need at least 68020 code to build shared libraries, but
13354       # adding the `-m68020' flag to GCC prevents building anything better,
13355       # like `-m68040'.
13356       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13357       ;;
13358     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13359       # PIC is the default for these OSes.
13360       ;;
13361     mingw* | os2* | pw32*)
13362       # This hack is so that the source file can tell whether it is being
13363       # built for inclusion in a dll (and should export symbols for example).
13364       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13365       ;;
13366     darwin* | rhapsody*)
13367       # PIC is the default on this platform
13368       # Common symbols not allowed in MH_DYLIB files
13369       lt_prog_compiler_pic_CXX='-fno-common'
13370       ;;
13371     *djgpp*)
13372       # DJGPP does not support shared libraries at all
13373       lt_prog_compiler_pic_CXX=
13374       ;;
13375     interix3*)
13376       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13377       # Instead, we relocate shared libraries at runtime.
13378       ;;
13379     sysv4*MP*)
13380       if test -d /usr/nec; then
13381         lt_prog_compiler_pic_CXX=-Kconform_pic
13382       fi
13383       ;;
13384     hpux*)
13385       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13386       # not for PA HP-UX.
13387       case $host_cpu in
13388       hppa*64*|ia64*)
13389         ;;
13390       *)
13391         lt_prog_compiler_pic_CXX='-fPIC'
13392         ;;
13393       esac
13394       ;;
13395     *)
13396       lt_prog_compiler_pic_CXX='-fPIC'
13397       ;;
13398     esac
13399   else
13400     case $host_os in
13401       aix4* | aix5*)
13402         # All AIX code is PIC.
13403         if test "$host_cpu" = ia64; then
13404           # AIX 5 now supports IA64 processor
13405           lt_prog_compiler_static_CXX='-Bstatic'
13406         else
13407           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13408         fi
13409         ;;
13410       chorus*)
13411         case $cc_basename in
13412         cxch68*)
13413           # Green Hills C++ Compiler
13414           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13415           ;;
13416         esac
13417         ;;
13418        darwin*)
13419          # PIC is the default on this platform
13420          # Common symbols not allowed in MH_DYLIB files
13421          case $cc_basename in
13422            xlc*)
13423            lt_prog_compiler_pic_CXX='-qnocommon'
13424            lt_prog_compiler_wl_CXX='-Wl,'
13425            ;;
13426          esac
13427        ;;
13428       dgux*)
13429         case $cc_basename in
13430           ec++*)
13431             lt_prog_compiler_pic_CXX='-KPIC'
13432             ;;
13433           ghcx*)
13434             # Green Hills C++ Compiler
13435             lt_prog_compiler_pic_CXX='-pic'
13436             ;;
13437           *)
13438             ;;
13439         esac
13440         ;;
13441       freebsd* | dragonfly*)
13442         # FreeBSD uses GNU C++
13443         ;;
13444       hpux9* | hpux10* | hpux11*)
13445         case $cc_basename in
13446           CC*)
13447             lt_prog_compiler_wl_CXX='-Wl,'
13448             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13449             if test "$host_cpu" != ia64; then
13450               lt_prog_compiler_pic_CXX='+Z'
13451             fi
13452             ;;
13453           aCC*)
13454             lt_prog_compiler_wl_CXX='-Wl,'
13455             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13456             case $host_cpu in
13457             hppa*64*|ia64*)
13458               # +Z the default
13459               ;;
13460             *)
13461               lt_prog_compiler_pic_CXX='+Z'
13462               ;;
13463             esac
13464             ;;
13465           *)
13466             ;;
13467         esac
13468         ;;
13469       interix*)
13470         # This is c89, which is MS Visual C++ (no shared libs)
13471         # Anyone wants to do a port?
13472         ;;
13473       irix5* | irix6* | nonstopux*)
13474         case $cc_basename in
13475           CC*)
13476             lt_prog_compiler_wl_CXX='-Wl,'
13477             lt_prog_compiler_static_CXX='-non_shared'
13478             # CC pic flag -KPIC is the default.
13479             ;;
13480           *)
13481             ;;
13482         esac
13483         ;;
13484       linux* | k*bsd*-gnu)
13485         case $cc_basename in
13486           KCC*)
13487             # KAI C++ Compiler
13488             lt_prog_compiler_wl_CXX='--backend -Wl,'
13489             lt_prog_compiler_pic_CXX='-fPIC'
13490             ;;
13491           icpc* | ecpc*)
13492             # Intel C++
13493             lt_prog_compiler_wl_CXX='-Wl,'
13494             lt_prog_compiler_pic_CXX='-KPIC'
13495             lt_prog_compiler_static_CXX='-static'
13496             ;;
13497           pgCC*)
13498             # Portland Group C++ compiler.
13499             lt_prog_compiler_wl_CXX='-Wl,'
13500             lt_prog_compiler_pic_CXX='-fpic'
13501             lt_prog_compiler_static_CXX='-Bstatic'
13502             ;;
13503           cxx*)
13504             # Compaq C++
13505             # Make sure the PIC flag is empty.  It appears that all Alpha
13506             # Linux and Compaq Tru64 Unix objects are PIC.
13507             lt_prog_compiler_pic_CXX=
13508             lt_prog_compiler_static_CXX='-non_shared'
13509             ;;
13510           *)
13511             ;;
13512         esac
13513         ;;
13514       lynxos*)
13515         ;;
13516       m88k*)
13517         ;;
13518       mvs*)
13519         case $cc_basename in
13520           cxx*)
13521             lt_prog_compiler_pic_CXX='-W c,exportall'
13522             ;;
13523           *)
13524             ;;
13525         esac
13526         ;;
13527       netbsd* | netbsdelf*-gnu)
13528         ;;
13529       osf3* | osf4* | osf5*)
13530         case $cc_basename in
13531           KCC*)
13532             lt_prog_compiler_wl_CXX='--backend -Wl,'
13533             ;;
13534           RCC*)
13535             # Rational C++ 2.4.1
13536             lt_prog_compiler_pic_CXX='-pic'
13537             ;;
13538           cxx*)
13539             # Digital/Compaq C++
13540             lt_prog_compiler_wl_CXX='-Wl,'
13541             # Make sure the PIC flag is empty.  It appears that all Alpha
13542             # Linux and Compaq Tru64 Unix objects are PIC.
13543             lt_prog_compiler_pic_CXX=
13544             lt_prog_compiler_static_CXX='-non_shared'
13545             ;;
13546           *)
13547             ;;
13548         esac
13549         ;;
13550       psos*)
13551         ;;
13552       solaris*)
13553         case $cc_basename in
13554           CC*)
13555             # Sun C++ 4.2, 5.x and Centerline C++
13556             lt_prog_compiler_pic_CXX='-KPIC'
13557             lt_prog_compiler_static_CXX='-Bstatic'
13558             lt_prog_compiler_wl_CXX='-Qoption ld '
13559             ;;
13560           gcx*)
13561             # Green Hills C++ Compiler
13562             lt_prog_compiler_pic_CXX='-PIC'
13563             ;;
13564           *)
13565             ;;
13566         esac
13567         ;;
13568       sunos4*)
13569         case $cc_basename in
13570           CC*)
13571             # Sun C++ 4.x
13572             lt_prog_compiler_pic_CXX='-pic'
13573             lt_prog_compiler_static_CXX='-Bstatic'
13574             ;;
13575           lcc*)
13576             # Lucid
13577             lt_prog_compiler_pic_CXX='-pic'
13578             ;;
13579           *)
13580             ;;
13581         esac
13582         ;;
13583       tandem*)
13584         case $cc_basename in
13585           NCC*)
13586             # NonStop-UX NCC 3.20
13587             lt_prog_compiler_pic_CXX='-KPIC'
13588             ;;
13589           *)
13590             ;;
13591         esac
13592         ;;
13593       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13594         case $cc_basename in
13595           CC*)
13596             lt_prog_compiler_wl_CXX='-Wl,'
13597             lt_prog_compiler_pic_CXX='-KPIC'
13598             lt_prog_compiler_static_CXX='-Bstatic'
13599             ;;
13600         esac
13601         ;;
13602       vxworks*)
13603         ;;
13604       *)
13605         lt_prog_compiler_can_build_shared_CXX=no
13606         ;;
13607     esac
13608   fi
13609
13610 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13611 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13612
13613 #
13614 # Check to make sure the PIC flag actually works.
13615 #
13616 if test -n "$lt_prog_compiler_pic_CXX"; then
13617
13618 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13619 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13620 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13621   echo $ECHO_N "(cached) $ECHO_C" >&6
13622 else
13623   lt_prog_compiler_pic_works_CXX=no
13624   ac_outfile=conftest.$ac_objext
13625    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13626    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13627    # Insert the option either (1) after the last *FLAGS variable, or
13628    # (2) before a word containing "conftest.", or (3) at the end.
13629    # Note that $ac_compile itself does not contain backslashes and begins
13630    # with a dollar sign (not a hyphen), so the echo should work correctly.
13631    # The option is referenced via a variable to avoid confusing sed.
13632    lt_compile=`echo "$ac_compile" | $SED \
13633    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13634    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13635    -e 's:$: $lt_compiler_flag:'`
13636    (eval echo "\"\$as_me:13636: $lt_compile\"" >&5)
13637    (eval "$lt_compile" 2>conftest.err)
13638    ac_status=$?
13639    cat conftest.err >&5
13640    echo "$as_me:13640: \$? = $ac_status" >&5
13641    if (exit $ac_status) && test -s "$ac_outfile"; then
13642      # The compiler can only warn and ignore the option if not recognized
13643      # So say no if there are warnings other than the usual output.
13644      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13645      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13646      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13647        lt_prog_compiler_pic_works_CXX=yes
13648      fi
13649    fi
13650    $rm conftest*
13651
13652 fi
13653 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13654 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13655
13656 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13657     case $lt_prog_compiler_pic_CXX in
13658      "" | " "*) ;;
13659      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13660      esac
13661 else
13662     lt_prog_compiler_pic_CXX=
13663      lt_prog_compiler_can_build_shared_CXX=no
13664 fi
13665
13666 fi
13667 case $host_os in
13668   # For platforms which do not support PIC, -DPIC is meaningless:
13669   *djgpp*)
13670     lt_prog_compiler_pic_CXX=
13671     ;;
13672   *)
13673     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13674     ;;
13675 esac
13676
13677 #
13678 # Check to make sure the static flag actually works.
13679 #
13680 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13681 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13682 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13683 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13684   echo $ECHO_N "(cached) $ECHO_C" >&6
13685 else
13686   lt_prog_compiler_static_works_CXX=no
13687    save_LDFLAGS="$LDFLAGS"
13688    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13689    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13690    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13691      # The linker can only warn and ignore the option if not recognized
13692      # So say no if there are warnings
13693      if test -s conftest.err; then
13694        # Append any errors to the config.log.
13695        cat conftest.err 1>&5
13696        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13697        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13698        if diff conftest.exp conftest.er2 >/dev/null; then
13699          lt_prog_compiler_static_works_CXX=yes
13700        fi
13701      else
13702        lt_prog_compiler_static_works_CXX=yes
13703      fi
13704    fi
13705    $rm conftest*
13706    LDFLAGS="$save_LDFLAGS"
13707
13708 fi
13709 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13710 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13711
13712 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13713     :
13714 else
13715     lt_prog_compiler_static_CXX=
13716 fi
13717
13718
13719 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13720 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13721 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13722   echo $ECHO_N "(cached) $ECHO_C" >&6
13723 else
13724   lt_cv_prog_compiler_c_o_CXX=no
13725    $rm -r conftest 2>/dev/null
13726    mkdir conftest
13727    cd conftest
13728    mkdir out
13729    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13730
13731    lt_compiler_flag="-o out/conftest2.$ac_objext"
13732    # Insert the option either (1) after the last *FLAGS variable, or
13733    # (2) before a word containing "conftest.", or (3) at the end.
13734    # Note that $ac_compile itself does not contain backslashes and begins
13735    # with a dollar sign (not a hyphen), so the echo should work correctly.
13736    lt_compile=`echo "$ac_compile" | $SED \
13737    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13738    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13739    -e 's:$: $lt_compiler_flag:'`
13740    (eval echo "\"\$as_me:13740: $lt_compile\"" >&5)
13741    (eval "$lt_compile" 2>out/conftest.err)
13742    ac_status=$?
13743    cat out/conftest.err >&5
13744    echo "$as_me:13744: \$? = $ac_status" >&5
13745    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13746    then
13747      # The compiler can only warn and ignore the option if not recognized
13748      # So say no if there are warnings
13749      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13750      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13751      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13752        lt_cv_prog_compiler_c_o_CXX=yes
13753      fi
13754    fi
13755    chmod u+w . 2>&5
13756    $rm conftest*
13757    # SGI C++ compiler will create directory out/ii_files/ for
13758    # template instantiation
13759    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13760    $rm out/* && rmdir out
13761    cd ..
13762    rmdir conftest
13763    $rm conftest*
13764
13765 fi
13766 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13767 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13768
13769
13770 hard_links="nottested"
13771 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13772   # do not overwrite the value of need_locks provided by the user
13773   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13774 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13775   hard_links=yes
13776   $rm conftest*
13777   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13778   touch conftest.a
13779   ln conftest.a conftest.b 2>&5 || hard_links=no
13780   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13781   { echo "$as_me:$LINENO: result: $hard_links" >&5
13782 echo "${ECHO_T}$hard_links" >&6; }
13783   if test "$hard_links" = no; then
13784     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13785 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13786     need_locks=warn
13787   fi
13788 else
13789   need_locks=no
13790 fi
13791
13792 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13793 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13794
13795   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13796   case $host_os in
13797   aix4* | aix5*)
13798     # If we're using GNU nm, then we don't want the "-C" option.
13799     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13800     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13801       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13802     else
13803       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13804     fi
13805     ;;
13806   pw32*)
13807     export_symbols_cmds_CXX="$ltdll_cmds"
13808   ;;
13809   cygwin* | mingw*)
13810     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13811   ;;
13812   linux* | k*bsd*-gnu)
13813     link_all_deplibs_CXX=no
13814   ;;
13815   *)
13816     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13817   ;;
13818   esac
13819
13820 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13821 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13822 test "$ld_shlibs_CXX" = no && can_build_shared=no
13823
13824 #
13825 # Do we need to explicitly link libc?
13826 #
13827 case "x$archive_cmds_need_lc_CXX" in
13828 x|xyes)
13829   # Assume -lc should be added
13830   archive_cmds_need_lc_CXX=yes
13831
13832   if test "$enable_shared" = yes && test "$GCC" = yes; then
13833     case $archive_cmds_CXX in
13834     *'~'*)
13835       # FIXME: we may have to deal with multi-command sequences.
13836       ;;
13837     '$CC '*)
13838       # Test whether the compiler implicitly links with -lc since on some
13839       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13840       # to ld, don't add -lc before -lgcc.
13841       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13842 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13843       $rm conftest*
13844       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13845
13846       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13847   (eval $ac_compile) 2>&5
13848   ac_status=$?
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); } 2>conftest.err; then
13851         soname=conftest
13852         lib=conftest
13853         libobjs=conftest.$ac_objext
13854         deplibs=
13855         wl=$lt_prog_compiler_wl_CXX
13856         pic_flag=$lt_prog_compiler_pic_CXX
13857         compiler_flags=-v
13858         linker_flags=-v
13859         verstring=
13860         output_objdir=.
13861         libname=conftest
13862         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13863         allow_undefined_flag_CXX=
13864         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13865   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13866   ac_status=$?
13867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868   (exit $ac_status); }
13869         then
13870           archive_cmds_need_lc_CXX=no
13871         else
13872           archive_cmds_need_lc_CXX=yes
13873         fi
13874         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13875       else
13876         cat conftest.err 1>&5
13877       fi
13878       $rm conftest*
13879       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13880 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13881       ;;
13882     esac
13883   fi
13884   ;;
13885 esac
13886
13887 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13888 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13889 library_names_spec=
13890 libname_spec='lib$name'
13891 soname_spec=
13892 shrext_cmds=".so"
13893 postinstall_cmds=
13894 postuninstall_cmds=
13895 finish_cmds=
13896 finish_eval=
13897 shlibpath_var=
13898 shlibpath_overrides_runpath=unknown
13899 version_type=none
13900 dynamic_linker="$host_os ld.so"
13901 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13902 if test "$GCC" = yes; then
13903   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13904   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13905     # if the path contains ";" then we assume it to be the separator
13906     # otherwise default to the standard path separator (i.e. ":") - it is
13907     # assumed that no part of a normal pathname contains ";" but that should
13908     # okay in the real world where ";" in dirpaths is itself problematic.
13909     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13910   else
13911     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13912   fi
13913 else
13914   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13915 fi
13916 need_lib_prefix=unknown
13917 hardcode_into_libs=no
13918
13919 # when you set need_version to no, make sure it does not cause -set_version
13920 # flags to be left without arguments
13921 need_version=unknown
13922
13923 case $host_os in
13924 aix3*)
13925   version_type=linux
13926   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13927   shlibpath_var=LIBPATH
13928
13929   # AIX 3 has no versioning support, so we append a major version to the name.
13930   soname_spec='${libname}${release}${shared_ext}$major'
13931   ;;
13932
13933 aix4* | aix5*)
13934   version_type=linux
13935   need_lib_prefix=no
13936   need_version=no
13937   hardcode_into_libs=yes
13938   if test "$host_cpu" = ia64; then
13939     # AIX 5 supports IA64
13940     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13941     shlibpath_var=LD_LIBRARY_PATH
13942   else
13943     # With GCC up to 2.95.x, collect2 would create an import file
13944     # for dependence libraries.  The import file would start with
13945     # the line `#! .'.  This would cause the generated library to
13946     # depend on `.', always an invalid library.  This was fixed in
13947     # development snapshots of GCC prior to 3.0.
13948     case $host_os in
13949       aix4 | aix4.[01] | aix4.[01].*)
13950       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13951            echo ' yes '
13952            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13953         :
13954       else
13955         can_build_shared=no
13956       fi
13957       ;;
13958     esac
13959     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13960     # soname into executable. Probably we can add versioning support to
13961     # collect2, so additional links can be useful in future.
13962     if test "$aix_use_runtimelinking" = yes; then
13963       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13964       # instead of lib<name>.a to let people know that these are not
13965       # typical AIX shared libraries.
13966       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13967     else
13968       # We preserve .a as extension for shared libraries through AIX4.2
13969       # and later when we are not doing run time linking.
13970       library_names_spec='${libname}${release}.a $libname.a'
13971       soname_spec='${libname}${release}${shared_ext}$major'
13972     fi
13973     shlibpath_var=LIBPATH
13974   fi
13975   ;;
13976
13977 amigaos*)
13978   library_names_spec='$libname.ixlibrary $libname.a'
13979   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13980   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13981   ;;
13982
13983 beos*)
13984   library_names_spec='${libname}${shared_ext}'
13985   dynamic_linker="$host_os ld.so"
13986   shlibpath_var=LIBRARY_PATH
13987   ;;
13988
13989 bsdi[45]*)
13990   version_type=linux
13991   need_version=no
13992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13993   soname_spec='${libname}${release}${shared_ext}$major'
13994   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13995   shlibpath_var=LD_LIBRARY_PATH
13996   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13997   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13998   # the default ld.so.conf also contains /usr/contrib/lib and
13999   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14000   # libtool to hard-code these into programs
14001   ;;
14002
14003 cygwin* | mingw* | pw32*)
14004   version_type=windows
14005   shrext_cmds=".dll"
14006   need_version=no
14007   need_lib_prefix=no
14008
14009   case $GCC,$host_os in
14010   yes,cygwin* | yes,mingw* | yes,pw32*)
14011     library_names_spec='$libname.dll.a'
14012     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14013     postinstall_cmds='base_file=`basename \${file}`~
14014       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14015       dldir=$destdir/`dirname \$dlpath`~
14016       test -d \$dldir || mkdir -p \$dldir~
14017       $install_prog $dir/$dlname \$dldir/$dlname~
14018       chmod a+x \$dldir/$dlname'
14019     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14020       dlpath=$dir/\$dldll~
14021        $rm \$dlpath'
14022     shlibpath_overrides_runpath=yes
14023
14024     case $host_os in
14025     cygwin*)
14026       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14027       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14028       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14029       ;;
14030     mingw*)
14031       # MinGW DLLs use traditional 'lib' prefix
14032       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14033       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14034       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14035         # It is most probably a Windows format PATH printed by
14036         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14037         # path with ; separators, and with drive letters. We can handle the
14038         # drive letters (cygwin fileutils understands them), so leave them,
14039         # especially as we might pass files found there to a mingw objdump,
14040         # which wouldn't understand a cygwinified path. Ahh.
14041         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14042       else
14043         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14044       fi
14045       ;;
14046     pw32*)
14047       # pw32 DLLs use 'pw' prefix rather than 'lib'
14048       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14049       ;;
14050     esac
14051     ;;
14052
14053   *)
14054     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14055     ;;
14056   esac
14057   dynamic_linker='Win32 ld.exe'
14058   # FIXME: first we should search . and the directory the executable is in
14059   shlibpath_var=PATH
14060   ;;
14061
14062 darwin* | rhapsody*)
14063   dynamic_linker="$host_os dyld"
14064   version_type=darwin
14065   need_lib_prefix=no
14066   need_version=no
14067   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14068   soname_spec='${libname}${release}${major}$shared_ext'
14069   shlibpath_overrides_runpath=yes
14070   shlibpath_var=DYLD_LIBRARY_PATH
14071   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14072   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14073   if test "$GCC" = yes; then
14074     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14075   else
14076     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14077   fi
14078   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14079   ;;
14080
14081 dgux*)
14082   version_type=linux
14083   need_lib_prefix=no
14084   need_version=no
14085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14086   soname_spec='${libname}${release}${shared_ext}$major'
14087   shlibpath_var=LD_LIBRARY_PATH
14088   ;;
14089
14090 freebsd1*)
14091   dynamic_linker=no
14092   ;;
14093
14094 freebsd* | dragonfly*)
14095   # DragonFly does not have aout.  When/if they implement a new
14096   # versioning mechanism, adjust this.
14097   if test -x /usr/bin/objformat; then
14098     objformat=`/usr/bin/objformat`
14099   else
14100     case $host_os in
14101     freebsd[123]*) objformat=aout ;;
14102     *) objformat=elf ;;
14103     esac
14104   fi
14105   version_type=freebsd-$objformat
14106   case $version_type in
14107     freebsd-elf*)
14108       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14109       need_version=no
14110       need_lib_prefix=no
14111       ;;
14112     freebsd-*)
14113       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14114       need_version=yes
14115       ;;
14116   esac
14117   shlibpath_var=LD_LIBRARY_PATH
14118   case $host_os in
14119   freebsd2*)
14120     shlibpath_overrides_runpath=yes
14121     ;;
14122   freebsd3.[01]* | freebsdelf3.[01]*)
14123     shlibpath_overrides_runpath=yes
14124     hardcode_into_libs=yes
14125     ;;
14126   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14127   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14128     shlibpath_overrides_runpath=no
14129     hardcode_into_libs=yes
14130     ;;
14131   freebsd*) # from 4.6 on
14132     shlibpath_overrides_runpath=yes
14133     hardcode_into_libs=yes
14134     ;;
14135   esac
14136   ;;
14137
14138 gnu*)
14139   version_type=linux
14140   need_lib_prefix=no
14141   need_version=no
14142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14143   soname_spec='${libname}${release}${shared_ext}$major'
14144   shlibpath_var=LD_LIBRARY_PATH
14145   hardcode_into_libs=yes
14146   ;;
14147
14148 hpux9* | hpux10* | hpux11*)
14149   # Give a soname corresponding to the major version so that dld.sl refuses to
14150   # link against other versions.
14151   version_type=sunos
14152   need_lib_prefix=no
14153   need_version=no
14154   case $host_cpu in
14155   ia64*)
14156     shrext_cmds='.so'
14157     hardcode_into_libs=yes
14158     dynamic_linker="$host_os dld.so"
14159     shlibpath_var=LD_LIBRARY_PATH
14160     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14161     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14162     soname_spec='${libname}${release}${shared_ext}$major'
14163     if test "X$HPUX_IA64_MODE" = X32; then
14164       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14165     else
14166       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14167     fi
14168     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14169     ;;
14170    hppa*64*)
14171      shrext_cmds='.sl'
14172      hardcode_into_libs=yes
14173      dynamic_linker="$host_os dld.sl"
14174      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14175      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14176      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14177      soname_spec='${libname}${release}${shared_ext}$major'
14178      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14179      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14180      ;;
14181    *)
14182     shrext_cmds='.sl'
14183     dynamic_linker="$host_os dld.sl"
14184     shlibpath_var=SHLIB_PATH
14185     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14186     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187     soname_spec='${libname}${release}${shared_ext}$major'
14188     ;;
14189   esac
14190   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14191   postinstall_cmds='chmod 555 $lib'
14192   ;;
14193
14194 interix3*)
14195   version_type=linux
14196   need_lib_prefix=no
14197   need_version=no
14198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14199   soname_spec='${libname}${release}${shared_ext}$major'
14200   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14201   shlibpath_var=LD_LIBRARY_PATH
14202   shlibpath_overrides_runpath=no
14203   hardcode_into_libs=yes
14204   ;;
14205
14206 irix5* | irix6* | nonstopux*)
14207   case $host_os in
14208     nonstopux*) version_type=nonstopux ;;
14209     *)
14210         if test "$lt_cv_prog_gnu_ld" = yes; then
14211                 version_type=linux
14212         else
14213                 version_type=irix
14214         fi ;;
14215   esac
14216   need_lib_prefix=no
14217   need_version=no
14218   soname_spec='${libname}${release}${shared_ext}$major'
14219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14220   case $host_os in
14221   irix5* | nonstopux*)
14222     libsuff= shlibsuff=
14223     ;;
14224   *)
14225     case $LD in # libtool.m4 will add one of these switches to LD
14226     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14227       libsuff= shlibsuff= libmagic=32-bit;;
14228     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14229       libsuff=32 shlibsuff=N32 libmagic=N32;;
14230     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14231       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14232     *) libsuff= shlibsuff= libmagic=never-match;;
14233     esac
14234     ;;
14235   esac
14236   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14237   shlibpath_overrides_runpath=no
14238   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14239   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14240   hardcode_into_libs=yes
14241   ;;
14242
14243 # No shared lib support for Linux oldld, aout, or coff.
14244 linux*oldld* | linux*aout* | linux*coff*)
14245   dynamic_linker=no
14246   ;;
14247
14248 # This must be Linux ELF.
14249 linux* | k*bsd*-gnu)
14250   version_type=linux
14251   need_lib_prefix=no
14252   need_version=no
14253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14254   soname_spec='${libname}${release}${shared_ext}$major'
14255   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14256   shlibpath_var=LD_LIBRARY_PATH
14257   shlibpath_overrides_runpath=no
14258   # This implies no fast_install, which is unacceptable.
14259   # Some rework will be needed to allow for fast_install
14260   # before this can be enabled.
14261   hardcode_into_libs=yes
14262
14263   # Append ld.so.conf contents to the search path
14264   if test -f /etc/ld.so.conf; then
14265     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14266     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14267   fi
14268
14269   # We used to test for /lib/ld.so.1 and disable shared libraries on
14270   # powerpc, because MkLinux only supported shared libraries with the
14271   # GNU dynamic linker.  Since this was broken with cross compilers,
14272   # most powerpc-linux boxes support dynamic linking these days and
14273   # people can always --disable-shared, the test was removed, and we
14274   # assume the GNU/Linux dynamic linker is in use.
14275   dynamic_linker='GNU/Linux ld.so'
14276   ;;
14277
14278 netbsdelf*-gnu)
14279   version_type=linux
14280   need_lib_prefix=no
14281   need_version=no
14282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14283   soname_spec='${libname}${release}${shared_ext}$major'
14284   shlibpath_var=LD_LIBRARY_PATH
14285   shlibpath_overrides_runpath=no
14286   hardcode_into_libs=yes
14287   dynamic_linker='NetBSD ld.elf_so'
14288   ;;
14289
14290 netbsd*)
14291   version_type=sunos
14292   need_lib_prefix=no
14293   need_version=no
14294   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14296     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14297     dynamic_linker='NetBSD (a.out) ld.so'
14298   else
14299     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14300     soname_spec='${libname}${release}${shared_ext}$major'
14301     dynamic_linker='NetBSD ld.elf_so'
14302   fi
14303   shlibpath_var=LD_LIBRARY_PATH
14304   shlibpath_overrides_runpath=yes
14305   hardcode_into_libs=yes
14306   ;;
14307
14308 newsos6)
14309   version_type=linux
14310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14311   shlibpath_var=LD_LIBRARY_PATH
14312   shlibpath_overrides_runpath=yes
14313   ;;
14314
14315 nto-qnx*)
14316   version_type=linux
14317   need_lib_prefix=no
14318   need_version=no
14319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14320   soname_spec='${libname}${release}${shared_ext}$major'
14321   shlibpath_var=LD_LIBRARY_PATH
14322   shlibpath_overrides_runpath=yes
14323   ;;
14324
14325 openbsd*)
14326   version_type=sunos
14327   sys_lib_dlsearch_path_spec="/usr/lib"
14328   need_lib_prefix=no
14329   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14330   case $host_os in
14331     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14332     *)                         need_version=no  ;;
14333   esac
14334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14335   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14336   shlibpath_var=LD_LIBRARY_PATH
14337   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14338     case $host_os in
14339       openbsd2.[89] | openbsd2.[89].*)
14340         shlibpath_overrides_runpath=no
14341         ;;
14342       *)
14343         shlibpath_overrides_runpath=yes
14344         ;;
14345       esac
14346   else
14347     shlibpath_overrides_runpath=yes
14348   fi
14349   ;;
14350
14351 os2*)
14352   libname_spec='$name'
14353   shrext_cmds=".dll"
14354   need_lib_prefix=no
14355   library_names_spec='$libname${shared_ext} $libname.a'
14356   dynamic_linker='OS/2 ld.exe'
14357   shlibpath_var=LIBPATH
14358   ;;
14359
14360 osf3* | osf4* | osf5*)
14361   version_type=osf
14362   need_lib_prefix=no
14363   need_version=no
14364   soname_spec='${libname}${release}${shared_ext}$major'
14365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14366   shlibpath_var=LD_LIBRARY_PATH
14367   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14368   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14369   ;;
14370
14371 solaris*)
14372   version_type=linux
14373   need_lib_prefix=no
14374   need_version=no
14375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14376   soname_spec='${libname}${release}${shared_ext}$major'
14377   shlibpath_var=LD_LIBRARY_PATH
14378   shlibpath_overrides_runpath=yes
14379   hardcode_into_libs=yes
14380   # ldd complains unless libraries are executable
14381   postinstall_cmds='chmod +x $lib'
14382   ;;
14383
14384 sunos4*)
14385   version_type=sunos
14386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14387   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14388   shlibpath_var=LD_LIBRARY_PATH
14389   shlibpath_overrides_runpath=yes
14390   if test "$with_gnu_ld" = yes; then
14391     need_lib_prefix=no
14392   fi
14393   need_version=yes
14394   ;;
14395
14396 sysv4 | sysv4.3*)
14397   version_type=linux
14398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14399   soname_spec='${libname}${release}${shared_ext}$major'
14400   shlibpath_var=LD_LIBRARY_PATH
14401   case $host_vendor in
14402     sni)
14403       shlibpath_overrides_runpath=no
14404       need_lib_prefix=no
14405       export_dynamic_flag_spec='${wl}-Blargedynsym'
14406       runpath_var=LD_RUN_PATH
14407       ;;
14408     siemens)
14409       need_lib_prefix=no
14410       ;;
14411     motorola)
14412       need_lib_prefix=no
14413       need_version=no
14414       shlibpath_overrides_runpath=no
14415       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14416       ;;
14417   esac
14418   ;;
14419
14420 sysv4*MP*)
14421   if test -d /usr/nec ;then
14422     version_type=linux
14423     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14424     soname_spec='$libname${shared_ext}.$major'
14425     shlibpath_var=LD_LIBRARY_PATH
14426   fi
14427   ;;
14428
14429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14430   version_type=freebsd-elf
14431   need_lib_prefix=no
14432   need_version=no
14433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14434   soname_spec='${libname}${release}${shared_ext}$major'
14435   shlibpath_var=LD_LIBRARY_PATH
14436   hardcode_into_libs=yes
14437   if test "$with_gnu_ld" = yes; then
14438     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14439     shlibpath_overrides_runpath=no
14440   else
14441     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14442     shlibpath_overrides_runpath=yes
14443     case $host_os in
14444       sco3.2v5*)
14445         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14446         ;;
14447     esac
14448   fi
14449   sys_lib_dlsearch_path_spec='/usr/lib'
14450   ;;
14451
14452 uts4*)
14453   version_type=linux
14454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14455   soname_spec='${libname}${release}${shared_ext}$major'
14456   shlibpath_var=LD_LIBRARY_PATH
14457   ;;
14458
14459 *)
14460   dynamic_linker=no
14461   ;;
14462 esac
14463 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14464 echo "${ECHO_T}$dynamic_linker" >&6; }
14465 test "$dynamic_linker" = no && can_build_shared=no
14466
14467 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14468 if test "$GCC" = yes; then
14469   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14470 fi
14471
14472 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14473 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14474 hardcode_action_CXX=
14475 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14476    test -n "$runpath_var_CXX" || \
14477    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14478
14479   # We can hardcode non-existant directories.
14480   if test "$hardcode_direct_CXX" != no &&
14481      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14482      # have to relink, otherwise we might link with an installed library
14483      # when we should be linking with a yet-to-be-installed one
14484      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14485      test "$hardcode_minus_L_CXX" != no; then
14486     # Linking always hardcodes the temporary library directory.
14487     hardcode_action_CXX=relink
14488   else
14489     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14490     hardcode_action_CXX=immediate
14491   fi
14492 else
14493   # We cannot hardcode anything, or else we can only hardcode existing
14494   # directories.
14495   hardcode_action_CXX=unsupported
14496 fi
14497 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14498 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14499
14500 if test "$hardcode_action_CXX" = relink; then
14501   # Fast installation is not supported
14502   enable_fast_install=no
14503 elif test "$shlibpath_overrides_runpath" = yes ||
14504      test "$enable_shared" = no; then
14505   # Fast installation is not necessary
14506   enable_fast_install=needless
14507 fi
14508
14509
14510 # The else clause should only fire when bootstrapping the
14511 # libtool distribution, otherwise you forgot to ship ltmain.sh
14512 # with your package, and you will get complaints that there are
14513 # no rules to generate ltmain.sh.
14514 if test -f "$ltmain"; then
14515   # See if we are running on zsh, and set the options which allow our commands through
14516   # without removal of \ escapes.
14517   if test -n "${ZSH_VERSION+set}" ; then
14518     setopt NO_GLOB_SUBST
14519   fi
14520   # Now quote all the things that may contain metacharacters while being
14521   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14522   # variables and quote the copies for generation of the libtool script.
14523   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14524     SED SHELL STRIP \
14525     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14526     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14527     deplibs_check_method reload_flag reload_cmds need_locks \
14528     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14529     lt_cv_sys_global_symbol_to_c_name_address \
14530     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14531     old_postinstall_cmds old_postuninstall_cmds \
14532     compiler_CXX \
14533     CC_CXX \
14534     LD_CXX \
14535     lt_prog_compiler_wl_CXX \
14536     lt_prog_compiler_pic_CXX \
14537     lt_prog_compiler_static_CXX \
14538     lt_prog_compiler_no_builtin_flag_CXX \
14539     export_dynamic_flag_spec_CXX \
14540     thread_safe_flag_spec_CXX \
14541     whole_archive_flag_spec_CXX \
14542     enable_shared_with_static_runtimes_CXX \
14543     old_archive_cmds_CXX \
14544     old_archive_from_new_cmds_CXX \
14545     predep_objects_CXX \
14546     postdep_objects_CXX \
14547     predeps_CXX \
14548     postdeps_CXX \
14549     compiler_lib_search_path_CXX \
14550     archive_cmds_CXX \
14551     archive_expsym_cmds_CXX \
14552     postinstall_cmds_CXX \
14553     postuninstall_cmds_CXX \
14554     old_archive_from_expsyms_cmds_CXX \
14555     allow_undefined_flag_CXX \
14556     no_undefined_flag_CXX \
14557     export_symbols_cmds_CXX \
14558     hardcode_libdir_flag_spec_CXX \
14559     hardcode_libdir_flag_spec_ld_CXX \
14560     hardcode_libdir_separator_CXX \
14561     hardcode_automatic_CXX \
14562     module_cmds_CXX \
14563     module_expsym_cmds_CXX \
14564     lt_cv_prog_compiler_c_o_CXX \
14565     exclude_expsyms_CXX \
14566     include_expsyms_CXX; do
14567
14568     case $var in
14569     old_archive_cmds_CXX | \
14570     old_archive_from_new_cmds_CXX | \
14571     archive_cmds_CXX | \
14572     archive_expsym_cmds_CXX | \
14573     module_cmds_CXX | \
14574     module_expsym_cmds_CXX | \
14575     old_archive_from_expsyms_cmds_CXX | \
14576     export_symbols_cmds_CXX | \
14577     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14578     postinstall_cmds | postuninstall_cmds | \
14579     old_postinstall_cmds | old_postuninstall_cmds | \
14580     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14581       # Double-quote double-evaled strings.
14582       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14583       ;;
14584     *)
14585       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14586       ;;
14587     esac
14588   done
14589
14590   case $lt_echo in
14591   *'\$0 --fallback-echo"')
14592     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14593     ;;
14594   esac
14595
14596 cfgfile="$ofile"
14597
14598   cat <<__EOF__ >> "$cfgfile"
14599 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14600
14601 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14602
14603 # Shell to use when invoking shell scripts.
14604 SHELL=$lt_SHELL
14605
14606 # Whether or not to build shared libraries.
14607 build_libtool_libs=$enable_shared
14608
14609 # Whether or not to build static libraries.
14610 build_old_libs=$enable_static
14611
14612 # Whether or not to add -lc for building shared libraries.
14613 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14614
14615 # Whether or not to disallow shared libs when runtime libs are static
14616 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14617
14618 # Whether or not to optimize for fast installation.
14619 fast_install=$enable_fast_install
14620
14621 # The host system.
14622 host_alias=$host_alias
14623 host=$host
14624 host_os=$host_os
14625
14626 # The build system.
14627 build_alias=$build_alias
14628 build=$build
14629 build_os=$build_os
14630
14631 # An echo program that does not interpret backslashes.
14632 echo=$lt_echo
14633
14634 # The archiver.
14635 AR=$lt_AR
14636 AR_FLAGS=$lt_AR_FLAGS
14637
14638 # A C compiler.
14639 LTCC=$lt_LTCC
14640
14641 # LTCC compiler flags.
14642 LTCFLAGS=$lt_LTCFLAGS
14643
14644 # A language-specific compiler.
14645 CC=$lt_compiler_CXX
14646
14647 # Is the compiler the GNU C compiler?
14648 with_gcc=$GCC_CXX
14649
14650 # An ERE matcher.
14651 EGREP=$lt_EGREP
14652
14653 # The linker used to build libraries.
14654 LD=$lt_LD_CXX
14655
14656 # Whether we need hard or soft links.
14657 LN_S=$lt_LN_S
14658
14659 # A BSD-compatible nm program.
14660 NM=$lt_NM
14661
14662 # A symbol stripping program
14663 STRIP=$lt_STRIP
14664
14665 # Used to examine libraries when file_magic_cmd begins "file"
14666 MAGIC_CMD=$MAGIC_CMD
14667
14668 # Used on cygwin: DLL creation program.
14669 DLLTOOL="$DLLTOOL"
14670
14671 # Used on cygwin: object dumper.
14672 OBJDUMP="$OBJDUMP"
14673
14674 # Used on cygwin: assembler.
14675 AS="$AS"
14676
14677 # The name of the directory that contains temporary libtool files.
14678 objdir=$objdir
14679
14680 # How to create reloadable object files.
14681 reload_flag=$lt_reload_flag
14682 reload_cmds=$lt_reload_cmds
14683
14684 # How to pass a linker flag through the compiler.
14685 wl=$lt_lt_prog_compiler_wl_CXX
14686
14687 # Object file suffix (normally "o").
14688 objext="$ac_objext"
14689
14690 # Old archive suffix (normally "a").
14691 libext="$libext"
14692
14693 # Shared library suffix (normally ".so").
14694 shrext_cmds='$shrext_cmds'
14695
14696 # Executable file suffix (normally "").
14697 exeext="$exeext"
14698
14699 # Additional compiler flags for building library objects.
14700 pic_flag=$lt_lt_prog_compiler_pic_CXX
14701 pic_mode=$pic_mode
14702
14703 # What is the maximum length of a command?
14704 max_cmd_len=$lt_cv_sys_max_cmd_len
14705
14706 # Does compiler simultaneously support -c and -o options?
14707 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14708
14709 # Must we lock files when doing compilation?
14710 need_locks=$lt_need_locks
14711
14712 # Do we need the lib prefix for modules?
14713 need_lib_prefix=$need_lib_prefix
14714
14715 # Do we need a version for libraries?
14716 need_version=$need_version
14717
14718 # Whether dlopen is supported.
14719 dlopen_support=$enable_dlopen
14720
14721 # Whether dlopen of programs is supported.
14722 dlopen_self=$enable_dlopen_self
14723
14724 # Whether dlopen of statically linked programs is supported.
14725 dlopen_self_static=$enable_dlopen_self_static
14726
14727 # Compiler flag to prevent dynamic linking.
14728 link_static_flag=$lt_lt_prog_compiler_static_CXX
14729
14730 # Compiler flag to turn off builtin functions.
14731 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14732
14733 # Compiler flag to allow reflexive dlopens.
14734 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14735
14736 # Compiler flag to generate shared objects directly from archives.
14737 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14738
14739 # Compiler flag to generate thread-safe objects.
14740 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14741
14742 # Library versioning type.
14743 version_type=$version_type
14744
14745 # Format of library name prefix.
14746 libname_spec=$lt_libname_spec
14747
14748 # List of archive names.  First name is the real one, the rest are links.
14749 # The last name is the one that the linker finds with -lNAME.
14750 library_names_spec=$lt_library_names_spec
14751
14752 # The coded name of the library, if different from the real name.
14753 soname_spec=$lt_soname_spec
14754
14755 # Commands used to build and install an old-style archive.
14756 RANLIB=$lt_RANLIB
14757 old_archive_cmds=$lt_old_archive_cmds_CXX
14758 old_postinstall_cmds=$lt_old_postinstall_cmds
14759 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14760
14761 # Create an old-style archive from a shared archive.
14762 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14763
14764 # Create a temporary old-style archive to link instead of a shared archive.
14765 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14766
14767 # Commands used to build and install a shared archive.
14768 archive_cmds=$lt_archive_cmds_CXX
14769 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14770 postinstall_cmds=$lt_postinstall_cmds
14771 postuninstall_cmds=$lt_postuninstall_cmds
14772
14773 # Commands used to build a loadable module (assumed same as above if empty)
14774 module_cmds=$lt_module_cmds_CXX
14775 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14776
14777 # Commands to strip libraries.
14778 old_striplib=$lt_old_striplib
14779 striplib=$lt_striplib
14780
14781 # Dependencies to place before the objects being linked to create a
14782 # shared library.
14783 predep_objects=$lt_predep_objects_CXX
14784
14785 # Dependencies to place after the objects being linked to create a
14786 # shared library.
14787 postdep_objects=$lt_postdep_objects_CXX
14788
14789 # Dependencies to place before the objects being linked to create a
14790 # shared library.
14791 predeps=$lt_predeps_CXX
14792
14793 # Dependencies to place after the objects being linked to create a
14794 # shared library.
14795 postdeps=$lt_postdeps_CXX
14796
14797 # The library search path used internally by the compiler when linking
14798 # a shared library.
14799 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14800
14801 # Method to check whether dependent libraries are shared objects.
14802 deplibs_check_method=$lt_deplibs_check_method
14803
14804 # Command to use when deplibs_check_method == file_magic.
14805 file_magic_cmd=$lt_file_magic_cmd
14806
14807 # Flag that allows shared libraries with undefined symbols to be built.
14808 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14809
14810 # Flag that forces no undefined symbols.
14811 no_undefined_flag=$lt_no_undefined_flag_CXX
14812
14813 # Commands used to finish a libtool library installation in a directory.
14814 finish_cmds=$lt_finish_cmds
14815
14816 # Same as above, but a single script fragment to be evaled but not shown.
14817 finish_eval=$lt_finish_eval
14818
14819 # Take the output of nm and produce a listing of raw symbols and C names.
14820 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14821
14822 # Transform the output of nm in a proper C declaration
14823 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14824
14825 # Transform the output of nm in a C name address pair
14826 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14827
14828 # This is the shared library runtime path variable.
14829 runpath_var=$runpath_var
14830
14831 # This is the shared library path variable.
14832 shlibpath_var=$shlibpath_var
14833
14834 # Is shlibpath searched before the hard-coded library search path?
14835 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14836
14837 # How to hardcode a shared library path into an executable.
14838 hardcode_action=$hardcode_action_CXX
14839
14840 # Whether we should hardcode library paths into libraries.
14841 hardcode_into_libs=$hardcode_into_libs
14842
14843 # Flag to hardcode \$libdir into a binary during linking.
14844 # This must work even if \$libdir does not exist.
14845 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14846
14847 # If ld is used when linking, flag to hardcode \$libdir into
14848 # a binary during linking. This must work even if \$libdir does
14849 # not exist.
14850 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14851
14852 # Whether we need a single -rpath flag with a separated argument.
14853 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14854
14855 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14856 # resulting binary.
14857 hardcode_direct=$hardcode_direct_CXX
14858
14859 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14860 # resulting binary.
14861 hardcode_minus_L=$hardcode_minus_L_CXX
14862
14863 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14864 # the resulting binary.
14865 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14866
14867 # Set to yes if building a shared library automatically hardcodes DIR into the library
14868 # and all subsequent libraries and executables linked against it.
14869 hardcode_automatic=$hardcode_automatic_CXX
14870
14871 # Variables whose values should be saved in libtool wrapper scripts and
14872 # restored at relink time.
14873 variables_saved_for_relink="$variables_saved_for_relink"
14874
14875 # Whether libtool must link a program against all its dependency libraries.
14876 link_all_deplibs=$link_all_deplibs_CXX
14877
14878 # Compile-time system search path for libraries
14879 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14880
14881 # Run-time system search path for libraries
14882 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14883
14884 # Fix the shell variable \$srcfile for the compiler.
14885 fix_srcfile_path="$fix_srcfile_path_CXX"
14886
14887 # Set to yes if exported symbols are required.
14888 always_export_symbols=$always_export_symbols_CXX
14889
14890 # The commands to list exported symbols.
14891 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14892
14893 # The commands to extract the exported symbol list from a shared archive.
14894 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14895
14896 # Symbols that should not be listed in the preloaded symbols.
14897 exclude_expsyms=$lt_exclude_expsyms_CXX
14898
14899 # Symbols that must always be exported.
14900 include_expsyms=$lt_include_expsyms_CXX
14901
14902 # ### END LIBTOOL TAG CONFIG: $tagname
14903
14904 __EOF__
14905
14906
14907 else
14908   # If there is no Makefile yet, we rely on a make rule to execute
14909   # `config.status --recheck' to rerun these tests and create the
14910   # libtool script then.
14911   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14912   if test -f "$ltmain_in"; then
14913     test -f Makefile && make "$ltmain"
14914   fi
14915 fi
14916
14917
14918 ac_ext=c
14919 ac_cpp='$CPP $CPPFLAGS'
14920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14923
14924 CC=$lt_save_CC
14925 LDCXX=$LD
14926 LD=$lt_save_LD
14927 GCC=$lt_save_GCC
14928 with_gnu_ldcxx=$with_gnu_ld
14929 with_gnu_ld=$lt_save_with_gnu_ld
14930 lt_cv_path_LDCXX=$lt_cv_path_LD
14931 lt_cv_path_LD=$lt_save_path_LD
14932 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14933 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14934
14935         else
14936           tagname=""
14937         fi
14938         ;;
14939
14940       F77)
14941         if test -n "$F77" && test "X$F77" != "Xno"; then
14942
14943 ac_ext=f
14944 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14945 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14946 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14947
14948
14949 archive_cmds_need_lc_F77=no
14950 allow_undefined_flag_F77=
14951 always_export_symbols_F77=no
14952 archive_expsym_cmds_F77=
14953 export_dynamic_flag_spec_F77=
14954 hardcode_direct_F77=no
14955 hardcode_libdir_flag_spec_F77=
14956 hardcode_libdir_flag_spec_ld_F77=
14957 hardcode_libdir_separator_F77=
14958 hardcode_minus_L_F77=no
14959 hardcode_automatic_F77=no
14960 module_cmds_F77=
14961 module_expsym_cmds_F77=
14962 link_all_deplibs_F77=unknown
14963 old_archive_cmds_F77=$old_archive_cmds
14964 no_undefined_flag_F77=
14965 whole_archive_flag_spec_F77=
14966 enable_shared_with_static_runtimes_F77=no
14967
14968 # Source file extension for f77 test sources.
14969 ac_ext=f
14970
14971 # Object file extension for compiled f77 test sources.
14972 objext=o
14973 objext_F77=$objext
14974
14975 # Code to be used in simple compile tests
14976 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14977
14978 # Code to be used in simple link tests
14979 lt_simple_link_test_code="      program t\n      end\n"
14980
14981 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14982
14983 # If no C compiler was specified, use CC.
14984 LTCC=${LTCC-"$CC"}
14985
14986 # If no C compiler flags were specified, use CFLAGS.
14987 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14988
14989 # Allow CC to be a program name with arguments.
14990 compiler=$CC
14991
14992
14993 # save warnings/boilerplate of simple test code
14994 ac_outfile=conftest.$ac_objext
14995 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14996 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14997 _lt_compiler_boilerplate=`cat conftest.err`
14998 $rm conftest*
14999
15000 ac_outfile=conftest.$ac_objext
15001 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15002 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15003 _lt_linker_boilerplate=`cat conftest.err`
15004 $rm conftest*
15005
15006
15007 # Allow CC to be a program name with arguments.
15008 lt_save_CC="$CC"
15009 CC=${F77-"f77"}
15010 compiler=$CC
15011 compiler_F77=$CC
15012 for cc_temp in $compiler""; do
15013   case $cc_temp in
15014     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15015     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15016     \-*) ;;
15017     *) break;;
15018   esac
15019 done
15020 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15021
15022
15023 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15024 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15025 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15026 echo "${ECHO_T}$can_build_shared" >&6; }
15027
15028 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15029 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15030 test "$can_build_shared" = "no" && enable_shared=no
15031
15032 # On AIX, shared libraries and static libraries use the same namespace, and
15033 # are all built from PIC.
15034 case $host_os in
15035 aix3*)
15036   test "$enable_shared" = yes && enable_static=no
15037   if test -n "$RANLIB"; then
15038     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15039     postinstall_cmds='$RANLIB $lib'
15040   fi
15041   ;;
15042 aix4* | aix5*)
15043   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15044     test "$enable_shared" = yes && enable_static=no
15045   fi
15046   ;;
15047 esac
15048 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15049 echo "${ECHO_T}$enable_shared" >&6; }
15050
15051 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15052 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15053 # Make sure either enable_shared or enable_static is yes.
15054 test "$enable_shared" = yes || enable_static=yes
15055 { echo "$as_me:$LINENO: result: $enable_static" >&5
15056 echo "${ECHO_T}$enable_static" >&6; }
15057
15058 GCC_F77="$G77"
15059 LD_F77="$LD"
15060
15061 lt_prog_compiler_wl_F77=
15062 lt_prog_compiler_pic_F77=
15063 lt_prog_compiler_static_F77=
15064
15065 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15066 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15067
15068   if test "$GCC" = yes; then
15069     lt_prog_compiler_wl_F77='-Wl,'
15070     lt_prog_compiler_static_F77='-static'
15071
15072     case $host_os in
15073       aix*)
15074       # All AIX code is PIC.
15075       if test "$host_cpu" = ia64; then
15076         # AIX 5 now supports IA64 processor
15077         lt_prog_compiler_static_F77='-Bstatic'
15078       fi
15079       ;;
15080
15081     amigaos*)
15082       # FIXME: we need at least 68020 code to build shared libraries, but
15083       # adding the `-m68020' flag to GCC prevents building anything better,
15084       # like `-m68040'.
15085       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15086       ;;
15087
15088     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15089       # PIC is the default for these OSes.
15090       ;;
15091
15092     mingw* | pw32* | os2*)
15093       # This hack is so that the source file can tell whether it is being
15094       # built for inclusion in a dll (and should export symbols for example).
15095       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15096       ;;
15097
15098     darwin* | rhapsody*)
15099       # PIC is the default on this platform
15100       # Common symbols not allowed in MH_DYLIB files
15101       lt_prog_compiler_pic_F77='-fno-common'
15102       ;;
15103
15104     interix3*)
15105       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15106       # Instead, we relocate shared libraries at runtime.
15107       ;;
15108
15109     msdosdjgpp*)
15110       # Just because we use GCC doesn't mean we suddenly get shared libraries
15111       # on systems that don't support them.
15112       lt_prog_compiler_can_build_shared_F77=no
15113       enable_shared=no
15114       ;;
15115
15116     sysv4*MP*)
15117       if test -d /usr/nec; then
15118         lt_prog_compiler_pic_F77=-Kconform_pic
15119       fi
15120       ;;
15121
15122     hpux*)
15123       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15124       # not for PA HP-UX.
15125       case $host_cpu in
15126       hppa*64*|ia64*)
15127         # +Z the default
15128         ;;
15129       *)
15130         lt_prog_compiler_pic_F77='-fPIC'
15131         ;;
15132       esac
15133       ;;
15134
15135     *)
15136       lt_prog_compiler_pic_F77='-fPIC'
15137       ;;
15138     esac
15139   else
15140     # PORTME Check for flag to pass linker flags through the system compiler.
15141     case $host_os in
15142     aix*)
15143       lt_prog_compiler_wl_F77='-Wl,'
15144       if test "$host_cpu" = ia64; then
15145         # AIX 5 now supports IA64 processor
15146         lt_prog_compiler_static_F77='-Bstatic'
15147       else
15148         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15149       fi
15150       ;;
15151       darwin*)
15152         # PIC is the default on this platform
15153         # Common symbols not allowed in MH_DYLIB files
15154        case $cc_basename in
15155          xlc*)
15156          lt_prog_compiler_pic_F77='-qnocommon'
15157          lt_prog_compiler_wl_F77='-Wl,'
15158          ;;
15159        esac
15160        ;;
15161
15162     mingw* | pw32* | os2*)
15163       # This hack is so that the source file can tell whether it is being
15164       # built for inclusion in a dll (and should export symbols for example).
15165       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15166       ;;
15167
15168     hpux9* | hpux10* | hpux11*)
15169       lt_prog_compiler_wl_F77='-Wl,'
15170       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15171       # not for PA HP-UX.
15172       case $host_cpu in
15173       hppa*64*|ia64*)
15174         # +Z the default
15175         ;;
15176       *)
15177         lt_prog_compiler_pic_F77='+Z'
15178         ;;
15179       esac
15180       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15181       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15182       ;;
15183
15184     irix5* | irix6* | nonstopux*)
15185       lt_prog_compiler_wl_F77='-Wl,'
15186       # PIC (with -KPIC) is the default.
15187       lt_prog_compiler_static_F77='-non_shared'
15188       ;;
15189
15190     newsos6)
15191       lt_prog_compiler_pic_F77='-KPIC'
15192       lt_prog_compiler_static_F77='-Bstatic'
15193       ;;
15194
15195     linux* | k*bsd*-gnu)
15196       case $cc_basename in
15197       icc* | ecc*)
15198         lt_prog_compiler_wl_F77='-Wl,'
15199         lt_prog_compiler_pic_F77='-KPIC'
15200         lt_prog_compiler_static_F77='-static'
15201         ;;
15202       pgcc* | pgf77* | pgf90* | pgf95*)
15203         # Portland Group compilers (*not* the Pentium gcc compiler,
15204         # which looks to be a dead project)
15205         lt_prog_compiler_wl_F77='-Wl,'
15206         lt_prog_compiler_pic_F77='-fpic'
15207         lt_prog_compiler_static_F77='-Bstatic'
15208         ;;
15209       ccc*)
15210         lt_prog_compiler_wl_F77='-Wl,'
15211         # All Alpha code is PIC.
15212         lt_prog_compiler_static_F77='-non_shared'
15213         ;;
15214       esac
15215       ;;
15216
15217     osf3* | osf4* | osf5*)
15218       lt_prog_compiler_wl_F77='-Wl,'
15219       # All OSF/1 code is PIC.
15220       lt_prog_compiler_static_F77='-non_shared'
15221       ;;
15222
15223     solaris*)
15224       lt_prog_compiler_pic_F77='-KPIC'
15225       lt_prog_compiler_static_F77='-Bstatic'
15226       case $cc_basename in
15227       f77* | f90* | f95*)
15228         lt_prog_compiler_wl_F77='-Qoption ld ';;
15229       *)
15230         lt_prog_compiler_wl_F77='-Wl,';;
15231       esac
15232       ;;
15233
15234     sunos4*)
15235       lt_prog_compiler_wl_F77='-Qoption ld '
15236       lt_prog_compiler_pic_F77='-PIC'
15237       lt_prog_compiler_static_F77='-Bstatic'
15238       ;;
15239
15240     sysv4 | sysv4.2uw2* | sysv4.3*)
15241       lt_prog_compiler_wl_F77='-Wl,'
15242       lt_prog_compiler_pic_F77='-KPIC'
15243       lt_prog_compiler_static_F77='-Bstatic'
15244       ;;
15245
15246     sysv4*MP*)
15247       if test -d /usr/nec ;then
15248         lt_prog_compiler_pic_F77='-Kconform_pic'
15249         lt_prog_compiler_static_F77='-Bstatic'
15250       fi
15251       ;;
15252
15253     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15254       lt_prog_compiler_wl_F77='-Wl,'
15255       lt_prog_compiler_pic_F77='-KPIC'
15256       lt_prog_compiler_static_F77='-Bstatic'
15257       ;;
15258
15259     unicos*)
15260       lt_prog_compiler_wl_F77='-Wl,'
15261       lt_prog_compiler_can_build_shared_F77=no
15262       ;;
15263
15264     uts4*)
15265       lt_prog_compiler_pic_F77='-pic'
15266       lt_prog_compiler_static_F77='-Bstatic'
15267       ;;
15268
15269     *)
15270       lt_prog_compiler_can_build_shared_F77=no
15271       ;;
15272     esac
15273   fi
15274
15275 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15276 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15277
15278 #
15279 # Check to make sure the PIC flag actually works.
15280 #
15281 if test -n "$lt_prog_compiler_pic_F77"; then
15282
15283 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15284 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15285 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15286   echo $ECHO_N "(cached) $ECHO_C" >&6
15287 else
15288   lt_prog_compiler_pic_works_F77=no
15289   ac_outfile=conftest.$ac_objext
15290    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15291    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15292    # Insert the option either (1) after the last *FLAGS variable, or
15293    # (2) before a word containing "conftest.", or (3) at the end.
15294    # Note that $ac_compile itself does not contain backslashes and begins
15295    # with a dollar sign (not a hyphen), so the echo should work correctly.
15296    # The option is referenced via a variable to avoid confusing sed.
15297    lt_compile=`echo "$ac_compile" | $SED \
15298    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15299    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15300    -e 's:$: $lt_compiler_flag:'`
15301    (eval echo "\"\$as_me:15301: $lt_compile\"" >&5)
15302    (eval "$lt_compile" 2>conftest.err)
15303    ac_status=$?
15304    cat conftest.err >&5
15305    echo "$as_me:15305: \$? = $ac_status" >&5
15306    if (exit $ac_status) && test -s "$ac_outfile"; then
15307      # The compiler can only warn and ignore the option if not recognized
15308      # So say no if there are warnings other than the usual output.
15309      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15310      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15311      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15312        lt_prog_compiler_pic_works_F77=yes
15313      fi
15314    fi
15315    $rm conftest*
15316
15317 fi
15318 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15319 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15320
15321 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15322     case $lt_prog_compiler_pic_F77 in
15323      "" | " "*) ;;
15324      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15325      esac
15326 else
15327     lt_prog_compiler_pic_F77=
15328      lt_prog_compiler_can_build_shared_F77=no
15329 fi
15330
15331 fi
15332 case $host_os in
15333   # For platforms which do not support PIC, -DPIC is meaningless:
15334   *djgpp*)
15335     lt_prog_compiler_pic_F77=
15336     ;;
15337   *)
15338     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15339     ;;
15340 esac
15341
15342 #
15343 # Check to make sure the static flag actually works.
15344 #
15345 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15346 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15347 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15348 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15349   echo $ECHO_N "(cached) $ECHO_C" >&6
15350 else
15351   lt_prog_compiler_static_works_F77=no
15352    save_LDFLAGS="$LDFLAGS"
15353    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15354    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15355    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15356      # The linker can only warn and ignore the option if not recognized
15357      # So say no if there are warnings
15358      if test -s conftest.err; then
15359        # Append any errors to the config.log.
15360        cat conftest.err 1>&5
15361        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15362        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15363        if diff conftest.exp conftest.er2 >/dev/null; then
15364          lt_prog_compiler_static_works_F77=yes
15365        fi
15366      else
15367        lt_prog_compiler_static_works_F77=yes
15368      fi
15369    fi
15370    $rm conftest*
15371    LDFLAGS="$save_LDFLAGS"
15372
15373 fi
15374 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15375 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15376
15377 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15378     :
15379 else
15380     lt_prog_compiler_static_F77=
15381 fi
15382
15383
15384 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15385 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15386 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15387   echo $ECHO_N "(cached) $ECHO_C" >&6
15388 else
15389   lt_cv_prog_compiler_c_o_F77=no
15390    $rm -r conftest 2>/dev/null
15391    mkdir conftest
15392    cd conftest
15393    mkdir out
15394    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15395
15396    lt_compiler_flag="-o out/conftest2.$ac_objext"
15397    # Insert the option either (1) after the last *FLAGS variable, or
15398    # (2) before a word containing "conftest.", or (3) at the end.
15399    # Note that $ac_compile itself does not contain backslashes and begins
15400    # with a dollar sign (not a hyphen), so the echo should work correctly.
15401    lt_compile=`echo "$ac_compile" | $SED \
15402    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15403    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15404    -e 's:$: $lt_compiler_flag:'`
15405    (eval echo "\"\$as_me:15405: $lt_compile\"" >&5)
15406    (eval "$lt_compile" 2>out/conftest.err)
15407    ac_status=$?
15408    cat out/conftest.err >&5
15409    echo "$as_me:15409: \$? = $ac_status" >&5
15410    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15411    then
15412      # The compiler can only warn and ignore the option if not recognized
15413      # So say no if there are warnings
15414      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15415      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15416      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15417        lt_cv_prog_compiler_c_o_F77=yes
15418      fi
15419    fi
15420    chmod u+w . 2>&5
15421    $rm conftest*
15422    # SGI C++ compiler will create directory out/ii_files/ for
15423    # template instantiation
15424    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15425    $rm out/* && rmdir out
15426    cd ..
15427    rmdir conftest
15428    $rm conftest*
15429
15430 fi
15431 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15432 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15433
15434
15435 hard_links="nottested"
15436 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15437   # do not overwrite the value of need_locks provided by the user
15438   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15439 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15440   hard_links=yes
15441   $rm conftest*
15442   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15443   touch conftest.a
15444   ln conftest.a conftest.b 2>&5 || hard_links=no
15445   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15446   { echo "$as_me:$LINENO: result: $hard_links" >&5
15447 echo "${ECHO_T}$hard_links" >&6; }
15448   if test "$hard_links" = no; then
15449     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15450 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15451     need_locks=warn
15452   fi
15453 else
15454   need_locks=no
15455 fi
15456
15457 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15458 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15459
15460   runpath_var=
15461   allow_undefined_flag_F77=
15462   enable_shared_with_static_runtimes_F77=no
15463   archive_cmds_F77=
15464   archive_expsym_cmds_F77=
15465   old_archive_From_new_cmds_F77=
15466   old_archive_from_expsyms_cmds_F77=
15467   export_dynamic_flag_spec_F77=
15468   whole_archive_flag_spec_F77=
15469   thread_safe_flag_spec_F77=
15470   hardcode_libdir_flag_spec_F77=
15471   hardcode_libdir_flag_spec_ld_F77=
15472   hardcode_libdir_separator_F77=
15473   hardcode_direct_F77=no
15474   hardcode_minus_L_F77=no
15475   hardcode_shlibpath_var_F77=unsupported
15476   link_all_deplibs_F77=unknown
15477   hardcode_automatic_F77=no
15478   module_cmds_F77=
15479   module_expsym_cmds_F77=
15480   always_export_symbols_F77=no
15481   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15482   # include_expsyms should be a list of space-separated symbols to be *always*
15483   # included in the symbol list
15484   include_expsyms_F77=
15485   # exclude_expsyms can be an extended regexp of symbols to exclude
15486   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15487   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15488   # as well as any symbol that contains `d'.
15489   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15490   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15491   # platforms (ab)use it in PIC code, but their linkers get confused if
15492   # the symbol is explicitly referenced.  Since portable code cannot
15493   # rely on this symbol name, it's probably fine to never include it in
15494   # preloaded symbol tables.
15495   extract_expsyms_cmds=
15496   # Just being paranoid about ensuring that cc_basename is set.
15497   for cc_temp in $compiler""; do
15498   case $cc_temp in
15499     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15500     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15501     \-*) ;;
15502     *) break;;
15503   esac
15504 done
15505 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15506
15507   case $host_os in
15508   cygwin* | mingw* | pw32*)
15509     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15510     # When not using gcc, we currently assume that we are using
15511     # Microsoft Visual C++.
15512     if test "$GCC" != yes; then
15513       with_gnu_ld=no
15514     fi
15515     ;;
15516   interix*)
15517     # we just hope/assume this is gcc and not c89 (= MSVC++)
15518     with_gnu_ld=yes
15519     ;;
15520   openbsd*)
15521     with_gnu_ld=no
15522     ;;
15523   esac
15524
15525   ld_shlibs_F77=yes
15526   if test "$with_gnu_ld" = yes; then
15527     # If archive_cmds runs LD, not CC, wlarc should be empty
15528     wlarc='${wl}'
15529
15530     # Set some defaults for GNU ld with shared library support. These
15531     # are reset later if shared libraries are not supported. Putting them
15532     # here allows them to be overridden if necessary.
15533     runpath_var=LD_RUN_PATH
15534     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15535     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15536     # ancient GNU ld didn't support --whole-archive et. al.
15537     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15538         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15539       else
15540         whole_archive_flag_spec_F77=
15541     fi
15542     supports_anon_versioning=no
15543     case `$LD -v 2>/dev/null` in
15544       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15545       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15546       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15547       *\ 2.11.*) ;; # other 2.11 versions
15548       *) supports_anon_versioning=yes ;;
15549     esac
15550
15551     # See if GNU ld supports shared libraries.
15552     case $host_os in
15553     aix3* | aix4* | aix5*)
15554       # On AIX/PPC, the GNU linker is very broken
15555       if test "$host_cpu" != ia64; then
15556         ld_shlibs_F77=no
15557         cat <<EOF 1>&2
15558
15559 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15560 *** to be unable to reliably create shared libraries on AIX.
15561 *** Therefore, libtool is disabling shared libraries support.  If you
15562 *** really care for shared libraries, you may want to modify your PATH
15563 *** so that a non-GNU linker is found, and then restart.
15564
15565 EOF
15566       fi
15567       ;;
15568
15569     amigaos*)
15570       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15571       hardcode_libdir_flag_spec_F77='-L$libdir'
15572       hardcode_minus_L_F77=yes
15573
15574       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15575       # that the semantics of dynamic libraries on AmigaOS, at least up
15576       # to version 4, is to share data among multiple programs linked
15577       # with the same dynamic library.  Since this doesn't match the
15578       # behavior of shared libraries on other platforms, we can't use
15579       # them.
15580       ld_shlibs_F77=no
15581       ;;
15582
15583     beos*)
15584       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15585         allow_undefined_flag_F77=unsupported
15586         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15587         # support --undefined.  This deserves some investigation.  FIXME
15588         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15589       else
15590         ld_shlibs_F77=no
15591       fi
15592       ;;
15593
15594     cygwin* | mingw* | pw32*)
15595       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15596       # as there is no search path for DLLs.
15597       hardcode_libdir_flag_spec_F77='-L$libdir'
15598       allow_undefined_flag_F77=unsupported
15599       always_export_symbols_F77=no
15600       enable_shared_with_static_runtimes_F77=yes
15601       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15602
15603       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15604         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15605         # If the export-symbols file already is a .def file (1st line
15606         # is EXPORTS), use it as is; otherwise, prepend...
15607         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15608           cp $export_symbols $output_objdir/$soname.def;
15609         else
15610           echo EXPORTS > $output_objdir/$soname.def;
15611           cat $export_symbols >> $output_objdir/$soname.def;
15612         fi~
15613         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15614       else
15615         ld_shlibs_F77=no
15616       fi
15617       ;;
15618
15619     interix3*)
15620       hardcode_direct_F77=no
15621       hardcode_shlibpath_var_F77=no
15622       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15623       export_dynamic_flag_spec_F77='${wl}-E'
15624       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15625       # Instead, shared libraries are loaded at an image base (0x10000000 by
15626       # default) and relocated if they conflict, which is a slow very memory
15627       # consuming and fragmenting process.  To avoid this, we pick a random,
15628       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15629       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15630       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15631       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15632       ;;
15633
15634     linux* | k*bsd*-gnu)
15635       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15636         tmp_addflag=
15637         case $cc_basename,$host_cpu in
15638         pgcc*)                          # Portland Group C compiler
15639           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15640           tmp_addflag=' $pic_flag'
15641           ;;
15642         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15643           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15644           tmp_addflag=' $pic_flag -Mnomain' ;;
15645         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15646           tmp_addflag=' -i_dynamic' ;;
15647         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15648           tmp_addflag=' -i_dynamic -nofor_main' ;;
15649         ifc* | ifort*)                  # Intel Fortran compiler
15650           tmp_addflag=' -nofor_main' ;;
15651         esac
15652         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15653
15654         if test $supports_anon_versioning = yes; then
15655           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15656   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15657   $echo "local: *; };" >> $output_objdir/$libname.ver~
15658           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15659         fi
15660         link_all_deplibs_F77=no
15661       else
15662         ld_shlibs_F77=no
15663       fi
15664       ;;
15665
15666     netbsd* | netbsdelf*-gnu)
15667       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15668         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15669         wlarc=
15670       else
15671         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15672         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15673       fi
15674       ;;
15675
15676     solaris*)
15677       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15678         ld_shlibs_F77=no
15679         cat <<EOF 1>&2
15680
15681 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15682 *** create shared libraries on Solaris systems.  Therefore, libtool
15683 *** is disabling shared libraries support.  We urge you to upgrade GNU
15684 *** binutils to release 2.9.1 or newer.  Another option is to modify
15685 *** your PATH or compiler configuration so that the native linker is
15686 *** used, and then restart.
15687
15688 EOF
15689       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15690         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15691         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15692       else
15693         ld_shlibs_F77=no
15694       fi
15695       ;;
15696
15697     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15698       case `$LD -v 2>&1` in
15699         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15700         ld_shlibs_F77=no
15701         cat <<_LT_EOF 1>&2
15702
15703 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15704 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15705 *** is disabling shared libraries support.  We urge you to upgrade GNU
15706 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15707 *** your PATH or compiler configuration so that the native linker is
15708 *** used, and then restart.
15709
15710 _LT_EOF
15711         ;;
15712         *)
15713           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15714             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15715             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15716             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15717           else
15718             ld_shlibs_F77=no
15719           fi
15720         ;;
15721       esac
15722       ;;
15723
15724     sunos4*)
15725       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15726       wlarc=
15727       hardcode_direct_F77=yes
15728       hardcode_shlibpath_var_F77=no
15729       ;;
15730
15731     *)
15732       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15733         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15734         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15735       else
15736         ld_shlibs_F77=no
15737       fi
15738       ;;
15739     esac
15740
15741     if test "$ld_shlibs_F77" = no; then
15742       runpath_var=
15743       hardcode_libdir_flag_spec_F77=
15744       export_dynamic_flag_spec_F77=
15745       whole_archive_flag_spec_F77=
15746     fi
15747   else
15748     # PORTME fill in a description of your system's linker (not GNU ld)
15749     case $host_os in
15750     aix3*)
15751       allow_undefined_flag_F77=unsupported
15752       always_export_symbols_F77=yes
15753       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15754       # Note: this linker hardcodes the directories in LIBPATH if there
15755       # are no directories specified by -L.
15756       hardcode_minus_L_F77=yes
15757       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15758         # Neither direct hardcoding nor static linking is supported with a
15759         # broken collect2.
15760         hardcode_direct_F77=unsupported
15761       fi
15762       ;;
15763
15764     aix4* | aix5*)
15765       if test "$host_cpu" = ia64; then
15766         # On IA64, the linker does run time linking by default, so we don't
15767         # have to do anything special.
15768         aix_use_runtimelinking=no
15769         exp_sym_flag='-Bexport'
15770         no_entry_flag=""
15771       else
15772         # If we're using GNU nm, then we don't want the "-C" option.
15773         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15774         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15775           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15776         else
15777           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15778         fi
15779         aix_use_runtimelinking=no
15780
15781         # Test if we are trying to use run time linking or normal
15782         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15783         # need to do runtime linking.
15784         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15785           for ld_flag in $LDFLAGS; do
15786           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15787             aix_use_runtimelinking=yes
15788             break
15789           fi
15790           done
15791           ;;
15792         esac
15793
15794         exp_sym_flag='-bexport'
15795         no_entry_flag='-bnoentry'
15796       fi
15797
15798       # When large executables or shared objects are built, AIX ld can
15799       # have problems creating the table of contents.  If linking a library
15800       # or program results in "error TOC overflow" add -mminimal-toc to
15801       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15802       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15803
15804       archive_cmds_F77=''
15805       hardcode_direct_F77=yes
15806       hardcode_libdir_separator_F77=':'
15807       link_all_deplibs_F77=yes
15808
15809       if test "$GCC" = yes; then
15810         case $host_os in aix4.[012]|aix4.[012].*)
15811         # We only want to do this on AIX 4.2 and lower, the check
15812         # below for broken collect2 doesn't work under 4.3+
15813           collect2name=`${CC} -print-prog-name=collect2`
15814           if test -f "$collect2name" && \
15815            strings "$collect2name" | grep resolve_lib_name >/dev/null
15816           then
15817           # We have reworked collect2
15818           hardcode_direct_F77=yes
15819           else
15820           # We have old collect2
15821           hardcode_direct_F77=unsupported
15822           # It fails to find uninstalled libraries when the uninstalled
15823           # path is not listed in the libpath.  Setting hardcode_minus_L
15824           # to unsupported forces relinking
15825           hardcode_minus_L_F77=yes
15826           hardcode_libdir_flag_spec_F77='-L$libdir'
15827           hardcode_libdir_separator_F77=
15828           fi
15829           ;;
15830         esac
15831         shared_flag='-shared'
15832         if test "$aix_use_runtimelinking" = yes; then
15833           shared_flag="$shared_flag "'${wl}-G'
15834         fi
15835       else
15836         # not using gcc
15837         if test "$host_cpu" = ia64; then
15838         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15839         # chokes on -Wl,-G. The following line is correct:
15840           shared_flag='-G'
15841         else
15842           if test "$aix_use_runtimelinking" = yes; then
15843             shared_flag='${wl}-G'
15844           else
15845             shared_flag='${wl}-bM:SRE'
15846           fi
15847         fi
15848       fi
15849
15850       # It seems that -bexpall does not export symbols beginning with
15851       # underscore (_), so it is better to generate a list of symbols to export.
15852       always_export_symbols_F77=yes
15853       if test "$aix_use_runtimelinking" = yes; then
15854         # Warning - without using the other runtime loading flags (-brtl),
15855         # -berok will link without error, but may produce a broken library.
15856         allow_undefined_flag_F77='-berok'
15857        # Determine the default libpath from the value encoded in an empty executable.
15858        cat >conftest.$ac_ext <<_ACEOF
15859       program main
15860
15861       end
15862 _ACEOF
15863 rm -f conftest.$ac_objext conftest$ac_exeext
15864 if { (ac_try="$ac_link"
15865 case "(($ac_try" in
15866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867   *) ac_try_echo=$ac_try;;
15868 esac
15869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870   (eval "$ac_link") 2>conftest.er1
15871   ac_status=$?
15872   grep -v '^ *+' conftest.er1 >conftest.err
15873   rm -f conftest.er1
15874   cat conftest.err >&5
15875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876   (exit $ac_status); } && {
15877          test -z "$ac_f77_werror_flag" ||
15878          test ! -s conftest.err
15879        } && test -s conftest$ac_exeext &&
15880        $as_test_x conftest$ac_exeext; then
15881
15882 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15883 }'`
15884 # Check for a 64-bit object if we didn't find anything.
15885 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15886 }'`; fi
15887 else
15888   echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15890
15891
15892 fi
15893
15894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15895       conftest$ac_exeext conftest.$ac_ext
15896 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15897
15898        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15899         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15900        else
15901         if test "$host_cpu" = ia64; then
15902           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15903           allow_undefined_flag_F77="-z nodefs"
15904           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15905         else
15906          # Determine the default libpath from the value encoded in an empty executable.
15907          cat >conftest.$ac_ext <<_ACEOF
15908       program main
15909
15910       end
15911 _ACEOF
15912 rm -f conftest.$ac_objext conftest$ac_exeext
15913 if { (ac_try="$ac_link"
15914 case "(($ac_try" in
15915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916   *) ac_try_echo=$ac_try;;
15917 esac
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919   (eval "$ac_link") 2>conftest.er1
15920   ac_status=$?
15921   grep -v '^ *+' conftest.er1 >conftest.err
15922   rm -f conftest.er1
15923   cat conftest.err >&5
15924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); } && {
15926          test -z "$ac_f77_werror_flag" ||
15927          test ! -s conftest.err
15928        } && test -s conftest$ac_exeext &&
15929        $as_test_x conftest$ac_exeext; then
15930
15931 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15932 }'`
15933 # Check for a 64-bit object if we didn't find anything.
15934 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15935 }'`; fi
15936 else
15937   echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15939
15940
15941 fi
15942
15943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15944       conftest$ac_exeext conftest.$ac_ext
15945 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15946
15947          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15948           # Warning - without using the other run time loading flags,
15949           # -berok will link without error, but may produce a broken library.
15950           no_undefined_flag_F77=' ${wl}-bernotok'
15951           allow_undefined_flag_F77=' ${wl}-berok'
15952           # Exported symbols can be pulled into shared objects from archives
15953           whole_archive_flag_spec_F77='$convenience'
15954           archive_cmds_need_lc_F77=yes
15955           # This is similar to how AIX traditionally builds its shared libraries.
15956           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15957         fi
15958       fi
15959       ;;
15960
15961     amigaos*)
15962       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15963       hardcode_libdir_flag_spec_F77='-L$libdir'
15964       hardcode_minus_L_F77=yes
15965       # see comment about different semantics on the GNU ld section
15966       ld_shlibs_F77=no
15967       ;;
15968
15969     bsdi[45]*)
15970       export_dynamic_flag_spec_F77=-rdynamic
15971       ;;
15972
15973     cygwin* | mingw* | pw32*)
15974       # When not using gcc, we currently assume that we are using
15975       # Microsoft Visual C++.
15976       # hardcode_libdir_flag_spec is actually meaningless, as there is
15977       # no search path for DLLs.
15978       hardcode_libdir_flag_spec_F77=' '
15979       allow_undefined_flag_F77=unsupported
15980       # Tell ltmain to make .lib files, not .a files.
15981       libext=lib
15982       # Tell ltmain to make .dll files, not .so files.
15983       shrext_cmds=".dll"
15984       # FIXME: Setting linknames here is a bad hack.
15985       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15986       # The linker will automatically build a .lib file if we build a DLL.
15987       old_archive_From_new_cmds_F77='true'
15988       # FIXME: Should let the user specify the lib program.
15989       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15990       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15991       enable_shared_with_static_runtimes_F77=yes
15992       ;;
15993
15994     darwin* | rhapsody*)
15995       case $host_os in
15996         rhapsody* | darwin1.[012])
15997          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15998          ;;
15999        *) # Darwin 1.3 on
16000          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16001            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16002          else
16003            case ${MACOSX_DEPLOYMENT_TARGET} in
16004              10.[012])
16005                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16006                ;;
16007              10.*)
16008                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16009                ;;
16010            esac
16011          fi
16012          ;;
16013       esac
16014       archive_cmds_need_lc_F77=no
16015       hardcode_direct_F77=no
16016       hardcode_automatic_F77=yes
16017       hardcode_shlibpath_var_F77=unsupported
16018       whole_archive_flag_spec_F77=''
16019       link_all_deplibs_F77=yes
16020     if test "$GCC" = yes ; then
16021         output_verbose_link_cmd='echo'
16022         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16023       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16024       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16025       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16026       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16027     else
16028       case $cc_basename in
16029         xlc*)
16030          output_verbose_link_cmd='echo'
16031          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16032          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16033           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16034          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16035           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16036           ;;
16037        *)
16038          ld_shlibs_F77=no
16039           ;;
16040       esac
16041     fi
16042       ;;
16043
16044     dgux*)
16045       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16046       hardcode_libdir_flag_spec_F77='-L$libdir'
16047       hardcode_shlibpath_var_F77=no
16048       ;;
16049
16050     freebsd1*)
16051       ld_shlibs_F77=no
16052       ;;
16053
16054     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16055     # support.  Future versions do this automatically, but an explicit c++rt0.o
16056     # does not break anything, and helps significantly (at the cost of a little
16057     # extra space).
16058     freebsd2.2*)
16059       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16060       hardcode_libdir_flag_spec_F77='-R$libdir'
16061       hardcode_direct_F77=yes
16062       hardcode_shlibpath_var_F77=no
16063       ;;
16064
16065     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16066     freebsd2*)
16067       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16068       hardcode_direct_F77=yes
16069       hardcode_minus_L_F77=yes
16070       hardcode_shlibpath_var_F77=no
16071       ;;
16072
16073     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16074     freebsd* | dragonfly*)
16075       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16076       hardcode_libdir_flag_spec_F77='-R$libdir'
16077       hardcode_direct_F77=yes
16078       hardcode_shlibpath_var_F77=no
16079       ;;
16080
16081     hpux9*)
16082       if test "$GCC" = yes; then
16083         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16084       else
16085         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16086       fi
16087       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16088       hardcode_libdir_separator_F77=:
16089       hardcode_direct_F77=yes
16090
16091       # hardcode_minus_L: Not really in the search PATH,
16092       # but as the default location of the library.
16093       hardcode_minus_L_F77=yes
16094       export_dynamic_flag_spec_F77='${wl}-E'
16095       ;;
16096
16097     hpux10*)
16098       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16099         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16100       else
16101         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16102       fi
16103       if test "$with_gnu_ld" = no; then
16104         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16105         hardcode_libdir_separator_F77=:
16106
16107         hardcode_direct_F77=yes
16108         export_dynamic_flag_spec_F77='${wl}-E'
16109
16110         # hardcode_minus_L: Not really in the search PATH,
16111         # but as the default location of the library.
16112         hardcode_minus_L_F77=yes
16113       fi
16114       ;;
16115
16116     hpux11*)
16117       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16118         case $host_cpu in
16119         hppa*64*)
16120           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16121           ;;
16122         ia64*)
16123           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16124           ;;
16125         *)
16126           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16127           ;;
16128         esac
16129       else
16130         case $host_cpu in
16131         hppa*64*)
16132           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16133           ;;
16134         ia64*)
16135           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16136           ;;
16137         *)
16138           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16139           ;;
16140         esac
16141       fi
16142       if test "$with_gnu_ld" = no; then
16143         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16144         hardcode_libdir_separator_F77=:
16145
16146         case $host_cpu in
16147         hppa*64*|ia64*)
16148           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16149           hardcode_direct_F77=no
16150           hardcode_shlibpath_var_F77=no
16151           ;;
16152         *)
16153           hardcode_direct_F77=yes
16154           export_dynamic_flag_spec_F77='${wl}-E'
16155
16156           # hardcode_minus_L: Not really in the search PATH,
16157           # but as the default location of the library.
16158           hardcode_minus_L_F77=yes
16159           ;;
16160         esac
16161       fi
16162       ;;
16163
16164     irix5* | irix6* | nonstopux*)
16165       if test "$GCC" = yes; then
16166         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16167       else
16168         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16169         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16170       fi
16171       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16172       hardcode_libdir_separator_F77=:
16173       link_all_deplibs_F77=yes
16174       ;;
16175
16176     netbsd* | netbsdelf*-gnu)
16177       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16178         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16179       else
16180         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16181       fi
16182       hardcode_libdir_flag_spec_F77='-R$libdir'
16183       hardcode_direct_F77=yes
16184       hardcode_shlibpath_var_F77=no
16185       ;;
16186
16187     newsos6)
16188       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16189       hardcode_direct_F77=yes
16190       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16191       hardcode_libdir_separator_F77=:
16192       hardcode_shlibpath_var_F77=no
16193       ;;
16194
16195     openbsd*)
16196       hardcode_direct_F77=yes
16197       hardcode_shlibpath_var_F77=no
16198       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16199         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16200         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16201         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16202         export_dynamic_flag_spec_F77='${wl}-E'
16203       else
16204        case $host_os in
16205          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16206            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16207            hardcode_libdir_flag_spec_F77='-R$libdir'
16208            ;;
16209          *)
16210            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16211            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16212            ;;
16213        esac
16214       fi
16215       ;;
16216
16217     os2*)
16218       hardcode_libdir_flag_spec_F77='-L$libdir'
16219       hardcode_minus_L_F77=yes
16220       allow_undefined_flag_F77=unsupported
16221       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16222       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16223       ;;
16224
16225     osf3*)
16226       if test "$GCC" = yes; then
16227         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16228         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16229       else
16230         allow_undefined_flag_F77=' -expect_unresolved \*'
16231         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16232       fi
16233       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16234       hardcode_libdir_separator_F77=:
16235       ;;
16236
16237     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16238       if test "$GCC" = yes; then
16239         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16240         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16241         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16242       else
16243         allow_undefined_flag_F77=' -expect_unresolved \*'
16244         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16245         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16246         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16247
16248         # Both c and cxx compiler support -rpath directly
16249         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16250       fi
16251       hardcode_libdir_separator_F77=:
16252       ;;
16253
16254     solaris*)
16255       no_undefined_flag_F77=' -z text'
16256       if test "$GCC" = yes; then
16257         wlarc='${wl}'
16258         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16259         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16260           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16261       else
16262         wlarc=''
16263         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16264         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16265         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16266       fi
16267       hardcode_libdir_flag_spec_F77='-R$libdir'
16268       hardcode_shlibpath_var_F77=no
16269       case $host_os in
16270       solaris2.[0-5] | solaris2.[0-5].*) ;;
16271       *)
16272         # The compiler driver will combine linker options so we
16273         # cannot just pass the convience library names through
16274         # without $wl, iff we do not link with $LD.
16275         # Luckily, gcc supports the same syntax we need for Sun Studio.
16276         # Supported since Solaris 2.6 (maybe 2.5.1?)
16277         case $wlarc in
16278         '')
16279           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16280         *)
16281           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16282         esac ;;
16283       esac
16284       link_all_deplibs_F77=yes
16285       ;;
16286
16287     sunos4*)
16288       if test "x$host_vendor" = xsequent; then
16289         # Use $CC to link under sequent, because it throws in some extra .o
16290         # files that make .init and .fini sections work.
16291         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16292       else
16293         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16294       fi
16295       hardcode_libdir_flag_spec_F77='-L$libdir'
16296       hardcode_direct_F77=yes
16297       hardcode_minus_L_F77=yes
16298       hardcode_shlibpath_var_F77=no
16299       ;;
16300
16301     sysv4)
16302       case $host_vendor in
16303         sni)
16304           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16305           hardcode_direct_F77=yes # is this really true???
16306         ;;
16307         siemens)
16308           ## LD is ld it makes a PLAMLIB
16309           ## CC just makes a GrossModule.
16310           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16311           reload_cmds_F77='$CC -r -o $output$reload_objs'
16312           hardcode_direct_F77=no
16313         ;;
16314         motorola)
16315           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16316           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16317         ;;
16318       esac
16319       runpath_var='LD_RUN_PATH'
16320       hardcode_shlibpath_var_F77=no
16321       ;;
16322
16323     sysv4.3*)
16324       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16325       hardcode_shlibpath_var_F77=no
16326       export_dynamic_flag_spec_F77='-Bexport'
16327       ;;
16328
16329     sysv4*MP*)
16330       if test -d /usr/nec; then
16331         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16332         hardcode_shlibpath_var_F77=no
16333         runpath_var=LD_RUN_PATH
16334         hardcode_runpath_var=yes
16335         ld_shlibs_F77=yes
16336       fi
16337       ;;
16338
16339     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16340       no_undefined_flag_F77='${wl}-z,text'
16341       archive_cmds_need_lc_F77=no
16342       hardcode_shlibpath_var_F77=no
16343       runpath_var='LD_RUN_PATH'
16344
16345       if test "$GCC" = yes; then
16346         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16347         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16348       else
16349         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16350         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16351       fi
16352       ;;
16353
16354     sysv5* | sco3.2v5* | sco5v6*)
16355       # Note: We can NOT use -z defs as we might desire, because we do not
16356       # link with -lc, and that would cause any symbols used from libc to
16357       # always be unresolved, which means just about no library would
16358       # ever link correctly.  If we're not using GNU ld we use -z text
16359       # though, which does catch some bad symbols but isn't as heavy-handed
16360       # as -z defs.
16361       no_undefined_flag_F77='${wl}-z,text'
16362       allow_undefined_flag_F77='${wl}-z,nodefs'
16363       archive_cmds_need_lc_F77=no
16364       hardcode_shlibpath_var_F77=no
16365       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16366       hardcode_libdir_separator_F77=':'
16367       link_all_deplibs_F77=yes
16368       export_dynamic_flag_spec_F77='${wl}-Bexport'
16369       runpath_var='LD_RUN_PATH'
16370
16371       if test "$GCC" = yes; then
16372         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16373         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16374       else
16375         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16376         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16377       fi
16378       ;;
16379
16380     uts4*)
16381       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16382       hardcode_libdir_flag_spec_F77='-L$libdir'
16383       hardcode_shlibpath_var_F77=no
16384       ;;
16385
16386     *)
16387       ld_shlibs_F77=no
16388       ;;
16389     esac
16390   fi
16391
16392 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16393 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16394 test "$ld_shlibs_F77" = no && can_build_shared=no
16395
16396 #
16397 # Do we need to explicitly link libc?
16398 #
16399 case "x$archive_cmds_need_lc_F77" in
16400 x|xyes)
16401   # Assume -lc should be added
16402   archive_cmds_need_lc_F77=yes
16403
16404   if test "$enable_shared" = yes && test "$GCC" = yes; then
16405     case $archive_cmds_F77 in
16406     *'~'*)
16407       # FIXME: we may have to deal with multi-command sequences.
16408       ;;
16409     '$CC '*)
16410       # Test whether the compiler implicitly links with -lc since on some
16411       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16412       # to ld, don't add -lc before -lgcc.
16413       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16414 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16415       $rm conftest*
16416       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16417
16418       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16419   (eval $ac_compile) 2>&5
16420   ac_status=$?
16421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422   (exit $ac_status); } 2>conftest.err; then
16423         soname=conftest
16424         lib=conftest
16425         libobjs=conftest.$ac_objext
16426         deplibs=
16427         wl=$lt_prog_compiler_wl_F77
16428         pic_flag=$lt_prog_compiler_pic_F77
16429         compiler_flags=-v
16430         linker_flags=-v
16431         verstring=
16432         output_objdir=.
16433         libname=conftest
16434         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16435         allow_undefined_flag_F77=
16436         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16437   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16438   ac_status=$?
16439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440   (exit $ac_status); }
16441         then
16442           archive_cmds_need_lc_F77=no
16443         else
16444           archive_cmds_need_lc_F77=yes
16445         fi
16446         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16447       else
16448         cat conftest.err 1>&5
16449       fi
16450       $rm conftest*
16451       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16452 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16453       ;;
16454     esac
16455   fi
16456   ;;
16457 esac
16458
16459 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16460 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16461 library_names_spec=
16462 libname_spec='lib$name'
16463 soname_spec=
16464 shrext_cmds=".so"
16465 postinstall_cmds=
16466 postuninstall_cmds=
16467 finish_cmds=
16468 finish_eval=
16469 shlibpath_var=
16470 shlibpath_overrides_runpath=unknown
16471 version_type=none
16472 dynamic_linker="$host_os ld.so"
16473 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16474 if test "$GCC" = yes; then
16475   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16476   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16477     # if the path contains ";" then we assume it to be the separator
16478     # otherwise default to the standard path separator (i.e. ":") - it is
16479     # assumed that no part of a normal pathname contains ";" but that should
16480     # okay in the real world where ";" in dirpaths is itself problematic.
16481     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16482   else
16483     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16484   fi
16485 else
16486   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16487 fi
16488 need_lib_prefix=unknown
16489 hardcode_into_libs=no
16490
16491 # when you set need_version to no, make sure it does not cause -set_version
16492 # flags to be left without arguments
16493 need_version=unknown
16494
16495 case $host_os in
16496 aix3*)
16497   version_type=linux
16498   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16499   shlibpath_var=LIBPATH
16500
16501   # AIX 3 has no versioning support, so we append a major version to the name.
16502   soname_spec='${libname}${release}${shared_ext}$major'
16503   ;;
16504
16505 aix4* | aix5*)
16506   version_type=linux
16507   need_lib_prefix=no
16508   need_version=no
16509   hardcode_into_libs=yes
16510   if test "$host_cpu" = ia64; then
16511     # AIX 5 supports IA64
16512     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16513     shlibpath_var=LD_LIBRARY_PATH
16514   else
16515     # With GCC up to 2.95.x, collect2 would create an import file
16516     # for dependence libraries.  The import file would start with
16517     # the line `#! .'.  This would cause the generated library to
16518     # depend on `.', always an invalid library.  This was fixed in
16519     # development snapshots of GCC prior to 3.0.
16520     case $host_os in
16521       aix4 | aix4.[01] | aix4.[01].*)
16522       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16523            echo ' yes '
16524            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16525         :
16526       else
16527         can_build_shared=no
16528       fi
16529       ;;
16530     esac
16531     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16532     # soname into executable. Probably we can add versioning support to
16533     # collect2, so additional links can be useful in future.
16534     if test "$aix_use_runtimelinking" = yes; then
16535       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16536       # instead of lib<name>.a to let people know that these are not
16537       # typical AIX shared libraries.
16538       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16539     else
16540       # We preserve .a as extension for shared libraries through AIX4.2
16541       # and later when we are not doing run time linking.
16542       library_names_spec='${libname}${release}.a $libname.a'
16543       soname_spec='${libname}${release}${shared_ext}$major'
16544     fi
16545     shlibpath_var=LIBPATH
16546   fi
16547   ;;
16548
16549 amigaos*)
16550   library_names_spec='$libname.ixlibrary $libname.a'
16551   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16552   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16553   ;;
16554
16555 beos*)
16556   library_names_spec='${libname}${shared_ext}'
16557   dynamic_linker="$host_os ld.so"
16558   shlibpath_var=LIBRARY_PATH
16559   ;;
16560
16561 bsdi[45]*)
16562   version_type=linux
16563   need_version=no
16564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16565   soname_spec='${libname}${release}${shared_ext}$major'
16566   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16567   shlibpath_var=LD_LIBRARY_PATH
16568   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16569   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16570   # the default ld.so.conf also contains /usr/contrib/lib and
16571   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16572   # libtool to hard-code these into programs
16573   ;;
16574
16575 cygwin* | mingw* | pw32*)
16576   version_type=windows
16577   shrext_cmds=".dll"
16578   need_version=no
16579   need_lib_prefix=no
16580
16581   case $GCC,$host_os in
16582   yes,cygwin* | yes,mingw* | yes,pw32*)
16583     library_names_spec='$libname.dll.a'
16584     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16585     postinstall_cmds='base_file=`basename \${file}`~
16586       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16587       dldir=$destdir/`dirname \$dlpath`~
16588       test -d \$dldir || mkdir -p \$dldir~
16589       $install_prog $dir/$dlname \$dldir/$dlname~
16590       chmod a+x \$dldir/$dlname'
16591     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16592       dlpath=$dir/\$dldll~
16593        $rm \$dlpath'
16594     shlibpath_overrides_runpath=yes
16595
16596     case $host_os in
16597     cygwin*)
16598       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16599       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16600       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16601       ;;
16602     mingw*)
16603       # MinGW DLLs use traditional 'lib' prefix
16604       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16605       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16606       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16607         # It is most probably a Windows format PATH printed by
16608         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16609         # path with ; separators, and with drive letters. We can handle the
16610         # drive letters (cygwin fileutils understands them), so leave them,
16611         # especially as we might pass files found there to a mingw objdump,
16612         # which wouldn't understand a cygwinified path. Ahh.
16613         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16614       else
16615         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16616       fi
16617       ;;
16618     pw32*)
16619       # pw32 DLLs use 'pw' prefix rather than 'lib'
16620       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16621       ;;
16622     esac
16623     ;;
16624
16625   *)
16626     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16627     ;;
16628   esac
16629   dynamic_linker='Win32 ld.exe'
16630   # FIXME: first we should search . and the directory the executable is in
16631   shlibpath_var=PATH
16632   ;;
16633
16634 darwin* | rhapsody*)
16635   dynamic_linker="$host_os dyld"
16636   version_type=darwin
16637   need_lib_prefix=no
16638   need_version=no
16639   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16640   soname_spec='${libname}${release}${major}$shared_ext'
16641   shlibpath_overrides_runpath=yes
16642   shlibpath_var=DYLD_LIBRARY_PATH
16643   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16644   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16645   if test "$GCC" = yes; then
16646     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16647   else
16648     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16649   fi
16650   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16651   ;;
16652
16653 dgux*)
16654   version_type=linux
16655   need_lib_prefix=no
16656   need_version=no
16657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16658   soname_spec='${libname}${release}${shared_ext}$major'
16659   shlibpath_var=LD_LIBRARY_PATH
16660   ;;
16661
16662 freebsd1*)
16663   dynamic_linker=no
16664   ;;
16665
16666 freebsd* | dragonfly*)
16667   # DragonFly does not have aout.  When/if they implement a new
16668   # versioning mechanism, adjust this.
16669   if test -x /usr/bin/objformat; then
16670     objformat=`/usr/bin/objformat`
16671   else
16672     case $host_os in
16673     freebsd[123]*) objformat=aout ;;
16674     *) objformat=elf ;;
16675     esac
16676   fi
16677   version_type=freebsd-$objformat
16678   case $version_type in
16679     freebsd-elf*)
16680       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16681       need_version=no
16682       need_lib_prefix=no
16683       ;;
16684     freebsd-*)
16685       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16686       need_version=yes
16687       ;;
16688   esac
16689   shlibpath_var=LD_LIBRARY_PATH
16690   case $host_os in
16691   freebsd2*)
16692     shlibpath_overrides_runpath=yes
16693     ;;
16694   freebsd3.[01]* | freebsdelf3.[01]*)
16695     shlibpath_overrides_runpath=yes
16696     hardcode_into_libs=yes
16697     ;;
16698   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16699   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16700     shlibpath_overrides_runpath=no
16701     hardcode_into_libs=yes
16702     ;;
16703   freebsd*) # from 4.6 on
16704     shlibpath_overrides_runpath=yes
16705     hardcode_into_libs=yes
16706     ;;
16707   esac
16708   ;;
16709
16710 gnu*)
16711   version_type=linux
16712   need_lib_prefix=no
16713   need_version=no
16714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16715   soname_spec='${libname}${release}${shared_ext}$major'
16716   shlibpath_var=LD_LIBRARY_PATH
16717   hardcode_into_libs=yes
16718   ;;
16719
16720 hpux9* | hpux10* | hpux11*)
16721   # Give a soname corresponding to the major version so that dld.sl refuses to
16722   # link against other versions.
16723   version_type=sunos
16724   need_lib_prefix=no
16725   need_version=no
16726   case $host_cpu in
16727   ia64*)
16728     shrext_cmds='.so'
16729     hardcode_into_libs=yes
16730     dynamic_linker="$host_os dld.so"
16731     shlibpath_var=LD_LIBRARY_PATH
16732     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16733     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16734     soname_spec='${libname}${release}${shared_ext}$major'
16735     if test "X$HPUX_IA64_MODE" = X32; then
16736       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16737     else
16738       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16739     fi
16740     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16741     ;;
16742    hppa*64*)
16743      shrext_cmds='.sl'
16744      hardcode_into_libs=yes
16745      dynamic_linker="$host_os dld.sl"
16746      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16747      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16748      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749      soname_spec='${libname}${release}${shared_ext}$major'
16750      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16751      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16752      ;;
16753    *)
16754     shrext_cmds='.sl'
16755     dynamic_linker="$host_os dld.sl"
16756     shlibpath_var=SHLIB_PATH
16757     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16758     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16759     soname_spec='${libname}${release}${shared_ext}$major'
16760     ;;
16761   esac
16762   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16763   postinstall_cmds='chmod 555 $lib'
16764   ;;
16765
16766 interix3*)
16767   version_type=linux
16768   need_lib_prefix=no
16769   need_version=no
16770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16771   soname_spec='${libname}${release}${shared_ext}$major'
16772   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16773   shlibpath_var=LD_LIBRARY_PATH
16774   shlibpath_overrides_runpath=no
16775   hardcode_into_libs=yes
16776   ;;
16777
16778 irix5* | irix6* | nonstopux*)
16779   case $host_os in
16780     nonstopux*) version_type=nonstopux ;;
16781     *)
16782         if test "$lt_cv_prog_gnu_ld" = yes; then
16783                 version_type=linux
16784         else
16785                 version_type=irix
16786         fi ;;
16787   esac
16788   need_lib_prefix=no
16789   need_version=no
16790   soname_spec='${libname}${release}${shared_ext}$major'
16791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16792   case $host_os in
16793   irix5* | nonstopux*)
16794     libsuff= shlibsuff=
16795     ;;
16796   *)
16797     case $LD in # libtool.m4 will add one of these switches to LD
16798     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16799       libsuff= shlibsuff= libmagic=32-bit;;
16800     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16801       libsuff=32 shlibsuff=N32 libmagic=N32;;
16802     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16803       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16804     *) libsuff= shlibsuff= libmagic=never-match;;
16805     esac
16806     ;;
16807   esac
16808   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16809   shlibpath_overrides_runpath=no
16810   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16811   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16812   hardcode_into_libs=yes
16813   ;;
16814
16815 # No shared lib support for Linux oldld, aout, or coff.
16816 linux*oldld* | linux*aout* | linux*coff*)
16817   dynamic_linker=no
16818   ;;
16819
16820 # This must be Linux ELF.
16821 linux* | k*bsd*-gnu)
16822   version_type=linux
16823   need_lib_prefix=no
16824   need_version=no
16825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16826   soname_spec='${libname}${release}${shared_ext}$major'
16827   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16828   shlibpath_var=LD_LIBRARY_PATH
16829   shlibpath_overrides_runpath=no
16830   # This implies no fast_install, which is unacceptable.
16831   # Some rework will be needed to allow for fast_install
16832   # before this can be enabled.
16833   hardcode_into_libs=yes
16834
16835   # Append ld.so.conf contents to the search path
16836   if test -f /etc/ld.so.conf; then
16837     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16838     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16839   fi
16840
16841   # We used to test for /lib/ld.so.1 and disable shared libraries on
16842   # powerpc, because MkLinux only supported shared libraries with the
16843   # GNU dynamic linker.  Since this was broken with cross compilers,
16844   # most powerpc-linux boxes support dynamic linking these days and
16845   # people can always --disable-shared, the test was removed, and we
16846   # assume the GNU/Linux dynamic linker is in use.
16847   dynamic_linker='GNU/Linux ld.so'
16848   ;;
16849
16850 netbsdelf*-gnu)
16851   version_type=linux
16852   need_lib_prefix=no
16853   need_version=no
16854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16855   soname_spec='${libname}${release}${shared_ext}$major'
16856   shlibpath_var=LD_LIBRARY_PATH
16857   shlibpath_overrides_runpath=no
16858   hardcode_into_libs=yes
16859   dynamic_linker='NetBSD ld.elf_so'
16860   ;;
16861
16862 netbsd*)
16863   version_type=sunos
16864   need_lib_prefix=no
16865   need_version=no
16866   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16867     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16868     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16869     dynamic_linker='NetBSD (a.out) ld.so'
16870   else
16871     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16872     soname_spec='${libname}${release}${shared_ext}$major'
16873     dynamic_linker='NetBSD ld.elf_so'
16874   fi
16875   shlibpath_var=LD_LIBRARY_PATH
16876   shlibpath_overrides_runpath=yes
16877   hardcode_into_libs=yes
16878   ;;
16879
16880 newsos6)
16881   version_type=linux
16882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16883   shlibpath_var=LD_LIBRARY_PATH
16884   shlibpath_overrides_runpath=yes
16885   ;;
16886
16887 nto-qnx*)
16888   version_type=linux
16889   need_lib_prefix=no
16890   need_version=no
16891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16892   soname_spec='${libname}${release}${shared_ext}$major'
16893   shlibpath_var=LD_LIBRARY_PATH
16894   shlibpath_overrides_runpath=yes
16895   ;;
16896
16897 openbsd*)
16898   version_type=sunos
16899   sys_lib_dlsearch_path_spec="/usr/lib"
16900   need_lib_prefix=no
16901   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16902   case $host_os in
16903     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16904     *)                         need_version=no  ;;
16905   esac
16906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16907   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16908   shlibpath_var=LD_LIBRARY_PATH
16909   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16910     case $host_os in
16911       openbsd2.[89] | openbsd2.[89].*)
16912         shlibpath_overrides_runpath=no
16913         ;;
16914       *)
16915         shlibpath_overrides_runpath=yes
16916         ;;
16917       esac
16918   else
16919     shlibpath_overrides_runpath=yes
16920   fi
16921   ;;
16922
16923 os2*)
16924   libname_spec='$name'
16925   shrext_cmds=".dll"
16926   need_lib_prefix=no
16927   library_names_spec='$libname${shared_ext} $libname.a'
16928   dynamic_linker='OS/2 ld.exe'
16929   shlibpath_var=LIBPATH
16930   ;;
16931
16932 osf3* | osf4* | osf5*)
16933   version_type=osf
16934   need_lib_prefix=no
16935   need_version=no
16936   soname_spec='${libname}${release}${shared_ext}$major'
16937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16938   shlibpath_var=LD_LIBRARY_PATH
16939   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16940   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16941   ;;
16942
16943 solaris*)
16944   version_type=linux
16945   need_lib_prefix=no
16946   need_version=no
16947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16948   soname_spec='${libname}${release}${shared_ext}$major'
16949   shlibpath_var=LD_LIBRARY_PATH
16950   shlibpath_overrides_runpath=yes
16951   hardcode_into_libs=yes
16952   # ldd complains unless libraries are executable
16953   postinstall_cmds='chmod +x $lib'
16954   ;;
16955
16956 sunos4*)
16957   version_type=sunos
16958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16959   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16960   shlibpath_var=LD_LIBRARY_PATH
16961   shlibpath_overrides_runpath=yes
16962   if test "$with_gnu_ld" = yes; then
16963     need_lib_prefix=no
16964   fi
16965   need_version=yes
16966   ;;
16967
16968 sysv4 | sysv4.3*)
16969   version_type=linux
16970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16971   soname_spec='${libname}${release}${shared_ext}$major'
16972   shlibpath_var=LD_LIBRARY_PATH
16973   case $host_vendor in
16974     sni)
16975       shlibpath_overrides_runpath=no
16976       need_lib_prefix=no
16977       export_dynamic_flag_spec='${wl}-Blargedynsym'
16978       runpath_var=LD_RUN_PATH
16979       ;;
16980     siemens)
16981       need_lib_prefix=no
16982       ;;
16983     motorola)
16984       need_lib_prefix=no
16985       need_version=no
16986       shlibpath_overrides_runpath=no
16987       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16988       ;;
16989   esac
16990   ;;
16991
16992 sysv4*MP*)
16993   if test -d /usr/nec ;then
16994     version_type=linux
16995     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16996     soname_spec='$libname${shared_ext}.$major'
16997     shlibpath_var=LD_LIBRARY_PATH
16998   fi
16999   ;;
17000
17001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17002   version_type=freebsd-elf
17003   need_lib_prefix=no
17004   need_version=no
17005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17006   soname_spec='${libname}${release}${shared_ext}$major'
17007   shlibpath_var=LD_LIBRARY_PATH
17008   hardcode_into_libs=yes
17009   if test "$with_gnu_ld" = yes; then
17010     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17011     shlibpath_overrides_runpath=no
17012   else
17013     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17014     shlibpath_overrides_runpath=yes
17015     case $host_os in
17016       sco3.2v5*)
17017         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17018         ;;
17019     esac
17020   fi
17021   sys_lib_dlsearch_path_spec='/usr/lib'
17022   ;;
17023
17024 uts4*)
17025   version_type=linux
17026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17027   soname_spec='${libname}${release}${shared_ext}$major'
17028   shlibpath_var=LD_LIBRARY_PATH
17029   ;;
17030
17031 *)
17032   dynamic_linker=no
17033   ;;
17034 esac
17035 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17036 echo "${ECHO_T}$dynamic_linker" >&6; }
17037 test "$dynamic_linker" = no && can_build_shared=no
17038
17039 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17040 if test "$GCC" = yes; then
17041   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17042 fi
17043
17044 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17045 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17046 hardcode_action_F77=
17047 if test -n "$hardcode_libdir_flag_spec_F77" || \
17048    test -n "$runpath_var_F77" || \
17049    test "X$hardcode_automatic_F77" = "Xyes" ; then
17050
17051   # We can hardcode non-existant directories.
17052   if test "$hardcode_direct_F77" != no &&
17053      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17054      # have to relink, otherwise we might link with an installed library
17055      # when we should be linking with a yet-to-be-installed one
17056      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17057      test "$hardcode_minus_L_F77" != no; then
17058     # Linking always hardcodes the temporary library directory.
17059     hardcode_action_F77=relink
17060   else
17061     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17062     hardcode_action_F77=immediate
17063   fi
17064 else
17065   # We cannot hardcode anything, or else we can only hardcode existing
17066   # directories.
17067   hardcode_action_F77=unsupported
17068 fi
17069 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17070 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17071
17072 if test "$hardcode_action_F77" = relink; then
17073   # Fast installation is not supported
17074   enable_fast_install=no
17075 elif test "$shlibpath_overrides_runpath" = yes ||
17076      test "$enable_shared" = no; then
17077   # Fast installation is not necessary
17078   enable_fast_install=needless
17079 fi
17080
17081
17082 # The else clause should only fire when bootstrapping the
17083 # libtool distribution, otherwise you forgot to ship ltmain.sh
17084 # with your package, and you will get complaints that there are
17085 # no rules to generate ltmain.sh.
17086 if test -f "$ltmain"; then
17087   # See if we are running on zsh, and set the options which allow our commands through
17088   # without removal of \ escapes.
17089   if test -n "${ZSH_VERSION+set}" ; then
17090     setopt NO_GLOB_SUBST
17091   fi
17092   # Now quote all the things that may contain metacharacters while being
17093   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17094   # variables and quote the copies for generation of the libtool script.
17095   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17096     SED SHELL STRIP \
17097     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17098     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17099     deplibs_check_method reload_flag reload_cmds need_locks \
17100     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17101     lt_cv_sys_global_symbol_to_c_name_address \
17102     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17103     old_postinstall_cmds old_postuninstall_cmds \
17104     compiler_F77 \
17105     CC_F77 \
17106     LD_F77 \
17107     lt_prog_compiler_wl_F77 \
17108     lt_prog_compiler_pic_F77 \
17109     lt_prog_compiler_static_F77 \
17110     lt_prog_compiler_no_builtin_flag_F77 \
17111     export_dynamic_flag_spec_F77 \
17112     thread_safe_flag_spec_F77 \
17113     whole_archive_flag_spec_F77 \
17114     enable_shared_with_static_runtimes_F77 \
17115     old_archive_cmds_F77 \
17116     old_archive_from_new_cmds_F77 \
17117     predep_objects_F77 \
17118     postdep_objects_F77 \
17119     predeps_F77 \
17120     postdeps_F77 \
17121     compiler_lib_search_path_F77 \
17122     archive_cmds_F77 \
17123     archive_expsym_cmds_F77 \
17124     postinstall_cmds_F77 \
17125     postuninstall_cmds_F77 \
17126     old_archive_from_expsyms_cmds_F77 \
17127     allow_undefined_flag_F77 \
17128     no_undefined_flag_F77 \
17129     export_symbols_cmds_F77 \
17130     hardcode_libdir_flag_spec_F77 \
17131     hardcode_libdir_flag_spec_ld_F77 \
17132     hardcode_libdir_separator_F77 \
17133     hardcode_automatic_F77 \
17134     module_cmds_F77 \
17135     module_expsym_cmds_F77 \
17136     lt_cv_prog_compiler_c_o_F77 \
17137     exclude_expsyms_F77 \
17138     include_expsyms_F77; do
17139
17140     case $var in
17141     old_archive_cmds_F77 | \
17142     old_archive_from_new_cmds_F77 | \
17143     archive_cmds_F77 | \
17144     archive_expsym_cmds_F77 | \
17145     module_cmds_F77 | \
17146     module_expsym_cmds_F77 | \
17147     old_archive_from_expsyms_cmds_F77 | \
17148     export_symbols_cmds_F77 | \
17149     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17150     postinstall_cmds | postuninstall_cmds | \
17151     old_postinstall_cmds | old_postuninstall_cmds | \
17152     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17153       # Double-quote double-evaled strings.
17154       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17155       ;;
17156     *)
17157       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17158       ;;
17159     esac
17160   done
17161
17162   case $lt_echo in
17163   *'\$0 --fallback-echo"')
17164     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17165     ;;
17166   esac
17167
17168 cfgfile="$ofile"
17169
17170   cat <<__EOF__ >> "$cfgfile"
17171 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17172
17173 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17174
17175 # Shell to use when invoking shell scripts.
17176 SHELL=$lt_SHELL
17177
17178 # Whether or not to build shared libraries.
17179 build_libtool_libs=$enable_shared
17180
17181 # Whether or not to build static libraries.
17182 build_old_libs=$enable_static
17183
17184 # Whether or not to add -lc for building shared libraries.
17185 build_libtool_need_lc=$archive_cmds_need_lc_F77
17186
17187 # Whether or not to disallow shared libs when runtime libs are static
17188 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17189
17190 # Whether or not to optimize for fast installation.
17191 fast_install=$enable_fast_install
17192
17193 # The host system.
17194 host_alias=$host_alias
17195 host=$host
17196 host_os=$host_os
17197
17198 # The build system.
17199 build_alias=$build_alias
17200 build=$build
17201 build_os=$build_os
17202
17203 # An echo program that does not interpret backslashes.
17204 echo=$lt_echo
17205
17206 # The archiver.
17207 AR=$lt_AR
17208 AR_FLAGS=$lt_AR_FLAGS
17209
17210 # A C compiler.
17211 LTCC=$lt_LTCC
17212
17213 # LTCC compiler flags.
17214 LTCFLAGS=$lt_LTCFLAGS
17215
17216 # A language-specific compiler.
17217 CC=$lt_compiler_F77
17218
17219 # Is the compiler the GNU C compiler?
17220 with_gcc=$GCC_F77
17221
17222 # An ERE matcher.
17223 EGREP=$lt_EGREP
17224
17225 # The linker used to build libraries.
17226 LD=$lt_LD_F77
17227
17228 # Whether we need hard or soft links.
17229 LN_S=$lt_LN_S
17230
17231 # A BSD-compatible nm program.
17232 NM=$lt_NM
17233
17234 # A symbol stripping program
17235 STRIP=$lt_STRIP
17236
17237 # Used to examine libraries when file_magic_cmd begins "file"
17238 MAGIC_CMD=$MAGIC_CMD
17239
17240 # Used on cygwin: DLL creation program.
17241 DLLTOOL="$DLLTOOL"
17242
17243 # Used on cygwin: object dumper.
17244 OBJDUMP="$OBJDUMP"
17245
17246 # Used on cygwin: assembler.
17247 AS="$AS"
17248
17249 # The name of the directory that contains temporary libtool files.
17250 objdir=$objdir
17251
17252 # How to create reloadable object files.
17253 reload_flag=$lt_reload_flag
17254 reload_cmds=$lt_reload_cmds
17255
17256 # How to pass a linker flag through the compiler.
17257 wl=$lt_lt_prog_compiler_wl_F77
17258
17259 # Object file suffix (normally "o").
17260 objext="$ac_objext"
17261
17262 # Old archive suffix (normally "a").
17263 libext="$libext"
17264
17265 # Shared library suffix (normally ".so").
17266 shrext_cmds='$shrext_cmds'
17267
17268 # Executable file suffix (normally "").
17269 exeext="$exeext"
17270
17271 # Additional compiler flags for building library objects.
17272 pic_flag=$lt_lt_prog_compiler_pic_F77
17273 pic_mode=$pic_mode
17274
17275 # What is the maximum length of a command?
17276 max_cmd_len=$lt_cv_sys_max_cmd_len
17277
17278 # Does compiler simultaneously support -c and -o options?
17279 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17280
17281 # Must we lock files when doing compilation?
17282 need_locks=$lt_need_locks
17283
17284 # Do we need the lib prefix for modules?
17285 need_lib_prefix=$need_lib_prefix
17286
17287 # Do we need a version for libraries?
17288 need_version=$need_version
17289
17290 # Whether dlopen is supported.
17291 dlopen_support=$enable_dlopen
17292
17293 # Whether dlopen of programs is supported.
17294 dlopen_self=$enable_dlopen_self
17295
17296 # Whether dlopen of statically linked programs is supported.
17297 dlopen_self_static=$enable_dlopen_self_static
17298
17299 # Compiler flag to prevent dynamic linking.
17300 link_static_flag=$lt_lt_prog_compiler_static_F77
17301
17302 # Compiler flag to turn off builtin functions.
17303 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17304
17305 # Compiler flag to allow reflexive dlopens.
17306 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17307
17308 # Compiler flag to generate shared objects directly from archives.
17309 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17310
17311 # Compiler flag to generate thread-safe objects.
17312 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17313
17314 # Library versioning type.
17315 version_type=$version_type
17316
17317 # Format of library name prefix.
17318 libname_spec=$lt_libname_spec
17319
17320 # List of archive names.  First name is the real one, the rest are links.
17321 # The last name is the one that the linker finds with -lNAME.
17322 library_names_spec=$lt_library_names_spec
17323
17324 # The coded name of the library, if different from the real name.
17325 soname_spec=$lt_soname_spec
17326
17327 # Commands used to build and install an old-style archive.
17328 RANLIB=$lt_RANLIB
17329 old_archive_cmds=$lt_old_archive_cmds_F77
17330 old_postinstall_cmds=$lt_old_postinstall_cmds
17331 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17332
17333 # Create an old-style archive from a shared archive.
17334 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17335
17336 # Create a temporary old-style archive to link instead of a shared archive.
17337 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17338
17339 # Commands used to build and install a shared archive.
17340 archive_cmds=$lt_archive_cmds_F77
17341 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17342 postinstall_cmds=$lt_postinstall_cmds
17343 postuninstall_cmds=$lt_postuninstall_cmds
17344
17345 # Commands used to build a loadable module (assumed same as above if empty)
17346 module_cmds=$lt_module_cmds_F77
17347 module_expsym_cmds=$lt_module_expsym_cmds_F77
17348
17349 # Commands to strip libraries.
17350 old_striplib=$lt_old_striplib
17351 striplib=$lt_striplib
17352
17353 # Dependencies to place before the objects being linked to create a
17354 # shared library.
17355 predep_objects=$lt_predep_objects_F77
17356
17357 # Dependencies to place after the objects being linked to create a
17358 # shared library.
17359 postdep_objects=$lt_postdep_objects_F77
17360
17361 # Dependencies to place before the objects being linked to create a
17362 # shared library.
17363 predeps=$lt_predeps_F77
17364
17365 # Dependencies to place after the objects being linked to create a
17366 # shared library.
17367 postdeps=$lt_postdeps_F77
17368
17369 # The library search path used internally by the compiler when linking
17370 # a shared library.
17371 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17372
17373 # Method to check whether dependent libraries are shared objects.
17374 deplibs_check_method=$lt_deplibs_check_method
17375
17376 # Command to use when deplibs_check_method == file_magic.
17377 file_magic_cmd=$lt_file_magic_cmd
17378
17379 # Flag that allows shared libraries with undefined symbols to be built.
17380 allow_undefined_flag=$lt_allow_undefined_flag_F77
17381
17382 # Flag that forces no undefined symbols.
17383 no_undefined_flag=$lt_no_undefined_flag_F77
17384
17385 # Commands used to finish a libtool library installation in a directory.
17386 finish_cmds=$lt_finish_cmds
17387
17388 # Same as above, but a single script fragment to be evaled but not shown.
17389 finish_eval=$lt_finish_eval
17390
17391 # Take the output of nm and produce a listing of raw symbols and C names.
17392 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17393
17394 # Transform the output of nm in a proper C declaration
17395 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17396
17397 # Transform the output of nm in a C name address pair
17398 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17399
17400 # This is the shared library runtime path variable.
17401 runpath_var=$runpath_var
17402
17403 # This is the shared library path variable.
17404 shlibpath_var=$shlibpath_var
17405
17406 # Is shlibpath searched before the hard-coded library search path?
17407 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17408
17409 # How to hardcode a shared library path into an executable.
17410 hardcode_action=$hardcode_action_F77
17411
17412 # Whether we should hardcode library paths into libraries.
17413 hardcode_into_libs=$hardcode_into_libs
17414
17415 # Flag to hardcode \$libdir into a binary during linking.
17416 # This must work even if \$libdir does not exist.
17417 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17418
17419 # If ld is used when linking, flag to hardcode \$libdir into
17420 # a binary during linking. This must work even if \$libdir does
17421 # not exist.
17422 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17423
17424 # Whether we need a single -rpath flag with a separated argument.
17425 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17426
17427 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17428 # resulting binary.
17429 hardcode_direct=$hardcode_direct_F77
17430
17431 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17432 # resulting binary.
17433 hardcode_minus_L=$hardcode_minus_L_F77
17434
17435 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17436 # the resulting binary.
17437 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17438
17439 # Set to yes if building a shared library automatically hardcodes DIR into the library
17440 # and all subsequent libraries and executables linked against it.
17441 hardcode_automatic=$hardcode_automatic_F77
17442
17443 # Variables whose values should be saved in libtool wrapper scripts and
17444 # restored at relink time.
17445 variables_saved_for_relink="$variables_saved_for_relink"
17446
17447 # Whether libtool must link a program against all its dependency libraries.
17448 link_all_deplibs=$link_all_deplibs_F77
17449
17450 # Compile-time system search path for libraries
17451 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17452
17453 # Run-time system search path for libraries
17454 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17455
17456 # Fix the shell variable \$srcfile for the compiler.
17457 fix_srcfile_path="$fix_srcfile_path_F77"
17458
17459 # Set to yes if exported symbols are required.
17460 always_export_symbols=$always_export_symbols_F77
17461
17462 # The commands to list exported symbols.
17463 export_symbols_cmds=$lt_export_symbols_cmds_F77
17464
17465 # The commands to extract the exported symbol list from a shared archive.
17466 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17467
17468 # Symbols that should not be listed in the preloaded symbols.
17469 exclude_expsyms=$lt_exclude_expsyms_F77
17470
17471 # Symbols that must always be exported.
17472 include_expsyms=$lt_include_expsyms_F77
17473
17474 # ### END LIBTOOL TAG CONFIG: $tagname
17475
17476 __EOF__
17477
17478
17479 else
17480   # If there is no Makefile yet, we rely on a make rule to execute
17481   # `config.status --recheck' to rerun these tests and create the
17482   # libtool script then.
17483   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17484   if test -f "$ltmain_in"; then
17485     test -f Makefile && make "$ltmain"
17486   fi
17487 fi
17488
17489
17490 ac_ext=c
17491 ac_cpp='$CPP $CPPFLAGS'
17492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17495
17496 CC="$lt_save_CC"
17497
17498         else
17499           tagname=""
17500         fi
17501         ;;
17502
17503       GCJ)
17504         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17505
17506
17507 # Source file extension for Java test sources.
17508 ac_ext=java
17509
17510 # Object file extension for compiled Java test sources.
17511 objext=o
17512 objext_GCJ=$objext
17513
17514 # Code to be used in simple compile tests
17515 lt_simple_compile_test_code="class foo {}\n"
17516
17517 # Code to be used in simple link tests
17518 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17519
17520 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17521
17522 # If no C compiler was specified, use CC.
17523 LTCC=${LTCC-"$CC"}
17524
17525 # If no C compiler flags were specified, use CFLAGS.
17526 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17527
17528 # Allow CC to be a program name with arguments.
17529 compiler=$CC
17530
17531
17532 # save warnings/boilerplate of simple test code
17533 ac_outfile=conftest.$ac_objext
17534 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17535 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17536 _lt_compiler_boilerplate=`cat conftest.err`
17537 $rm conftest*
17538
17539 ac_outfile=conftest.$ac_objext
17540 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17541 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17542 _lt_linker_boilerplate=`cat conftest.err`
17543 $rm conftest*
17544
17545
17546 # Allow CC to be a program name with arguments.
17547 lt_save_CC="$CC"
17548 CC=${GCJ-"gcj"}
17549 compiler=$CC
17550 compiler_GCJ=$CC
17551 for cc_temp in $compiler""; do
17552   case $cc_temp in
17553     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17554     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17555     \-*) ;;
17556     *) break;;
17557   esac
17558 done
17559 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17560
17561
17562 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17563 archive_cmds_need_lc_GCJ=no
17564
17565 old_archive_cmds_GCJ=$old_archive_cmds
17566
17567
17568 lt_prog_compiler_no_builtin_flag_GCJ=
17569
17570 if test "$GCC" = yes; then
17571   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17572
17573
17574 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17575 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17576 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17577   echo $ECHO_N "(cached) $ECHO_C" >&6
17578 else
17579   lt_cv_prog_compiler_rtti_exceptions=no
17580   ac_outfile=conftest.$ac_objext
17581    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17582    lt_compiler_flag="-fno-rtti -fno-exceptions"
17583    # Insert the option either (1) after the last *FLAGS variable, or
17584    # (2) before a word containing "conftest.", or (3) at the end.
17585    # Note that $ac_compile itself does not contain backslashes and begins
17586    # with a dollar sign (not a hyphen), so the echo should work correctly.
17587    # The option is referenced via a variable to avoid confusing sed.
17588    lt_compile=`echo "$ac_compile" | $SED \
17589    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17590    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17591    -e 's:$: $lt_compiler_flag:'`
17592    (eval echo "\"\$as_me:17592: $lt_compile\"" >&5)
17593    (eval "$lt_compile" 2>conftest.err)
17594    ac_status=$?
17595    cat conftest.err >&5
17596    echo "$as_me:17596: \$? = $ac_status" >&5
17597    if (exit $ac_status) && test -s "$ac_outfile"; then
17598      # The compiler can only warn and ignore the option if not recognized
17599      # So say no if there are warnings other than the usual output.
17600      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17601      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17602      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17603        lt_cv_prog_compiler_rtti_exceptions=yes
17604      fi
17605    fi
17606    $rm conftest*
17607
17608 fi
17609 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17610 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17611
17612 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17613     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17614 else
17615     :
17616 fi
17617
17618 fi
17619
17620 lt_prog_compiler_wl_GCJ=
17621 lt_prog_compiler_pic_GCJ=
17622 lt_prog_compiler_static_GCJ=
17623
17624 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17625 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17626
17627   if test "$GCC" = yes; then
17628     lt_prog_compiler_wl_GCJ='-Wl,'
17629     lt_prog_compiler_static_GCJ='-static'
17630
17631     case $host_os in
17632       aix*)
17633       # All AIX code is PIC.
17634       if test "$host_cpu" = ia64; then
17635         # AIX 5 now supports IA64 processor
17636         lt_prog_compiler_static_GCJ='-Bstatic'
17637       fi
17638       ;;
17639
17640     amigaos*)
17641       # FIXME: we need at least 68020 code to build shared libraries, but
17642       # adding the `-m68020' flag to GCC prevents building anything better,
17643       # like `-m68040'.
17644       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17645       ;;
17646
17647     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17648       # PIC is the default for these OSes.
17649       ;;
17650
17651     mingw* | pw32* | os2*)
17652       # This hack is so that the source file can tell whether it is being
17653       # built for inclusion in a dll (and should export symbols for example).
17654       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17655       ;;
17656
17657     darwin* | rhapsody*)
17658       # PIC is the default on this platform
17659       # Common symbols not allowed in MH_DYLIB files
17660       lt_prog_compiler_pic_GCJ='-fno-common'
17661       ;;
17662
17663     interix3*)
17664       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17665       # Instead, we relocate shared libraries at runtime.
17666       ;;
17667
17668     msdosdjgpp*)
17669       # Just because we use GCC doesn't mean we suddenly get shared libraries
17670       # on systems that don't support them.
17671       lt_prog_compiler_can_build_shared_GCJ=no
17672       enable_shared=no
17673       ;;
17674
17675     sysv4*MP*)
17676       if test -d /usr/nec; then
17677         lt_prog_compiler_pic_GCJ=-Kconform_pic
17678       fi
17679       ;;
17680
17681     hpux*)
17682       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17683       # not for PA HP-UX.
17684       case $host_cpu in
17685       hppa*64*|ia64*)
17686         # +Z the default
17687         ;;
17688       *)
17689         lt_prog_compiler_pic_GCJ='-fPIC'
17690         ;;
17691       esac
17692       ;;
17693
17694     *)
17695       lt_prog_compiler_pic_GCJ='-fPIC'
17696       ;;
17697     esac
17698   else
17699     # PORTME Check for flag to pass linker flags through the system compiler.
17700     case $host_os in
17701     aix*)
17702       lt_prog_compiler_wl_GCJ='-Wl,'
17703       if test "$host_cpu" = ia64; then
17704         # AIX 5 now supports IA64 processor
17705         lt_prog_compiler_static_GCJ='-Bstatic'
17706       else
17707         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17708       fi
17709       ;;
17710       darwin*)
17711         # PIC is the default on this platform
17712         # Common symbols not allowed in MH_DYLIB files
17713        case $cc_basename in
17714          xlc*)
17715          lt_prog_compiler_pic_GCJ='-qnocommon'
17716          lt_prog_compiler_wl_GCJ='-Wl,'
17717          ;;
17718        esac
17719        ;;
17720
17721     mingw* | pw32* | os2*)
17722       # This hack is so that the source file can tell whether it is being
17723       # built for inclusion in a dll (and should export symbols for example).
17724       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17725       ;;
17726
17727     hpux9* | hpux10* | hpux11*)
17728       lt_prog_compiler_wl_GCJ='-Wl,'
17729       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17730       # not for PA HP-UX.
17731       case $host_cpu in
17732       hppa*64*|ia64*)
17733         # +Z the default
17734         ;;
17735       *)
17736         lt_prog_compiler_pic_GCJ='+Z'
17737         ;;
17738       esac
17739       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17740       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17741       ;;
17742
17743     irix5* | irix6* | nonstopux*)
17744       lt_prog_compiler_wl_GCJ='-Wl,'
17745       # PIC (with -KPIC) is the default.
17746       lt_prog_compiler_static_GCJ='-non_shared'
17747       ;;
17748
17749     newsos6)
17750       lt_prog_compiler_pic_GCJ='-KPIC'
17751       lt_prog_compiler_static_GCJ='-Bstatic'
17752       ;;
17753
17754     linux* | k*bsd*-gnu)
17755       case $cc_basename in
17756       icc* | ecc*)
17757         lt_prog_compiler_wl_GCJ='-Wl,'
17758         lt_prog_compiler_pic_GCJ='-KPIC'
17759         lt_prog_compiler_static_GCJ='-static'
17760         ;;
17761       pgcc* | pgf77* | pgf90* | pgf95*)
17762         # Portland Group compilers (*not* the Pentium gcc compiler,
17763         # which looks to be a dead project)
17764         lt_prog_compiler_wl_GCJ='-Wl,'
17765         lt_prog_compiler_pic_GCJ='-fpic'
17766         lt_prog_compiler_static_GCJ='-Bstatic'
17767         ;;
17768       ccc*)
17769         lt_prog_compiler_wl_GCJ='-Wl,'
17770         # All Alpha code is PIC.
17771         lt_prog_compiler_static_GCJ='-non_shared'
17772         ;;
17773       esac
17774       ;;
17775
17776     osf3* | osf4* | osf5*)
17777       lt_prog_compiler_wl_GCJ='-Wl,'
17778       # All OSF/1 code is PIC.
17779       lt_prog_compiler_static_GCJ='-non_shared'
17780       ;;
17781
17782     solaris*)
17783       lt_prog_compiler_pic_GCJ='-KPIC'
17784       lt_prog_compiler_static_GCJ='-Bstatic'
17785       case $cc_basename in
17786       f77* | f90* | f95*)
17787         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17788       *)
17789         lt_prog_compiler_wl_GCJ='-Wl,';;
17790       esac
17791       ;;
17792
17793     sunos4*)
17794       lt_prog_compiler_wl_GCJ='-Qoption ld '
17795       lt_prog_compiler_pic_GCJ='-PIC'
17796       lt_prog_compiler_static_GCJ='-Bstatic'
17797       ;;
17798
17799     sysv4 | sysv4.2uw2* | sysv4.3*)
17800       lt_prog_compiler_wl_GCJ='-Wl,'
17801       lt_prog_compiler_pic_GCJ='-KPIC'
17802       lt_prog_compiler_static_GCJ='-Bstatic'
17803       ;;
17804
17805     sysv4*MP*)
17806       if test -d /usr/nec ;then
17807         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17808         lt_prog_compiler_static_GCJ='-Bstatic'
17809       fi
17810       ;;
17811
17812     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17813       lt_prog_compiler_wl_GCJ='-Wl,'
17814       lt_prog_compiler_pic_GCJ='-KPIC'
17815       lt_prog_compiler_static_GCJ='-Bstatic'
17816       ;;
17817
17818     unicos*)
17819       lt_prog_compiler_wl_GCJ='-Wl,'
17820       lt_prog_compiler_can_build_shared_GCJ=no
17821       ;;
17822
17823     uts4*)
17824       lt_prog_compiler_pic_GCJ='-pic'
17825       lt_prog_compiler_static_GCJ='-Bstatic'
17826       ;;
17827
17828     *)
17829       lt_prog_compiler_can_build_shared_GCJ=no
17830       ;;
17831     esac
17832   fi
17833
17834 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17835 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17836
17837 #
17838 # Check to make sure the PIC flag actually works.
17839 #
17840 if test -n "$lt_prog_compiler_pic_GCJ"; then
17841
17842 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17843 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17844 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17845   echo $ECHO_N "(cached) $ECHO_C" >&6
17846 else
17847   lt_prog_compiler_pic_works_GCJ=no
17848   ac_outfile=conftest.$ac_objext
17849    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17850    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17851    # Insert the option either (1) after the last *FLAGS variable, or
17852    # (2) before a word containing "conftest.", or (3) at the end.
17853    # Note that $ac_compile itself does not contain backslashes and begins
17854    # with a dollar sign (not a hyphen), so the echo should work correctly.
17855    # The option is referenced via a variable to avoid confusing sed.
17856    lt_compile=`echo "$ac_compile" | $SED \
17857    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17858    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17859    -e 's:$: $lt_compiler_flag:'`
17860    (eval echo "\"\$as_me:17860: $lt_compile\"" >&5)
17861    (eval "$lt_compile" 2>conftest.err)
17862    ac_status=$?
17863    cat conftest.err >&5
17864    echo "$as_me:17864: \$? = $ac_status" >&5
17865    if (exit $ac_status) && test -s "$ac_outfile"; then
17866      # The compiler can only warn and ignore the option if not recognized
17867      # So say no if there are warnings other than the usual output.
17868      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17869      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17870      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17871        lt_prog_compiler_pic_works_GCJ=yes
17872      fi
17873    fi
17874    $rm conftest*
17875
17876 fi
17877 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17878 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17879
17880 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17881     case $lt_prog_compiler_pic_GCJ in
17882      "" | " "*) ;;
17883      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17884      esac
17885 else
17886     lt_prog_compiler_pic_GCJ=
17887      lt_prog_compiler_can_build_shared_GCJ=no
17888 fi
17889
17890 fi
17891 case $host_os in
17892   # For platforms which do not support PIC, -DPIC is meaningless:
17893   *djgpp*)
17894     lt_prog_compiler_pic_GCJ=
17895     ;;
17896   *)
17897     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17898     ;;
17899 esac
17900
17901 #
17902 # Check to make sure the static flag actually works.
17903 #
17904 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17905 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17906 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17907 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17908   echo $ECHO_N "(cached) $ECHO_C" >&6
17909 else
17910   lt_prog_compiler_static_works_GCJ=no
17911    save_LDFLAGS="$LDFLAGS"
17912    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17913    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17914    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17915      # The linker can only warn and ignore the option if not recognized
17916      # So say no if there are warnings
17917      if test -s conftest.err; then
17918        # Append any errors to the config.log.
17919        cat conftest.err 1>&5
17920        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17921        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17922        if diff conftest.exp conftest.er2 >/dev/null; then
17923          lt_prog_compiler_static_works_GCJ=yes
17924        fi
17925      else
17926        lt_prog_compiler_static_works_GCJ=yes
17927      fi
17928    fi
17929    $rm conftest*
17930    LDFLAGS="$save_LDFLAGS"
17931
17932 fi
17933 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17934 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17935
17936 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17937     :
17938 else
17939     lt_prog_compiler_static_GCJ=
17940 fi
17941
17942
17943 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17944 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17945 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17946   echo $ECHO_N "(cached) $ECHO_C" >&6
17947 else
17948   lt_cv_prog_compiler_c_o_GCJ=no
17949    $rm -r conftest 2>/dev/null
17950    mkdir conftest
17951    cd conftest
17952    mkdir out
17953    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17954
17955    lt_compiler_flag="-o out/conftest2.$ac_objext"
17956    # Insert the option either (1) after the last *FLAGS variable, or
17957    # (2) before a word containing "conftest.", or (3) at the end.
17958    # Note that $ac_compile itself does not contain backslashes and begins
17959    # with a dollar sign (not a hyphen), so the echo should work correctly.
17960    lt_compile=`echo "$ac_compile" | $SED \
17961    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17962    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17963    -e 's:$: $lt_compiler_flag:'`
17964    (eval echo "\"\$as_me:17964: $lt_compile\"" >&5)
17965    (eval "$lt_compile" 2>out/conftest.err)
17966    ac_status=$?
17967    cat out/conftest.err >&5
17968    echo "$as_me:17968: \$? = $ac_status" >&5
17969    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17970    then
17971      # The compiler can only warn and ignore the option if not recognized
17972      # So say no if there are warnings
17973      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17974      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17975      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17976        lt_cv_prog_compiler_c_o_GCJ=yes
17977      fi
17978    fi
17979    chmod u+w . 2>&5
17980    $rm conftest*
17981    # SGI C++ compiler will create directory out/ii_files/ for
17982    # template instantiation
17983    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17984    $rm out/* && rmdir out
17985    cd ..
17986    rmdir conftest
17987    $rm conftest*
17988
17989 fi
17990 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17991 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17992
17993
17994 hard_links="nottested"
17995 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17996   # do not overwrite the value of need_locks provided by the user
17997   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17998 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17999   hard_links=yes
18000   $rm conftest*
18001   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18002   touch conftest.a
18003   ln conftest.a conftest.b 2>&5 || hard_links=no
18004   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18005   { echo "$as_me:$LINENO: result: $hard_links" >&5
18006 echo "${ECHO_T}$hard_links" >&6; }
18007   if test "$hard_links" = no; then
18008     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18009 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18010     need_locks=warn
18011   fi
18012 else
18013   need_locks=no
18014 fi
18015
18016 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18017 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18018
18019   runpath_var=
18020   allow_undefined_flag_GCJ=
18021   enable_shared_with_static_runtimes_GCJ=no
18022   archive_cmds_GCJ=
18023   archive_expsym_cmds_GCJ=
18024   old_archive_From_new_cmds_GCJ=
18025   old_archive_from_expsyms_cmds_GCJ=
18026   export_dynamic_flag_spec_GCJ=
18027   whole_archive_flag_spec_GCJ=
18028   thread_safe_flag_spec_GCJ=
18029   hardcode_libdir_flag_spec_GCJ=
18030   hardcode_libdir_flag_spec_ld_GCJ=
18031   hardcode_libdir_separator_GCJ=
18032   hardcode_direct_GCJ=no
18033   hardcode_minus_L_GCJ=no
18034   hardcode_shlibpath_var_GCJ=unsupported
18035   link_all_deplibs_GCJ=unknown
18036   hardcode_automatic_GCJ=no
18037   module_cmds_GCJ=
18038   module_expsym_cmds_GCJ=
18039   always_export_symbols_GCJ=no
18040   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18041   # include_expsyms should be a list of space-separated symbols to be *always*
18042   # included in the symbol list
18043   include_expsyms_GCJ=
18044   # exclude_expsyms can be an extended regexp of symbols to exclude
18045   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18046   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18047   # as well as any symbol that contains `d'.
18048   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18049   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18050   # platforms (ab)use it in PIC code, but their linkers get confused if
18051   # the symbol is explicitly referenced.  Since portable code cannot
18052   # rely on this symbol name, it's probably fine to never include it in
18053   # preloaded symbol tables.
18054   extract_expsyms_cmds=
18055   # Just being paranoid about ensuring that cc_basename is set.
18056   for cc_temp in $compiler""; do
18057   case $cc_temp in
18058     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18059     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18060     \-*) ;;
18061     *) break;;
18062   esac
18063 done
18064 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18065
18066   case $host_os in
18067   cygwin* | mingw* | pw32*)
18068     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18069     # When not using gcc, we currently assume that we are using
18070     # Microsoft Visual C++.
18071     if test "$GCC" != yes; then
18072       with_gnu_ld=no
18073     fi
18074     ;;
18075   interix*)
18076     # we just hope/assume this is gcc and not c89 (= MSVC++)
18077     with_gnu_ld=yes
18078     ;;
18079   openbsd*)
18080     with_gnu_ld=no
18081     ;;
18082   esac
18083
18084   ld_shlibs_GCJ=yes
18085   if test "$with_gnu_ld" = yes; then
18086     # If archive_cmds runs LD, not CC, wlarc should be empty
18087     wlarc='${wl}'
18088
18089     # Set some defaults for GNU ld with shared library support. These
18090     # are reset later if shared libraries are not supported. Putting them
18091     # here allows them to be overridden if necessary.
18092     runpath_var=LD_RUN_PATH
18093     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18094     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18095     # ancient GNU ld didn't support --whole-archive et. al.
18096     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18097         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18098       else
18099         whole_archive_flag_spec_GCJ=
18100     fi
18101     supports_anon_versioning=no
18102     case `$LD -v 2>/dev/null` in
18103       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18104       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18105       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18106       *\ 2.11.*) ;; # other 2.11 versions
18107       *) supports_anon_versioning=yes ;;
18108     esac
18109
18110     # See if GNU ld supports shared libraries.
18111     case $host_os in
18112     aix3* | aix4* | aix5*)
18113       # On AIX/PPC, the GNU linker is very broken
18114       if test "$host_cpu" != ia64; then
18115         ld_shlibs_GCJ=no
18116         cat <<EOF 1>&2
18117
18118 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18119 *** to be unable to reliably create shared libraries on AIX.
18120 *** Therefore, libtool is disabling shared libraries support.  If you
18121 *** really care for shared libraries, you may want to modify your PATH
18122 *** so that a non-GNU linker is found, and then restart.
18123
18124 EOF
18125       fi
18126       ;;
18127
18128     amigaos*)
18129       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18130       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18131       hardcode_minus_L_GCJ=yes
18132
18133       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18134       # that the semantics of dynamic libraries on AmigaOS, at least up
18135       # to version 4, is to share data among multiple programs linked
18136       # with the same dynamic library.  Since this doesn't match the
18137       # behavior of shared libraries on other platforms, we can't use
18138       # them.
18139       ld_shlibs_GCJ=no
18140       ;;
18141
18142     beos*)
18143       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18144         allow_undefined_flag_GCJ=unsupported
18145         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18146         # support --undefined.  This deserves some investigation.  FIXME
18147         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18148       else
18149         ld_shlibs_GCJ=no
18150       fi
18151       ;;
18152
18153     cygwin* | mingw* | pw32*)
18154       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18155       # as there is no search path for DLLs.
18156       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18157       allow_undefined_flag_GCJ=unsupported
18158       always_export_symbols_GCJ=no
18159       enable_shared_with_static_runtimes_GCJ=yes
18160       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18161
18162       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18163         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18164         # If the export-symbols file already is a .def file (1st line
18165         # is EXPORTS), use it as is; otherwise, prepend...
18166         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18167           cp $export_symbols $output_objdir/$soname.def;
18168         else
18169           echo EXPORTS > $output_objdir/$soname.def;
18170           cat $export_symbols >> $output_objdir/$soname.def;
18171         fi~
18172         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18173       else
18174         ld_shlibs_GCJ=no
18175       fi
18176       ;;
18177
18178     interix3*)
18179       hardcode_direct_GCJ=no
18180       hardcode_shlibpath_var_GCJ=no
18181       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18182       export_dynamic_flag_spec_GCJ='${wl}-E'
18183       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18184       # Instead, shared libraries are loaded at an image base (0x10000000 by
18185       # default) and relocated if they conflict, which is a slow very memory
18186       # consuming and fragmenting process.  To avoid this, we pick a random,
18187       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18188       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18189       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18190       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18191       ;;
18192
18193     linux* | k*bsd*-gnu)
18194       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18195         tmp_addflag=
18196         case $cc_basename,$host_cpu in
18197         pgcc*)                          # Portland Group C compiler
18198           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18199           tmp_addflag=' $pic_flag'
18200           ;;
18201         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18202           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18203           tmp_addflag=' $pic_flag -Mnomain' ;;
18204         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18205           tmp_addflag=' -i_dynamic' ;;
18206         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18207           tmp_addflag=' -i_dynamic -nofor_main' ;;
18208         ifc* | ifort*)                  # Intel Fortran compiler
18209           tmp_addflag=' -nofor_main' ;;
18210         esac
18211         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18212
18213         if test $supports_anon_versioning = yes; then
18214           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18215   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18216   $echo "local: *; };" >> $output_objdir/$libname.ver~
18217           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18218         fi
18219         link_all_deplibs_GCJ=no
18220       else
18221         ld_shlibs_GCJ=no
18222       fi
18223       ;;
18224
18225     netbsd* | netbsdelf*-gnu)
18226       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18227         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18228         wlarc=
18229       else
18230         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18231         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18232       fi
18233       ;;
18234
18235     solaris*)
18236       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18237         ld_shlibs_GCJ=no
18238         cat <<EOF 1>&2
18239
18240 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18241 *** create shared libraries on Solaris systems.  Therefore, libtool
18242 *** is disabling shared libraries support.  We urge you to upgrade GNU
18243 *** binutils to release 2.9.1 or newer.  Another option is to modify
18244 *** your PATH or compiler configuration so that the native linker is
18245 *** used, and then restart.
18246
18247 EOF
18248       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18249         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18250         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18251       else
18252         ld_shlibs_GCJ=no
18253       fi
18254       ;;
18255
18256     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18257       case `$LD -v 2>&1` in
18258         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18259         ld_shlibs_GCJ=no
18260         cat <<_LT_EOF 1>&2
18261
18262 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18263 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18264 *** is disabling shared libraries support.  We urge you to upgrade GNU
18265 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18266 *** your PATH or compiler configuration so that the native linker is
18267 *** used, and then restart.
18268
18269 _LT_EOF
18270         ;;
18271         *)
18272           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18273             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18274             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18275             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18276           else
18277             ld_shlibs_GCJ=no
18278           fi
18279         ;;
18280       esac
18281       ;;
18282
18283     sunos4*)
18284       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18285       wlarc=
18286       hardcode_direct_GCJ=yes
18287       hardcode_shlibpath_var_GCJ=no
18288       ;;
18289
18290     *)
18291       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18292         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18293         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18294       else
18295         ld_shlibs_GCJ=no
18296       fi
18297       ;;
18298     esac
18299
18300     if test "$ld_shlibs_GCJ" = no; then
18301       runpath_var=
18302       hardcode_libdir_flag_spec_GCJ=
18303       export_dynamic_flag_spec_GCJ=
18304       whole_archive_flag_spec_GCJ=
18305     fi
18306   else
18307     # PORTME fill in a description of your system's linker (not GNU ld)
18308     case $host_os in
18309     aix3*)
18310       allow_undefined_flag_GCJ=unsupported
18311       always_export_symbols_GCJ=yes
18312       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18313       # Note: this linker hardcodes the directories in LIBPATH if there
18314       # are no directories specified by -L.
18315       hardcode_minus_L_GCJ=yes
18316       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18317         # Neither direct hardcoding nor static linking is supported with a
18318         # broken collect2.
18319         hardcode_direct_GCJ=unsupported
18320       fi
18321       ;;
18322
18323     aix4* | aix5*)
18324       if test "$host_cpu" = ia64; then
18325         # On IA64, the linker does run time linking by default, so we don't
18326         # have to do anything special.
18327         aix_use_runtimelinking=no
18328         exp_sym_flag='-Bexport'
18329         no_entry_flag=""
18330       else
18331         # If we're using GNU nm, then we don't want the "-C" option.
18332         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18333         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18334           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18335         else
18336           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18337         fi
18338         aix_use_runtimelinking=no
18339
18340         # Test if we are trying to use run time linking or normal
18341         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18342         # need to do runtime linking.
18343         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18344           for ld_flag in $LDFLAGS; do
18345           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18346             aix_use_runtimelinking=yes
18347             break
18348           fi
18349           done
18350           ;;
18351         esac
18352
18353         exp_sym_flag='-bexport'
18354         no_entry_flag='-bnoentry'
18355       fi
18356
18357       # When large executables or shared objects are built, AIX ld can
18358       # have problems creating the table of contents.  If linking a library
18359       # or program results in "error TOC overflow" add -mminimal-toc to
18360       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18361       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18362
18363       archive_cmds_GCJ=''
18364       hardcode_direct_GCJ=yes
18365       hardcode_libdir_separator_GCJ=':'
18366       link_all_deplibs_GCJ=yes
18367
18368       if test "$GCC" = yes; then
18369         case $host_os in aix4.[012]|aix4.[012].*)
18370         # We only want to do this on AIX 4.2 and lower, the check
18371         # below for broken collect2 doesn't work under 4.3+
18372           collect2name=`${CC} -print-prog-name=collect2`
18373           if test -f "$collect2name" && \
18374            strings "$collect2name" | grep resolve_lib_name >/dev/null
18375           then
18376           # We have reworked collect2
18377           hardcode_direct_GCJ=yes
18378           else
18379           # We have old collect2
18380           hardcode_direct_GCJ=unsupported
18381           # It fails to find uninstalled libraries when the uninstalled
18382           # path is not listed in the libpath.  Setting hardcode_minus_L
18383           # to unsupported forces relinking
18384           hardcode_minus_L_GCJ=yes
18385           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18386           hardcode_libdir_separator_GCJ=
18387           fi
18388           ;;
18389         esac
18390         shared_flag='-shared'
18391         if test "$aix_use_runtimelinking" = yes; then
18392           shared_flag="$shared_flag "'${wl}-G'
18393         fi
18394       else
18395         # not using gcc
18396         if test "$host_cpu" = ia64; then
18397         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18398         # chokes on -Wl,-G. The following line is correct:
18399           shared_flag='-G'
18400         else
18401           if test "$aix_use_runtimelinking" = yes; then
18402             shared_flag='${wl}-G'
18403           else
18404             shared_flag='${wl}-bM:SRE'
18405           fi
18406         fi
18407       fi
18408
18409       # It seems that -bexpall does not export symbols beginning with
18410       # underscore (_), so it is better to generate a list of symbols to export.
18411       always_export_symbols_GCJ=yes
18412       if test "$aix_use_runtimelinking" = yes; then
18413         # Warning - without using the other runtime loading flags (-brtl),
18414         # -berok will link without error, but may produce a broken library.
18415         allow_undefined_flag_GCJ='-berok'
18416        # Determine the default libpath from the value encoded in an empty executable.
18417        cat >conftest.$ac_ext <<_ACEOF
18418 /* confdefs.h.  */
18419 _ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h.  */
18423
18424 int
18425 main ()
18426 {
18427
18428   ;
18429   return 0;
18430 }
18431 _ACEOF
18432 rm -f conftest.$ac_objext conftest$ac_exeext
18433 if { (ac_try="$ac_link"
18434 case "(($ac_try" in
18435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436   *) ac_try_echo=$ac_try;;
18437 esac
18438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439   (eval "$ac_link") 2>conftest.er1
18440   ac_status=$?
18441   grep -v '^ *+' conftest.er1 >conftest.err
18442   rm -f conftest.er1
18443   cat conftest.err >&5
18444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445   (exit $ac_status); } && {
18446          test -z "$ac_c_werror_flag" ||
18447          test ! -s conftest.err
18448        } && test -s conftest$ac_exeext &&
18449        $as_test_x conftest$ac_exeext; then
18450
18451 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18452 }'`
18453 # Check for a 64-bit object if we didn't find anything.
18454 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18455 }'`; fi
18456 else
18457   echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.$ac_ext >&5
18459
18460
18461 fi
18462
18463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18464       conftest$ac_exeext conftest.$ac_ext
18465 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18466
18467        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18468         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18469        else
18470         if test "$host_cpu" = ia64; then
18471           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18472           allow_undefined_flag_GCJ="-z nodefs"
18473           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18474         else
18475          # Determine the default libpath from the value encoded in an empty executable.
18476          cat >conftest.$ac_ext <<_ACEOF
18477 /* confdefs.h.  */
18478 _ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h.  */
18482
18483 int
18484 main ()
18485 {
18486
18487   ;
18488   return 0;
18489 }
18490 _ACEOF
18491 rm -f conftest.$ac_objext conftest$ac_exeext
18492 if { (ac_try="$ac_link"
18493 case "(($ac_try" in
18494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18495   *) ac_try_echo=$ac_try;;
18496 esac
18497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18498   (eval "$ac_link") 2>conftest.er1
18499   ac_status=$?
18500   grep -v '^ *+' conftest.er1 >conftest.err
18501   rm -f conftest.er1
18502   cat conftest.err >&5
18503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504   (exit $ac_status); } && {
18505          test -z "$ac_c_werror_flag" ||
18506          test ! -s conftest.err
18507        } && test -s conftest$ac_exeext &&
18508        $as_test_x conftest$ac_exeext; then
18509
18510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18511 }'`
18512 # Check for a 64-bit object if we didn't find anything.
18513 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18514 }'`; fi
18515 else
18516   echo "$as_me: failed program was:" >&5
18517 sed 's/^/| /' conftest.$ac_ext >&5
18518
18519
18520 fi
18521
18522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18523       conftest$ac_exeext conftest.$ac_ext
18524 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18525
18526          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18527           # Warning - without using the other run time loading flags,
18528           # -berok will link without error, but may produce a broken library.
18529           no_undefined_flag_GCJ=' ${wl}-bernotok'
18530           allow_undefined_flag_GCJ=' ${wl}-berok'
18531           # Exported symbols can be pulled into shared objects from archives
18532           whole_archive_flag_spec_GCJ='$convenience'
18533           archive_cmds_need_lc_GCJ=yes
18534           # This is similar to how AIX traditionally builds its shared libraries.
18535           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18536         fi
18537       fi
18538       ;;
18539
18540     amigaos*)
18541       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18542       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18543       hardcode_minus_L_GCJ=yes
18544       # see comment about different semantics on the GNU ld section
18545       ld_shlibs_GCJ=no
18546       ;;
18547
18548     bsdi[45]*)
18549       export_dynamic_flag_spec_GCJ=-rdynamic
18550       ;;
18551
18552     cygwin* | mingw* | pw32*)
18553       # When not using gcc, we currently assume that we are using
18554       # Microsoft Visual C++.
18555       # hardcode_libdir_flag_spec is actually meaningless, as there is
18556       # no search path for DLLs.
18557       hardcode_libdir_flag_spec_GCJ=' '
18558       allow_undefined_flag_GCJ=unsupported
18559       # Tell ltmain to make .lib files, not .a files.
18560       libext=lib
18561       # Tell ltmain to make .dll files, not .so files.
18562       shrext_cmds=".dll"
18563       # FIXME: Setting linknames here is a bad hack.
18564       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18565       # The linker will automatically build a .lib file if we build a DLL.
18566       old_archive_From_new_cmds_GCJ='true'
18567       # FIXME: Should let the user specify the lib program.
18568       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18569       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18570       enable_shared_with_static_runtimes_GCJ=yes
18571       ;;
18572
18573     darwin* | rhapsody*)
18574       case $host_os in
18575         rhapsody* | darwin1.[012])
18576          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18577          ;;
18578        *) # Darwin 1.3 on
18579          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18580            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18581          else
18582            case ${MACOSX_DEPLOYMENT_TARGET} in
18583              10.[012])
18584                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18585                ;;
18586              10.*)
18587                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18588                ;;
18589            esac
18590          fi
18591          ;;
18592       esac
18593       archive_cmds_need_lc_GCJ=no
18594       hardcode_direct_GCJ=no
18595       hardcode_automatic_GCJ=yes
18596       hardcode_shlibpath_var_GCJ=unsupported
18597       whole_archive_flag_spec_GCJ=''
18598       link_all_deplibs_GCJ=yes
18599     if test "$GCC" = yes ; then
18600         output_verbose_link_cmd='echo'
18601         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18602       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18603       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18604       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18605       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18606     else
18607       case $cc_basename in
18608         xlc*)
18609          output_verbose_link_cmd='echo'
18610          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18611          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18612           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18613          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18614           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18615           ;;
18616        *)
18617          ld_shlibs_GCJ=no
18618           ;;
18619       esac
18620     fi
18621       ;;
18622
18623     dgux*)
18624       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18625       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18626       hardcode_shlibpath_var_GCJ=no
18627       ;;
18628
18629     freebsd1*)
18630       ld_shlibs_GCJ=no
18631       ;;
18632
18633     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18634     # support.  Future versions do this automatically, but an explicit c++rt0.o
18635     # does not break anything, and helps significantly (at the cost of a little
18636     # extra space).
18637     freebsd2.2*)
18638       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18639       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18640       hardcode_direct_GCJ=yes
18641       hardcode_shlibpath_var_GCJ=no
18642       ;;
18643
18644     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18645     freebsd2*)
18646       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18647       hardcode_direct_GCJ=yes
18648       hardcode_minus_L_GCJ=yes
18649       hardcode_shlibpath_var_GCJ=no
18650       ;;
18651
18652     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18653     freebsd* | dragonfly*)
18654       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18655       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18656       hardcode_direct_GCJ=yes
18657       hardcode_shlibpath_var_GCJ=no
18658       ;;
18659
18660     hpux9*)
18661       if test "$GCC" = yes; then
18662         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18663       else
18664         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18665       fi
18666       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18667       hardcode_libdir_separator_GCJ=:
18668       hardcode_direct_GCJ=yes
18669
18670       # hardcode_minus_L: Not really in the search PATH,
18671       # but as the default location of the library.
18672       hardcode_minus_L_GCJ=yes
18673       export_dynamic_flag_spec_GCJ='${wl}-E'
18674       ;;
18675
18676     hpux10*)
18677       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18678         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18679       else
18680         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18681       fi
18682       if test "$with_gnu_ld" = no; then
18683         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18684         hardcode_libdir_separator_GCJ=:
18685
18686         hardcode_direct_GCJ=yes
18687         export_dynamic_flag_spec_GCJ='${wl}-E'
18688
18689         # hardcode_minus_L: Not really in the search PATH,
18690         # but as the default location of the library.
18691         hardcode_minus_L_GCJ=yes
18692       fi
18693       ;;
18694
18695     hpux11*)
18696       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18697         case $host_cpu in
18698         hppa*64*)
18699           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18700           ;;
18701         ia64*)
18702           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18703           ;;
18704         *)
18705           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18706           ;;
18707         esac
18708       else
18709         case $host_cpu in
18710         hppa*64*)
18711           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18712           ;;
18713         ia64*)
18714           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18715           ;;
18716         *)
18717           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18718           ;;
18719         esac
18720       fi
18721       if test "$with_gnu_ld" = no; then
18722         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18723         hardcode_libdir_separator_GCJ=:
18724
18725         case $host_cpu in
18726         hppa*64*|ia64*)
18727           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18728           hardcode_direct_GCJ=no
18729           hardcode_shlibpath_var_GCJ=no
18730           ;;
18731         *)
18732           hardcode_direct_GCJ=yes
18733           export_dynamic_flag_spec_GCJ='${wl}-E'
18734
18735           # hardcode_minus_L: Not really in the search PATH,
18736           # but as the default location of the library.
18737           hardcode_minus_L_GCJ=yes
18738           ;;
18739         esac
18740       fi
18741       ;;
18742
18743     irix5* | irix6* | nonstopux*)
18744       if test "$GCC" = yes; then
18745         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18746       else
18747         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18748         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18749       fi
18750       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18751       hardcode_libdir_separator_GCJ=:
18752       link_all_deplibs_GCJ=yes
18753       ;;
18754
18755     netbsd* | netbsdelf*-gnu)
18756       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18757         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18758       else
18759         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18760       fi
18761       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18762       hardcode_direct_GCJ=yes
18763       hardcode_shlibpath_var_GCJ=no
18764       ;;
18765
18766     newsos6)
18767       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18768       hardcode_direct_GCJ=yes
18769       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18770       hardcode_libdir_separator_GCJ=:
18771       hardcode_shlibpath_var_GCJ=no
18772       ;;
18773
18774     openbsd*)
18775       hardcode_direct_GCJ=yes
18776       hardcode_shlibpath_var_GCJ=no
18777       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18778         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18779         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18780         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18781         export_dynamic_flag_spec_GCJ='${wl}-E'
18782       else
18783        case $host_os in
18784          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18785            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18786            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18787            ;;
18788          *)
18789            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18790            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18791            ;;
18792        esac
18793       fi
18794       ;;
18795
18796     os2*)
18797       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18798       hardcode_minus_L_GCJ=yes
18799       allow_undefined_flag_GCJ=unsupported
18800       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18801       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18802       ;;
18803
18804     osf3*)
18805       if test "$GCC" = yes; then
18806         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18807         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18808       else
18809         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18810         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18811       fi
18812       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18813       hardcode_libdir_separator_GCJ=:
18814       ;;
18815
18816     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18817       if test "$GCC" = yes; then
18818         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18819         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18820         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18821       else
18822         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18823         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18824         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18825         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18826
18827         # Both c and cxx compiler support -rpath directly
18828         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18829       fi
18830       hardcode_libdir_separator_GCJ=:
18831       ;;
18832
18833     solaris*)
18834       no_undefined_flag_GCJ=' -z text'
18835       if test "$GCC" = yes; then
18836         wlarc='${wl}'
18837         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18838         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18839           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18840       else
18841         wlarc=''
18842         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18843         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18844         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18845       fi
18846       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18847       hardcode_shlibpath_var_GCJ=no
18848       case $host_os in
18849       solaris2.[0-5] | solaris2.[0-5].*) ;;
18850       *)
18851         # The compiler driver will combine linker options so we
18852         # cannot just pass the convience library names through
18853         # without $wl, iff we do not link with $LD.
18854         # Luckily, gcc supports the same syntax we need for Sun Studio.
18855         # Supported since Solaris 2.6 (maybe 2.5.1?)
18856         case $wlarc in
18857         '')
18858           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18859         *)
18860           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18861         esac ;;
18862       esac
18863       link_all_deplibs_GCJ=yes
18864       ;;
18865
18866     sunos4*)
18867       if test "x$host_vendor" = xsequent; then
18868         # Use $CC to link under sequent, because it throws in some extra .o
18869         # files that make .init and .fini sections work.
18870         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18871       else
18872         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18873       fi
18874       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18875       hardcode_direct_GCJ=yes
18876       hardcode_minus_L_GCJ=yes
18877       hardcode_shlibpath_var_GCJ=no
18878       ;;
18879
18880     sysv4)
18881       case $host_vendor in
18882         sni)
18883           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18884           hardcode_direct_GCJ=yes # is this really true???
18885         ;;
18886         siemens)
18887           ## LD is ld it makes a PLAMLIB
18888           ## CC just makes a GrossModule.
18889           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18890           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18891           hardcode_direct_GCJ=no
18892         ;;
18893         motorola)
18894           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18895           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18896         ;;
18897       esac
18898       runpath_var='LD_RUN_PATH'
18899       hardcode_shlibpath_var_GCJ=no
18900       ;;
18901
18902     sysv4.3*)
18903       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18904       hardcode_shlibpath_var_GCJ=no
18905       export_dynamic_flag_spec_GCJ='-Bexport'
18906       ;;
18907
18908     sysv4*MP*)
18909       if test -d /usr/nec; then
18910         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18911         hardcode_shlibpath_var_GCJ=no
18912         runpath_var=LD_RUN_PATH
18913         hardcode_runpath_var=yes
18914         ld_shlibs_GCJ=yes
18915       fi
18916       ;;
18917
18918     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18919       no_undefined_flag_GCJ='${wl}-z,text'
18920       archive_cmds_need_lc_GCJ=no
18921       hardcode_shlibpath_var_GCJ=no
18922       runpath_var='LD_RUN_PATH'
18923
18924       if test "$GCC" = yes; then
18925         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18926         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18927       else
18928         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18929         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18930       fi
18931       ;;
18932
18933     sysv5* | sco3.2v5* | sco5v6*)
18934       # Note: We can NOT use -z defs as we might desire, because we do not
18935       # link with -lc, and that would cause any symbols used from libc to
18936       # always be unresolved, which means just about no library would
18937       # ever link correctly.  If we're not using GNU ld we use -z text
18938       # though, which does catch some bad symbols but isn't as heavy-handed
18939       # as -z defs.
18940       no_undefined_flag_GCJ='${wl}-z,text'
18941       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18942       archive_cmds_need_lc_GCJ=no
18943       hardcode_shlibpath_var_GCJ=no
18944       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18945       hardcode_libdir_separator_GCJ=':'
18946       link_all_deplibs_GCJ=yes
18947       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18948       runpath_var='LD_RUN_PATH'
18949
18950       if test "$GCC" = yes; then
18951         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18952         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18953       else
18954         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18955         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18956       fi
18957       ;;
18958
18959     uts4*)
18960       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18961       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18962       hardcode_shlibpath_var_GCJ=no
18963       ;;
18964
18965     *)
18966       ld_shlibs_GCJ=no
18967       ;;
18968     esac
18969   fi
18970
18971 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18972 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18973 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18974
18975 #
18976 # Do we need to explicitly link libc?
18977 #
18978 case "x$archive_cmds_need_lc_GCJ" in
18979 x|xyes)
18980   # Assume -lc should be added
18981   archive_cmds_need_lc_GCJ=yes
18982
18983   if test "$enable_shared" = yes && test "$GCC" = yes; then
18984     case $archive_cmds_GCJ in
18985     *'~'*)
18986       # FIXME: we may have to deal with multi-command sequences.
18987       ;;
18988     '$CC '*)
18989       # Test whether the compiler implicitly links with -lc since on some
18990       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18991       # to ld, don't add -lc before -lgcc.
18992       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18993 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18994       $rm conftest*
18995       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18996
18997       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18998   (eval $ac_compile) 2>&5
18999   ac_status=$?
19000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001   (exit $ac_status); } 2>conftest.err; then
19002         soname=conftest
19003         lib=conftest
19004         libobjs=conftest.$ac_objext
19005         deplibs=
19006         wl=$lt_prog_compiler_wl_GCJ
19007         pic_flag=$lt_prog_compiler_pic_GCJ
19008         compiler_flags=-v
19009         linker_flags=-v
19010         verstring=
19011         output_objdir=.
19012         libname=conftest
19013         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19014         allow_undefined_flag_GCJ=
19015         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19016   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19017   ac_status=$?
19018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019   (exit $ac_status); }
19020         then
19021           archive_cmds_need_lc_GCJ=no
19022         else
19023           archive_cmds_need_lc_GCJ=yes
19024         fi
19025         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19026       else
19027         cat conftest.err 1>&5
19028       fi
19029       $rm conftest*
19030       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19031 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19032       ;;
19033     esac
19034   fi
19035   ;;
19036 esac
19037
19038 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19039 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19040 library_names_spec=
19041 libname_spec='lib$name'
19042 soname_spec=
19043 shrext_cmds=".so"
19044 postinstall_cmds=
19045 postuninstall_cmds=
19046 finish_cmds=
19047 finish_eval=
19048 shlibpath_var=
19049 shlibpath_overrides_runpath=unknown
19050 version_type=none
19051 dynamic_linker="$host_os ld.so"
19052 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19053 if test "$GCC" = yes; then
19054   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19055   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19056     # if the path contains ";" then we assume it to be the separator
19057     # otherwise default to the standard path separator (i.e. ":") - it is
19058     # assumed that no part of a normal pathname contains ";" but that should
19059     # okay in the real world where ";" in dirpaths is itself problematic.
19060     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19061   else
19062     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19063   fi
19064 else
19065   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19066 fi
19067 need_lib_prefix=unknown
19068 hardcode_into_libs=no
19069
19070 # when you set need_version to no, make sure it does not cause -set_version
19071 # flags to be left without arguments
19072 need_version=unknown
19073
19074 case $host_os in
19075 aix3*)
19076   version_type=linux
19077   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19078   shlibpath_var=LIBPATH
19079
19080   # AIX 3 has no versioning support, so we append a major version to the name.
19081   soname_spec='${libname}${release}${shared_ext}$major'
19082   ;;
19083
19084 aix4* | aix5*)
19085   version_type=linux
19086   need_lib_prefix=no
19087   need_version=no
19088   hardcode_into_libs=yes
19089   if test "$host_cpu" = ia64; then
19090     # AIX 5 supports IA64
19091     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19092     shlibpath_var=LD_LIBRARY_PATH
19093   else
19094     # With GCC up to 2.95.x, collect2 would create an import file
19095     # for dependence libraries.  The import file would start with
19096     # the line `#! .'.  This would cause the generated library to
19097     # depend on `.', always an invalid library.  This was fixed in
19098     # development snapshots of GCC prior to 3.0.
19099     case $host_os in
19100       aix4 | aix4.[01] | aix4.[01].*)
19101       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19102            echo ' yes '
19103            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19104         :
19105       else
19106         can_build_shared=no
19107       fi
19108       ;;
19109     esac
19110     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19111     # soname into executable. Probably we can add versioning support to
19112     # collect2, so additional links can be useful in future.
19113     if test "$aix_use_runtimelinking" = yes; then
19114       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19115       # instead of lib<name>.a to let people know that these are not
19116       # typical AIX shared libraries.
19117       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19118     else
19119       # We preserve .a as extension for shared libraries through AIX4.2
19120       # and later when we are not doing run time linking.
19121       library_names_spec='${libname}${release}.a $libname.a'
19122       soname_spec='${libname}${release}${shared_ext}$major'
19123     fi
19124     shlibpath_var=LIBPATH
19125   fi
19126   ;;
19127
19128 amigaos*)
19129   library_names_spec='$libname.ixlibrary $libname.a'
19130   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19131   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
19132   ;;
19133
19134 beos*)
19135   library_names_spec='${libname}${shared_ext}'
19136   dynamic_linker="$host_os ld.so"
19137   shlibpath_var=LIBRARY_PATH
19138   ;;
19139
19140 bsdi[45]*)
19141   version_type=linux
19142   need_version=no
19143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19144   soname_spec='${libname}${release}${shared_ext}$major'
19145   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19146   shlibpath_var=LD_LIBRARY_PATH
19147   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19148   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19149   # the default ld.so.conf also contains /usr/contrib/lib and
19150   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19151   # libtool to hard-code these into programs
19152   ;;
19153
19154 cygwin* | mingw* | pw32*)
19155   version_type=windows
19156   shrext_cmds=".dll"
19157   need_version=no
19158   need_lib_prefix=no
19159
19160   case $GCC,$host_os in
19161   yes,cygwin* | yes,mingw* | yes,pw32*)
19162     library_names_spec='$libname.dll.a'
19163     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19164     postinstall_cmds='base_file=`basename \${file}`~
19165       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19166       dldir=$destdir/`dirname \$dlpath`~
19167       test -d \$dldir || mkdir -p \$dldir~
19168       $install_prog $dir/$dlname \$dldir/$dlname~
19169       chmod a+x \$dldir/$dlname'
19170     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19171       dlpath=$dir/\$dldll~
19172        $rm \$dlpath'
19173     shlibpath_overrides_runpath=yes
19174
19175     case $host_os in
19176     cygwin*)
19177       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19178       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19179       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19180       ;;
19181     mingw*)
19182       # MinGW DLLs use traditional 'lib' prefix
19183       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19184       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19185       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19186         # It is most probably a Windows format PATH printed by
19187         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19188         # path with ; separators, and with drive letters. We can handle the
19189         # drive letters (cygwin fileutils understands them), so leave them,
19190         # especially as we might pass files found there to a mingw objdump,
19191         # which wouldn't understand a cygwinified path. Ahh.
19192         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19193       else
19194         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19195       fi
19196       ;;
19197     pw32*)
19198       # pw32 DLLs use 'pw' prefix rather than 'lib'
19199       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19200       ;;
19201     esac
19202     ;;
19203
19204   *)
19205     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19206     ;;
19207   esac
19208   dynamic_linker='Win32 ld.exe'
19209   # FIXME: first we should search . and the directory the executable is in
19210   shlibpath_var=PATH
19211   ;;
19212
19213 darwin* | rhapsody*)
19214   dynamic_linker="$host_os dyld"
19215   version_type=darwin
19216   need_lib_prefix=no
19217   need_version=no
19218   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19219   soname_spec='${libname}${release}${major}$shared_ext'
19220   shlibpath_overrides_runpath=yes
19221   shlibpath_var=DYLD_LIBRARY_PATH
19222   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19223   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19224   if test "$GCC" = yes; then
19225     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19226   else
19227     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19228   fi
19229   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19230   ;;
19231
19232 dgux*)
19233   version_type=linux
19234   need_lib_prefix=no
19235   need_version=no
19236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19237   soname_spec='${libname}${release}${shared_ext}$major'
19238   shlibpath_var=LD_LIBRARY_PATH
19239   ;;
19240
19241 freebsd1*)
19242   dynamic_linker=no
19243   ;;
19244
19245 freebsd* | dragonfly*)
19246   # DragonFly does not have aout.  When/if they implement a new
19247   # versioning mechanism, adjust this.
19248   if test -x /usr/bin/objformat; then
19249     objformat=`/usr/bin/objformat`
19250   else
19251     case $host_os in
19252     freebsd[123]*) objformat=aout ;;
19253     *) objformat=elf ;;
19254     esac
19255   fi
19256   version_type=freebsd-$objformat
19257   case $version_type in
19258     freebsd-elf*)
19259       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19260       need_version=no
19261       need_lib_prefix=no
19262       ;;
19263     freebsd-*)
19264       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19265       need_version=yes
19266       ;;
19267   esac
19268   shlibpath_var=LD_LIBRARY_PATH
19269   case $host_os in
19270   freebsd2*)
19271     shlibpath_overrides_runpath=yes
19272     ;;
19273   freebsd3.[01]* | freebsdelf3.[01]*)
19274     shlibpath_overrides_runpath=yes
19275     hardcode_into_libs=yes
19276     ;;
19277   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19278   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19279     shlibpath_overrides_runpath=no
19280     hardcode_into_libs=yes
19281     ;;
19282   freebsd*) # from 4.6 on
19283     shlibpath_overrides_runpath=yes
19284     hardcode_into_libs=yes
19285     ;;
19286   esac
19287   ;;
19288
19289 gnu*)
19290   version_type=linux
19291   need_lib_prefix=no
19292   need_version=no
19293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19294   soname_spec='${libname}${release}${shared_ext}$major'
19295   shlibpath_var=LD_LIBRARY_PATH
19296   hardcode_into_libs=yes
19297   ;;
19298
19299 hpux9* | hpux10* | hpux11*)
19300   # Give a soname corresponding to the major version so that dld.sl refuses to
19301   # link against other versions.
19302   version_type=sunos
19303   need_lib_prefix=no
19304   need_version=no
19305   case $host_cpu in
19306   ia64*)
19307     shrext_cmds='.so'
19308     hardcode_into_libs=yes
19309     dynamic_linker="$host_os dld.so"
19310     shlibpath_var=LD_LIBRARY_PATH
19311     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19312     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19313     soname_spec='${libname}${release}${shared_ext}$major'
19314     if test "X$HPUX_IA64_MODE" = X32; then
19315       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19316     else
19317       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19318     fi
19319     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19320     ;;
19321    hppa*64*)
19322      shrext_cmds='.sl'
19323      hardcode_into_libs=yes
19324      dynamic_linker="$host_os dld.sl"
19325      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19326      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19327      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19328      soname_spec='${libname}${release}${shared_ext}$major'
19329      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19330      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19331      ;;
19332    *)
19333     shrext_cmds='.sl'
19334     dynamic_linker="$host_os dld.sl"
19335     shlibpath_var=SHLIB_PATH
19336     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19337     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19338     soname_spec='${libname}${release}${shared_ext}$major'
19339     ;;
19340   esac
19341   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19342   postinstall_cmds='chmod 555 $lib'
19343   ;;
19344
19345 interix3*)
19346   version_type=linux
19347   need_lib_prefix=no
19348   need_version=no
19349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19350   soname_spec='${libname}${release}${shared_ext}$major'
19351   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19352   shlibpath_var=LD_LIBRARY_PATH
19353   shlibpath_overrides_runpath=no
19354   hardcode_into_libs=yes
19355   ;;
19356
19357 irix5* | irix6* | nonstopux*)
19358   case $host_os in
19359     nonstopux*) version_type=nonstopux ;;
19360     *)
19361         if test "$lt_cv_prog_gnu_ld" = yes; then
19362                 version_type=linux
19363         else
19364                 version_type=irix
19365         fi ;;
19366   esac
19367   need_lib_prefix=no
19368   need_version=no
19369   soname_spec='${libname}${release}${shared_ext}$major'
19370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19371   case $host_os in
19372   irix5* | nonstopux*)
19373     libsuff= shlibsuff=
19374     ;;
19375   *)
19376     case $LD in # libtool.m4 will add one of these switches to LD
19377     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19378       libsuff= shlibsuff= libmagic=32-bit;;
19379     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19380       libsuff=32 shlibsuff=N32 libmagic=N32;;
19381     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19382       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19383     *) libsuff= shlibsuff= libmagic=never-match;;
19384     esac
19385     ;;
19386   esac
19387   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19388   shlibpath_overrides_runpath=no
19389   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19390   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19391   hardcode_into_libs=yes
19392   ;;
19393
19394 # No shared lib support for Linux oldld, aout, or coff.
19395 linux*oldld* | linux*aout* | linux*coff*)
19396   dynamic_linker=no
19397   ;;
19398
19399 # This must be Linux ELF.
19400 linux* | k*bsd*-gnu)
19401   version_type=linux
19402   need_lib_prefix=no
19403   need_version=no
19404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19405   soname_spec='${libname}${release}${shared_ext}$major'
19406   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19407   shlibpath_var=LD_LIBRARY_PATH
19408   shlibpath_overrides_runpath=no
19409   # This implies no fast_install, which is unacceptable.
19410   # Some rework will be needed to allow for fast_install
19411   # before this can be enabled.
19412   hardcode_into_libs=yes
19413
19414   # Append ld.so.conf contents to the search path
19415   if test -f /etc/ld.so.conf; then
19416     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19417     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19418   fi
19419
19420   # We used to test for /lib/ld.so.1 and disable shared libraries on
19421   # powerpc, because MkLinux only supported shared libraries with the
19422   # GNU dynamic linker.  Since this was broken with cross compilers,
19423   # most powerpc-linux boxes support dynamic linking these days and
19424   # people can always --disable-shared, the test was removed, and we
19425   # assume the GNU/Linux dynamic linker is in use.
19426   dynamic_linker='GNU/Linux ld.so'
19427   ;;
19428
19429 netbsdelf*-gnu)
19430   version_type=linux
19431   need_lib_prefix=no
19432   need_version=no
19433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19434   soname_spec='${libname}${release}${shared_ext}$major'
19435   shlibpath_var=LD_LIBRARY_PATH
19436   shlibpath_overrides_runpath=no
19437   hardcode_into_libs=yes
19438   dynamic_linker='NetBSD ld.elf_so'
19439   ;;
19440
19441 netbsd*)
19442   version_type=sunos
19443   need_lib_prefix=no
19444   need_version=no
19445   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19446     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19447     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19448     dynamic_linker='NetBSD (a.out) ld.so'
19449   else
19450     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19451     soname_spec='${libname}${release}${shared_ext}$major'
19452     dynamic_linker='NetBSD ld.elf_so'
19453   fi
19454   shlibpath_var=LD_LIBRARY_PATH
19455   shlibpath_overrides_runpath=yes
19456   hardcode_into_libs=yes
19457   ;;
19458
19459 newsos6)
19460   version_type=linux
19461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19462   shlibpath_var=LD_LIBRARY_PATH
19463   shlibpath_overrides_runpath=yes
19464   ;;
19465
19466 nto-qnx*)
19467   version_type=linux
19468   need_lib_prefix=no
19469   need_version=no
19470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19471   soname_spec='${libname}${release}${shared_ext}$major'
19472   shlibpath_var=LD_LIBRARY_PATH
19473   shlibpath_overrides_runpath=yes
19474   ;;
19475
19476 openbsd*)
19477   version_type=sunos
19478   sys_lib_dlsearch_path_spec="/usr/lib"
19479   need_lib_prefix=no
19480   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19481   case $host_os in
19482     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19483     *)                         need_version=no  ;;
19484   esac
19485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19486   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19487   shlibpath_var=LD_LIBRARY_PATH
19488   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19489     case $host_os in
19490       openbsd2.[89] | openbsd2.[89].*)
19491         shlibpath_overrides_runpath=no
19492         ;;
19493       *)
19494         shlibpath_overrides_runpath=yes
19495         ;;
19496       esac
19497   else
19498     shlibpath_overrides_runpath=yes
19499   fi
19500   ;;
19501
19502 os2*)
19503   libname_spec='$name'
19504   shrext_cmds=".dll"
19505   need_lib_prefix=no
19506   library_names_spec='$libname${shared_ext} $libname.a'
19507   dynamic_linker='OS/2 ld.exe'
19508   shlibpath_var=LIBPATH
19509   ;;
19510
19511 osf3* | osf4* | osf5*)
19512   version_type=osf
19513   need_lib_prefix=no
19514   need_version=no
19515   soname_spec='${libname}${release}${shared_ext}$major'
19516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19517   shlibpath_var=LD_LIBRARY_PATH
19518   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19519   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19520   ;;
19521
19522 solaris*)
19523   version_type=linux
19524   need_lib_prefix=no
19525   need_version=no
19526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19527   soname_spec='${libname}${release}${shared_ext}$major'
19528   shlibpath_var=LD_LIBRARY_PATH
19529   shlibpath_overrides_runpath=yes
19530   hardcode_into_libs=yes
19531   # ldd complains unless libraries are executable
19532   postinstall_cmds='chmod +x $lib'
19533   ;;
19534
19535 sunos4*)
19536   version_type=sunos
19537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19538   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19539   shlibpath_var=LD_LIBRARY_PATH
19540   shlibpath_overrides_runpath=yes
19541   if test "$with_gnu_ld" = yes; then
19542     need_lib_prefix=no
19543   fi
19544   need_version=yes
19545   ;;
19546
19547 sysv4 | sysv4.3*)
19548   version_type=linux
19549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19550   soname_spec='${libname}${release}${shared_ext}$major'
19551   shlibpath_var=LD_LIBRARY_PATH
19552   case $host_vendor in
19553     sni)
19554       shlibpath_overrides_runpath=no
19555       need_lib_prefix=no
19556       export_dynamic_flag_spec='${wl}-Blargedynsym'
19557       runpath_var=LD_RUN_PATH
19558       ;;
19559     siemens)
19560       need_lib_prefix=no
19561       ;;
19562     motorola)
19563       need_lib_prefix=no
19564       need_version=no
19565       shlibpath_overrides_runpath=no
19566       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19567       ;;
19568   esac
19569   ;;
19570
19571 sysv4*MP*)
19572   if test -d /usr/nec ;then
19573     version_type=linux
19574     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19575     soname_spec='$libname${shared_ext}.$major'
19576     shlibpath_var=LD_LIBRARY_PATH
19577   fi
19578   ;;
19579
19580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19581   version_type=freebsd-elf
19582   need_lib_prefix=no
19583   need_version=no
19584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19585   soname_spec='${libname}${release}${shared_ext}$major'
19586   shlibpath_var=LD_LIBRARY_PATH
19587   hardcode_into_libs=yes
19588   if test "$with_gnu_ld" = yes; then
19589     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19590     shlibpath_overrides_runpath=no
19591   else
19592     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19593     shlibpath_overrides_runpath=yes
19594     case $host_os in
19595       sco3.2v5*)
19596         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19597         ;;
19598     esac
19599   fi
19600   sys_lib_dlsearch_path_spec='/usr/lib'
19601   ;;
19602
19603 uts4*)
19604   version_type=linux
19605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19606   soname_spec='${libname}${release}${shared_ext}$major'
19607   shlibpath_var=LD_LIBRARY_PATH
19608   ;;
19609
19610 *)
19611   dynamic_linker=no
19612   ;;
19613 esac
19614 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19615 echo "${ECHO_T}$dynamic_linker" >&6; }
19616 test "$dynamic_linker" = no && can_build_shared=no
19617
19618 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19619 if test "$GCC" = yes; then
19620   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19621 fi
19622
19623 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19624 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19625 hardcode_action_GCJ=
19626 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19627    test -n "$runpath_var_GCJ" || \
19628    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19629
19630   # We can hardcode non-existant directories.
19631   if test "$hardcode_direct_GCJ" != no &&
19632      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19633      # have to relink, otherwise we might link with an installed library
19634      # when we should be linking with a yet-to-be-installed one
19635      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19636      test "$hardcode_minus_L_GCJ" != no; then
19637     # Linking always hardcodes the temporary library directory.
19638     hardcode_action_GCJ=relink
19639   else
19640     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19641     hardcode_action_GCJ=immediate
19642   fi
19643 else
19644   # We cannot hardcode anything, or else we can only hardcode existing
19645   # directories.
19646   hardcode_action_GCJ=unsupported
19647 fi
19648 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19649 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19650
19651 if test "$hardcode_action_GCJ" = relink; then
19652   # Fast installation is not supported
19653   enable_fast_install=no
19654 elif test "$shlibpath_overrides_runpath" = yes ||
19655      test "$enable_shared" = no; then
19656   # Fast installation is not necessary
19657   enable_fast_install=needless
19658 fi
19659
19660
19661 # The else clause should only fire when bootstrapping the
19662 # libtool distribution, otherwise you forgot to ship ltmain.sh
19663 # with your package, and you will get complaints that there are
19664 # no rules to generate ltmain.sh.
19665 if test -f "$ltmain"; then
19666   # See if we are running on zsh, and set the options which allow our commands through
19667   # without removal of \ escapes.
19668   if test -n "${ZSH_VERSION+set}" ; then
19669     setopt NO_GLOB_SUBST
19670   fi
19671   # Now quote all the things that may contain metacharacters while being
19672   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19673   # variables and quote the copies for generation of the libtool script.
19674   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19675     SED SHELL STRIP \
19676     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19677     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19678     deplibs_check_method reload_flag reload_cmds need_locks \
19679     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19680     lt_cv_sys_global_symbol_to_c_name_address \
19681     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19682     old_postinstall_cmds old_postuninstall_cmds \
19683     compiler_GCJ \
19684     CC_GCJ \
19685     LD_GCJ \
19686     lt_prog_compiler_wl_GCJ \
19687     lt_prog_compiler_pic_GCJ \
19688     lt_prog_compiler_static_GCJ \
19689     lt_prog_compiler_no_builtin_flag_GCJ \
19690     export_dynamic_flag_spec_GCJ \
19691     thread_safe_flag_spec_GCJ \
19692     whole_archive_flag_spec_GCJ \
19693     enable_shared_with_static_runtimes_GCJ \
19694     old_archive_cmds_GCJ \
19695     old_archive_from_new_cmds_GCJ \
19696     predep_objects_GCJ \
19697     postdep_objects_GCJ \
19698     predeps_GCJ \
19699     postdeps_GCJ \
19700     compiler_lib_search_path_GCJ \
19701     archive_cmds_GCJ \
19702     archive_expsym_cmds_GCJ \
19703     postinstall_cmds_GCJ \
19704     postuninstall_cmds_GCJ \
19705     old_archive_from_expsyms_cmds_GCJ \
19706     allow_undefined_flag_GCJ \
19707     no_undefined_flag_GCJ \
19708     export_symbols_cmds_GCJ \
19709     hardcode_libdir_flag_spec_GCJ \
19710     hardcode_libdir_flag_spec_ld_GCJ \
19711     hardcode_libdir_separator_GCJ \
19712     hardcode_automatic_GCJ \
19713     module_cmds_GCJ \
19714     module_expsym_cmds_GCJ \
19715     lt_cv_prog_compiler_c_o_GCJ \
19716     exclude_expsyms_GCJ \
19717     include_expsyms_GCJ; do
19718
19719     case $var in
19720     old_archive_cmds_GCJ | \
19721     old_archive_from_new_cmds_GCJ | \
19722     archive_cmds_GCJ | \
19723     archive_expsym_cmds_GCJ | \
19724     module_cmds_GCJ | \
19725     module_expsym_cmds_GCJ | \
19726     old_archive_from_expsyms_cmds_GCJ | \
19727     export_symbols_cmds_GCJ | \
19728     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19729     postinstall_cmds | postuninstall_cmds | \
19730     old_postinstall_cmds | old_postuninstall_cmds | \
19731     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19732       # Double-quote double-evaled strings.
19733       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19734       ;;
19735     *)
19736       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19737       ;;
19738     esac
19739   done
19740
19741   case $lt_echo in
19742   *'\$0 --fallback-echo"')
19743     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19744     ;;
19745   esac
19746
19747 cfgfile="$ofile"
19748
19749   cat <<__EOF__ >> "$cfgfile"
19750 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19751
19752 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19753
19754 # Shell to use when invoking shell scripts.
19755 SHELL=$lt_SHELL
19756
19757 # Whether or not to build shared libraries.
19758 build_libtool_libs=$enable_shared
19759
19760 # Whether or not to build static libraries.
19761 build_old_libs=$enable_static
19762
19763 # Whether or not to add -lc for building shared libraries.
19764 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19765
19766 # Whether or not to disallow shared libs when runtime libs are static
19767 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19768
19769 # Whether or not to optimize for fast installation.
19770 fast_install=$enable_fast_install
19771
19772 # The host system.
19773 host_alias=$host_alias
19774 host=$host
19775 host_os=$host_os
19776
19777 # The build system.
19778 build_alias=$build_alias
19779 build=$build
19780 build_os=$build_os
19781
19782 # An echo program that does not interpret backslashes.
19783 echo=$lt_echo
19784
19785 # The archiver.
19786 AR=$lt_AR
19787 AR_FLAGS=$lt_AR_FLAGS
19788
19789 # A C compiler.
19790 LTCC=$lt_LTCC
19791
19792 # LTCC compiler flags.
19793 LTCFLAGS=$lt_LTCFLAGS
19794
19795 # A language-specific compiler.
19796 CC=$lt_compiler_GCJ
19797
19798 # Is the compiler the GNU C compiler?
19799 with_gcc=$GCC_GCJ
19800
19801 # An ERE matcher.
19802 EGREP=$lt_EGREP
19803
19804 # The linker used to build libraries.
19805 LD=$lt_LD_GCJ
19806
19807 # Whether we need hard or soft links.
19808 LN_S=$lt_LN_S
19809
19810 # A BSD-compatible nm program.
19811 NM=$lt_NM
19812
19813 # A symbol stripping program
19814 STRIP=$lt_STRIP
19815
19816 # Used to examine libraries when file_magic_cmd begins "file"
19817 MAGIC_CMD=$MAGIC_CMD
19818
19819 # Used on cygwin: DLL creation program.
19820 DLLTOOL="$DLLTOOL"
19821
19822 # Used on cygwin: object dumper.
19823 OBJDUMP="$OBJDUMP"
19824
19825 # Used on cygwin: assembler.
19826 AS="$AS"
19827
19828 # The name of the directory that contains temporary libtool files.
19829 objdir=$objdir
19830
19831 # How to create reloadable object files.
19832 reload_flag=$lt_reload_flag
19833 reload_cmds=$lt_reload_cmds
19834
19835 # How to pass a linker flag through the compiler.
19836 wl=$lt_lt_prog_compiler_wl_GCJ
19837
19838 # Object file suffix (normally "o").
19839 objext="$ac_objext"
19840
19841 # Old archive suffix (normally "a").
19842 libext="$libext"
19843
19844 # Shared library suffix (normally ".so").
19845 shrext_cmds='$shrext_cmds'
19846
19847 # Executable file suffix (normally "").
19848 exeext="$exeext"
19849
19850 # Additional compiler flags for building library objects.
19851 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19852 pic_mode=$pic_mode
19853
19854 # What is the maximum length of a command?
19855 max_cmd_len=$lt_cv_sys_max_cmd_len
19856
19857 # Does compiler simultaneously support -c and -o options?
19858 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19859
19860 # Must we lock files when doing compilation?
19861 need_locks=$lt_need_locks
19862
19863 # Do we need the lib prefix for modules?
19864 need_lib_prefix=$need_lib_prefix
19865
19866 # Do we need a version for libraries?
19867 need_version=$need_version
19868
19869 # Whether dlopen is supported.
19870 dlopen_support=$enable_dlopen
19871
19872 # Whether dlopen of programs is supported.
19873 dlopen_self=$enable_dlopen_self
19874
19875 # Whether dlopen of statically linked programs is supported.
19876 dlopen_self_static=$enable_dlopen_self_static
19877
19878 # Compiler flag to prevent dynamic linking.
19879 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19880
19881 # Compiler flag to turn off builtin functions.
19882 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19883
19884 # Compiler flag to allow reflexive dlopens.
19885 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19886
19887 # Compiler flag to generate shared objects directly from archives.
19888 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19889
19890 # Compiler flag to generate thread-safe objects.
19891 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19892
19893 # Library versioning type.
19894 version_type=$version_type
19895
19896 # Format of library name prefix.
19897 libname_spec=$lt_libname_spec
19898
19899 # List of archive names.  First name is the real one, the rest are links.
19900 # The last name is the one that the linker finds with -lNAME.
19901 library_names_spec=$lt_library_names_spec
19902
19903 # The coded name of the library, if different from the real name.
19904 soname_spec=$lt_soname_spec
19905
19906 # Commands used to build and install an old-style archive.
19907 RANLIB=$lt_RANLIB
19908 old_archive_cmds=$lt_old_archive_cmds_GCJ
19909 old_postinstall_cmds=$lt_old_postinstall_cmds
19910 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19911
19912 # Create an old-style archive from a shared archive.
19913 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19914
19915 # Create a temporary old-style archive to link instead of a shared archive.
19916 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19917
19918 # Commands used to build and install a shared archive.
19919 archive_cmds=$lt_archive_cmds_GCJ
19920 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19921 postinstall_cmds=$lt_postinstall_cmds
19922 postuninstall_cmds=$lt_postuninstall_cmds
19923
19924 # Commands used to build a loadable module (assumed same as above if empty)
19925 module_cmds=$lt_module_cmds_GCJ
19926 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19927
19928 # Commands to strip libraries.
19929 old_striplib=$lt_old_striplib
19930 striplib=$lt_striplib
19931
19932 # Dependencies to place before the objects being linked to create a
19933 # shared library.
19934 predep_objects=$lt_predep_objects_GCJ
19935
19936 # Dependencies to place after the objects being linked to create a
19937 # shared library.
19938 postdep_objects=$lt_postdep_objects_GCJ
19939
19940 # Dependencies to place before the objects being linked to create a
19941 # shared library.
19942 predeps=$lt_predeps_GCJ
19943
19944 # Dependencies to place after the objects being linked to create a
19945 # shared library.
19946 postdeps=$lt_postdeps_GCJ
19947
19948 # The library search path used internally by the compiler when linking
19949 # a shared library.
19950 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19951
19952 # Method to check whether dependent libraries are shared objects.
19953 deplibs_check_method=$lt_deplibs_check_method
19954
19955 # Command to use when deplibs_check_method == file_magic.
19956 file_magic_cmd=$lt_file_magic_cmd
19957
19958 # Flag that allows shared libraries with undefined symbols to be built.
19959 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19960
19961 # Flag that forces no undefined symbols.
19962 no_undefined_flag=$lt_no_undefined_flag_GCJ
19963
19964 # Commands used to finish a libtool library installation in a directory.
19965 finish_cmds=$lt_finish_cmds
19966
19967 # Same as above, but a single script fragment to be evaled but not shown.
19968 finish_eval=$lt_finish_eval
19969
19970 # Take the output of nm and produce a listing of raw symbols and C names.
19971 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19972
19973 # Transform the output of nm in a proper C declaration
19974 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19975
19976 # Transform the output of nm in a C name address pair
19977 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19978
19979 # This is the shared library runtime path variable.
19980 runpath_var=$runpath_var
19981
19982 # This is the shared library path variable.
19983 shlibpath_var=$shlibpath_var
19984
19985 # Is shlibpath searched before the hard-coded library search path?
19986 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19987
19988 # How to hardcode a shared library path into an executable.
19989 hardcode_action=$hardcode_action_GCJ
19990
19991 # Whether we should hardcode library paths into libraries.
19992 hardcode_into_libs=$hardcode_into_libs
19993
19994 # Flag to hardcode \$libdir into a binary during linking.
19995 # This must work even if \$libdir does not exist.
19996 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19997
19998 # If ld is used when linking, flag to hardcode \$libdir into
19999 # a binary during linking. This must work even if \$libdir does
20000 # not exist.
20001 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20002
20003 # Whether we need a single -rpath flag with a separated argument.
20004 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20005
20006 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20007 # resulting binary.
20008 hardcode_direct=$hardcode_direct_GCJ
20009
20010 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20011 # resulting binary.
20012 hardcode_minus_L=$hardcode_minus_L_GCJ
20013
20014 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20015 # the resulting binary.
20016 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20017
20018 # Set to yes if building a shared library automatically hardcodes DIR into the library
20019 # and all subsequent libraries and executables linked against it.
20020 hardcode_automatic=$hardcode_automatic_GCJ
20021
20022 # Variables whose values should be saved in libtool wrapper scripts and
20023 # restored at relink time.
20024 variables_saved_for_relink="$variables_saved_for_relink"
20025
20026 # Whether libtool must link a program against all its dependency libraries.
20027 link_all_deplibs=$link_all_deplibs_GCJ
20028
20029 # Compile-time system search path for libraries
20030 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20031
20032 # Run-time system search path for libraries
20033 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20034
20035 # Fix the shell variable \$srcfile for the compiler.
20036 fix_srcfile_path="$fix_srcfile_path_GCJ"
20037
20038 # Set to yes if exported symbols are required.
20039 always_export_symbols=$always_export_symbols_GCJ
20040
20041 # The commands to list exported symbols.
20042 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20043
20044 # The commands to extract the exported symbol list from a shared archive.
20045 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20046
20047 # Symbols that should not be listed in the preloaded symbols.
20048 exclude_expsyms=$lt_exclude_expsyms_GCJ
20049
20050 # Symbols that must always be exported.
20051 include_expsyms=$lt_include_expsyms_GCJ
20052
20053 # ### END LIBTOOL TAG CONFIG: $tagname
20054
20055 __EOF__
20056
20057
20058 else
20059   # If there is no Makefile yet, we rely on a make rule to execute
20060   # `config.status --recheck' to rerun these tests and create the
20061   # libtool script then.
20062   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20063   if test -f "$ltmain_in"; then
20064     test -f Makefile && make "$ltmain"
20065   fi
20066 fi
20067
20068
20069 ac_ext=c
20070 ac_cpp='$CPP $CPPFLAGS'
20071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20074
20075 CC="$lt_save_CC"
20076
20077         else
20078           tagname=""
20079         fi
20080         ;;
20081
20082       RC)
20083
20084
20085 # Source file extension for RC test sources.
20086 ac_ext=rc
20087
20088 # Object file extension for compiled RC test sources.
20089 objext=o
20090 objext_RC=$objext
20091
20092 # Code to be used in simple compile tests
20093 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20094
20095 # Code to be used in simple link tests
20096 lt_simple_link_test_code="$lt_simple_compile_test_code"
20097
20098 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20099
20100 # If no C compiler was specified, use CC.
20101 LTCC=${LTCC-"$CC"}
20102
20103 # If no C compiler flags were specified, use CFLAGS.
20104 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20105
20106 # Allow CC to be a program name with arguments.
20107 compiler=$CC
20108
20109
20110 # save warnings/boilerplate of simple test code
20111 ac_outfile=conftest.$ac_objext
20112 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20113 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20114 _lt_compiler_boilerplate=`cat conftest.err`
20115 $rm conftest*
20116
20117 ac_outfile=conftest.$ac_objext
20118 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20119 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20120 _lt_linker_boilerplate=`cat conftest.err`
20121 $rm conftest*
20122
20123
20124 # Allow CC to be a program name with arguments.
20125 lt_save_CC="$CC"
20126 CC=${RC-"windres"}
20127 compiler=$CC
20128 compiler_RC=$CC
20129 for cc_temp in $compiler""; do
20130   case $cc_temp in
20131     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20132     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20133     \-*) ;;
20134     *) break;;
20135   esac
20136 done
20137 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20138
20139 lt_cv_prog_compiler_c_o_RC=yes
20140
20141 # The else clause should only fire when bootstrapping the
20142 # libtool distribution, otherwise you forgot to ship ltmain.sh
20143 # with your package, and you will get complaints that there are
20144 # no rules to generate ltmain.sh.
20145 if test -f "$ltmain"; then
20146   # See if we are running on zsh, and set the options which allow our commands through
20147   # without removal of \ escapes.
20148   if test -n "${ZSH_VERSION+set}" ; then
20149     setopt NO_GLOB_SUBST
20150   fi
20151   # Now quote all the things that may contain metacharacters while being
20152   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20153   # variables and quote the copies for generation of the libtool script.
20154   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20155     SED SHELL STRIP \
20156     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20157     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20158     deplibs_check_method reload_flag reload_cmds need_locks \
20159     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20160     lt_cv_sys_global_symbol_to_c_name_address \
20161     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20162     old_postinstall_cmds old_postuninstall_cmds \
20163     compiler_RC \
20164     CC_RC \
20165     LD_RC \
20166     lt_prog_compiler_wl_RC \
20167     lt_prog_compiler_pic_RC \
20168     lt_prog_compiler_static_RC \
20169     lt_prog_compiler_no_builtin_flag_RC \
20170     export_dynamic_flag_spec_RC \
20171     thread_safe_flag_spec_RC \
20172     whole_archive_flag_spec_RC \
20173     enable_shared_with_static_runtimes_RC \
20174     old_archive_cmds_RC \
20175     old_archive_from_new_cmds_RC \
20176     predep_objects_RC \
20177     postdep_objects_RC \
20178     predeps_RC \
20179     postdeps_RC \
20180     compiler_lib_search_path_RC \
20181     archive_cmds_RC \
20182     archive_expsym_cmds_RC \
20183     postinstall_cmds_RC \
20184     postuninstall_cmds_RC \
20185     old_archive_from_expsyms_cmds_RC \
20186     allow_undefined_flag_RC \
20187     no_undefined_flag_RC \
20188     export_symbols_cmds_RC \
20189     hardcode_libdir_flag_spec_RC \
20190     hardcode_libdir_flag_spec_ld_RC \
20191     hardcode_libdir_separator_RC \
20192     hardcode_automatic_RC \
20193     module_cmds_RC \
20194     module_expsym_cmds_RC \
20195     lt_cv_prog_compiler_c_o_RC \
20196     exclude_expsyms_RC \
20197     include_expsyms_RC; do
20198
20199     case $var in
20200     old_archive_cmds_RC | \
20201     old_archive_from_new_cmds_RC | \
20202     archive_cmds_RC | \
20203     archive_expsym_cmds_RC | \
20204     module_cmds_RC | \
20205     module_expsym_cmds_RC | \
20206     old_archive_from_expsyms_cmds_RC | \
20207     export_symbols_cmds_RC | \
20208     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20209     postinstall_cmds | postuninstall_cmds | \
20210     old_postinstall_cmds | old_postuninstall_cmds | \
20211     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20212       # Double-quote double-evaled strings.
20213       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20214       ;;
20215     *)
20216       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20217       ;;
20218     esac
20219   done
20220
20221   case $lt_echo in
20222   *'\$0 --fallback-echo"')
20223     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20224     ;;
20225   esac
20226
20227 cfgfile="$ofile"
20228
20229   cat <<__EOF__ >> "$cfgfile"
20230 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20231
20232 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20233
20234 # Shell to use when invoking shell scripts.
20235 SHELL=$lt_SHELL
20236
20237 # Whether or not to build shared libraries.
20238 build_libtool_libs=$enable_shared
20239
20240 # Whether or not to build static libraries.
20241 build_old_libs=$enable_static
20242
20243 # Whether or not to add -lc for building shared libraries.
20244 build_libtool_need_lc=$archive_cmds_need_lc_RC
20245
20246 # Whether or not to disallow shared libs when runtime libs are static
20247 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20248
20249 # Whether or not to optimize for fast installation.
20250 fast_install=$enable_fast_install
20251
20252 # The host system.
20253 host_alias=$host_alias
20254 host=$host
20255 host_os=$host_os
20256
20257 # The build system.
20258 build_alias=$build_alias
20259 build=$build
20260 build_os=$build_os
20261
20262 # An echo program that does not interpret backslashes.
20263 echo=$lt_echo
20264
20265 # The archiver.
20266 AR=$lt_AR
20267 AR_FLAGS=$lt_AR_FLAGS
20268
20269 # A C compiler.
20270 LTCC=$lt_LTCC
20271
20272 # LTCC compiler flags.
20273 LTCFLAGS=$lt_LTCFLAGS
20274
20275 # A language-specific compiler.
20276 CC=$lt_compiler_RC
20277
20278 # Is the compiler the GNU C compiler?
20279 with_gcc=$GCC_RC
20280
20281 # An ERE matcher.
20282 EGREP=$lt_EGREP
20283
20284 # The linker used to build libraries.
20285 LD=$lt_LD_RC
20286
20287 # Whether we need hard or soft links.
20288 LN_S=$lt_LN_S
20289
20290 # A BSD-compatible nm program.
20291 NM=$lt_NM
20292
20293 # A symbol stripping program
20294 STRIP=$lt_STRIP
20295
20296 # Used to examine libraries when file_magic_cmd begins "file"
20297 MAGIC_CMD=$MAGIC_CMD
20298
20299 # Used on cygwin: DLL creation program.
20300 DLLTOOL="$DLLTOOL"
20301
20302 # Used on cygwin: object dumper.
20303 OBJDUMP="$OBJDUMP"
20304
20305 # Used on cygwin: assembler.
20306 AS="$AS"
20307
20308 # The name of the directory that contains temporary libtool files.
20309 objdir=$objdir
20310
20311 # How to create reloadable object files.
20312 reload_flag=$lt_reload_flag
20313 reload_cmds=$lt_reload_cmds
20314
20315 # How to pass a linker flag through the compiler.
20316 wl=$lt_lt_prog_compiler_wl_RC
20317
20318 # Object file suffix (normally "o").
20319 objext="$ac_objext"
20320
20321 # Old archive suffix (normally "a").
20322 libext="$libext"
20323
20324 # Shared library suffix (normally ".so").
20325 shrext_cmds='$shrext_cmds'
20326
20327 # Executable file suffix (normally "").
20328 exeext="$exeext"
20329
20330 # Additional compiler flags for building library objects.
20331 pic_flag=$lt_lt_prog_compiler_pic_RC
20332 pic_mode=$pic_mode
20333
20334 # What is the maximum length of a command?
20335 max_cmd_len=$lt_cv_sys_max_cmd_len
20336
20337 # Does compiler simultaneously support -c and -o options?
20338 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20339
20340 # Must we lock files when doing compilation?
20341 need_locks=$lt_need_locks
20342
20343 # Do we need the lib prefix for modules?
20344 need_lib_prefix=$need_lib_prefix
20345
20346 # Do we need a version for libraries?
20347 need_version=$need_version
20348
20349 # Whether dlopen is supported.
20350 dlopen_support=$enable_dlopen
20351
20352 # Whether dlopen of programs is supported.
20353 dlopen_self=$enable_dlopen_self
20354
20355 # Whether dlopen of statically linked programs is supported.
20356 dlopen_self_static=$enable_dlopen_self_static
20357
20358 # Compiler flag to prevent dynamic linking.
20359 link_static_flag=$lt_lt_prog_compiler_static_RC
20360
20361 # Compiler flag to turn off builtin functions.
20362 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20363
20364 # Compiler flag to allow reflexive dlopens.
20365 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20366
20367 # Compiler flag to generate shared objects directly from archives.
20368 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20369
20370 # Compiler flag to generate thread-safe objects.
20371 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20372
20373 # Library versioning type.
20374 version_type=$version_type
20375
20376 # Format of library name prefix.
20377 libname_spec=$lt_libname_spec
20378
20379 # List of archive names.  First name is the real one, the rest are links.
20380 # The last name is the one that the linker finds with -lNAME.
20381 library_names_spec=$lt_library_names_spec
20382
20383 # The coded name of the library, if different from the real name.
20384 soname_spec=$lt_soname_spec
20385
20386 # Commands used to build and install an old-style archive.
20387 RANLIB=$lt_RANLIB
20388 old_archive_cmds=$lt_old_archive_cmds_RC
20389 old_postinstall_cmds=$lt_old_postinstall_cmds
20390 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20391
20392 # Create an old-style archive from a shared archive.
20393 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20394
20395 # Create a temporary old-style archive to link instead of a shared archive.
20396 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20397
20398 # Commands used to build and install a shared archive.
20399 archive_cmds=$lt_archive_cmds_RC
20400 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20401 postinstall_cmds=$lt_postinstall_cmds
20402 postuninstall_cmds=$lt_postuninstall_cmds
20403
20404 # Commands used to build a loadable module (assumed same as above if empty)
20405 module_cmds=$lt_module_cmds_RC
20406 module_expsym_cmds=$lt_module_expsym_cmds_RC
20407
20408 # Commands to strip libraries.
20409 old_striplib=$lt_old_striplib
20410 striplib=$lt_striplib
20411
20412 # Dependencies to place before the objects being linked to create a
20413 # shared library.
20414 predep_objects=$lt_predep_objects_RC
20415
20416 # Dependencies to place after the objects being linked to create a
20417 # shared library.
20418 postdep_objects=$lt_postdep_objects_RC
20419
20420 # Dependencies to place before the objects being linked to create a
20421 # shared library.
20422 predeps=$lt_predeps_RC
20423
20424 # Dependencies to place after the objects being linked to create a
20425 # shared library.
20426 postdeps=$lt_postdeps_RC
20427
20428 # The library search path used internally by the compiler when linking
20429 # a shared library.
20430 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20431
20432 # Method to check whether dependent libraries are shared objects.
20433 deplibs_check_method=$lt_deplibs_check_method
20434
20435 # Command to use when deplibs_check_method == file_magic.
20436 file_magic_cmd=$lt_file_magic_cmd
20437
20438 # Flag that allows shared libraries with undefined symbols to be built.
20439 allow_undefined_flag=$lt_allow_undefined_flag_RC
20440
20441 # Flag that forces no undefined symbols.
20442 no_undefined_flag=$lt_no_undefined_flag_RC
20443
20444 # Commands used to finish a libtool library installation in a directory.
20445 finish_cmds=$lt_finish_cmds
20446
20447 # Same as above, but a single script fragment to be evaled but not shown.
20448 finish_eval=$lt_finish_eval
20449
20450 # Take the output of nm and produce a listing of raw symbols and C names.
20451 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20452
20453 # Transform the output of nm in a proper C declaration
20454 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20455
20456 # Transform the output of nm in a C name address pair
20457 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20458
20459 # This is the shared library runtime path variable.
20460 runpath_var=$runpath_var
20461
20462 # This is the shared library path variable.
20463 shlibpath_var=$shlibpath_var
20464
20465 # Is shlibpath searched before the hard-coded library search path?
20466 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20467
20468 # How to hardcode a shared library path into an executable.
20469 hardcode_action=$hardcode_action_RC
20470
20471 # Whether we should hardcode library paths into libraries.
20472 hardcode_into_libs=$hardcode_into_libs
20473
20474 # Flag to hardcode \$libdir into a binary during linking.
20475 # This must work even if \$libdir does not exist.
20476 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20477
20478 # If ld is used when linking, flag to hardcode \$libdir into
20479 # a binary during linking. This must work even if \$libdir does
20480 # not exist.
20481 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20482
20483 # Whether we need a single -rpath flag with a separated argument.
20484 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20485
20486 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20487 # resulting binary.
20488 hardcode_direct=$hardcode_direct_RC
20489
20490 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20491 # resulting binary.
20492 hardcode_minus_L=$hardcode_minus_L_RC
20493
20494 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20495 # the resulting binary.
20496 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20497
20498 # Set to yes if building a shared library automatically hardcodes DIR into the library
20499 # and all subsequent libraries and executables linked against it.
20500 hardcode_automatic=$hardcode_automatic_RC
20501
20502 # Variables whose values should be saved in libtool wrapper scripts and
20503 # restored at relink time.
20504 variables_saved_for_relink="$variables_saved_for_relink"
20505
20506 # Whether libtool must link a program against all its dependency libraries.
20507 link_all_deplibs=$link_all_deplibs_RC
20508
20509 # Compile-time system search path for libraries
20510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20511
20512 # Run-time system search path for libraries
20513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20514
20515 # Fix the shell variable \$srcfile for the compiler.
20516 fix_srcfile_path="$fix_srcfile_path_RC"
20517
20518 # Set to yes if exported symbols are required.
20519 always_export_symbols=$always_export_symbols_RC
20520
20521 # The commands to list exported symbols.
20522 export_symbols_cmds=$lt_export_symbols_cmds_RC
20523
20524 # The commands to extract the exported symbol list from a shared archive.
20525 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20526
20527 # Symbols that should not be listed in the preloaded symbols.
20528 exclude_expsyms=$lt_exclude_expsyms_RC
20529
20530 # Symbols that must always be exported.
20531 include_expsyms=$lt_include_expsyms_RC
20532
20533 # ### END LIBTOOL TAG CONFIG: $tagname
20534
20535 __EOF__
20536
20537
20538 else
20539   # If there is no Makefile yet, we rely on a make rule to execute
20540   # `config.status --recheck' to rerun these tests and create the
20541   # libtool script then.
20542   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20543   if test -f "$ltmain_in"; then
20544     test -f Makefile && make "$ltmain"
20545   fi
20546 fi
20547
20548
20549 ac_ext=c
20550 ac_cpp='$CPP $CPPFLAGS'
20551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20554
20555 CC="$lt_save_CC"
20556
20557         ;;
20558
20559       *)
20560         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20561 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20562    { (exit 1); exit 1; }; }
20563         ;;
20564       esac
20565
20566       # Append the new tag name to the list of available tags.
20567       if test -n "$tagname" ; then
20568       available_tags="$available_tags $tagname"
20569     fi
20570     fi
20571   done
20572   IFS="$lt_save_ifs"
20573
20574   # Now substitute the updated list of available tags.
20575   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20576     mv "${ofile}T" "$ofile"
20577     chmod +x "$ofile"
20578   else
20579     rm -f "${ofile}T"
20580     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20581 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20582    { (exit 1); exit 1; }; }
20583   fi
20584 fi
20585
20586
20587
20588 # This can be used to rebuild libtool when needed
20589 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20590
20591 # Always use our own libtool.
20592 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20593
20594 # Prevent multiple expansion
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616             # Check whether --enable-fortran was given.
20617 if test "${enable_fortran+set}" = set; then
20618   enableval=$enable_fortran;
20619 else
20620   enable_fortran=no
20621 fi
20622
20623
20624
20625 if test "x$enable_fortran" = xyes; then
20626   ENABLE_FORTRAN_TRUE=
20627   ENABLE_FORTRAN_FALSE='#'
20628 else
20629   ENABLE_FORTRAN_TRUE='#'
20630   ENABLE_FORTRAN_FALSE=
20631 fi
20632
20633
20634     if test "x$enable_fortran" = xyes
20635     then
20636         ac_ext=f
20637 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20638 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20639 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20640 if test -n "$ac_tool_prefix"; then
20641   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
20642   do
20643     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20647 if test "${ac_cv_prog_F77+set}" = set; then
20648   echo $ECHO_N "(cached) $ECHO_C" >&6
20649 else
20650   if test -n "$F77"; then
20651   ac_cv_prog_F77="$F77" # Let the user override the test.
20652 else
20653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20654 for as_dir in $PATH
20655 do
20656   IFS=$as_save_IFS
20657   test -z "$as_dir" && as_dir=.
20658   for ac_exec_ext in '' $ac_executable_extensions; do
20659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20660     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
20661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20662     break 2
20663   fi
20664 done
20665 done
20666 IFS=$as_save_IFS
20667
20668 fi
20669 fi
20670 F77=$ac_cv_prog_F77
20671 if test -n "$F77"; then
20672   { echo "$as_me:$LINENO: result: $F77" >&5
20673 echo "${ECHO_T}$F77" >&6; }
20674 else
20675   { echo "$as_me:$LINENO: result: no" >&5
20676 echo "${ECHO_T}no" >&6; }
20677 fi
20678
20679
20680     test -n "$F77" && break
20681   done
20682 fi
20683 if test -z "$F77"; then
20684   ac_ct_F77=$F77
20685   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
20686 do
20687   # Extract the first word of "$ac_prog", so it can be a program name with args.
20688 set dummy $ac_prog; ac_word=$2
20689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20691 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
20692   echo $ECHO_N "(cached) $ECHO_C" >&6
20693 else
20694   if test -n "$ac_ct_F77"; then
20695   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
20696 else
20697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20698 for as_dir in $PATH
20699 do
20700   IFS=$as_save_IFS
20701   test -z "$as_dir" && as_dir=.
20702   for ac_exec_ext in '' $ac_executable_extensions; do
20703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20704     ac_cv_prog_ac_ct_F77="$ac_prog"
20705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20706     break 2
20707   fi
20708 done
20709 done
20710 IFS=$as_save_IFS
20711
20712 fi
20713 fi
20714 ac_ct_F77=$ac_cv_prog_ac_ct_F77
20715 if test -n "$ac_ct_F77"; then
20716   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
20717 echo "${ECHO_T}$ac_ct_F77" >&6; }
20718 else
20719   { echo "$as_me:$LINENO: result: no" >&5
20720 echo "${ECHO_T}no" >&6; }
20721 fi
20722
20723
20724   test -n "$ac_ct_F77" && break
20725 done
20726
20727   if test "x$ac_ct_F77" = x; then
20728     F77=""
20729   else
20730     case $cross_compiling:$ac_tool_warned in
20731 yes:)
20732 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20733 whose name does not start with the host triplet.  If you think this
20734 configuration is useful to you, please write to autoconf@gnu.org." >&5
20735 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20736 whose name does not start with the host triplet.  If you think this
20737 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20738 ac_tool_warned=yes ;;
20739 esac
20740     F77=$ac_ct_F77
20741   fi
20742 fi
20743
20744
20745 # Provide some information about the compiler.
20746 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
20747 ac_compiler=`set X $ac_compile; echo $2`
20748 { (ac_try="$ac_compiler --version >&5"
20749 case "(($ac_try" in
20750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751   *) ac_try_echo=$ac_try;;
20752 esac
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754   (eval "$ac_compiler --version >&5") 2>&5
20755   ac_status=$?
20756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757   (exit $ac_status); }
20758 { (ac_try="$ac_compiler -v >&5"
20759 case "(($ac_try" in
20760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761   *) ac_try_echo=$ac_try;;
20762 esac
20763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764   (eval "$ac_compiler -v >&5") 2>&5
20765   ac_status=$?
20766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767   (exit $ac_status); }
20768 { (ac_try="$ac_compiler -V >&5"
20769 case "(($ac_try" in
20770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771   *) ac_try_echo=$ac_try;;
20772 esac
20773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20774   (eval "$ac_compiler -V >&5") 2>&5
20775   ac_status=$?
20776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777   (exit $ac_status); }
20778 rm -f a.out
20779
20780 # If we don't use `.F' as extension, the preprocessor is not run on the
20781 # input file.  (Note that this only needs to work for GNU compilers.)
20782 ac_save_ext=$ac_ext
20783 ac_ext=F
20784 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
20785 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
20786 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
20787   echo $ECHO_N "(cached) $ECHO_C" >&6
20788 else
20789   cat >conftest.$ac_ext <<_ACEOF
20790       program main
20791 #ifndef __GNUC__
20792        choke me
20793 #endif
20794
20795       end
20796 _ACEOF
20797 rm -f conftest.$ac_objext
20798 if { (ac_try="$ac_compile"
20799 case "(($ac_try" in
20800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801   *) ac_try_echo=$ac_try;;
20802 esac
20803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804   (eval "$ac_compile") 2>conftest.er1
20805   ac_status=$?
20806   grep -v '^ *+' conftest.er1 >conftest.err
20807   rm -f conftest.er1
20808   cat conftest.err >&5
20809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810   (exit $ac_status); } && {
20811          test -z "$ac_f77_werror_flag" ||
20812          test ! -s conftest.err
20813        } && test -s conftest.$ac_objext; then
20814   ac_compiler_gnu=yes
20815 else
20816   echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20818
20819         ac_compiler_gnu=no
20820 fi
20821
20822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20823 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
20824
20825 fi
20826 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
20827 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
20828 ac_ext=$ac_save_ext
20829 ac_test_FFLAGS=${FFLAGS+set}
20830 ac_save_FFLAGS=$FFLAGS
20831 FFLAGS=
20832 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
20833 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
20834 if test "${ac_cv_prog_f77_g+set}" = set; then
20835   echo $ECHO_N "(cached) $ECHO_C" >&6
20836 else
20837   FFLAGS=-g
20838 cat >conftest.$ac_ext <<_ACEOF
20839       program main
20840
20841       end
20842 _ACEOF
20843 rm -f conftest.$ac_objext
20844 if { (ac_try="$ac_compile"
20845 case "(($ac_try" in
20846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847   *) ac_try_echo=$ac_try;;
20848 esac
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850   (eval "$ac_compile") 2>conftest.er1
20851   ac_status=$?
20852   grep -v '^ *+' conftest.er1 >conftest.err
20853   rm -f conftest.er1
20854   cat conftest.err >&5
20855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856   (exit $ac_status); } && {
20857          test -z "$ac_f77_werror_flag" ||
20858          test ! -s conftest.err
20859        } && test -s conftest.$ac_objext; then
20860   ac_cv_prog_f77_g=yes
20861 else
20862   echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20864
20865         ac_cv_prog_f77_g=no
20866 fi
20867
20868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20869
20870 fi
20871 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
20872 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
20873 if test "$ac_test_FFLAGS" = set; then
20874   FFLAGS=$ac_save_FFLAGS
20875 elif test $ac_cv_prog_f77_g = yes; then
20876   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
20877     FFLAGS="-g -O2"
20878   else
20879     FFLAGS="-g"
20880   fi
20881 else
20882   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
20883     FFLAGS="-O2"
20884   else
20885     FFLAGS=
20886   fi
20887 fi
20888
20889 G77=`test $ac_compiler_gnu = yes && echo yes`
20890 ac_ext=c
20891 ac_cpp='$CPP $CPPFLAGS'
20892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20895
20896         ac_ext=f
20897 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20898 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20899 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20900 { echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
20901 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6; }
20902 if test "${ac_cv_prog_f77_v+set}" = set; then
20903   echo $ECHO_N "(cached) $ECHO_C" >&6
20904 else
20905   cat >conftest.$ac_ext <<_ACEOF
20906       program main
20907
20908       end
20909 _ACEOF
20910 rm -f conftest.$ac_objext
20911 if { (ac_try="$ac_compile"
20912 case "(($ac_try" in
20913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20914   *) ac_try_echo=$ac_try;;
20915 esac
20916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20917   (eval "$ac_compile") 2>conftest.er1
20918   ac_status=$?
20919   grep -v '^ *+' conftest.er1 >conftest.err
20920   rm -f conftest.er1
20921   cat conftest.err >&5
20922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923   (exit $ac_status); } && {
20924          test -z "$ac_f77_werror_flag" ||
20925          test ! -s conftest.err
20926        } && test -s conftest.$ac_objext; then
20927   ac_cv_prog_f77_v=
20928 # Try some options frequently used verbose output
20929 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
20930   cat >conftest.$ac_ext <<_ACEOF
20931       program main
20932
20933       end
20934 _ACEOF
20935
20936 # Compile and link our simple test program by passing a flag (argument
20937 # 1 to this macro) to the Fortran compiler in order to get
20938 # "verbose" output that we can then parse for the Fortran linker
20939 # flags.
20940 ac_save_FFLAGS=$FFLAGS
20941 FFLAGS="$FFLAGS $ac_verb"
20942 eval "set x $ac_link"
20943 shift
20944 echo "$as_me:$LINENO: $*" >&5
20945 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
20946 echo "$ac_f77_v_output" >&5
20947 FFLAGS=$ac_save_FFLAGS
20948
20949 rm -f conftest*
20950
20951 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
20952 # /foo, /bar, and /baz are search directories for the Fortran linker.
20953 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
20954 ac_f77_v_output="`echo $ac_f77_v_output |
20955         grep 'LPATH is:' |
20956         sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
20957
20958 # FIXME: we keep getting bitten by quoted arguments; a more general fix
20959 #        that detects unbalanced quotes in FLIBS should be implemented
20960 #        and (ugh) tested at some point.
20961 case $ac_f77_v_output in
20962   # If we are using xlf then replace all the commas with spaces.
20963   *xlfentry*)
20964     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
20965
20966   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
20967   # $LIBS confuse us, and the libraries appear later in the output anyway).
20968   *mGLOB_options_string*)
20969     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
20970
20971   # Portland Group compiler has singly- or doubly-quoted -cmdline argument
20972   # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
20973   # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
20974   *-cmdline\ * | *-ignore\ * | *-def\ *)
20975     ac_f77_v_output=`echo $ac_f77_v_output | sed "\
20976         s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
20977         s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
20978         s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
20979
20980   # If we are using Cray Fortran then delete quotes.
20981   *cft90*)
20982     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
20983 esac
20984
20985
20986   # look for -l* and *.a constructs in the output
20987   for ac_arg in $ac_f77_v_output; do
20988      case $ac_arg in
20989         [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
20990           ac_cv_prog_f77_v=$ac_verb
20991           break 2 ;;
20992      esac
20993   done
20994 done
20995 if test -z "$ac_cv_prog_f77_v"; then
20996    { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
20997 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
20998 fi
20999 else
21000   echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21002
21003         { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
21004 echo "$as_me: WARNING: compilation failed" >&2;}
21005 fi
21006
21007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21008
21009 fi
21010 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
21011 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6; }
21012 { echo "$as_me:$LINENO: checking for Fortran 77 libraries of $F77" >&5
21013 echo $ECHO_N "checking for Fortran 77 libraries of $F77... $ECHO_C" >&6; }
21014 if test "${ac_cv_f77_libs+set}" = set; then
21015   echo $ECHO_N "(cached) $ECHO_C" >&6
21016 else
21017   if test "x$FLIBS" != "x"; then
21018   ac_cv_f77_libs="$FLIBS" # Let the user override the test.
21019 else
21020
21021 cat >conftest.$ac_ext <<_ACEOF
21022       program main
21023
21024       end
21025 _ACEOF
21026
21027 # Compile and link our simple test program by passing a flag (argument
21028 # 1 to this macro) to the Fortran compiler in order to get
21029 # "verbose" output that we can then parse for the Fortran linker
21030 # flags.
21031 ac_save_FFLAGS=$FFLAGS
21032 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
21033 eval "set x $ac_link"
21034 shift
21035 echo "$as_me:$LINENO: $*" >&5
21036 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
21037 echo "$ac_f77_v_output" >&5
21038 FFLAGS=$ac_save_FFLAGS
21039
21040 rm -f conftest*
21041
21042 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
21043 # /foo, /bar, and /baz are search directories for the Fortran linker.
21044 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
21045 ac_f77_v_output="`echo $ac_f77_v_output |
21046         grep 'LPATH is:' |
21047         sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
21048
21049 # FIXME: we keep getting bitten by quoted arguments; a more general fix
21050 #        that detects unbalanced quotes in FLIBS should be implemented
21051 #        and (ugh) tested at some point.
21052 case $ac_f77_v_output in
21053   # If we are using xlf then replace all the commas with spaces.
21054   *xlfentry*)
21055     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
21056
21057   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
21058   # $LIBS confuse us, and the libraries appear later in the output anyway).
21059   *mGLOB_options_string*)
21060     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
21061
21062   # Portland Group compiler has singly- or doubly-quoted -cmdline argument
21063   # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
21064   # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
21065   *-cmdline\ * | *-ignore\ * | *-def\ *)
21066     ac_f77_v_output=`echo $ac_f77_v_output | sed "\
21067         s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
21068         s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
21069         s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
21070
21071   # If we are using Cray Fortran then delete quotes.
21072   *cft90*)
21073     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
21074 esac
21075
21076
21077
21078 ac_cv_f77_libs=
21079
21080 # Save positional arguments (if any)
21081 ac_save_positional="$@"
21082
21083 set X $ac_f77_v_output
21084 while test $# != 1; do
21085   shift
21086   ac_arg=$1
21087   case $ac_arg in
21088         [\\/]*.a | ?:[\\/]*.a)
21089             ac_exists=false
21090   for ac_i in $ac_cv_f77_libs; do
21091     if test x"$ac_arg" = x"$ac_i"; then
21092       ac_exists=true
21093       break
21094     fi
21095   done
21096
21097   if test x"$ac_exists" = xtrue; then
21098   :
21099 else
21100   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21101 fi
21102
21103           ;;
21104         -bI:*)
21105             ac_exists=false
21106   for ac_i in $ac_cv_f77_libs; do
21107     if test x"$ac_arg" = x"$ac_i"; then
21108       ac_exists=true
21109       break
21110     fi
21111   done
21112
21113   if test x"$ac_exists" = xtrue; then
21114   :
21115 else
21116   if test "$ac_compiler_gnu" = yes; then
21117   for ac_link_opt in $ac_arg; do
21118     ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
21119   done
21120 else
21121   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21122 fi
21123 fi
21124
21125           ;;
21126           # Ignore these flags.
21127         -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*)
21128           ;;
21129         -lkernel32)
21130           test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21131           ;;
21132         -[LRuYz])
21133           # These flags, when seen by themselves, take an argument.
21134           # We remove the space between option and argument and re-iterate
21135           # unless we find an empty arg or a new option (starting with -)
21136           case $2 in
21137              "" | -*);;
21138              *)
21139                 ac_arg="$ac_arg$2"
21140                 shift; shift
21141                 set X $ac_arg "$@"
21142                 ;;
21143           esac
21144           ;;
21145         -YP,*)
21146           for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
21147               ac_exists=false
21148   for ac_i in $ac_cv_f77_libs; do
21149     if test x"$ac_j" = x"$ac_i"; then
21150       ac_exists=true
21151       break
21152     fi
21153   done
21154
21155   if test x"$ac_exists" = xtrue; then
21156   :
21157 else
21158   ac_arg="$ac_arg $ac_j"
21159                                ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
21160 fi
21161
21162           done
21163           ;;
21164         -[lLR]*)
21165             ac_exists=false
21166   for ac_i in $ac_cv_f77_libs; do
21167     if test x"$ac_arg" = x"$ac_i"; then
21168       ac_exists=true
21169       break
21170     fi
21171   done
21172
21173   if test x"$ac_exists" = xtrue; then
21174   :
21175 else
21176   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21177 fi
21178
21179           ;;
21180         -zallextract*| -zdefaultextract)
21181           ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21182           ;;
21183           # Ignore everything else.
21184   esac
21185 done
21186 # restore positional arguments
21187 set X $ac_save_positional; shift
21188
21189 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
21190 # then we insist that the "run path" must be an absolute path (i.e. it
21191 # must begin with a "/").
21192 case `(uname -sr) 2>/dev/null` in
21193    "SunOS 5"*)
21194       ac_ld_run_path=`echo $ac_f77_v_output |
21195                         sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
21196       test "x$ac_ld_run_path" != x &&
21197         if test "$ac_compiler_gnu" = yes; then
21198   for ac_link_opt in $ac_ld_run_path; do
21199     ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
21200   done
21201 else
21202   ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
21203 fi
21204       ;;
21205 esac
21206 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
21207
21208 fi
21209 { echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
21210 echo "${ECHO_T}$ac_cv_f77_libs" >&6; }
21211 FLIBS="$ac_cv_f77_libs"
21212
21213
21214 ac_ext=c
21215 ac_cpp='$CPP $CPPFLAGS'
21216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21219
21220     fi
21221
21222
21223
21224
21225         no_undefined=""
21226         case "${host_os}" in
21227                 *mingw* | *cygwin*)
21228
21229                 # on MinGW/Cygwin extra LDFLAGS are required
21230                 no_undefined="-no-undefined"
21231                 ;;
21232         esac
21233         NO_UNDEFINED=$no_undefined
21234
21235
21236
21237
21238
21239         # Find any Python interpreter.
21240     if test -z "$PYTHON"; then
21241       for ac_prog in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
21242 do
21243   # Extract the first word of "$ac_prog", so it can be a program name with args.
21244 set dummy $ac_prog; ac_word=$2
21245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21247 if test "${ac_cv_path_PYTHON+set}" = set; then
21248   echo $ECHO_N "(cached) $ECHO_C" >&6
21249 else
21250   case $PYTHON in
21251   [\\/]* | ?:[\\/]*)
21252   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21253   ;;
21254   *)
21255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21256 for as_dir in $PATH
21257 do
21258   IFS=$as_save_IFS
21259   test -z "$as_dir" && as_dir=.
21260   for ac_exec_ext in '' $ac_executable_extensions; do
21261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21262     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21264     break 2
21265   fi
21266 done
21267 done
21268 IFS=$as_save_IFS
21269
21270   ;;
21271 esac
21272 fi
21273 PYTHON=$ac_cv_path_PYTHON
21274 if test -n "$PYTHON"; then
21275   { echo "$as_me:$LINENO: result: $PYTHON" >&5
21276 echo "${ECHO_T}$PYTHON" >&6; }
21277 else
21278   { echo "$as_me:$LINENO: result: no" >&5
21279 echo "${ECHO_T}no" >&6; }
21280 fi
21281
21282
21283   test -n "$PYTHON" && break
21284 done
21285 test -n "$PYTHON" || PYTHON=":"
21286
21287     fi
21288     am_display_PYTHON=python
21289
21290
21291   if test "$PYTHON" = :; then
21292       { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
21293 echo "$as_me: error: no suitable Python interpreter found" >&2;}
21294    { (exit 1); exit 1; }; }
21295   else
21296
21297
21298   { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
21299 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
21300 if test "${am_cv_python_version+set}" = set; then
21301   echo $ECHO_N "(cached) $ECHO_C" >&6
21302 else
21303   am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
21304 fi
21305 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
21306 echo "${ECHO_T}$am_cv_python_version" >&6; }
21307   PYTHON_VERSION=$am_cv_python_version
21308
21309
21310
21311   PYTHON_PREFIX='${prefix}'
21312
21313   PYTHON_EXEC_PREFIX='${exec_prefix}'
21314
21315
21316
21317   { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
21318 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
21319 if test "${am_cv_python_platform+set}" = set; then
21320   echo $ECHO_N "(cached) $ECHO_C" >&6
21321 else
21322   am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
21323 fi
21324 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
21325 echo "${ECHO_T}$am_cv_python_platform" >&6; }
21326   PYTHON_PLATFORM=$am_cv_python_platform
21327
21328
21329
21330
21331                 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
21332 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
21333 if test "${am_cv_python_pythondir+set}" = set; then
21334   echo $ECHO_N "(cached) $ECHO_C" >&6
21335 else
21336   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
21337      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
21338 fi
21339 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
21340 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
21341   pythondir=$am_cv_python_pythondir
21342
21343
21344
21345   pkgpythondir=\${pythondir}/$PACKAGE
21346
21347
21348             { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
21349 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
21350 if test "${am_cv_python_pyexecdir+set}" = set; then
21351   echo $ECHO_N "(cached) $ECHO_C" >&6
21352 else
21353   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
21354      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
21355 fi
21356 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
21357 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
21358   pyexecdir=$am_cv_python_pyexecdir
21359
21360
21361
21362   pkgpyexecdir=\${pyexecdir}/$PACKAGE
21363
21364
21365
21366   fi
21367
21368
21369
21370
21371
21372
21373         # For Fedora Core 5 and 6, see ticket:39 in Trac
21374         if test -f '/etc/redhat-release'; then
21375                 if  (echo $pyexecdir | grep -q lib64); then
21376                         pythondir="$pyexecdir"
21377                 fi
21378         fi
21379
21380         # Check for Python include path
21381         { echo "$as_me:$LINENO: checking for Python include path" >&5
21382 echo $ECHO_N "checking for Python include path... $ECHO_C" >&6; }
21383         if test -z "$PYTHON" ; then
21384                 { { echo "$as_me:$LINENO: error: cannot find Python path" >&5
21385 echo "$as_me: error: cannot find Python path" >&2;}
21386    { (exit 1); exit 1; }; }
21387         fi
21388
21389         # ask distutils which include path we should use
21390         python_cmd='
21391 import distutils.sysconfig
21392 import os
21393 path = distutils.sysconfig.get_python_inc(plat_specific=False)
21394 if os.sep == "\\":
21395   path = path.replace("\\", "/")
21396 print path
21397 '
21398         python_path=`$PYTHON -c "$python_cmd"`
21399         { echo "$as_me:$LINENO: result: $python_path" >&5
21400 echo "${ECHO_T}$python_path" >&6; }
21401         if test -z "$python_path" ; then
21402                 { { echo "$as_me:$LINENO: error: cannot find Python include path" >&5
21403 echo "$as_me: error: cannot find Python include path" >&2;}
21404    { (exit 1); exit 1; }; }
21405         fi
21406
21407         PYTHON_CPPFLAGS=-I$python_path
21408
21409
21410         # Check for Python headers usability
21411         python_save_CPPFLAGS=$CPPFLAGS
21412         CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
21413
21414 for ac_header in Python.h
21415 do
21416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21418   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21421   echo $ECHO_N "(cached) $ECHO_C" >&6
21422 fi
21423 ac_res=`eval echo '${'$as_ac_Header'}'`
21424                { echo "$as_me:$LINENO: result: $ac_res" >&5
21425 echo "${ECHO_T}$ac_res" >&6; }
21426 else
21427   # Is the header compilable?
21428 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21430 cat >conftest.$ac_ext <<_ACEOF
21431 /* confdefs.h.  */
21432 _ACEOF
21433 cat confdefs.h >>conftest.$ac_ext
21434 cat >>conftest.$ac_ext <<_ACEOF
21435 /* end confdefs.h.  */
21436 $ac_includes_default
21437 #include <$ac_header>
21438 _ACEOF
21439 rm -f conftest.$ac_objext
21440 if { (ac_try="$ac_compile"
21441 case "(($ac_try" in
21442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443   *) ac_try_echo=$ac_try;;
21444 esac
21445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21446   (eval "$ac_compile") 2>conftest.er1
21447   ac_status=$?
21448   grep -v '^ *+' conftest.er1 >conftest.err
21449   rm -f conftest.er1
21450   cat conftest.err >&5
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); } && {
21453          test -z "$ac_c_werror_flag" ||
21454          test ! -s conftest.err
21455        } && test -s conftest.$ac_objext; then
21456   ac_header_compiler=yes
21457 else
21458   echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21460
21461         ac_header_compiler=no
21462 fi
21463
21464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21466 echo "${ECHO_T}$ac_header_compiler" >&6; }
21467
21468 # Is the header present?
21469 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21471 cat >conftest.$ac_ext <<_ACEOF
21472 /* confdefs.h.  */
21473 _ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h.  */
21477 #include <$ac_header>
21478 _ACEOF
21479 if { (ac_try="$ac_cpp conftest.$ac_ext"
21480 case "(($ac_try" in
21481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482   *) ac_try_echo=$ac_try;;
21483 esac
21484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21486   ac_status=$?
21487   grep -v '^ *+' conftest.er1 >conftest.err
21488   rm -f conftest.er1
21489   cat conftest.err >&5
21490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491   (exit $ac_status); } >/dev/null && {
21492          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21493          test ! -s conftest.err
21494        }; then
21495   ac_header_preproc=yes
21496 else
21497   echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21499
21500   ac_header_preproc=no
21501 fi
21502
21503 rm -f conftest.err conftest.$ac_ext
21504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21505 echo "${ECHO_T}$ac_header_preproc" >&6; }
21506
21507 # So?  What about this header?
21508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21509   yes:no: )
21510     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21514     ac_header_preproc=yes
21515     ;;
21516   no:yes:* )
21517     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21519     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21520 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21521     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21523     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21524 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21527     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21529
21530     ;;
21531 esac
21532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21535   echo $ECHO_N "(cached) $ECHO_C" >&6
21536 else
21537   eval "$as_ac_Header=\$ac_header_preproc"
21538 fi
21539 ac_res=`eval echo '${'$as_ac_Header'}'`
21540                { echo "$as_me:$LINENO: result: $ac_res" >&5
21541 echo "${ECHO_T}$ac_res" >&6; }
21542
21543 fi
21544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21545   cat >>confdefs.h <<_ACEOF
21546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21547 _ACEOF
21548
21549 else
21550   { { echo "$as_me:$LINENO: error: cannot find usable Python headers" >&5
21551 echo "$as_me: error: cannot find usable Python headers" >&2;}
21552    { (exit 1); exit 1; }; }
21553 fi
21554
21555 done
21556
21557         CPPFLAGS="$python_save_CPPFLAGS"
21558
21559         # Only set this on mingw and cygwin hosts, (only implemented
21560         # for mingw host, for crosscompiling you need to trick this)
21561
21562         PYTHON_LDFLAGS=""
21563         case $host_os in
21564              *mingw* | *cygwin* )
21565           { echo "$as_me:$LINENO: checking for Python LDFLAGS" >&5
21566 echo $ECHO_N "checking for Python LDFLAGS... $ECHO_C" >&6; }
21567
21568         python_cmd='
21569 import distutils.sysconfig
21570 import os
21571 path = distutils.sysconfig.get_config_var("LIBPL")
21572 if path == None:
21573   path = distutils.sysconfig.PREFIX + "/libs"
21574 if os.sep == "\\":
21575   path = path.replace("\\", "/")
21576 print path
21577 '
21578           python_stdlib_path=`$PYTHON -c "$python_cmd"`
21579
21580           python_version_nodot=`echo $PYTHON_VERSION | sed "s,\.,,"`
21581           libpython_name="python$PYTHON_VERSION"
21582
21583           # Standard install of python for win32 has libpython24.a
21584           # instead of libpython2.4.a so we check for the library
21585           # without the dot in the version number.
21586
21587           python_stdlib_filename=`find $python_stdlib_path -type f -name libpython$python_version_nodot.* -print | sed "1q"`
21588           if test -n "$python_stdlib_filename" ; then
21589                 libpython_name="python$python_version_nodot"
21590           fi
21591
21592           PYTHON_LDFLAGS="-L$python_stdlib_path -l$libpython_name"
21593           { echo "$as_me:$LINENO: result: $PYTHON_LDFLAGS" >&5
21594 echo "${ECHO_T}$PYTHON_LDFLAGS" >&6; }
21595           # Replace all backslashes in PYTHON Paths with forward slashes
21596           pythondir=`echo $pythondir |sed 's,\\\\,/,g'`
21597           pkgpythondir=`echo $pkgpythondir |sed 's,\\\\,/,g'`
21598           pyexecdir=`echo $pyexecdir |sed 's,\\\\,/,g'`
21599           pkgpyexecdir=`echo $pkgpyexecdir |sed 's,\\\\,/,g'`
21600           ;;
21601         esac
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612         # Extract the first word of "swig", so it can be a program name with args.
21613 set dummy swig; ac_word=$2
21614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21616 if test "${ac_cv_prog_SWIG+set}" = set; then
21617   echo $ECHO_N "(cached) $ECHO_C" >&6
21618 else
21619   if test -n "$SWIG"; then
21620   ac_cv_prog_SWIG="$SWIG" # Let the user override the test.
21621 else
21622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21623 for as_dir in $PATH
21624 do
21625   IFS=$as_save_IFS
21626   test -z "$as_dir" && as_dir=.
21627   for ac_exec_ext in '' $ac_executable_extensions; do
21628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21629     ac_cv_prog_SWIG="`which swig`"
21630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21631     break 2
21632   fi
21633 done
21634 done
21635 IFS=$as_save_IFS
21636
21637 fi
21638 fi
21639 SWIG=$ac_cv_prog_SWIG
21640 if test -n "$SWIG"; then
21641   { echo "$as_me:$LINENO: result: $SWIG" >&5
21642 echo "${ECHO_T}$SWIG" >&6; }
21643 else
21644   { echo "$as_me:$LINENO: result: no" >&5
21645 echo "${ECHO_T}no" >&6; }
21646 fi
21647
21648
21649         if test -z "$SWIG" ; then
21650                 { { echo "$as_me:$LINENO: error: Cannot find 'swig' program.  SWIG version >= 1.3.23 required" >&5
21651 echo "$as_me: error: Cannot find 'swig' program.  SWIG version >= 1.3.23 required" >&2;}
21652    { (exit 1); exit 1; }; }
21653                 SWIG=false
21654         elif test -n "1.3.23" ; then
21655                 { echo "$as_me:$LINENO: checking for SWIG version" >&5
21656 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
21657                 swig_version=`$SWIG -version 2>&1 | \
21658                         awk '/^SWIG Version [0-9]+\.[0-9]+\.[0-9]+.*$/ { split($3,a,"[^.0-9]"); print a[1] }'`
21659                 { echo "$as_me:$LINENO: result: $swig_version" >&5
21660 echo "${ECHO_T}$swig_version" >&6; }
21661                 if test -n "$swig_version" ; then
21662                         swig_version=`echo $swig_version | \
21663                                 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
21664                         swig_required_version=`echo 1.3.23 | \
21665                                 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
21666                         if test $swig_required_version -gt $swig_version ; then
21667                                 { { echo "$as_me:$LINENO: error: SWIG version >= 1.3.23 required" >&5
21668 echo "$as_me: error: SWIG version >= 1.3.23 required" >&2;}
21669    { (exit 1); exit 1; }; }
21670                         fi
21671                 else
21672                         { { echo "$as_me:$LINENO: error: cannot determine SWIG version" >&5
21673 echo "$as_me: error: cannot determine SWIG version" >&2;}
21674    { (exit 1); exit 1; }; }
21675                 fi
21676         fi
21677
21678
21679
21680
21681         if test "$SWIG" != "false" ; then
21682                 SWIG="$SWIG -c++"
21683         fi
21684
21685
21686
21687
21688         if test "$SWIG" != "false" ; then
21689                 SWIG_PYTHON_LIB=-lswigpy
21690
21691                 SWIG_PYTHON_OPT=-python
21692
21693         fi
21694         SWIG_PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
21695
21696
21697
21698
21699 # Extract the first word of "xmlto", so it can be a program name with args.
21700 set dummy xmlto; ac_word=$2
21701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21703 if test "${ac_cv_prog_XMLTO+set}" = set; then
21704   echo $ECHO_N "(cached) $ECHO_C" >&6
21705 else
21706   if test -n "$XMLTO"; then
21707   ac_cv_prog_XMLTO="$XMLTO" # Let the user override the test.
21708 else
21709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21710 for as_dir in $PATH
21711 do
21712   IFS=$as_save_IFS
21713   test -z "$as_dir" && as_dir=.
21714   for ac_exec_ext in '' $ac_executable_extensions; do
21715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21716     ac_cv_prog_XMLTO="yes"
21717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21718     break 2
21719   fi
21720 done
21721 done
21722 IFS=$as_save_IFS
21723
21724 fi
21725 fi
21726 XMLTO=$ac_cv_prog_XMLTO
21727 if test -n "$XMLTO"; then
21728   { echo "$as_me:$LINENO: result: $XMLTO" >&5
21729 echo "${ECHO_T}$XMLTO" >&6; }
21730 else
21731   { echo "$as_me:$LINENO: result: no" >&5
21732 echo "${ECHO_T}no" >&6; }
21733 fi
21734
21735
21736
21737
21738 if test x$XMLTO = xyes; then
21739   HAS_XMLTO_TRUE=
21740   HAS_XMLTO_FALSE='#'
21741 else
21742   HAS_XMLTO_TRUE='#'
21743   HAS_XMLTO_FALSE=
21744 fi
21745
21746
21747
21748 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
21749 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
21750 if test "${ac_cv_lib_socket_socket+set}" = set; then
21751   echo $ECHO_N "(cached) $ECHO_C" >&6
21752 else
21753   ac_check_lib_save_LIBS=$LIBS
21754 LIBS="-lsocket  $LIBS"
21755 cat >conftest.$ac_ext <<_ACEOF
21756 /* confdefs.h.  */
21757 _ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h.  */
21761
21762 /* Override any GCC internal prototype to avoid an error.
21763    Use char because int might match the return type of a GCC
21764    builtin and then its argument prototype would still apply.  */
21765 #ifdef __cplusplus
21766 extern "C"
21767 #endif
21768 char socket ();
21769 int
21770 main ()
21771 {
21772 return socket ();
21773   ;
21774   return 0;
21775 }
21776 _ACEOF
21777 rm -f conftest.$ac_objext conftest$ac_exeext
21778 if { (ac_try="$ac_link"
21779 case "(($ac_try" in
21780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781   *) ac_try_echo=$ac_try;;
21782 esac
21783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784   (eval "$ac_link") 2>conftest.er1
21785   ac_status=$?
21786   grep -v '^ *+' conftest.er1 >conftest.err
21787   rm -f conftest.er1
21788   cat conftest.err >&5
21789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790   (exit $ac_status); } && {
21791          test -z "$ac_c_werror_flag" ||
21792          test ! -s conftest.err
21793        } && test -s conftest$ac_exeext &&
21794        $as_test_x conftest$ac_exeext; then
21795   ac_cv_lib_socket_socket=yes
21796 else
21797   echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21799
21800         ac_cv_lib_socket_socket=no
21801 fi
21802
21803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21804       conftest$ac_exeext conftest.$ac_ext
21805 LIBS=$ac_check_lib_save_LIBS
21806 fi
21807 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
21808 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
21809 if test $ac_cv_lib_socket_socket = yes; then
21810   cat >>confdefs.h <<_ACEOF
21811 #define HAVE_LIBSOCKET 1
21812 _ACEOF
21813
21814   LIBS="-lsocket $LIBS"
21815
21816 fi
21817
21818
21819
21820   # Check first for POSIX
21821
21822
21823
21824 ac_ext=c
21825 ac_cpp='$CPP $CPPFLAGS'
21826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21829
21830 acx_pthread_ok=no
21831
21832 # We used to check for pthread.h first, but this fails if pthread.h
21833 # requires special compiler flags (e.g. on True64 or Sequent).
21834 # It gets checked for in the link test anyway.
21835
21836 # First of all, check if the user has set any of the PTHREAD_LIBS,
21837 # etcetera environment variables, and if threads linking works using
21838 # them:
21839 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21840         save_CFLAGS="$CFLAGS"
21841         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21842         save_LIBS="$LIBS"
21843         LIBS="$PTHREAD_LIBS $LIBS"
21844         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21845 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
21846         cat >conftest.$ac_ext <<_ACEOF
21847 /* confdefs.h.  */
21848 _ACEOF
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h.  */
21852
21853 /* Override any GCC internal prototype to avoid an error.
21854    Use char because int might match the return type of a GCC
21855    builtin and then its argument prototype would still apply.  */
21856 #ifdef __cplusplus
21857 extern "C"
21858 #endif
21859 char pthread_join ();
21860 int
21861 main ()
21862 {
21863 return pthread_join ();
21864   ;
21865   return 0;
21866 }
21867 _ACEOF
21868 rm -f conftest.$ac_objext conftest$ac_exeext
21869 if { (ac_try="$ac_link"
21870 case "(($ac_try" in
21871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21872   *) ac_try_echo=$ac_try;;
21873 esac
21874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21875   (eval "$ac_link") 2>conftest.er1
21876   ac_status=$?
21877   grep -v '^ *+' conftest.er1 >conftest.err
21878   rm -f conftest.er1
21879   cat conftest.err >&5
21880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881   (exit $ac_status); } && {
21882          test -z "$ac_c_werror_flag" ||
21883          test ! -s conftest.err
21884        } && test -s conftest$ac_exeext &&
21885        $as_test_x conftest$ac_exeext; then
21886   acx_pthread_ok=yes
21887 else
21888   echo "$as_me: failed program was:" >&5
21889 sed 's/^/| /' conftest.$ac_ext >&5
21890
21891
21892 fi
21893
21894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21895       conftest$ac_exeext conftest.$ac_ext
21896         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21897 echo "${ECHO_T}$acx_pthread_ok" >&6; }
21898         if test x"$acx_pthread_ok" = xno; then
21899                 PTHREAD_LIBS=""
21900                 PTHREAD_CFLAGS=""
21901         fi
21902         LIBS="$save_LIBS"
21903         CFLAGS="$save_CFLAGS"
21904 fi
21905
21906 # We must check for the threads library under a number of different
21907 # names; the ordering is very important because some systems
21908 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21909 # libraries is broken (non-POSIX).
21910
21911 # Create a list of thread flags to try.  Items starting with a "-" are
21912 # C compiler flags, and other items are library names, except for "none"
21913 # which indicates that we try without any flags at all.
21914
21915 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
21916
21917 # The ordering *is* (sometimes) important.  Some notes on the
21918 # individual items follow:
21919
21920 # pthreads: AIX (must check this before -lpthread)
21921 # none: in case threads are in libc; should be tried before -Kthread and
21922 #       other compiler flags to prevent continual compiler warnings
21923 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21924 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21925 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
21926 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
21927 # -pthreads: Solaris/gcc
21928 # -mthreads: Mingw32/gcc, Lynx/gcc
21929 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
21930 #      doesn't hurt to check since this sometimes defines pthreads too;
21931 #      also defines -D_REENTRANT)
21932 # pthread: Linux, etcetera
21933 # --thread-safe: KAI C++
21934
21935 case "${host_cpu}-${host_os}" in
21936         *solaris*)
21937
21938         # On Solaris (at least, for some versions), libc contains stubbed
21939         # (non-functional) versions of the pthreads routines, so link-based
21940         # tests will erroneously succeed.  (We need to link with -pthread or
21941         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
21942         # a function called by this macro, so we could check for that, but
21943         # who knows whether they'll stub that too in a future libc.)  So,
21944         # we'll just look for -pthreads and -lpthread first:
21945
21946         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
21947         ;;
21948 esac
21949
21950 if test x"$acx_pthread_ok" = xno; then
21951 for flag in $acx_pthread_flags; do
21952
21953         case $flag in
21954                 none)
21955                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
21956 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
21957                 ;;
21958
21959                 -*)
21960                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
21961 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
21962                 PTHREAD_CFLAGS="$flag"
21963                 ;;
21964
21965                 *)
21966                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
21967 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
21968                 PTHREAD_LIBS="-l$flag"
21969                 ;;
21970         esac
21971
21972         save_LIBS="$LIBS"
21973         save_CFLAGS="$CFLAGS"
21974         LIBS="$PTHREAD_LIBS $LIBS"
21975         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21976
21977         # Check for various functions.  We must include pthread.h,
21978         # since some functions may be macros.  (On the Sequent, we
21979         # need a special flag -Kthread to make this header compile.)
21980         # We check for pthread_join because it is in -lpthread on IRIX
21981         # while pthread_create is in libc.  We check for pthread_attr_init
21982         # due to DEC craziness with -lpthreads.  We check for
21983         # pthread_cleanup_push because it is one of the few pthread
21984         # functions on Solaris that doesn't have a non-functional libc stub.
21985         # We try pthread_create on general principles.
21986         cat >conftest.$ac_ext <<_ACEOF
21987 /* confdefs.h.  */
21988 _ACEOF
21989 cat confdefs.h >>conftest.$ac_ext
21990 cat >>conftest.$ac_ext <<_ACEOF
21991 /* end confdefs.h.  */
21992 #include <pthread.h>
21993 int
21994 main ()
21995 {
21996 pthread_t th; pthread_join(th, 0);
21997                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
21998                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
21999   ;
22000   return 0;
22001 }
22002 _ACEOF
22003 rm -f conftest.$ac_objext conftest$ac_exeext
22004 if { (ac_try="$ac_link"
22005 case "(($ac_try" in
22006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007   *) ac_try_echo=$ac_try;;
22008 esac
22009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010   (eval "$ac_link") 2>conftest.er1
22011   ac_status=$?
22012   grep -v '^ *+' conftest.er1 >conftest.err
22013   rm -f conftest.er1
22014   cat conftest.err >&5
22015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016   (exit $ac_status); } && {
22017          test -z "$ac_c_werror_flag" ||
22018          test ! -s conftest.err
22019        } && test -s conftest$ac_exeext &&
22020        $as_test_x conftest$ac_exeext; then
22021   acx_pthread_ok=yes
22022 else
22023   echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22025
22026
22027 fi
22028
22029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22030       conftest$ac_exeext conftest.$ac_ext
22031
22032         LIBS="$save_LIBS"
22033         CFLAGS="$save_CFLAGS"
22034
22035         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22036 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22037         if test "x$acx_pthread_ok" = xyes; then
22038                 break;
22039         fi
22040
22041         PTHREAD_LIBS=""
22042         PTHREAD_CFLAGS=""
22043 done
22044 fi
22045
22046 # Various other checks:
22047 if test "x$acx_pthread_ok" = xyes; then
22048         save_LIBS="$LIBS"
22049         LIBS="$PTHREAD_LIBS $LIBS"
22050         save_CFLAGS="$CFLAGS"
22051         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22052
22053         # Detect AIX lossage: threads are created detached by default
22054         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22055         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22056 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
22057         cat >conftest.$ac_ext <<_ACEOF
22058 /* confdefs.h.  */
22059 _ACEOF
22060 cat confdefs.h >>conftest.$ac_ext
22061 cat >>conftest.$ac_ext <<_ACEOF
22062 /* end confdefs.h.  */
22063 #include <pthread.h>
22064 int
22065 main ()
22066 {
22067 int attr=PTHREAD_CREATE_JOINABLE;
22068   ;
22069   return 0;
22070 }
22071 _ACEOF
22072 rm -f conftest.$ac_objext conftest$ac_exeext
22073 if { (ac_try="$ac_link"
22074 case "(($ac_try" in
22075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22076   *) ac_try_echo=$ac_try;;
22077 esac
22078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22079   (eval "$ac_link") 2>conftest.er1
22080   ac_status=$?
22081   grep -v '^ *+' conftest.er1 >conftest.err
22082   rm -f conftest.er1
22083   cat conftest.err >&5
22084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085   (exit $ac_status); } && {
22086          test -z "$ac_c_werror_flag" ||
22087          test ! -s conftest.err
22088        } && test -s conftest$ac_exeext &&
22089        $as_test_x conftest$ac_exeext; then
22090   ok=PTHREAD_CREATE_JOINABLE
22091 else
22092   echo "$as_me: failed program was:" >&5
22093 sed 's/^/| /' conftest.$ac_ext >&5
22094
22095         ok=unknown
22096 fi
22097
22098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22099       conftest$ac_exeext conftest.$ac_ext
22100         if test x"$ok" = xunknown; then
22101                 cat >conftest.$ac_ext <<_ACEOF
22102 /* confdefs.h.  */
22103 _ACEOF
22104 cat confdefs.h >>conftest.$ac_ext
22105 cat >>conftest.$ac_ext <<_ACEOF
22106 /* end confdefs.h.  */
22107 #include <pthread.h>
22108 int
22109 main ()
22110 {
22111 int attr=PTHREAD_CREATE_UNDETACHED;
22112   ;
22113   return 0;
22114 }
22115 _ACEOF
22116 rm -f conftest.$ac_objext conftest$ac_exeext
22117 if { (ac_try="$ac_link"
22118 case "(($ac_try" in
22119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120   *) ac_try_echo=$ac_try;;
22121 esac
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123   (eval "$ac_link") 2>conftest.er1
22124   ac_status=$?
22125   grep -v '^ *+' conftest.er1 >conftest.err
22126   rm -f conftest.er1
22127   cat conftest.err >&5
22128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129   (exit $ac_status); } && {
22130          test -z "$ac_c_werror_flag" ||
22131          test ! -s conftest.err
22132        } && test -s conftest$ac_exeext &&
22133        $as_test_x conftest$ac_exeext; then
22134   ok=PTHREAD_CREATE_UNDETACHED
22135 else
22136   echo "$as_me: failed program was:" >&5
22137 sed 's/^/| /' conftest.$ac_ext >&5
22138
22139         ok=unknown
22140 fi
22141
22142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22143       conftest$ac_exeext conftest.$ac_ext
22144         fi
22145         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22146
22147 cat >>confdefs.h <<\_ACEOF
22148 #define PTHREAD_CREATE_JOINABLE $ok
22149 _ACEOF
22150
22151         fi
22152         { echo "$as_me:$LINENO: result: ${ok}" >&5
22153 echo "${ECHO_T}${ok}" >&6; }
22154         if test x"$ok" = xunknown; then
22155                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22156 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22157         fi
22158
22159         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22160 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
22161         flag=no
22162         case "${host_cpu}-${host_os}" in
22163                 *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
22164                 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22165         esac
22166         { echo "$as_me:$LINENO: result: ${flag}" >&5
22167 echo "${ECHO_T}${flag}" >&6; }
22168         if test "x$flag" != xno; then
22169                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22170         fi
22171
22172         LIBS="$save_LIBS"
22173         CFLAGS="$save_CFLAGS"
22174
22175         # More AIX lossage: must compile with cc_r
22176         # Extract the first word of "cc_r", so it can be a program name with args.
22177 set dummy cc_r; ac_word=$2
22178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22180 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22181   echo $ECHO_N "(cached) $ECHO_C" >&6
22182 else
22183   if test -n "$PTHREAD_CC"; then
22184   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22185 else
22186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22187 for as_dir in $PATH
22188 do
22189   IFS=$as_save_IFS
22190   test -z "$as_dir" && as_dir=.
22191   for ac_exec_ext in '' $ac_executable_extensions; do
22192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22193     ac_cv_prog_PTHREAD_CC="cc_r"
22194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22195     break 2
22196   fi
22197 done
22198 done
22199 IFS=$as_save_IFS
22200
22201   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
22202 fi
22203 fi
22204 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22205 if test -n "$PTHREAD_CC"; then
22206   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22207 echo "${ECHO_T}$PTHREAD_CC" >&6; }
22208 else
22209   { echo "$as_me:$LINENO: result: no" >&5
22210 echo "${ECHO_T}no" >&6; }
22211 fi
22212
22213
22214 else
22215         PTHREAD_CC="$CC"
22216 fi
22217
22218
22219
22220
22221
22222 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22223 if test x"$acx_pthread_ok" = xyes; then
22224          ot_posix="yes"
22225
22226 cat >>confdefs.h <<\_ACEOF
22227 #define OMNITHREAD_POSIX 1
22228 _ACEOF
22229
22230
22231         :
22232 else
22233         acx_pthread_ok=no
22234
22235     # If no POSIX support found, then check for NT threads
22236     { echo "$as_me:$LINENO: checking for NT threads" >&5
22237 echo $ECHO_N "checking for NT threads... $ECHO_C" >&6; }
22238
22239     cat >conftest.$ac_ext <<_ACEOF
22240
22241         #include <windows.h>
22242         #include <winbase.h>
22243         int main() { InitializeCriticalSection(NULL); return 0; }
22244
22245 _ACEOF
22246 rm -f conftest.$ac_objext conftest$ac_exeext
22247 if { (ac_try="$ac_link"
22248 case "(($ac_try" in
22249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22250   *) ac_try_echo=$ac_try;;
22251 esac
22252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22253   (eval "$ac_link") 2>conftest.er1
22254   ac_status=$?
22255   grep -v '^ *+' conftest.er1 >conftest.err
22256   rm -f conftest.er1
22257   cat conftest.err >&5
22258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259   (exit $ac_status); } && {
22260          test -z "$ac_c_werror_flag" ||
22261          test ! -s conftest.err
22262        } && test -s conftest$ac_exeext &&
22263        $as_test_x conftest$ac_exeext; then
22264
22265         ot_nt="yes"
22266
22267 cat >>confdefs.h <<\_ACEOF
22268 #define OMNITHREAD_NT 1
22269 _ACEOF
22270
22271
22272 else
22273   echo "$as_me: failed program was:" >&5
22274 sed 's/^/| /' conftest.$ac_ext >&5
22275
22276         { { echo "$as_me:$LINENO: error: GNU Radio requires POSIX threads.  pthreads not found.
22277 See \`config.log' for more details." >&5
22278 echo "$as_me: error: GNU Radio requires POSIX threads.  pthreads not found.
22279 See \`config.log' for more details." >&2;}
22280    { (exit 1); exit 1; }; }
22281
22282 fi
22283
22284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22285       conftest$ac_exeext conftest.$ac_ext
22286     { echo "$as_me:$LINENO: result: yes" >&5
22287 echo "${ECHO_T}yes" >&6; }
22288
22289 fi
22290 ac_ext=c
22291 ac_cpp='$CPP $CPPFLAGS'
22292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22295
22296
22297
22298
22299 if test "x$ot_posix" = xyes; then
22300   OMNITHREAD_POSIX_TRUE=
22301   OMNITHREAD_POSIX_FALSE='#'
22302 else
22303   OMNITHREAD_POSIX_TRUE='#'
22304   OMNITHREAD_POSIX_FALSE=
22305 fi
22306
22307
22308
22309 if test "x$ot_nt" = xyes; then
22310   OMNITHREAD_NT_TRUE=
22311   OMNITHREAD_NT_FALSE='#'
22312 else
22313   OMNITHREAD_NT_TRUE='#'
22314   OMNITHREAD_NT_FALSE=
22315 fi
22316
22317
22318   save_LIBS="$LIBS"
22319   { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
22320 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
22321 if test "${ac_cv_search_clock_gettime+set}" = set; then
22322   echo $ECHO_N "(cached) $ECHO_C" >&6
22323 else
22324   ac_func_search_save_LIBS=$LIBS
22325 cat >conftest.$ac_ext <<_ACEOF
22326 /* confdefs.h.  */
22327 _ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h.  */
22331
22332 /* Override any GCC internal prototype to avoid an error.
22333    Use char because int might match the return type of a GCC
22334    builtin and then its argument prototype would still apply.  */
22335 #ifdef __cplusplus
22336 extern "C"
22337 #endif
22338 char clock_gettime ();
22339 int
22340 main ()
22341 {
22342 return clock_gettime ();
22343   ;
22344   return 0;
22345 }
22346 _ACEOF
22347 for ac_lib in '' rt; do
22348   if test -z "$ac_lib"; then
22349     ac_res="none required"
22350   else
22351     ac_res=-l$ac_lib
22352     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22353   fi
22354   rm -f conftest.$ac_objext conftest$ac_exeext
22355 if { (ac_try="$ac_link"
22356 case "(($ac_try" in
22357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22358   *) ac_try_echo=$ac_try;;
22359 esac
22360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22361   (eval "$ac_link") 2>conftest.er1
22362   ac_status=$?
22363   grep -v '^ *+' conftest.er1 >conftest.err
22364   rm -f conftest.er1
22365   cat conftest.err >&5
22366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367   (exit $ac_status); } && {
22368          test -z "$ac_c_werror_flag" ||
22369          test ! -s conftest.err
22370        } && test -s conftest$ac_exeext &&
22371        $as_test_x conftest$ac_exeext; then
22372   ac_cv_search_clock_gettime=$ac_res
22373 else
22374   echo "$as_me: failed program was:" >&5
22375 sed 's/^/| /' conftest.$ac_ext >&5
22376
22377
22378 fi
22379
22380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22381       conftest$ac_exeext
22382   if test "${ac_cv_search_clock_gettime+set}" = set; then
22383   break
22384 fi
22385 done
22386 if test "${ac_cv_search_clock_gettime+set}" = set; then
22387   :
22388 else
22389   ac_cv_search_clock_gettime=no
22390 fi
22391 rm conftest.$ac_ext
22392 LIBS=$ac_func_search_save_LIBS
22393 fi
22394 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
22395 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
22396 ac_res=$ac_cv_search_clock_gettime
22397 if test "$ac_res" != no; then
22398   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22399   PTHREAD_LIBS="$PTHREAD_LIBS $LIBS"
22400 fi
22401
22402
22403
22404
22405 for ac_func in clock_gettime gettimeofday nanosleep
22406 do
22407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22411   echo $ECHO_N "(cached) $ECHO_C" >&6
22412 else
22413   cat >conftest.$ac_ext <<_ACEOF
22414 /* confdefs.h.  */
22415 _ACEOF
22416 cat confdefs.h >>conftest.$ac_ext
22417 cat >>conftest.$ac_ext <<_ACEOF
22418 /* end confdefs.h.  */
22419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22421 #define $ac_func innocuous_$ac_func
22422
22423 /* System header to define __stub macros and hopefully few prototypes,
22424     which can conflict with char $ac_func (); below.
22425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22426     <limits.h> exists even on freestanding compilers.  */
22427
22428 #ifdef __STDC__
22429 # include <limits.h>
22430 #else
22431 # include <assert.h>
22432 #endif
22433
22434 #undef $ac_func
22435
22436 /* Override any GCC internal prototype to avoid an error.
22437    Use char because int might match the return type of a GCC
22438    builtin and then its argument prototype would still apply.  */
22439 #ifdef __cplusplus
22440 extern "C"
22441 #endif
22442 char $ac_func ();
22443 /* The GNU C library defines this for functions which it implements
22444     to always fail with ENOSYS.  Some functions are actually named
22445     something starting with __ and the normal name is an alias.  */
22446 #if defined __stub_$ac_func || defined __stub___$ac_func
22447 choke me
22448 #endif
22449
22450 int
22451 main ()
22452 {
22453 return $ac_func ();
22454   ;
22455   return 0;
22456 }
22457 _ACEOF
22458 rm -f conftest.$ac_objext conftest$ac_exeext
22459 if { (ac_try="$ac_link"
22460 case "(($ac_try" in
22461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22462   *) ac_try_echo=$ac_try;;
22463 esac
22464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22465   (eval "$ac_link") 2>conftest.er1
22466   ac_status=$?
22467   grep -v '^ *+' conftest.er1 >conftest.err
22468   rm -f conftest.er1
22469   cat conftest.err >&5
22470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471   (exit $ac_status); } && {
22472          test -z "$ac_c_werror_flag" ||
22473          test ! -s conftest.err
22474        } && test -s conftest$ac_exeext &&
22475        $as_test_x conftest$ac_exeext; then
22476   eval "$as_ac_var=yes"
22477 else
22478   echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22480
22481         eval "$as_ac_var=no"
22482 fi
22483
22484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22485       conftest$ac_exeext conftest.$ac_ext
22486 fi
22487 ac_res=`eval echo '${'$as_ac_var'}'`
22488                { echo "$as_me:$LINENO: result: $ac_res" >&5
22489 echo "${ECHO_T}$ac_res" >&6; }
22490 if test `eval echo '${'$as_ac_var'}'` = yes; then
22491   cat >>confdefs.h <<_ACEOF
22492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22493 _ACEOF
22494
22495 fi
22496 done
22497
22498   LIBS="$save_LIBS"
22499
22500 #AC_SUBST(PTHREAD_CFLAGS)
22501 CFLAGS="${CFLAGS} $PTHREAD_CFLAGS"
22502 CXXFLAGS="${CXXFLAGS} $PTHREAD_CFLAGS"
22503
22504 if test "x$CXX_FOR_BUILD" = x
22505 then
22506   CXX_FOR_BUILD=${CXX}
22507 fi
22508
22509
22510
22511
22512         ac_ext=c
22513 ac_cpp='$CPP $CPPFLAGS'
22514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22517
22518
22519
22520
22521 for ac_header in sys/ipc.h sys/shm.h
22522 do
22523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22525   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22528   echo $ECHO_N "(cached) $ECHO_C" >&6
22529 fi
22530 ac_res=`eval echo '${'$as_ac_Header'}'`
22531                { echo "$as_me:$LINENO: result: $ac_res" >&5
22532 echo "${ECHO_T}$ac_res" >&6; }
22533 else
22534   # Is the header compilable?
22535 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22537 cat >conftest.$ac_ext <<_ACEOF
22538 /* confdefs.h.  */
22539 _ACEOF
22540 cat confdefs.h >>conftest.$ac_ext
22541 cat >>conftest.$ac_ext <<_ACEOF
22542 /* end confdefs.h.  */
22543 $ac_includes_default
22544 #include <$ac_header>
22545 _ACEOF
22546 rm -f conftest.$ac_objext
22547 if { (ac_try="$ac_compile"
22548 case "(($ac_try" in
22549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22550   *) ac_try_echo=$ac_try;;
22551 esac
22552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22553   (eval "$ac_compile") 2>conftest.er1
22554   ac_status=$?
22555   grep -v '^ *+' conftest.er1 >conftest.err
22556   rm -f conftest.er1
22557   cat conftest.err >&5
22558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559   (exit $ac_status); } && {
22560          test -z "$ac_c_werror_flag" ||
22561          test ! -s conftest.err
22562        } && test -s conftest.$ac_objext; then
22563   ac_header_compiler=yes
22564 else
22565   echo "$as_me: failed program was:" >&5
22566 sed 's/^/| /' conftest.$ac_ext >&5
22567
22568         ac_header_compiler=no
22569 fi
22570
22571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22572 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22573 echo "${ECHO_T}$ac_header_compiler" >&6; }
22574
22575 # Is the header present?
22576 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22578 cat >conftest.$ac_ext <<_ACEOF
22579 /* confdefs.h.  */
22580 _ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h.  */
22584 #include <$ac_header>
22585 _ACEOF
22586 if { (ac_try="$ac_cpp conftest.$ac_ext"
22587 case "(($ac_try" in
22588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22589   *) ac_try_echo=$ac_try;;
22590 esac
22591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22592   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22593   ac_status=$?
22594   grep -v '^ *+' conftest.er1 >conftest.err
22595   rm -f conftest.er1
22596   cat conftest.err >&5
22597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598   (exit $ac_status); } >/dev/null && {
22599          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22600          test ! -s conftest.err
22601        }; then
22602   ac_header_preproc=yes
22603 else
22604   echo "$as_me: failed program was:" >&5
22605 sed 's/^/| /' conftest.$ac_ext >&5
22606
22607   ac_header_preproc=no
22608 fi
22609
22610 rm -f conftest.err conftest.$ac_ext
22611 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22612 echo "${ECHO_T}$ac_header_preproc" >&6; }
22613
22614 # So?  What about this header?
22615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22616   yes:no: )
22617     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22619     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22621     ac_header_preproc=yes
22622     ;;
22623   no:yes:* )
22624     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22626     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22627 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22628     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22630     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22631 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22634     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22636
22637     ;;
22638 esac
22639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22642   echo $ECHO_N "(cached) $ECHO_C" >&6
22643 else
22644   eval "$as_ac_Header=\$ac_header_preproc"
22645 fi
22646 ac_res=`eval echo '${'$as_ac_Header'}'`
22647                { echo "$as_me:$LINENO: result: $ac_res" >&5
22648 echo "${ECHO_T}$ac_res" >&6; }
22649
22650 fi
22651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22652   cat >>confdefs.h <<_ACEOF
22653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22654 _ACEOF
22655
22656 fi
22657
22658 done
22659
22660
22661         save_LIBS="$LIBS"
22662         { echo "$as_me:$LINENO: checking for library containing shmat" >&5
22663 echo $ECHO_N "checking for library containing shmat... $ECHO_C" >&6; }
22664 if test "${ac_cv_search_shmat+set}" = set; then
22665   echo $ECHO_N "(cached) $ECHO_C" >&6
22666 else
22667   ac_func_search_save_LIBS=$LIBS
22668 cat >conftest.$ac_ext <<_ACEOF
22669 /* confdefs.h.  */
22670 _ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h.  */
22674
22675 /* Override any GCC internal prototype to avoid an error.
22676    Use char because int might match the return type of a GCC
22677    builtin and then its argument prototype would still apply.  */
22678 #ifdef __cplusplus
22679 extern "C"
22680 #endif
22681 char shmat ();
22682 int
22683 main ()
22684 {
22685 return shmat ();
22686   ;
22687   return 0;
22688 }
22689 _ACEOF
22690 for ac_lib in '' cygipc ipc; do
22691   if test -z "$ac_lib"; then
22692     ac_res="none required"
22693   else
22694     ac_res=-l$ac_lib
22695     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22696   fi
22697   rm -f conftest.$ac_objext conftest$ac_exeext
22698 if { (ac_try="$ac_link"
22699 case "(($ac_try" in
22700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22701   *) ac_try_echo=$ac_try;;
22702 esac
22703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22704   (eval "$ac_link") 2>conftest.er1
22705   ac_status=$?
22706   grep -v '^ *+' conftest.er1 >conftest.err
22707   rm -f conftest.er1
22708   cat conftest.err >&5
22709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710   (exit $ac_status); } && {
22711          test -z "$ac_c_werror_flag" ||
22712          test ! -s conftest.err
22713        } && test -s conftest$ac_exeext &&
22714        $as_test_x conftest$ac_exeext; then
22715   ac_cv_search_shmat=$ac_res
22716 else
22717   echo "$as_me: failed program was:" >&5
22718 sed 's/^/| /' conftest.$ac_ext >&5
22719
22720
22721 fi
22722
22723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22724       conftest$ac_exeext
22725   if test "${ac_cv_search_shmat+set}" = set; then
22726   break
22727 fi
22728 done
22729 if test "${ac_cv_search_shmat+set}" = set; then
22730   :
22731 else
22732   ac_cv_search_shmat=no
22733 fi
22734 rm conftest.$ac_ext
22735 LIBS=$ac_func_search_save_LIBS
22736 fi
22737 { echo "$as_me:$LINENO: result: $ac_cv_search_shmat" >&5
22738 echo "${ECHO_T}$ac_cv_search_shmat" >&6; }
22739 ac_res=$ac_cv_search_shmat
22740 if test "$ac_res" != no; then
22741   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22742    IPC_LIBS="$LIBS"
22743 else
22744    { echo "$as_me:$LINENO: WARNING: SystemV IPC support not found. " >&5
22745 echo "$as_me: WARNING: SystemV IPC support not found. " >&2;}
22746
22747 fi
22748
22749         LIBS="$save_LIBS"
22750
22751         ac_ext=c
22752 ac_cpp='$CPP $CPPFLAGS'
22753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22756
22757
22758
22759
22760 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22761 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22762 if test "${ac_cv_header_stdc+set}" = set; then
22763   echo $ECHO_N "(cached) $ECHO_C" >&6
22764 else
22765   cat >conftest.$ac_ext <<_ACEOF
22766 /* confdefs.h.  */
22767 _ACEOF
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h.  */
22771 #include <stdlib.h>
22772 #include <stdarg.h>
22773 #include <string.h>
22774 #include <float.h>
22775
22776 int
22777 main ()
22778 {
22779
22780   ;
22781   return 0;
22782 }
22783 _ACEOF
22784 rm -f conftest.$ac_objext
22785 if { (ac_try="$ac_compile"
22786 case "(($ac_try" in
22787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22788   *) ac_try_echo=$ac_try;;
22789 esac
22790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22791   (eval "$ac_compile") 2>conftest.er1
22792   ac_status=$?
22793   grep -v '^ *+' conftest.er1 >conftest.err
22794   rm -f conftest.er1
22795   cat conftest.err >&5
22796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797   (exit $ac_status); } && {
22798          test -z "$ac_c_werror_flag" ||
22799          test ! -s conftest.err
22800        } && test -s conftest.$ac_objext; then
22801   ac_cv_header_stdc=yes
22802 else
22803   echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22805
22806         ac_cv_header_stdc=no
22807 fi
22808
22809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22810
22811 if test $ac_cv_header_stdc = yes; then
22812   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22813   cat >conftest.$ac_ext <<_ACEOF
22814 /* confdefs.h.  */
22815 _ACEOF
22816 cat confdefs.h >>conftest.$ac_ext
22817 cat >>conftest.$ac_ext <<_ACEOF
22818 /* end confdefs.h.  */
22819 #include <string.h>
22820
22821 _ACEOF
22822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22823   $EGREP "memchr" >/dev/null 2>&1; then
22824   :
22825 else
22826   ac_cv_header_stdc=no
22827 fi
22828 rm -f conftest*
22829
22830 fi
22831
22832 if test $ac_cv_header_stdc = yes; then
22833   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22834   cat >conftest.$ac_ext <<_ACEOF
22835 /* confdefs.h.  */
22836 _ACEOF
22837 cat confdefs.h >>conftest.$ac_ext
22838 cat >>conftest.$ac_ext <<_ACEOF
22839 /* end confdefs.h.  */
22840 #include <stdlib.h>
22841
22842 _ACEOF
22843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22844   $EGREP "free" >/dev/null 2>&1; then
22845   :
22846 else
22847   ac_cv_header_stdc=no
22848 fi
22849 rm -f conftest*
22850
22851 fi
22852
22853 if test $ac_cv_header_stdc = yes; then
22854   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22855   if test "$cross_compiling" = yes; then
22856   :
22857 else
22858   cat >conftest.$ac_ext <<_ACEOF
22859 /* confdefs.h.  */
22860 _ACEOF
22861 cat confdefs.h >>conftest.$ac_ext
22862 cat >>conftest.$ac_ext <<_ACEOF
22863 /* end confdefs.h.  */
22864 #include <ctype.h>
22865 #include <stdlib.h>
22866 #if ((' ' & 0x0FF) == 0x020)
22867 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22868 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22869 #else
22870 # define ISLOWER(c) \
22871                    (('a' <= (c) && (c) <= 'i') \
22872                      || ('j' <= (c) && (c) <= 'r') \
22873                      || ('s' <= (c) && (c) <= 'z'))
22874 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22875 #endif
22876
22877 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22878 int
22879 main ()
22880 {
22881   int i;
22882   for (i = 0; i < 256; i++)
22883     if (XOR (islower (i), ISLOWER (i))
22884         || toupper (i) != TOUPPER (i))
22885       return 2;
22886   return 0;
22887 }
22888 _ACEOF
22889 rm -f conftest$ac_exeext
22890 if { (ac_try="$ac_link"
22891 case "(($ac_try" in
22892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22893   *) ac_try_echo=$ac_try;;
22894 esac
22895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22896   (eval "$ac_link") 2>&5
22897   ac_status=$?
22898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22900   { (case "(($ac_try" in
22901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22902   *) ac_try_echo=$ac_try;;
22903 esac
22904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22905   (eval "$ac_try") 2>&5
22906   ac_status=$?
22907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908   (exit $ac_status); }; }; then
22909   :
22910 else
22911   echo "$as_me: program exited with status $ac_status" >&5
22912 echo "$as_me: failed program was:" >&5
22913 sed 's/^/| /' conftest.$ac_ext >&5
22914
22915 ( exit $ac_status )
22916 ac_cv_header_stdc=no
22917 fi
22918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22919 fi
22920
22921
22922 fi
22923 fi
22924 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22925 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22926 if test $ac_cv_header_stdc = yes; then
22927
22928 cat >>confdefs.h <<\_ACEOF
22929 #define STDC_HEADERS 1
22930 _ACEOF
22931
22932 fi
22933
22934 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22935 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22936 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22937   echo $ECHO_N "(cached) $ECHO_C" >&6
22938 else
22939   cat >conftest.$ac_ext <<_ACEOF
22940 /* confdefs.h.  */
22941 _ACEOF
22942 cat confdefs.h >>conftest.$ac_ext
22943 cat >>conftest.$ac_ext <<_ACEOF
22944 /* end confdefs.h.  */
22945 #include <sys/types.h>
22946 #include <sys/wait.h>
22947 #ifndef WEXITSTATUS
22948 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22949 #endif
22950 #ifndef WIFEXITED
22951 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22952 #endif
22953
22954 int
22955 main ()
22956 {
22957   int s;
22958   wait (&s);
22959   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22960   ;
22961   return 0;
22962 }
22963 _ACEOF
22964 rm -f conftest.$ac_objext
22965 if { (ac_try="$ac_compile"
22966 case "(($ac_try" in
22967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968   *) ac_try_echo=$ac_try;;
22969 esac
22970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22971   (eval "$ac_compile") 2>conftest.er1
22972   ac_status=$?
22973   grep -v '^ *+' conftest.er1 >conftest.err
22974   rm -f conftest.er1
22975   cat conftest.err >&5
22976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977   (exit $ac_status); } && {
22978          test -z "$ac_c_werror_flag" ||
22979          test ! -s conftest.err
22980        } && test -s conftest.$ac_objext; then
22981   ac_cv_header_sys_wait_h=yes
22982 else
22983   echo "$as_me: failed program was:" >&5
22984 sed 's/^/| /' conftest.$ac_ext >&5
22985
22986         ac_cv_header_sys_wait_h=no
22987 fi
22988
22989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22990 fi
22991 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22992 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22993 if test $ac_cv_header_sys_wait_h = yes; then
22994
22995 cat >>confdefs.h <<\_ACEOF
22996 #define HAVE_SYS_WAIT_H 1
22997 _ACEOF
22998
22999 fi
23000
23001
23002
23003
23004
23005
23006
23007
23008 for ac_header in fcntl.h limits.h strings.h time.h sys/ioctl.h sys/time.h unistd.h
23009 do
23010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23012   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23015   echo $ECHO_N "(cached) $ECHO_C" >&6
23016 fi
23017 ac_res=`eval echo '${'$as_ac_Header'}'`
23018                { echo "$as_me:$LINENO: result: $ac_res" >&5
23019 echo "${ECHO_T}$ac_res" >&6; }
23020 else
23021   # Is the header compilable?
23022 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23024 cat >conftest.$ac_ext <<_ACEOF
23025 /* confdefs.h.  */
23026 _ACEOF
23027 cat confdefs.h >>conftest.$ac_ext
23028 cat >>conftest.$ac_ext <<_ACEOF
23029 /* end confdefs.h.  */
23030 $ac_includes_default
23031 #include <$ac_header>
23032 _ACEOF
23033 rm -f conftest.$ac_objext
23034 if { (ac_try="$ac_compile"
23035 case "(($ac_try" in
23036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037   *) ac_try_echo=$ac_try;;
23038 esac
23039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23040   (eval "$ac_compile") 2>conftest.er1
23041   ac_status=$?
23042   grep -v '^ *+' conftest.er1 >conftest.err
23043   rm -f conftest.er1
23044   cat conftest.err >&5
23045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046   (exit $ac_status); } && {
23047          test -z "$ac_c_werror_flag" ||
23048          test ! -s conftest.err
23049        } && test -s conftest.$ac_objext; then
23050   ac_header_compiler=yes
23051 else
23052   echo "$as_me: failed program was:" >&5
23053 sed 's/^/| /' conftest.$ac_ext >&5
23054
23055         ac_header_compiler=no
23056 fi
23057
23058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23060 echo "${ECHO_T}$ac_header_compiler" >&6; }
23061
23062 # Is the header present?
23063 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23064 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23065 cat >conftest.$ac_ext <<_ACEOF
23066 /* confdefs.h.  */
23067 _ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h.  */
23071 #include <$ac_header>
23072 _ACEOF
23073 if { (ac_try="$ac_cpp conftest.$ac_ext"
23074 case "(($ac_try" in
23075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23076   *) ac_try_echo=$ac_try;;
23077 esac
23078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23079   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23080   ac_status=$?
23081   grep -v '^ *+' conftest.er1 >conftest.err
23082   rm -f conftest.er1
23083   cat conftest.err >&5
23084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085   (exit $ac_status); } >/dev/null && {
23086          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23087          test ! -s conftest.err
23088        }; then
23089   ac_header_preproc=yes
23090 else
23091   echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23093
23094   ac_header_preproc=no
23095 fi
23096
23097 rm -f conftest.err conftest.$ac_ext
23098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23099 echo "${ECHO_T}$ac_header_preproc" >&6; }
23100
23101 # So?  What about this header?
23102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23103   yes:no: )
23104     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23106     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23107 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23108     ac_header_preproc=yes
23109     ;;
23110   no:yes:* )
23111     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23112 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23113     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23114 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23115     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23116 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23117     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23118 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23121     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23122 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23123
23124     ;;
23125 esac
23126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23129   echo $ECHO_N "(cached) $ECHO_C" >&6
23130 else
23131   eval "$as_ac_Header=\$ac_header_preproc"
23132 fi
23133 ac_res=`eval echo '${'$as_ac_Header'}'`
23134                { echo "$as_me:$LINENO: result: $ac_res" >&5
23135 echo "${ECHO_T}$ac_res" >&6; }
23136
23137 fi
23138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23139   cat >>confdefs.h <<_ACEOF
23140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23141 _ACEOF
23142
23143 fi
23144
23145 done
23146
23147
23148
23149
23150
23151 for ac_header in linux/ppdev.h sys/mman.h sys/select.h sys/types.h
23152 do
23153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23155   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23158   echo $ECHO_N "(cached) $ECHO_C" >&6
23159 fi
23160 ac_res=`eval echo '${'$as_ac_Header'}'`
23161                { echo "$as_me:$LINENO: result: $ac_res" >&5
23162 echo "${ECHO_T}$ac_res" >&6; }
23163 else
23164   # Is the header compilable?
23165 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23167 cat >conftest.$ac_ext <<_ACEOF
23168 /* confdefs.h.  */
23169 _ACEOF
23170 cat confdefs.h >>conftest.$ac_ext
23171 cat >>conftest.$ac_ext <<_ACEOF
23172 /* end confdefs.h.  */
23173 $ac_includes_default
23174 #include <$ac_header>
23175 _ACEOF
23176 rm -f conftest.$ac_objext
23177 if { (ac_try="$ac_compile"
23178 case "(($ac_try" in
23179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23180   *) ac_try_echo=$ac_try;;
23181 esac
23182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23183   (eval "$ac_compile") 2>conftest.er1
23184   ac_status=$?
23185   grep -v '^ *+' conftest.er1 >conftest.err
23186   rm -f conftest.er1
23187   cat conftest.err >&5
23188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189   (exit $ac_status); } && {
23190          test -z "$ac_c_werror_flag" ||
23191          test ! -s conftest.err
23192        } && test -s conftest.$ac_objext; then
23193   ac_header_compiler=yes
23194 else
23195   echo "$as_me: failed program was:" >&5
23196 sed 's/^/| /' conftest.$ac_ext >&5
23197
23198         ac_header_compiler=no
23199 fi
23200
23201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23202 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23203 echo "${ECHO_T}$ac_header_compiler" >&6; }
23204
23205 # Is the header present?
23206 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23208 cat >conftest.$ac_ext <<_ACEOF
23209 /* confdefs.h.  */
23210 _ACEOF
23211 cat confdefs.h >>conftest.$ac_ext
23212 cat >>conftest.$ac_ext <<_ACEOF
23213 /* end confdefs.h.  */
23214 #include <$ac_header>
23215 _ACEOF
23216 if { (ac_try="$ac_cpp conftest.$ac_ext"
23217 case "(($ac_try" in
23218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23219   *) ac_try_echo=$ac_try;;
23220 esac
23221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23222   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23223   ac_status=$?
23224   grep -v '^ *+' conftest.er1 >conftest.err
23225   rm -f conftest.er1
23226   cat conftest.err >&5
23227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228   (exit $ac_status); } >/dev/null && {
23229          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23230          test ! -s conftest.err
23231        }; then
23232   ac_header_preproc=yes
23233 else
23234   echo "$as_me: failed program was:" >&5
23235 sed 's/^/| /' conftest.$ac_ext >&5
23236
23237   ac_header_preproc=no
23238 fi
23239
23240 rm -f conftest.err conftest.$ac_ext
23241 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23242 echo "${ECHO_T}$ac_header_preproc" >&6; }
23243
23244 # So?  What about this header?
23245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23246   yes:no: )
23247     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23249     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23251     ac_header_preproc=yes
23252     ;;
23253   no:yes:* )
23254     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23256     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23257 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23258     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23260     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23261 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23262     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23264     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23266
23267     ;;
23268 esac
23269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23272   echo $ECHO_N "(cached) $ECHO_C" >&6
23273 else
23274   eval "$as_ac_Header=\$ac_header_preproc"
23275 fi
23276 ac_res=`eval echo '${'$as_ac_Header'}'`
23277                { echo "$as_me:$LINENO: result: $ac_res" >&5
23278 echo "${ECHO_T}$ac_res" >&6; }
23279
23280 fi
23281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23282   cat >>confdefs.h <<_ACEOF
23283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23284 _ACEOF
23285
23286 fi
23287
23288 done
23289
23290
23291
23292
23293 for ac_header in sys/resource.h stdint.h sched.h
23294 do
23295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23297   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23300   echo $ECHO_N "(cached) $ECHO_C" >&6
23301 fi
23302 ac_res=`eval echo '${'$as_ac_Header'}'`
23303                { echo "$as_me:$LINENO: result: $ac_res" >&5
23304 echo "${ECHO_T}$ac_res" >&6; }
23305 else
23306   # Is the header compilable?
23307 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23309 cat >conftest.$ac_ext <<_ACEOF
23310 /* confdefs.h.  */
23311 _ACEOF
23312 cat confdefs.h >>conftest.$ac_ext
23313 cat >>conftest.$ac_ext <<_ACEOF
23314 /* end confdefs.h.  */
23315 $ac_includes_default
23316 #include <$ac_header>
23317 _ACEOF
23318 rm -f conftest.$ac_objext
23319 if { (ac_try="$ac_compile"
23320 case "(($ac_try" in
23321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23322   *) ac_try_echo=$ac_try;;
23323 esac
23324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23325   (eval "$ac_compile") 2>conftest.er1
23326   ac_status=$?
23327   grep -v '^ *+' conftest.er1 >conftest.err
23328   rm -f conftest.er1
23329   cat conftest.err >&5
23330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331   (exit $ac_status); } && {
23332          test -z "$ac_c_werror_flag" ||
23333          test ! -s conftest.err
23334        } && test -s conftest.$ac_objext; then
23335   ac_header_compiler=yes
23336 else
23337   echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23339
23340         ac_header_compiler=no
23341 fi
23342
23343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23345 echo "${ECHO_T}$ac_header_compiler" >&6; }
23346
23347 # Is the header present?
23348 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23350 cat >conftest.$ac_ext <<_ACEOF
23351 /* confdefs.h.  */
23352 _ACEOF
23353 cat confdefs.h >>conftest.$ac_ext
23354 cat >>conftest.$ac_ext <<_ACEOF
23355 /* end confdefs.h.  */
23356 #include <$ac_header>
23357 _ACEOF
23358 if { (ac_try="$ac_cpp conftest.$ac_ext"
23359 case "(($ac_try" in
23360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23361   *) ac_try_echo=$ac_try;;
23362 esac
23363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23364   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23365   ac_status=$?
23366   grep -v '^ *+' conftest.er1 >conftest.err
23367   rm -f conftest.er1
23368   cat conftest.err >&5
23369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370   (exit $ac_status); } >/dev/null && {
23371          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23372          test ! -s conftest.err
23373        }; then
23374   ac_header_preproc=yes
23375 else
23376   echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23378
23379   ac_header_preproc=no
23380 fi
23381
23382 rm -f conftest.err conftest.$ac_ext
23383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23384 echo "${ECHO_T}$ac_header_preproc" >&6; }
23385
23386 # So?  What about this header?
23387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23388   yes:no: )
23389     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23391     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23393     ac_header_preproc=yes
23394     ;;
23395   no:yes:* )
23396     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23398     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23399 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23400     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23402     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23403 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23404     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23406     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23408
23409     ;;
23410 esac
23411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23414   echo $ECHO_N "(cached) $ECHO_C" >&6
23415 else
23416   eval "$as_ac_Header=\$ac_header_preproc"
23417 fi
23418 ac_res=`eval echo '${'$as_ac_Header'}'`
23419                { echo "$as_me:$LINENO: result: $ac_res" >&5
23420 echo "${ECHO_T}$ac_res" >&6; }
23421
23422 fi
23423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23424   cat >>confdefs.h <<_ACEOF
23425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23426 _ACEOF
23427
23428 fi
23429
23430 done
23431
23432
23433 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23434 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23435 if test "${ac_cv_c_const+set}" = set; then
23436   echo $ECHO_N "(cached) $ECHO_C" >&6
23437 else
23438   cat >conftest.$ac_ext <<_ACEOF
23439 /* confdefs.h.  */
23440 _ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h.  */
23444
23445 int
23446 main ()
23447 {
23448 /* FIXME: Include the comments suggested by Paul. */
23449 #ifndef __cplusplus
23450   /* Ultrix mips cc rejects this.  */
23451   typedef int charset[2];
23452   const charset cs;
23453   /* SunOS 4.1.1 cc rejects this.  */
23454   char const *const *pcpcc;
23455   char **ppc;
23456   /* NEC SVR4.0.2 mips cc rejects this.  */
23457   struct point {int x, y;};
23458   static struct point const zero = {0,0};
23459   /* AIX XL C 1.02.0.0 rejects this.
23460      It does not let you subtract one const X* pointer from another in
23461      an arm of an if-expression whose if-part is not a constant
23462      expression */
23463   const char *g = "string";
23464   pcpcc = &g + (g ? g-g : 0);
23465   /* HPUX 7.0 cc rejects these. */
23466   ++pcpcc;
23467   ppc = (char**) pcpcc;
23468   pcpcc = (char const *const *) ppc;
23469   { /* SCO 3.2v4 cc rejects this.  */
23470     char *t;
23471     char const *s = 0 ? (char *) 0 : (char const *) 0;
23472
23473     *t++ = 0;
23474     if (s) return 0;
23475   }
23476   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23477     int x[] = {25, 17};
23478     const int *foo = &x[0];
23479     ++foo;
23480   }
23481   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23482     typedef const int *iptr;
23483     iptr p = 0;
23484     ++p;
23485   }
23486   { /* AIX XL C 1.02.0.0 rejects this saying
23487        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23488     struct s { int j; const int *ap[3]; };
23489     struct s *b; b->j = 5;
23490   }
23491   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23492     const int foo = 10;
23493     if (!foo) return 0;
23494   }
23495   return !cs[0] && !zero.x;
23496 #endif
23497
23498   ;
23499   return 0;
23500 }
23501 _ACEOF
23502 rm -f conftest.$ac_objext
23503 if { (ac_try="$ac_compile"
23504 case "(($ac_try" in
23505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23506   *) ac_try_echo=$ac_try;;
23507 esac
23508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23509   (eval "$ac_compile") 2>conftest.er1
23510   ac_status=$?
23511   grep -v '^ *+' conftest.er1 >conftest.err
23512   rm -f conftest.er1
23513   cat conftest.err >&5
23514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515   (exit $ac_status); } && {
23516          test -z "$ac_c_werror_flag" ||
23517          test ! -s conftest.err
23518        } && test -s conftest.$ac_objext; then
23519   ac_cv_c_const=yes
23520 else
23521   echo "$as_me: failed program was:" >&5
23522 sed 's/^/| /' conftest.$ac_ext >&5
23523
23524         ac_cv_c_const=no
23525 fi
23526
23527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23528 fi
23529 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23530 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23531 if test $ac_cv_c_const = no; then
23532
23533 cat >>confdefs.h <<\_ACEOF
23534 #define const
23535 _ACEOF
23536
23537 fi
23538
23539 { echo "$as_me:$LINENO: checking for inline" >&5
23540 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23541 if test "${ac_cv_c_inline+set}" = set; then
23542   echo $ECHO_N "(cached) $ECHO_C" >&6
23543 else
23544   ac_cv_c_inline=no
23545 for ac_kw in inline __inline__ __inline; do
23546   cat >conftest.$ac_ext <<_ACEOF
23547 /* confdefs.h.  */
23548 _ACEOF
23549 cat confdefs.h >>conftest.$ac_ext
23550 cat >>conftest.$ac_ext <<_ACEOF
23551 /* end confdefs.h.  */
23552 #ifndef __cplusplus
23553 typedef int foo_t;
23554 static $ac_kw foo_t static_foo () {return 0; }
23555 $ac_kw foo_t foo () {return 0; }
23556 #endif
23557
23558 _ACEOF
23559 rm -f conftest.$ac_objext
23560 if { (ac_try="$ac_compile"
23561 case "(($ac_try" in
23562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23563   *) ac_try_echo=$ac_try;;
23564 esac
23565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23566   (eval "$ac_compile") 2>conftest.er1
23567   ac_status=$?
23568   grep -v '^ *+' conftest.er1 >conftest.err
23569   rm -f conftest.er1
23570   cat conftest.err >&5
23571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572   (exit $ac_status); } && {
23573          test -z "$ac_c_werror_flag" ||
23574          test ! -s conftest.err
23575        } && test -s conftest.$ac_objext; then
23576   ac_cv_c_inline=$ac_kw
23577 else
23578   echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.$ac_ext >&5
23580
23581
23582 fi
23583
23584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23585   test "$ac_cv_c_inline" != no && break
23586 done
23587
23588 fi
23589 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23590 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23591
23592
23593 case $ac_cv_c_inline in
23594   inline | yes) ;;
23595   *)
23596     case $ac_cv_c_inline in
23597       no) ac_val=;;
23598       *) ac_val=$ac_cv_c_inline;;
23599     esac
23600     cat >>confdefs.h <<_ACEOF
23601 #ifndef __cplusplus
23602 #define inline $ac_val
23603 #endif
23604 _ACEOF
23605     ;;
23606 esac
23607
23608 { echo "$as_me:$LINENO: checking for size_t" >&5
23609 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23610 if test "${ac_cv_type_size_t+set}" = set; then
23611   echo $ECHO_N "(cached) $ECHO_C" >&6
23612 else
23613   cat >conftest.$ac_ext <<_ACEOF
23614 /* confdefs.h.  */
23615 _ACEOF
23616 cat confdefs.h >>conftest.$ac_ext
23617 cat >>conftest.$ac_ext <<_ACEOF
23618 /* end confdefs.h.  */
23619 $ac_includes_default
23620 typedef size_t ac__type_new_;
23621 int
23622 main ()
23623 {
23624 if ((ac__type_new_ *) 0)
23625   return 0;
23626 if (sizeof (ac__type_new_))
23627   return 0;
23628   ;
23629   return 0;
23630 }
23631 _ACEOF
23632 rm -f conftest.$ac_objext
23633 if { (ac_try="$ac_compile"
23634 case "(($ac_try" in
23635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23636   *) ac_try_echo=$ac_try;;
23637 esac
23638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23639   (eval "$ac_compile") 2>conftest.er1
23640   ac_status=$?
23641   grep -v '^ *+' conftest.er1 >conftest.err
23642   rm -f conftest.er1
23643   cat conftest.err >&5
23644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645   (exit $ac_status); } && {
23646          test -z "$ac_c_werror_flag" ||
23647          test ! -s conftest.err
23648        } && test -s conftest.$ac_objext; then
23649   ac_cv_type_size_t=yes
23650 else
23651   echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23653
23654         ac_cv_type_size_t=no
23655 fi
23656
23657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23658 fi
23659 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23660 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23661 if test $ac_cv_type_size_t = yes; then
23662   :
23663 else
23664
23665 cat >>confdefs.h <<_ACEOF
23666 #define size_t unsigned int
23667 _ACEOF
23668
23669 fi
23670
23671 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23672 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23673 if test "${ac_cv_header_time+set}" = set; then
23674   echo $ECHO_N "(cached) $ECHO_C" >&6
23675 else
23676   cat >conftest.$ac_ext <<_ACEOF
23677 /* confdefs.h.  */
23678 _ACEOF
23679 cat confdefs.h >>conftest.$ac_ext
23680 cat >>conftest.$ac_ext <<_ACEOF
23681 /* end confdefs.h.  */
23682 #include <sys/types.h>
23683 #include <sys/time.h>
23684 #include <time.h>
23685
23686 int
23687 main ()
23688 {
23689 if ((struct tm *) 0)
23690 return 0;
23691   ;
23692   return 0;
23693 }
23694 _ACEOF
23695 rm -f conftest.$ac_objext
23696 if { (ac_try="$ac_compile"
23697 case "(($ac_try" in
23698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23699   *) ac_try_echo=$ac_try;;
23700 esac
23701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23702   (eval "$ac_compile") 2>conftest.er1
23703   ac_status=$?
23704   grep -v '^ *+' conftest.er1 >conftest.err
23705   rm -f conftest.er1
23706   cat conftest.err >&5
23707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708   (exit $ac_status); } && {
23709          test -z "$ac_c_werror_flag" ||
23710          test ! -s conftest.err
23711        } && test -s conftest.$ac_objext; then
23712   ac_cv_header_time=yes
23713 else
23714   echo "$as_me: failed program was:" >&5
23715 sed 's/^/| /' conftest.$ac_ext >&5
23716
23717         ac_cv_header_time=no
23718 fi
23719
23720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23721 fi
23722 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23723 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23724 if test $ac_cv_header_time = yes; then
23725
23726 cat >>confdefs.h <<\_ACEOF
23727 #define TIME_WITH_SYS_TIME 1
23728 _ACEOF
23729
23730 fi
23731
23732 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23733 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23734 if test "${ac_cv_c_bigendian+set}" = set; then
23735   echo $ECHO_N "(cached) $ECHO_C" >&6
23736 else
23737   # See if sys/param.h defines the BYTE_ORDER macro.
23738 cat >conftest.$ac_ext <<_ACEOF
23739 /* confdefs.h.  */
23740 _ACEOF
23741 cat confdefs.h >>conftest.$ac_ext
23742 cat >>conftest.$ac_ext <<_ACEOF
23743 /* end confdefs.h.  */
23744 #include <sys/types.h>
23745 #include <sys/param.h>
23746
23747 int
23748 main ()
23749 {
23750 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23751         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23752  bogus endian macros
23753 #endif
23754
23755   ;
23756   return 0;
23757 }
23758 _ACEOF
23759 rm -f conftest.$ac_objext
23760 if { (ac_try="$ac_compile"
23761 case "(($ac_try" in
23762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23763   *) ac_try_echo=$ac_try;;
23764 esac
23765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23766   (eval "$ac_compile") 2>conftest.er1
23767   ac_status=$?
23768   grep -v '^ *+' conftest.er1 >conftest.err
23769   rm -f conftest.er1
23770   cat conftest.err >&5
23771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772   (exit $ac_status); } && {
23773          test -z "$ac_c_werror_flag" ||
23774          test ! -s conftest.err
23775        } && test -s conftest.$ac_objext; then
23776   # It does; now see whether it defined to BIG_ENDIAN or not.
23777 cat >conftest.$ac_ext <<_ACEOF
23778 /* confdefs.h.  */
23779 _ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h.  */
23783 #include <sys/types.h>
23784 #include <sys/param.h>
23785
23786 int
23787 main ()
23788 {
23789 #if BYTE_ORDER != BIG_ENDIAN
23790  not big endian
23791 #endif
23792
23793   ;
23794   return 0;
23795 }
23796 _ACEOF
23797 rm -f conftest.$ac_objext
23798 if { (ac_try="$ac_compile"
23799 case "(($ac_try" in
23800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23801   *) ac_try_echo=$ac_try;;
23802 esac
23803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23804   (eval "$ac_compile") 2>conftest.er1
23805   ac_status=$?
23806   grep -v '^ *+' conftest.er1 >conftest.err
23807   rm -f conftest.er1
23808   cat conftest.err >&5
23809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23810   (exit $ac_status); } && {
23811          test -z "$ac_c_werror_flag" ||
23812          test ! -s conftest.err
23813        } && test -s conftest.$ac_objext; then
23814   ac_cv_c_bigendian=yes
23815 else
23816   echo "$as_me: failed program was:" >&5
23817 sed 's/^/| /' conftest.$ac_ext >&5
23818
23819         ac_cv_c_bigendian=no
23820 fi
23821
23822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23823 else
23824   echo "$as_me: failed program was:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23826
23827         # It does not; compile a test program.
23828 if test "$cross_compiling" = yes; then
23829   # try to guess the endianness by grepping values into an object file
23830   ac_cv_c_bigendian=unknown
23831   cat >conftest.$ac_ext <<_ACEOF
23832 /* confdefs.h.  */
23833 _ACEOF
23834 cat confdefs.h >>conftest.$ac_ext
23835 cat >>conftest.$ac_ext <<_ACEOF
23836 /* end confdefs.h.  */
23837 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23838 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23839 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23840 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23841 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23842 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23843 int
23844 main ()
23845 {
23846  _ascii (); _ebcdic ();
23847   ;
23848   return 0;
23849 }
23850 _ACEOF
23851 rm -f conftest.$ac_objext
23852 if { (ac_try="$ac_compile"
23853 case "(($ac_try" in
23854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23855   *) ac_try_echo=$ac_try;;
23856 esac
23857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23858   (eval "$ac_compile") 2>conftest.er1
23859   ac_status=$?
23860   grep -v '^ *+' conftest.er1 >conftest.err
23861   rm -f conftest.er1
23862   cat conftest.err >&5
23863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864   (exit $ac_status); } && {
23865          test -z "$ac_c_werror_flag" ||
23866          test ! -s conftest.err
23867        } && test -s conftest.$ac_objext; then
23868   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23869   ac_cv_c_bigendian=yes
23870 fi
23871 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23872   if test "$ac_cv_c_bigendian" = unknown; then
23873     ac_cv_c_bigendian=no
23874   else
23875     # finding both strings is unlikely to happen, but who knows?
23876     ac_cv_c_bigendian=unknown
23877   fi
23878 fi
23879 else
23880   echo "$as_me: failed program was:" >&5
23881 sed 's/^/| /' conftest.$ac_ext >&5
23882
23883
23884 fi
23885
23886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23887 else
23888   cat >conftest.$ac_ext <<_ACEOF
23889 /* confdefs.h.  */
23890 _ACEOF
23891 cat confdefs.h >>conftest.$ac_ext
23892 cat >>conftest.$ac_ext <<_ACEOF
23893 /* end confdefs.h.  */
23894 $ac_includes_default
23895 int
23896 main ()
23897 {
23898
23899   /* Are we little or big endian?  From Harbison&Steele.  */
23900   union
23901   {
23902     long int l;
23903     char c[sizeof (long int)];
23904   } u;
23905   u.l = 1;
23906   return u.c[sizeof (long int) - 1] == 1;
23907
23908   ;
23909   return 0;
23910 }
23911 _ACEOF
23912 rm -f conftest$ac_exeext
23913 if { (ac_try="$ac_link"
23914 case "(($ac_try" in
23915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23916   *) ac_try_echo=$ac_try;;
23917 esac
23918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23919   (eval "$ac_link") 2>&5
23920   ac_status=$?
23921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23923   { (case "(($ac_try" in
23924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23925   *) ac_try_echo=$ac_try;;
23926 esac
23927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23928   (eval "$ac_try") 2>&5
23929   ac_status=$?
23930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931   (exit $ac_status); }; }; then
23932   ac_cv_c_bigendian=no
23933 else
23934   echo "$as_me: program exited with status $ac_status" >&5
23935 echo "$as_me: failed program was:" >&5
23936 sed 's/^/| /' conftest.$ac_ext >&5
23937
23938 ( exit $ac_status )
23939 ac_cv_c_bigendian=yes
23940 fi
23941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23942 fi
23943
23944
23945 fi
23946
23947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23948 fi
23949 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23950 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23951 case $ac_cv_c_bigendian in
23952   yes)
23953
23954 cat >>confdefs.h <<\_ACEOF
23955 #define WORDS_BIGENDIAN 1
23956 _ACEOF
23957  ;;
23958   no)
23959      ;;
23960   *)
23961     { { echo "$as_me:$LINENO: error: unknown endianness
23962 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23963 echo "$as_me: error: unknown endianness
23964 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23965    { (exit 1); exit 1; }; } ;;
23966 esac
23967
23968 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23969 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23970 if test "${ac_cv_struct_tm+set}" = set; then
23971   echo $ECHO_N "(cached) $ECHO_C" >&6
23972 else
23973   cat >conftest.$ac_ext <<_ACEOF
23974 /* confdefs.h.  */
23975 _ACEOF
23976 cat confdefs.h >>conftest.$ac_ext
23977 cat >>conftest.$ac_ext <<_ACEOF
23978 /* end confdefs.h.  */
23979 #include <sys/types.h>
23980 #include <time.h>
23981
23982 int
23983 main ()
23984 {
23985 struct tm tm;
23986                                      int *p = &tm.tm_sec;
23987                                      return !p;
23988   ;
23989   return 0;
23990 }
23991 _ACEOF
23992 rm -f conftest.$ac_objext
23993 if { (ac_try="$ac_compile"
23994 case "(($ac_try" in
23995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23996   *) ac_try_echo=$ac_try;;
23997 esac
23998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23999   (eval "$ac_compile") 2>conftest.er1
24000   ac_status=$?
24001   grep -v '^ *+' conftest.er1 >conftest.err
24002   rm -f conftest.er1
24003   cat conftest.err >&5
24004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005   (exit $ac_status); } && {
24006          test -z "$ac_c_werror_flag" ||
24007          test ! -s conftest.err
24008        } && test -s conftest.$ac_objext; then
24009   ac_cv_struct_tm=time.h
24010 else
24011   echo "$as_me: failed program was:" >&5
24012 sed 's/^/| /' conftest.$ac_ext >&5
24013
24014         ac_cv_struct_tm=sys/time.h
24015 fi
24016
24017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24018 fi
24019 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24020 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24021 if test $ac_cv_struct_tm = sys/time.h; then
24022
24023 cat >>confdefs.h <<\_ACEOF
24024 #define TM_IN_SYS_TIME 1
24025 _ACEOF
24026
24027 fi
24028
24029
24030 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24031 # for constant arguments.  Useless!
24032 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24033 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24034 if test "${ac_cv_working_alloca_h+set}" = set; then
24035   echo $ECHO_N "(cached) $ECHO_C" >&6
24036 else
24037   cat >conftest.$ac_ext <<_ACEOF
24038 /* confdefs.h.  */
24039 _ACEOF
24040 cat confdefs.h >>conftest.$ac_ext
24041 cat >>conftest.$ac_ext <<_ACEOF
24042 /* end confdefs.h.  */
24043 #include <alloca.h>
24044 int
24045 main ()
24046 {
24047 char *p = (char *) alloca (2 * sizeof (int));
24048                           if (p) return 0;
24049   ;
24050   return 0;
24051 }
24052 _ACEOF
24053 rm -f conftest.$ac_objext conftest$ac_exeext
24054 if { (ac_try="$ac_link"
24055 case "(($ac_try" in
24056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24057   *) ac_try_echo=$ac_try;;
24058 esac
24059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24060   (eval "$ac_link") 2>conftest.er1
24061   ac_status=$?
24062   grep -v '^ *+' conftest.er1 >conftest.err
24063   rm -f conftest.er1
24064   cat conftest.err >&5
24065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066   (exit $ac_status); } && {
24067          test -z "$ac_c_werror_flag" ||
24068          test ! -s conftest.err
24069        } && test -s conftest$ac_exeext &&
24070        $as_test_x conftest$ac_exeext; then
24071   ac_cv_working_alloca_h=yes
24072 else
24073   echo "$as_me: failed program was:" >&5
24074 sed 's/^/| /' conftest.$ac_ext >&5
24075
24076         ac_cv_working_alloca_h=no
24077 fi
24078
24079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24080       conftest$ac_exeext conftest.$ac_ext
24081 fi
24082 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24083 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24084 if test $ac_cv_working_alloca_h = yes; then
24085
24086 cat >>confdefs.h <<\_ACEOF
24087 #define HAVE_ALLOCA_H 1
24088 _ACEOF
24089
24090 fi
24091
24092 { echo "$as_me:$LINENO: checking for alloca" >&5
24093 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24094 if test "${ac_cv_func_alloca_works+set}" = set; then
24095   echo $ECHO_N "(cached) $ECHO_C" >&6
24096 else
24097   cat >conftest.$ac_ext <<_ACEOF
24098 /* confdefs.h.  */
24099 _ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h.  */
24103 #ifdef __GNUC__
24104 # define alloca __builtin_alloca
24105 #else
24106 # ifdef _MSC_VER
24107 #  include <malloc.h>
24108 #  define alloca _alloca
24109 # else
24110 #  ifdef HAVE_ALLOCA_H
24111 #   include <alloca.h>
24112 #  else
24113 #   ifdef _AIX
24114  #pragma alloca
24115 #   else
24116 #    ifndef alloca /* predefined by HP cc +Olibcalls */
24117 char *alloca ();
24118 #    endif
24119 #   endif
24120 #  endif
24121 # endif
24122 #endif
24123
24124 int
24125 main ()
24126 {
24127 char *p = (char *) alloca (1);
24128                                     if (p) return 0;
24129   ;
24130   return 0;
24131 }
24132 _ACEOF
24133 rm -f conftest.$ac_objext conftest$ac_exeext
24134 if { (ac_try="$ac_link"
24135 case "(($ac_try" in
24136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24137   *) ac_try_echo=$ac_try;;
24138 esac
24139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24140   (eval "$ac_link") 2>conftest.er1
24141   ac_status=$?
24142   grep -v '^ *+' conftest.er1 >conftest.err
24143   rm -f conftest.er1
24144   cat conftest.err >&5
24145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146   (exit $ac_status); } && {
24147          test -z "$ac_c_werror_flag" ||
24148          test ! -s conftest.err
24149        } && test -s conftest$ac_exeext &&
24150        $as_test_x conftest$ac_exeext; then
24151   ac_cv_func_alloca_works=yes
24152 else
24153   echo "$as_me: failed program was:" >&5
24154 sed 's/^/| /' conftest.$ac_ext >&5
24155
24156         ac_cv_func_alloca_works=no
24157 fi
24158
24159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24160       conftest$ac_exeext conftest.$ac_ext
24161 fi
24162 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24163 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24164
24165 if test $ac_cv_func_alloca_works = yes; then
24166
24167 cat >>confdefs.h <<\_ACEOF
24168 #define HAVE_ALLOCA 1
24169 _ACEOF
24170
24171 else
24172   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24173 # that cause trouble.  Some versions do not even contain alloca or
24174 # contain a buggy version.  If you still want to use their alloca,
24175 # use ar to extract alloca.o from them instead of compiling alloca.c.
24176
24177 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24178
24179 cat >>confdefs.h <<\_ACEOF
24180 #define C_ALLOCA 1
24181 _ACEOF
24182
24183
24184 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24185 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24186 if test "${ac_cv_os_cray+set}" = set; then
24187   echo $ECHO_N "(cached) $ECHO_C" >&6
24188 else
24189   cat >conftest.$ac_ext <<_ACEOF
24190 /* confdefs.h.  */
24191 _ACEOF
24192 cat confdefs.h >>conftest.$ac_ext
24193 cat >>conftest.$ac_ext <<_ACEOF
24194 /* end confdefs.h.  */
24195 #if defined CRAY && ! defined CRAY2
24196 webecray
24197 #else
24198 wenotbecray
24199 #endif
24200
24201 _ACEOF
24202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24203   $EGREP "webecray" >/dev/null 2>&1; then
24204   ac_cv_os_cray=yes
24205 else
24206   ac_cv_os_cray=no
24207 fi
24208 rm -f conftest*
24209
24210 fi
24211 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24212 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24213 if test $ac_cv_os_cray = yes; then
24214   for ac_func in _getb67 GETB67 getb67; do
24215     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24219   echo $ECHO_N "(cached) $ECHO_C" >&6
24220 else
24221   cat >conftest.$ac_ext <<_ACEOF
24222 /* confdefs.h.  */
24223 _ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h.  */
24227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24229 #define $ac_func innocuous_$ac_func
24230
24231 /* System header to define __stub macros and hopefully few prototypes,
24232     which can conflict with char $ac_func (); below.
24233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24234     <limits.h> exists even on freestanding compilers.  */
24235
24236 #ifdef __STDC__
24237 # include <limits.h>
24238 #else
24239 # include <assert.h>
24240 #endif
24241
24242 #undef $ac_func
24243
24244 /* Override any GCC internal prototype to avoid an error.
24245    Use char because int might match the return type of a GCC
24246    builtin and then its argument prototype would still apply.  */
24247 #ifdef __cplusplus
24248 extern "C"
24249 #endif
24250 char $ac_func ();
24251 /* The GNU C library defines this for functions which it implements
24252     to always fail with ENOSYS.  Some functions are actually named
24253     something starting with __ and the normal name is an alias.  */
24254 #if defined __stub_$ac_func || defined __stub___$ac_func
24255 choke me
24256 #endif
24257
24258 int
24259 main ()
24260 {
24261 return $ac_func ();
24262   ;
24263   return 0;
24264 }
24265 _ACEOF
24266 rm -f conftest.$ac_objext conftest$ac_exeext
24267 if { (ac_try="$ac_link"
24268 case "(($ac_try" in
24269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24270   *) ac_try_echo=$ac_try;;
24271 esac
24272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24273   (eval "$ac_link") 2>conftest.er1
24274   ac_status=$?
24275   grep -v '^ *+' conftest.er1 >conftest.err
24276   rm -f conftest.er1
24277   cat conftest.err >&5
24278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279   (exit $ac_status); } && {
24280          test -z "$ac_c_werror_flag" ||
24281          test ! -s conftest.err
24282        } && test -s conftest$ac_exeext &&
24283        $as_test_x conftest$ac_exeext; then
24284   eval "$as_ac_var=yes"
24285 else
24286   echo "$as_me: failed program was:" >&5
24287 sed 's/^/| /' conftest.$ac_ext >&5
24288
24289         eval "$as_ac_var=no"
24290 fi
24291
24292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24293       conftest$ac_exeext conftest.$ac_ext
24294 fi
24295 ac_res=`eval echo '${'$as_ac_var'}'`
24296                { echo "$as_me:$LINENO: result: $ac_res" >&5
24297 echo "${ECHO_T}$ac_res" >&6; }
24298 if test `eval echo '${'$as_ac_var'}'` = yes; then
24299
24300 cat >>confdefs.h <<_ACEOF
24301 #define CRAY_STACKSEG_END $ac_func
24302 _ACEOF
24303
24304     break
24305 fi
24306
24307   done
24308 fi
24309
24310 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24311 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24312 if test "${ac_cv_c_stack_direction+set}" = set; then
24313   echo $ECHO_N "(cached) $ECHO_C" >&6
24314 else
24315   if test "$cross_compiling" = yes; then
24316   ac_cv_c_stack_direction=0
24317 else
24318   cat >conftest.$ac_ext <<_ACEOF
24319 /* confdefs.h.  */
24320 _ACEOF
24321 cat confdefs.h >>conftest.$ac_ext
24322 cat >>conftest.$ac_ext <<_ACEOF
24323 /* end confdefs.h.  */
24324 $ac_includes_default
24325 int
24326 find_stack_direction ()
24327 {
24328   static char *addr = 0;
24329   auto char dummy;
24330   if (addr == 0)
24331     {
24332       addr = &dummy;
24333       return find_stack_direction ();
24334     }
24335   else
24336     return (&dummy > addr) ? 1 : -1;
24337 }
24338
24339 int
24340 main ()
24341 {
24342   return find_stack_direction () < 0;
24343 }
24344 _ACEOF
24345 rm -f conftest$ac_exeext
24346 if { (ac_try="$ac_link"
24347 case "(($ac_try" in
24348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24349   *) ac_try_echo=$ac_try;;
24350 esac
24351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24352   (eval "$ac_link") 2>&5
24353   ac_status=$?
24354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24356   { (case "(($ac_try" in
24357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24358   *) ac_try_echo=$ac_try;;
24359 esac
24360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24361   (eval "$ac_try") 2>&5
24362   ac_status=$?
24363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364   (exit $ac_status); }; }; then
24365   ac_cv_c_stack_direction=1
24366 else
24367   echo "$as_me: program exited with status $ac_status" >&5
24368 echo "$as_me: failed program was:" >&5
24369 sed 's/^/| /' conftest.$ac_ext >&5
24370
24371 ( exit $ac_status )
24372 ac_cv_c_stack_direction=-1
24373 fi
24374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24375 fi
24376
24377
24378 fi
24379 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24380 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24381
24382 cat >>confdefs.h <<_ACEOF
24383 #define STACK_DIRECTION $ac_cv_c_stack_direction
24384 _ACEOF
24385
24386
24387 fi
24388
24389 { echo "$as_me:$LINENO: checking for function prototypes" >&5
24390 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
24391 if test "$ac_cv_prog_cc_c89" != no; then
24392   { echo "$as_me:$LINENO: result: yes" >&5
24393 echo "${ECHO_T}yes" >&6; }
24394
24395 cat >>confdefs.h <<\_ACEOF
24396 #define PROTOTYPES 1
24397 _ACEOF
24398
24399
24400 cat >>confdefs.h <<\_ACEOF
24401 #define __PROTOTYPES 1
24402 _ACEOF
24403
24404 else
24405   { echo "$as_me:$LINENO: result: no" >&5
24406 echo "${ECHO_T}no" >&6; }
24407 fi
24408
24409 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
24410 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
24411 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
24412   echo $ECHO_N "(cached) $ECHO_C" >&6
24413 else
24414   ac_cv_func_setvbuf_reversed=no
24415    cat >conftest.$ac_ext <<_ACEOF
24416 /* confdefs.h.  */
24417 _ACEOF
24418 cat confdefs.h >>conftest.$ac_ext
24419 cat >>conftest.$ac_ext <<_ACEOF
24420 /* end confdefs.h.  */
24421 #include <stdio.h>
24422 #         ifdef PROTOTYPES
24423            int (setvbuf) (FILE *, int, char *, size_t);
24424 #         endif
24425 int
24426 main ()
24427 {
24428 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
24429   ;
24430   return 0;
24431 }
24432 _ACEOF
24433 rm -f conftest.$ac_objext conftest$ac_exeext
24434 if { (ac_try="$ac_link"
24435 case "(($ac_try" in
24436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437   *) ac_try_echo=$ac_try;;
24438 esac
24439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24440   (eval "$ac_link") 2>conftest.er1
24441   ac_status=$?
24442   grep -v '^ *+' conftest.er1 >conftest.err
24443   rm -f conftest.er1
24444   cat conftest.err >&5
24445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446   (exit $ac_status); } && {
24447          test -z "$ac_c_werror_flag" ||
24448          test ! -s conftest.err
24449        } && test -s conftest$ac_exeext &&
24450        $as_test_x conftest$ac_exeext; then
24451   cat >conftest.$ac_ext <<_ACEOF
24452 /* confdefs.h.  */
24453 _ACEOF
24454 cat confdefs.h >>conftest.$ac_ext
24455 cat >>conftest.$ac_ext <<_ACEOF
24456 /* end confdefs.h.  */
24457 #include <stdio.h>
24458 #            ifdef PROTOTYPES
24459               int (setvbuf) (FILE *, int, char *, size_t);
24460 #            endif
24461 int
24462 main ()
24463 {
24464 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
24465   ;
24466   return 0;
24467 }
24468 _ACEOF
24469 rm -f conftest.$ac_objext conftest$ac_exeext
24470 if { (ac_try="$ac_link"
24471 case "(($ac_try" in
24472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24473   *) ac_try_echo=$ac_try;;
24474 esac
24475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24476   (eval "$ac_link") 2>conftest.er1
24477   ac_status=$?
24478   grep -v '^ *+' conftest.er1 >conftest.err
24479   rm -f conftest.er1
24480   cat conftest.err >&5
24481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482   (exit $ac_status); } && {
24483          test -z "$ac_c_werror_flag" ||
24484          test ! -s conftest.err
24485        } && test -s conftest$ac_exeext &&
24486        $as_test_x conftest$ac_exeext; then
24487   # It compiles and links either way, so it must not be declared
24488          # with a prototype and most likely this is a K&R C compiler.
24489          # Try running it.
24490          if test "$cross_compiling" = yes; then
24491   : # Assume setvbuf is not reversed when cross-compiling.
24492 else
24493   cat >conftest.$ac_ext <<_ACEOF
24494 /* confdefs.h.  */
24495 _ACEOF
24496 cat confdefs.h >>conftest.$ac_ext
24497 cat >>conftest.$ac_ext <<_ACEOF
24498 /* end confdefs.h.  */
24499 $ac_includes_default
24500 int
24501 main ()
24502 {
24503 /* This call has the arguments reversed.
24504                    A reversed system may check and see that the address of buf
24505                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
24506                 char buf;
24507                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
24508                   return 1;
24509                 putchar ('\r');
24510                 return 0; /* Non-reversed systems SEGV here.  */
24511   ;
24512   return 0;
24513 }
24514 _ACEOF
24515 rm -f conftest$ac_exeext
24516 if { (ac_try="$ac_link"
24517 case "(($ac_try" in
24518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519   *) ac_try_echo=$ac_try;;
24520 esac
24521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522   (eval "$ac_link") 2>&5
24523   ac_status=$?
24524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24526   { (case "(($ac_try" in
24527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24528   *) ac_try_echo=$ac_try;;
24529 esac
24530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24531   (eval "$ac_try") 2>&5
24532   ac_status=$?
24533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534   (exit $ac_status); }; }; then
24535   ac_cv_func_setvbuf_reversed=yes
24536 else
24537   echo "$as_me: program exited with status $ac_status" >&5
24538 echo "$as_me: failed program was:" >&5
24539 sed 's/^/| /' conftest.$ac_ext >&5
24540
24541 fi
24542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24543 fi
24544
24545
24546         ac_cv_func_setvbuf_reversed=yes
24547 else
24548   echo "$as_me: failed program was:" >&5
24549 sed 's/^/| /' conftest.$ac_ext >&5
24550
24551
24552 fi
24553
24554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24555       conftest$ac_exeext conftest.$ac_ext
24556 else
24557   echo "$as_me: failed program was:" >&5
24558 sed 's/^/| /' conftest.$ac_ext >&5
24559
24560
24561 fi
24562
24563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24564       conftest$ac_exeext conftest.$ac_ext
24565 fi
24566 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
24567 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
24568 if test $ac_cv_func_setvbuf_reversed = yes; then
24569
24570 cat >>confdefs.h <<\_ACEOF
24571 #define SETVBUF_REVERSED 1
24572 _ACEOF
24573
24574 fi
24575
24576
24577 for ac_func in vprintf
24578 do
24579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24580 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24582 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24583   echo $ECHO_N "(cached) $ECHO_C" >&6
24584 else
24585   cat >conftest.$ac_ext <<_ACEOF
24586 /* confdefs.h.  */
24587 _ACEOF
24588 cat confdefs.h >>conftest.$ac_ext
24589 cat >>conftest.$ac_ext <<_ACEOF
24590 /* end confdefs.h.  */
24591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24592    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24593 #define $ac_func innocuous_$ac_func
24594
24595 /* System header to define __stub macros and hopefully few prototypes,
24596     which can conflict with char $ac_func (); below.
24597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24598     <limits.h> exists even on freestanding compilers.  */
24599
24600 #ifdef __STDC__
24601 # include <limits.h>
24602 #else
24603 # include <assert.h>
24604 #endif
24605
24606 #undef $ac_func
24607
24608 /* Override any GCC internal prototype to avoid an error.
24609    Use char because int might match the return type of a GCC
24610    builtin and then its argument prototype would still apply.  */
24611 #ifdef __cplusplus
24612 extern "C"
24613 #endif
24614 char $ac_func ();
24615 /* The GNU C library defines this for functions which it implements
24616     to always fail with ENOSYS.  Some functions are actually named
24617     something starting with __ and the normal name is an alias.  */
24618 #if defined __stub_$ac_func || defined __stub___$ac_func
24619 choke me
24620 #endif
24621
24622 int
24623 main ()
24624 {
24625 return $ac_func ();
24626   ;
24627   return 0;
24628 }
24629 _ACEOF
24630 rm -f conftest.$ac_objext conftest$ac_exeext
24631 if { (ac_try="$ac_link"
24632 case "(($ac_try" in
24633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24634   *) ac_try_echo=$ac_try;;
24635 esac
24636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24637   (eval "$ac_link") 2>conftest.er1
24638   ac_status=$?
24639   grep -v '^ *+' conftest.er1 >conftest.err
24640   rm -f conftest.er1
24641   cat conftest.err >&5
24642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643   (exit $ac_status); } && {
24644          test -z "$ac_c_werror_flag" ||
24645          test ! -s conftest.err
24646        } && test -s conftest$ac_exeext &&
24647        $as_test_x conftest$ac_exeext; then
24648   eval "$as_ac_var=yes"
24649 else
24650   echo "$as_me: failed program was:" >&5
24651 sed 's/^/| /' conftest.$ac_ext >&5
24652
24653         eval "$as_ac_var=no"
24654 fi
24655
24656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24657       conftest$ac_exeext conftest.$ac_ext
24658 fi
24659 ac_res=`eval echo '${'$as_ac_var'}'`
24660                { echo "$as_me:$LINENO: result: $ac_res" >&5
24661 echo "${ECHO_T}$ac_res" >&6; }
24662 if test `eval echo '${'$as_ac_var'}'` = yes; then
24663   cat >>confdefs.h <<_ACEOF
24664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24665 _ACEOF
24666
24667 { echo "$as_me:$LINENO: checking for _doprnt" >&5
24668 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
24669 if test "${ac_cv_func__doprnt+set}" = set; then
24670   echo $ECHO_N "(cached) $ECHO_C" >&6
24671 else
24672   cat >conftest.$ac_ext <<_ACEOF
24673 /* confdefs.h.  */
24674 _ACEOF
24675 cat confdefs.h >>conftest.$ac_ext
24676 cat >>conftest.$ac_ext <<_ACEOF
24677 /* end confdefs.h.  */
24678 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
24679    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24680 #define _doprnt innocuous__doprnt
24681
24682 /* System header to define __stub macros and hopefully few prototypes,
24683     which can conflict with char _doprnt (); below.
24684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24685     <limits.h> exists even on freestanding compilers.  */
24686
24687 #ifdef __STDC__
24688 # include <limits.h>
24689 #else
24690 # include <assert.h>
24691 #endif
24692
24693 #undef _doprnt
24694
24695 /* Override any GCC internal prototype to avoid an error.
24696    Use char because int might match the return type of a GCC
24697    builtin and then its argument prototype would still apply.  */
24698 #ifdef __cplusplus
24699 extern "C"
24700 #endif
24701 char _doprnt ();
24702 /* The GNU C library defines this for functions which it implements
24703     to always fail with ENOSYS.  Some functions are actually named
24704     something starting with __ and the normal name is an alias.  */
24705 #if defined __stub__doprnt || defined __stub____doprnt
24706 choke me
24707 #endif
24708
24709 int
24710 main ()
24711 {
24712 return _doprnt ();
24713   ;
24714   return 0;
24715 }
24716 _ACEOF
24717 rm -f conftest.$ac_objext conftest$ac_exeext
24718 if { (ac_try="$ac_link"
24719 case "(($ac_try" in
24720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721   *) ac_try_echo=$ac_try;;
24722 esac
24723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24724   (eval "$ac_link") 2>conftest.er1
24725   ac_status=$?
24726   grep -v '^ *+' conftest.er1 >conftest.err
24727   rm -f conftest.er1
24728   cat conftest.err >&5
24729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730   (exit $ac_status); } && {
24731          test -z "$ac_c_werror_flag" ||
24732          test ! -s conftest.err
24733        } && test -s conftest$ac_exeext &&
24734        $as_test_x conftest$ac_exeext; then
24735   ac_cv_func__doprnt=yes
24736 else
24737   echo "$as_me: failed program was:" >&5
24738 sed 's/^/| /' conftest.$ac_ext >&5
24739
24740         ac_cv_func__doprnt=no
24741 fi
24742
24743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24744       conftest$ac_exeext conftest.$ac_ext
24745 fi
24746 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
24747 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
24748 if test $ac_cv_func__doprnt = yes; then
24749
24750 cat >>confdefs.h <<\_ACEOF
24751 #define HAVE_DOPRNT 1
24752 _ACEOF
24753
24754 fi
24755
24756 fi
24757 done
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768 for ac_func in mmap select socket strcspn strerror strspn getpagesize sysconf
24769 do
24770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24774   echo $ECHO_N "(cached) $ECHO_C" >&6
24775 else
24776   cat >conftest.$ac_ext <<_ACEOF
24777 /* confdefs.h.  */
24778 _ACEOF
24779 cat confdefs.h >>conftest.$ac_ext
24780 cat >>conftest.$ac_ext <<_ACEOF
24781 /* end confdefs.h.  */
24782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24784 #define $ac_func innocuous_$ac_func
24785
24786 /* System header to define __stub macros and hopefully few prototypes,
24787     which can conflict with char $ac_func (); below.
24788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24789     <limits.h> exists even on freestanding compilers.  */
24790
24791 #ifdef __STDC__
24792 # include <limits.h>
24793 #else
24794 # include <assert.h>
24795 #endif
24796
24797 #undef $ac_func
24798
24799 /* Override any GCC internal prototype to avoid an error.
24800    Use char because int might match the return type of a GCC
24801    builtin and then its argument prototype would still apply.  */
24802 #ifdef __cplusplus
24803 extern "C"
24804 #endif
24805 char $ac_func ();
24806 /* The GNU C library defines this for functions which it implements
24807     to always fail with ENOSYS.  Some functions are actually named
24808     something starting with __ and the normal name is an alias.  */
24809 #if defined __stub_$ac_func || defined __stub___$ac_func
24810 choke me
24811 #endif
24812
24813 int
24814 main ()
24815 {
24816 return $ac_func ();
24817   ;
24818   return 0;
24819 }
24820 _ACEOF
24821 rm -f conftest.$ac_objext conftest$ac_exeext
24822 if { (ac_try="$ac_link"
24823 case "(($ac_try" in
24824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24825   *) ac_try_echo=$ac_try;;
24826 esac
24827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24828   (eval "$ac_link") 2>conftest.er1
24829   ac_status=$?
24830   grep -v '^ *+' conftest.er1 >conftest.err
24831   rm -f conftest.er1
24832   cat conftest.err >&5
24833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834   (exit $ac_status); } && {
24835          test -z "$ac_c_werror_flag" ||
24836          test ! -s conftest.err
24837        } && test -s conftest$ac_exeext &&
24838        $as_test_x conftest$ac_exeext; then
24839   eval "$as_ac_var=yes"
24840 else
24841   echo "$as_me: failed program was:" >&5
24842 sed 's/^/| /' conftest.$ac_ext >&5
24843
24844         eval "$as_ac_var=no"
24845 fi
24846
24847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24848       conftest$ac_exeext conftest.$ac_ext
24849 fi
24850 ac_res=`eval echo '${'$as_ac_var'}'`
24851                { echo "$as_me:$LINENO: result: $ac_res" >&5
24852 echo "${ECHO_T}$ac_res" >&6; }
24853 if test `eval echo '${'$as_ac_var'}'` = yes; then
24854   cat >>confdefs.h <<_ACEOF
24855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24856 _ACEOF
24857
24858 fi
24859 done
24860
24861
24862
24863
24864
24865 for ac_func in snprintf gettimeofday nanosleep sched_setscheduler
24866 do
24867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24871   echo $ECHO_N "(cached) $ECHO_C" >&6
24872 else
24873   cat >conftest.$ac_ext <<_ACEOF
24874 /* confdefs.h.  */
24875 _ACEOF
24876 cat confdefs.h >>conftest.$ac_ext
24877 cat >>conftest.$ac_ext <<_ACEOF
24878 /* end confdefs.h.  */
24879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24880    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24881 #define $ac_func innocuous_$ac_func
24882
24883 /* System header to define __stub macros and hopefully few prototypes,
24884     which can conflict with char $ac_func (); below.
24885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24886     <limits.h> exists even on freestanding compilers.  */
24887
24888 #ifdef __STDC__
24889 # include <limits.h>
24890 #else
24891 # include <assert.h>
24892 #endif
24893
24894 #undef $ac_func
24895
24896 /* Override any GCC internal prototype to avoid an error.
24897    Use char because int might match the return type of a GCC
24898    builtin and then its argument prototype would still apply.  */
24899 #ifdef __cplusplus
24900 extern "C"
24901 #endif
24902 char $ac_func ();
24903 /* The GNU C library defines this for functions which it implements
24904     to always fail with ENOSYS.  Some functions are actually named
24905     something starting with __ and the normal name is an alias.  */
24906 #if defined __stub_$ac_func || defined __stub___$ac_func
24907 choke me
24908 #endif
24909
24910 int
24911 main ()
24912 {
24913 return $ac_func ();
24914   ;
24915   return 0;
24916 }
24917 _ACEOF
24918 rm -f conftest.$ac_objext conftest$ac_exeext
24919 if { (ac_try="$ac_link"
24920 case "(($ac_try" in
24921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24922   *) ac_try_echo=$ac_try;;
24923 esac
24924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24925   (eval "$ac_link") 2>conftest.er1
24926   ac_status=$?
24927   grep -v '^ *+' conftest.er1 >conftest.err
24928   rm -f conftest.er1
24929   cat conftest.err >&5
24930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931   (exit $ac_status); } && {
24932          test -z "$ac_c_werror_flag" ||
24933          test ! -s conftest.err
24934        } && test -s conftest$ac_exeext &&
24935        $as_test_x conftest$ac_exeext; then
24936   eval "$as_ac_var=yes"
24937 else
24938   echo "$as_me: failed program was:" >&5
24939 sed 's/^/| /' conftest.$ac_ext >&5
24940
24941         eval "$as_ac_var=no"
24942 fi
24943
24944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24945       conftest$ac_exeext conftest.$ac_ext
24946 fi
24947 ac_res=`eval echo '${'$as_ac_var'}'`
24948                { echo "$as_me:$LINENO: result: $ac_res" >&5
24949 echo "${ECHO_T}$ac_res" >&6; }
24950 if test `eval echo '${'$as_ac_var'}'` = yes; then
24951   cat >>confdefs.h <<_ACEOF
24952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24953 _ACEOF
24954
24955 fi
24956 done
24957
24958
24959
24960 for ac_func in modf sqrt
24961 do
24962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24963 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24966   echo $ECHO_N "(cached) $ECHO_C" >&6
24967 else
24968   cat >conftest.$ac_ext <<_ACEOF
24969 /* confdefs.h.  */
24970 _ACEOF
24971 cat confdefs.h >>conftest.$ac_ext
24972 cat >>conftest.$ac_ext <<_ACEOF
24973 /* end confdefs.h.  */
24974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24976 #define $ac_func innocuous_$ac_func
24977
24978 /* System header to define __stub macros and hopefully few prototypes,
24979     which can conflict with char $ac_func (); below.
24980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24981     <limits.h> exists even on freestanding compilers.  */
24982
24983 #ifdef __STDC__
24984 # include <limits.h>
24985 #else
24986 # include <assert.h>
24987 #endif
24988
24989 #undef $ac_func
24990
24991 /* Override any GCC internal prototype to avoid an error.
24992    Use char because int might match the return type of a GCC
24993    builtin and then its argument prototype would still apply.  */
24994 #ifdef __cplusplus
24995 extern "C"
24996 #endif
24997 char $ac_func ();
24998 /* The GNU C library defines this for functions which it implements
24999     to always fail with ENOSYS.  Some functions are actually named
25000     something starting with __ and the normal name is an alias.  */
25001 #if defined __stub_$ac_func || defined __stub___$ac_func
25002 choke me
25003 #endif
25004
25005 int
25006 main ()
25007 {
25008 return $ac_func ();
25009   ;
25010   return 0;
25011 }
25012 _ACEOF
25013 rm -f conftest.$ac_objext conftest$ac_exeext
25014 if { (ac_try="$ac_link"
25015 case "(($ac_try" in
25016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25017   *) ac_try_echo=$ac_try;;
25018 esac
25019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25020   (eval "$ac_link") 2>conftest.er1
25021   ac_status=$?
25022   grep -v '^ *+' conftest.er1 >conftest.err
25023   rm -f conftest.er1
25024   cat conftest.err >&5
25025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026   (exit $ac_status); } && {
25027          test -z "$ac_c_werror_flag" ||
25028          test ! -s conftest.err
25029        } && test -s conftest$ac_exeext &&
25030        $as_test_x conftest$ac_exeext; then
25031   eval "$as_ac_var=yes"
25032 else
25033   echo "$as_me: failed program was:" >&5
25034 sed 's/^/| /' conftest.$ac_ext >&5
25035
25036         eval "$as_ac_var=no"
25037 fi
25038
25039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25040       conftest$ac_exeext conftest.$ac_ext
25041 fi
25042 ac_res=`eval echo '${'$as_ac_var'}'`
25043                { echo "$as_me:$LINENO: result: $ac_res" >&5
25044 echo "${ECHO_T}$ac_res" >&6; }
25045 if test `eval echo '${'$as_ac_var'}'` = yes; then
25046   cat >>confdefs.h <<_ACEOF
25047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25048 _ACEOF
25049
25050 fi
25051 done
25052
25053
25054 { echo "$as_me:$LINENO: checking for sincos in -lm" >&5
25055 echo $ECHO_N "checking for sincos in -lm... $ECHO_C" >&6; }
25056 if test "${ac_cv_lib_m_sincos+set}" = set; then
25057   echo $ECHO_N "(cached) $ECHO_C" >&6
25058 else
25059   ac_check_lib_save_LIBS=$LIBS
25060 LIBS="-lm  $LIBS"
25061 cat >conftest.$ac_ext <<_ACEOF
25062 /* confdefs.h.  */
25063 _ACEOF
25064 cat confdefs.h >>conftest.$ac_ext
25065 cat >>conftest.$ac_ext <<_ACEOF
25066 /* end confdefs.h.  */
25067
25068 /* Override any GCC internal prototype to avoid an error.
25069    Use char because int might match the return type of a GCC
25070    builtin and then its argument prototype would still apply.  */
25071 #ifdef __cplusplus
25072 extern "C"
25073 #endif
25074 char sincos ();
25075 int
25076 main ()
25077 {
25078 return sincos ();
25079   ;
25080   return 0;
25081 }
25082 _ACEOF
25083 rm -f conftest.$ac_objext conftest$ac_exeext
25084 if { (ac_try="$ac_link"
25085 case "(($ac_try" in
25086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25087   *) ac_try_echo=$ac_try;;
25088 esac
25089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25090   (eval "$ac_link") 2>conftest.er1
25091   ac_status=$?
25092   grep -v '^ *+' conftest.er1 >conftest.err
25093   rm -f conftest.er1
25094   cat conftest.err >&5
25095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096   (exit $ac_status); } && {
25097          test -z "$ac_c_werror_flag" ||
25098          test ! -s conftest.err
25099        } && test -s conftest$ac_exeext &&
25100        $as_test_x conftest$ac_exeext; then
25101   ac_cv_lib_m_sincos=yes
25102 else
25103   echo "$as_me: failed program was:" >&5
25104 sed 's/^/| /' conftest.$ac_ext >&5
25105
25106         ac_cv_lib_m_sincos=no
25107 fi
25108
25109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25110       conftest$ac_exeext conftest.$ac_ext
25111 LIBS=$ac_check_lib_save_LIBS
25112 fi
25113 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sincos" >&5
25114 echo "${ECHO_T}$ac_cv_lib_m_sincos" >&6; }
25115 if test $ac_cv_lib_m_sincos = yes; then
25116
25117 cat >>confdefs.h <<\_ACEOF
25118 #define HAVE_SINCOS 1
25119 _ACEOF
25120
25121 fi
25122
25123 { echo "$as_me:$LINENO: checking for sincosf in -lm" >&5
25124 echo $ECHO_N "checking for sincosf in -lm... $ECHO_C" >&6; }
25125 if test "${ac_cv_lib_m_sincosf+set}" = set; then
25126   echo $ECHO_N "(cached) $ECHO_C" >&6
25127 else
25128   ac_check_lib_save_LIBS=$LIBS
25129 LIBS="-lm  $LIBS"
25130 cat >conftest.$ac_ext <<_ACEOF
25131 /* confdefs.h.  */
25132 _ACEOF
25133 cat confdefs.h >>conftest.$ac_ext
25134 cat >>conftest.$ac_ext <<_ACEOF
25135 /* end confdefs.h.  */
25136
25137 /* Override any GCC internal prototype to avoid an error.
25138    Use char because int might match the return type of a GCC
25139    builtin and then its argument prototype would still apply.  */
25140 #ifdef __cplusplus
25141 extern "C"
25142 #endif
25143 char sincosf ();
25144 int
25145 main ()
25146 {
25147 return sincosf ();
25148   ;
25149   return 0;
25150 }
25151 _ACEOF
25152 rm -f conftest.$ac_objext conftest$ac_exeext
25153 if { (ac_try="$ac_link"
25154 case "(($ac_try" in
25155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156   *) ac_try_echo=$ac_try;;
25157 esac
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159   (eval "$ac_link") 2>conftest.er1
25160   ac_status=$?
25161   grep -v '^ *+' conftest.er1 >conftest.err
25162   rm -f conftest.er1
25163   cat conftest.err >&5
25164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165   (exit $ac_status); } && {
25166          test -z "$ac_c_werror_flag" ||
25167          test ! -s conftest.err
25168        } && test -s conftest$ac_exeext &&
25169        $as_test_x conftest$ac_exeext; then
25170   ac_cv_lib_m_sincosf=yes
25171 else
25172   echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25174
25175         ac_cv_lib_m_sincosf=no
25176 fi
25177
25178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25179       conftest$ac_exeext conftest.$ac_ext
25180 LIBS=$ac_check_lib_save_LIBS
25181 fi
25182 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sincosf" >&5
25183 echo "${ECHO_T}$ac_cv_lib_m_sincosf" >&6; }
25184 if test $ac_cv_lib_m_sincosf = yes; then
25185
25186 cat >>confdefs.h <<\_ACEOF
25187 #define HAVE_SINCOSF 1
25188 _ACEOF
25189
25190 fi
25191
25192 { echo "$as_me:$LINENO: checking for sinf in -lm" >&5
25193 echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6; }
25194 if test "${ac_cv_lib_m_sinf+set}" = set; then
25195   echo $ECHO_N "(cached) $ECHO_C" >&6
25196 else
25197   ac_check_lib_save_LIBS=$LIBS
25198 LIBS="-lm  $LIBS"
25199 cat >conftest.$ac_ext <<_ACEOF
25200 /* confdefs.h.  */
25201 _ACEOF
25202 cat confdefs.h >>conftest.$ac_ext
25203 cat >>conftest.$ac_ext <<_ACEOF
25204 /* end confdefs.h.  */
25205
25206 /* Override any GCC internal prototype to avoid an error.
25207    Use char because int might match the return type of a GCC
25208    builtin and then its argument prototype would still apply.  */
25209 #ifdef __cplusplus
25210 extern "C"
25211 #endif
25212 char sinf ();
25213 int
25214 main ()
25215 {
25216 return sinf ();
25217   ;
25218   return 0;
25219 }
25220 _ACEOF
25221 rm -f conftest.$ac_objext conftest$ac_exeext
25222 if { (ac_try="$ac_link"
25223 case "(($ac_try" in
25224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25225   *) ac_try_echo=$ac_try;;
25226 esac
25227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25228   (eval "$ac_link") 2>conftest.er1
25229   ac_status=$?
25230   grep -v '^ *+' conftest.er1 >conftest.err
25231   rm -f conftest.er1
25232   cat conftest.err >&5
25233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234   (exit $ac_status); } && {
25235          test -z "$ac_c_werror_flag" ||
25236          test ! -s conftest.err
25237        } && test -s conftest$ac_exeext &&
25238        $as_test_x conftest$ac_exeext; then
25239   ac_cv_lib_m_sinf=yes
25240 else
25241   echo "$as_me: failed program was:" >&5
25242 sed 's/^/| /' conftest.$ac_ext >&5
25243
25244         ac_cv_lib_m_sinf=no
25245 fi
25246
25247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25248       conftest$ac_exeext conftest.$ac_ext
25249 LIBS=$ac_check_lib_save_LIBS
25250 fi
25251 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
25252 echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6; }
25253 if test $ac_cv_lib_m_sinf = yes; then
25254
25255 cat >>confdefs.h <<\_ACEOF
25256 #define HAVE_SINF 1
25257 _ACEOF
25258
25259 fi
25260
25261 { echo "$as_me:$LINENO: checking for cosf in -lm" >&5
25262 echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6; }
25263 if test "${ac_cv_lib_m_cosf+set}" = set; then
25264   echo $ECHO_N "(cached) $ECHO_C" >&6
25265 else
25266   ac_check_lib_save_LIBS=$LIBS
25267 LIBS="-lm  $LIBS"
25268 cat >conftest.$ac_ext <<_ACEOF
25269 /* confdefs.h.  */
25270 _ACEOF
25271 cat confdefs.h >>conftest.$ac_ext
25272 cat >>conftest.$ac_ext <<_ACEOF
25273 /* end confdefs.h.  */
25274
25275 /* Override any GCC internal prototype to avoid an error.
25276    Use char because int might match the return type of a GCC
25277    builtin and then its argument prototype would still apply.  */
25278 #ifdef __cplusplus
25279 extern "C"
25280 #endif
25281 char cosf ();
25282 int
25283 main ()
25284 {
25285 return cosf ();
25286   ;
25287   return 0;
25288 }
25289 _ACEOF
25290 rm -f conftest.$ac_objext conftest$ac_exeext
25291 if { (ac_try="$ac_link"
25292 case "(($ac_try" in
25293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25294   *) ac_try_echo=$ac_try;;
25295 esac
25296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25297   (eval "$ac_link") 2>conftest.er1
25298   ac_status=$?
25299   grep -v '^ *+' conftest.er1 >conftest.err
25300   rm -f conftest.er1
25301   cat conftest.err >&5
25302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303   (exit $ac_status); } && {
25304          test -z "$ac_c_werror_flag" ||
25305          test ! -s conftest.err
25306        } && test -s conftest$ac_exeext &&
25307        $as_test_x conftest$ac_exeext; then
25308   ac_cv_lib_m_cosf=yes
25309 else
25310   echo "$as_me: failed program was:" >&5
25311 sed 's/^/| /' conftest.$ac_ext >&5
25312
25313         ac_cv_lib_m_cosf=no
25314 fi
25315
25316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25317       conftest$ac_exeext conftest.$ac_ext
25318 LIBS=$ac_check_lib_save_LIBS
25319 fi
25320 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
25321 echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6; }
25322 if test $ac_cv_lib_m_cosf = yes; then
25323
25324 cat >>confdefs.h <<\_ACEOF
25325 #define HAVE_COSF 1
25326 _ACEOF
25327
25328 fi
25329
25330 { echo "$as_me:$LINENO: checking for trunc in -lm" >&5
25331 echo $ECHO_N "checking for trunc in -lm... $ECHO_C" >&6; }
25332 if test "${ac_cv_lib_m_trunc+set}" = set; then
25333   echo $ECHO_N "(cached) $ECHO_C" >&6
25334 else
25335   ac_check_lib_save_LIBS=$LIBS
25336 LIBS="-lm  $LIBS"
25337 cat >conftest.$ac_ext <<_ACEOF
25338 /* confdefs.h.  */
25339 _ACEOF
25340 cat confdefs.h >>conftest.$ac_ext
25341 cat >>conftest.$ac_ext <<_ACEOF
25342 /* end confdefs.h.  */
25343
25344 /* Override any GCC internal prototype to avoid an error.
25345    Use char because int might match the return type of a GCC
25346    builtin and then its argument prototype would still apply.  */
25347 #ifdef __cplusplus
25348 extern "C"
25349 #endif
25350 char trunc ();
25351 int
25352 main ()
25353 {
25354 return trunc ();
25355   ;
25356   return 0;
25357 }
25358 _ACEOF
25359 rm -f conftest.$ac_objext conftest$ac_exeext
25360 if { (ac_try="$ac_link"
25361 case "(($ac_try" in
25362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25363   *) ac_try_echo=$ac_try;;
25364 esac
25365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25366   (eval "$ac_link") 2>conftest.er1
25367   ac_status=$?
25368   grep -v '^ *+' conftest.er1 >conftest.err
25369   rm -f conftest.er1
25370   cat conftest.err >&5
25371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372   (exit $ac_status); } && {
25373          test -z "$ac_c_werror_flag" ||
25374          test ! -s conftest.err
25375        } && test -s conftest$ac_exeext &&
25376        $as_test_x conftest$ac_exeext; then
25377   ac_cv_lib_m_trunc=yes
25378 else
25379   echo "$as_me: failed program was:" >&5
25380 sed 's/^/| /' conftest.$ac_ext >&5
25381
25382         ac_cv_lib_m_trunc=no
25383 fi
25384
25385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25386       conftest$ac_exeext conftest.$ac_ext
25387 LIBS=$ac_check_lib_save_LIBS
25388 fi
25389 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5
25390 echo "${ECHO_T}$ac_cv_lib_m_trunc" >&6; }
25391 if test $ac_cv_lib_m_trunc = yes; then
25392
25393 cat >>confdefs.h <<\_ACEOF
25394 #define HAVE_TRUNC 1
25395 _ACEOF
25396
25397 fi
25398
25399 { echo "$as_me:$LINENO: checking for exp10 in -lm" >&5
25400 echo $ECHO_N "checking for exp10 in -lm... $ECHO_C" >&6; }
25401 if test "${ac_cv_lib_m_exp10+set}" = set; then
25402   echo $ECHO_N "(cached) $ECHO_C" >&6
25403 else
25404   ac_check_lib_save_LIBS=$LIBS
25405 LIBS="-lm  $LIBS"
25406 cat >conftest.$ac_ext <<_ACEOF
25407 /* confdefs.h.  */
25408 _ACEOF
25409 cat confdefs.h >>conftest.$ac_ext
25410 cat >>conftest.$ac_ext <<_ACEOF
25411 /* end confdefs.h.  */
25412
25413 /* Override any GCC internal prototype to avoid an error.
25414    Use char because int might match the return type of a GCC
25415    builtin and then its argument prototype would still apply.  */
25416 #ifdef __cplusplus
25417 extern "C"
25418 #endif
25419 char exp10 ();
25420 int
25421 main ()
25422 {
25423 return exp10 ();
25424   ;
25425   return 0;
25426 }
25427 _ACEOF
25428 rm -f conftest.$ac_objext conftest$ac_exeext
25429 if { (ac_try="$ac_link"
25430 case "(($ac_try" in
25431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25432   *) ac_try_echo=$ac_try;;
25433 esac
25434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25435   (eval "$ac_link") 2>conftest.er1
25436   ac_status=$?
25437   grep -v '^ *+' conftest.er1 >conftest.err
25438   rm -f conftest.er1
25439   cat conftest.err >&5
25440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25441   (exit $ac_status); } && {
25442          test -z "$ac_c_werror_flag" ||
25443          test ! -s conftest.err
25444        } && test -s conftest$ac_exeext &&
25445        $as_test_x conftest$ac_exeext; then
25446   ac_cv_lib_m_exp10=yes
25447 else
25448   echo "$as_me: failed program was:" >&5
25449 sed 's/^/| /' conftest.$ac_ext >&5
25450
25451         ac_cv_lib_m_exp10=no
25452 fi
25453
25454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25455       conftest$ac_exeext conftest.$ac_ext
25456 LIBS=$ac_check_lib_save_LIBS
25457 fi
25458 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_exp10" >&5
25459 echo "${ECHO_T}$ac_cv_lib_m_exp10" >&6; }
25460 if test $ac_cv_lib_m_exp10 = yes; then
25461
25462 cat >>confdefs.h <<\_ACEOF
25463 #define HAVE_EXP10 1
25464 _ACEOF
25465
25466 fi
25467
25468 #AC_FUNC_MKTIME
25469
25470
25471
25472
25473
25474   SHM_OPEN_LIBS=""
25475   save_LIBS="$LIBS"
25476   { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
25477 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
25478 if test "${ac_cv_search_shm_open+set}" = set; then
25479   echo $ECHO_N "(cached) $ECHO_C" >&6
25480 else
25481   ac_func_search_save_LIBS=$LIBS
25482 cat >conftest.$ac_ext <<_ACEOF
25483 /* confdefs.h.  */
25484 _ACEOF
25485 cat confdefs.h >>conftest.$ac_ext
25486 cat >>conftest.$ac_ext <<_ACEOF
25487 /* end confdefs.h.  */
25488
25489 /* Override any GCC internal prototype to avoid an error.
25490    Use char because int might match the return type of a GCC
25491    builtin and then its argument prototype would still apply.  */
25492 #ifdef __cplusplus
25493 extern "C"
25494 #endif
25495 char shm_open ();
25496 int
25497 main ()
25498 {
25499 return shm_open ();
25500   ;
25501   return 0;
25502 }
25503 _ACEOF
25504 for ac_lib in '' rt; do
25505   if test -z "$ac_lib"; then
25506     ac_res="none required"
25507   else
25508     ac_res=-l$ac_lib
25509     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25510   fi
25511   rm -f conftest.$ac_objext conftest$ac_exeext
25512 if { (ac_try="$ac_link"
25513 case "(($ac_try" in
25514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25515   *) ac_try_echo=$ac_try;;
25516 esac
25517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25518   (eval "$ac_link") 2>conftest.er1
25519   ac_status=$?
25520   grep -v '^ *+' conftest.er1 >conftest.err
25521   rm -f conftest.er1
25522   cat conftest.err >&5
25523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524   (exit $ac_status); } && {
25525          test -z "$ac_c_werror_flag" ||
25526          test ! -s conftest.err
25527        } && test -s conftest$ac_exeext &&
25528        $as_test_x conftest$ac_exeext; then
25529   ac_cv_search_shm_open=$ac_res
25530 else
25531   echo "$as_me: failed program was:" >&5
25532 sed 's/^/| /' conftest.$ac_ext >&5
25533
25534
25535 fi
25536
25537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25538       conftest$ac_exeext
25539   if test "${ac_cv_search_shm_open+set}" = set; then
25540   break
25541 fi
25542 done
25543 if test "${ac_cv_search_shm_open+set}" = set; then
25544   :
25545 else
25546   ac_cv_search_shm_open=no
25547 fi
25548 rm conftest.$ac_ext
25549 LIBS=$ac_func_search_save_LIBS
25550 fi
25551 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
25552 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
25553 ac_res=$ac_cv_search_shm_open
25554 if test "$ac_res" != no; then
25555   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25556   SHM_OPEN_LIBS="$LIBS"
25557 fi
25558
25559
25560 for ac_func in shm_open
25561 do
25562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25566   echo $ECHO_N "(cached) $ECHO_C" >&6
25567 else
25568   cat >conftest.$ac_ext <<_ACEOF
25569 /* confdefs.h.  */
25570 _ACEOF
25571 cat confdefs.h >>conftest.$ac_ext
25572 cat >>conftest.$ac_ext <<_ACEOF
25573 /* end confdefs.h.  */
25574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25576 #define $ac_func innocuous_$ac_func
25577
25578 /* System header to define __stub macros and hopefully few prototypes,
25579     which can conflict with char $ac_func (); below.
25580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25581     <limits.h> exists even on freestanding compilers.  */
25582
25583 #ifdef __STDC__
25584 # include <limits.h>
25585 #else
25586 # include <assert.h>
25587 #endif
25588
25589 #undef $ac_func
25590
25591 /* Override any GCC internal prototype to avoid an error.
25592    Use char because int might match the return type of a GCC
25593    builtin and then its argument prototype would still apply.  */
25594 #ifdef __cplusplus
25595 extern "C"
25596 #endif
25597 char $ac_func ();
25598 /* The GNU C library defines this for functions which it implements
25599     to always fail with ENOSYS.  Some functions are actually named
25600     something starting with __ and the normal name is an alias.  */
25601 #if defined __stub_$ac_func || defined __stub___$ac_func
25602 choke me
25603 #endif
25604
25605 int
25606 main ()
25607 {
25608 return $ac_func ();
25609   ;
25610   return 0;
25611 }
25612 _ACEOF
25613 rm -f conftest.$ac_objext conftest$ac_exeext
25614 if { (ac_try="$ac_link"
25615 case "(($ac_try" in
25616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25617   *) ac_try_echo=$ac_try;;
25618 esac
25619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25620   (eval "$ac_link") 2>conftest.er1
25621   ac_status=$?
25622   grep -v '^ *+' conftest.er1 >conftest.err
25623   rm -f conftest.er1
25624   cat conftest.err >&5
25625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626   (exit $ac_status); } && {
25627          test -z "$ac_c_werror_flag" ||
25628          test ! -s conftest.err
25629        } && test -s conftest$ac_exeext &&
25630        $as_test_x conftest$ac_exeext; then
25631   eval "$as_ac_var=yes"
25632 else
25633   echo "$as_me: failed program was:" >&5
25634 sed 's/^/| /' conftest.$ac_ext >&5
25635
25636         eval "$as_ac_var=no"
25637 fi
25638
25639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25640       conftest$ac_exeext conftest.$ac_ext
25641 fi
25642 ac_res=`eval echo '${'$as_ac_var'}'`
25643                { echo "$as_me:$LINENO: result: $ac_res" >&5
25644 echo "${ECHO_T}$ac_res" >&6; }
25645 if test `eval echo '${'$as_ac_var'}'` = yes; then
25646   cat >>confdefs.h <<_ACEOF
25647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25648 _ACEOF
25649
25650 fi
25651 done
25652
25653   LIBS="$save_LIBS"
25654
25655
25656
25657
25658 # on Mingw32 extra LDFLAGS are required to ease global variable linking
25659 LIBGNURADIO_CORE_EXTRA_LDFLAGS=""
25660
25661 { echo "$as_me:$LINENO: checking whether $LD accepts --enable-runtime-pseudo-reloc" >&5
25662 echo $ECHO_N "checking whether $LD accepts --enable-runtime-pseudo-reloc... $ECHO_C" >&6; }
25663 if ${LD} --enable-runtime-pseudo-reloc --version >/dev/null 2>&1
25664 then
25665         # libtool requires the quotes
25666         LIBGNURADIO_CORE_EXTRA_LDFLAGS="\"-Wl,--enable-runtime-pseudo-reloc\""
25667         { echo "$as_me:$LINENO: result: yes" >&5
25668 echo "${ECHO_T}yes" >&6; }
25669 else
25670         { echo "$as_me:$LINENO: result: no" >&5
25671 echo "${ECHO_T}no" >&6; }
25672 fi
25673
25674
25675
25676
25677
25678   { echo "$as_me:$LINENO: checking for CreateFileMapping function" >&5
25679 echo $ECHO_N "checking for CreateFileMapping function... $ECHO_C" >&6; }
25680   cat >conftest.$ac_ext <<_ACEOF
25681
25682 #include <windows.h>
25683 int main (int argc, char **argv)
25684 {
25685     HANDLE handle;
25686     int size;
25687     char                seg_name[1024];
25688     handle = CreateFileMapping(
25689                      INVALID_HANDLE_VALUE,    // use paging file
25690                      NULL,                    // default security
25691                      PAGE_READWRITE,          // read/write access
25692                      0,                       // max. object size
25693                      size,                // buffer size
25694                      seg_name);                 // name of mapping object
25695     return 0;
25696 }
25697
25698 _ACEOF
25699 rm -f conftest.$ac_objext
25700 if { (ac_try="$ac_compile"
25701 case "(($ac_try" in
25702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25703   *) ac_try_echo=$ac_try;;
25704 esac
25705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25706   (eval "$ac_compile") 2>conftest.er1
25707   ac_status=$?
25708   grep -v '^ *+' conftest.er1 >conftest.err
25709   rm -f conftest.er1
25710   cat conftest.err >&5
25711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712   (exit $ac_status); } && {
25713          test -z "$ac_c_werror_flag" ||
25714          test ! -s conftest.err
25715        } && test -s conftest.$ac_objext; then
25716   HAVE_CREATEFILEMAPPING=yes
25717
25718 cat >>confdefs.h <<\_ACEOF
25719 #define HAVE_CREATEFILEMAPPING 1
25720 _ACEOF
25721
25722 else
25723   echo "$as_me: failed program was:" >&5
25724 sed 's/^/| /' conftest.$ac_ext >&5
25725
25726         HAVE_CREATEFILEMAPPING=no
25727 fi
25728
25729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25730
25731   { echo "$as_me:$LINENO: result: $HAVE_CREATEFILEMAPPING" >&5
25732 echo "${ECHO_T}$HAVE_CREATEFILEMAPPING" >&6; }
25733
25734
25735 if test x$HAVE_CREATEFILEMAPPING = xyes; then
25736   HAVE_CREATEFILEMAPPING_TRUE=
25737   HAVE_CREATEFILEMAPPING_FALSE='#'
25738 else
25739   HAVE_CREATEFILEMAPPING_TRUE='#'
25740   HAVE_CREATEFILEMAPPING_FALSE=
25741 fi
25742
25743
25744
25745
25746
25747
25748
25749
25750 for ac_header in sys/types.h fcntl.h io.h
25751 do
25752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25754   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25757   echo $ECHO_N "(cached) $ECHO_C" >&6
25758 fi
25759 ac_res=`eval echo '${'$as_ac_Header'}'`
25760                { echo "$as_me:$LINENO: result: $ac_res" >&5
25761 echo "${ECHO_T}$ac_res" >&6; }
25762 else
25763   # Is the header compilable?
25764 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25766 cat >conftest.$ac_ext <<_ACEOF
25767 /* confdefs.h.  */
25768 _ACEOF
25769 cat confdefs.h >>conftest.$ac_ext
25770 cat >>conftest.$ac_ext <<_ACEOF
25771 /* end confdefs.h.  */
25772 $ac_includes_default
25773 #include <$ac_header>
25774 _ACEOF
25775 rm -f conftest.$ac_objext
25776 if { (ac_try="$ac_compile"
25777 case "(($ac_try" in
25778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25779   *) ac_try_echo=$ac_try;;
25780 esac
25781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25782   (eval "$ac_compile") 2>conftest.er1
25783   ac_status=$?
25784   grep -v '^ *+' conftest.er1 >conftest.err
25785   rm -f conftest.er1
25786   cat conftest.err >&5
25787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788   (exit $ac_status); } && {
25789          test -z "$ac_c_werror_flag" ||
25790          test ! -s conftest.err
25791        } && test -s conftest.$ac_objext; then
25792   ac_header_compiler=yes
25793 else
25794   echo "$as_me: failed program was:" >&5
25795 sed 's/^/| /' conftest.$ac_ext >&5
25796
25797         ac_header_compiler=no
25798 fi
25799
25800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25802 echo "${ECHO_T}$ac_header_compiler" >&6; }
25803
25804 # Is the header present?
25805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25807 cat >conftest.$ac_ext <<_ACEOF
25808 /* confdefs.h.  */
25809 _ACEOF
25810 cat confdefs.h >>conftest.$ac_ext
25811 cat >>conftest.$ac_ext <<_ACEOF
25812 /* end confdefs.h.  */
25813 #include <$ac_header>
25814 _ACEOF
25815 if { (ac_try="$ac_cpp conftest.$ac_ext"
25816 case "(($ac_try" in
25817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25818   *) ac_try_echo=$ac_try;;
25819 esac
25820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25821   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25822   ac_status=$?
25823   grep -v '^ *+' conftest.er1 >conftest.err
25824   rm -f conftest.er1
25825   cat conftest.err >&5
25826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25827   (exit $ac_status); } >/dev/null && {
25828          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25829          test ! -s conftest.err
25830        }; then
25831   ac_header_preproc=yes
25832 else
25833   echo "$as_me: failed program was:" >&5
25834 sed 's/^/| /' conftest.$ac_ext >&5
25835
25836   ac_header_preproc=no
25837 fi
25838
25839 rm -f conftest.err conftest.$ac_ext
25840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25841 echo "${ECHO_T}$ac_header_preproc" >&6; }
25842
25843 # So?  What about this header?
25844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25845   yes:no: )
25846     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25850     ac_header_preproc=yes
25851     ;;
25852   no:yes:* )
25853     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25855     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25856 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25857     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25859     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25860 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25861     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25863     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25865
25866     ;;
25867 esac
25868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25871   echo $ECHO_N "(cached) $ECHO_C" >&6
25872 else
25873   eval "$as_ac_Header=\$ac_header_preproc"
25874 fi
25875 ac_res=`eval echo '${'$as_ac_Header'}'`
25876                { echo "$as_me:$LINENO: result: $ac_res" >&5
25877 echo "${ECHO_T}$ac_res" >&6; }
25878
25879 fi
25880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25881   cat >>confdefs.h <<_ACEOF
25882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25883 _ACEOF
25884
25885 fi
25886
25887 done
25888
25889
25890 for ac_header in windows.h
25891 do
25892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25894   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25897   echo $ECHO_N "(cached) $ECHO_C" >&6
25898 fi
25899 ac_res=`eval echo '${'$as_ac_Header'}'`
25900                { echo "$as_me:$LINENO: result: $ac_res" >&5
25901 echo "${ECHO_T}$ac_res" >&6; }
25902 else
25903   # Is the header compilable?
25904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25906 cat >conftest.$ac_ext <<_ACEOF
25907 /* confdefs.h.  */
25908 _ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h.  */
25912 $ac_includes_default
25913 #include <$ac_header>
25914 _ACEOF
25915 rm -f conftest.$ac_objext
25916 if { (ac_try="$ac_compile"
25917 case "(($ac_try" in
25918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25919   *) ac_try_echo=$ac_try;;
25920 esac
25921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25922   (eval "$ac_compile") 2>conftest.er1
25923   ac_status=$?
25924   grep -v '^ *+' conftest.er1 >conftest.err
25925   rm -f conftest.er1
25926   cat conftest.err >&5
25927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928   (exit $ac_status); } && {
25929          test -z "$ac_c_werror_flag" ||
25930          test ! -s conftest.err
25931        } && test -s conftest.$ac_objext; then
25932   ac_header_compiler=yes
25933 else
25934   echo "$as_me: failed program was:" >&5
25935 sed 's/^/| /' conftest.$ac_ext >&5
25936
25937         ac_header_compiler=no
25938 fi
25939
25940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25942 echo "${ECHO_T}$ac_header_compiler" >&6; }
25943
25944 # Is the header present?
25945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25947 cat >conftest.$ac_ext <<_ACEOF
25948 /* confdefs.h.  */
25949 _ACEOF
25950 cat confdefs.h >>conftest.$ac_ext
25951 cat >>conftest.$ac_ext <<_ACEOF
25952 /* end confdefs.h.  */
25953 #include <$ac_header>
25954 _ACEOF
25955 if { (ac_try="$ac_cpp conftest.$ac_ext"
25956 case "(($ac_try" in
25957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25958   *) ac_try_echo=$ac_try;;
25959 esac
25960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25961   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25962   ac_status=$?
25963   grep -v '^ *+' conftest.er1 >conftest.err
25964   rm -f conftest.er1
25965   cat conftest.err >&5
25966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967   (exit $ac_status); } >/dev/null && {
25968          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25969          test ! -s conftest.err
25970        }; then
25971   ac_header_preproc=yes
25972 else
25973   echo "$as_me: failed program was:" >&5
25974 sed 's/^/| /' conftest.$ac_ext >&5
25975
25976   ac_header_preproc=no
25977 fi
25978
25979 rm -f conftest.err conftest.$ac_ext
25980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25981 echo "${ECHO_T}$ac_header_preproc" >&6; }
25982
25983 # So?  What about this header?
25984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25985   yes:no: )
25986     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25988     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25990     ac_header_preproc=yes
25991     ;;
25992   no:yes:* )
25993     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25995     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25996 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25997     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25999     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26000 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26003     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26005
26006     ;;
26007 esac
26008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26011   echo $ECHO_N "(cached) $ECHO_C" >&6
26012 else
26013   eval "$as_ac_Header=\$ac_header_preproc"
26014 fi
26015 ac_res=`eval echo '${'$as_ac_Header'}'`
26016                { echo "$as_me:$LINENO: result: $ac_res" >&5
26017 echo "${ECHO_T}$ac_res" >&6; }
26018
26019 fi
26020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26021   cat >>confdefs.h <<_ACEOF
26022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26023 _ACEOF
26024
26025 fi
26026
26027 done
26028
26029
26030
26031 for ac_header in winioctl.h winbase.h
26032 do
26033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26037   echo $ECHO_N "(cached) $ECHO_C" >&6
26038 else
26039   cat >conftest.$ac_ext <<_ACEOF
26040 /* confdefs.h.  */
26041 _ACEOF
26042 cat confdefs.h >>conftest.$ac_ext
26043 cat >>conftest.$ac_ext <<_ACEOF
26044 /* end confdefs.h.  */
26045
26046         #if HAVE_WINDOWS_H
26047         #include <windows.h>
26048         #endif
26049
26050
26051 #include <$ac_header>
26052 _ACEOF
26053 rm -f conftest.$ac_objext
26054 if { (ac_try="$ac_compile"
26055 case "(($ac_try" in
26056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26057   *) ac_try_echo=$ac_try;;
26058 esac
26059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26060   (eval "$ac_compile") 2>conftest.er1
26061   ac_status=$?
26062   grep -v '^ *+' conftest.er1 >conftest.err
26063   rm -f conftest.er1
26064   cat conftest.err >&5
26065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066   (exit $ac_status); } && {
26067          test -z "$ac_c_werror_flag" ||
26068          test ! -s conftest.err
26069        } && test -s conftest.$ac_objext; then
26070   eval "$as_ac_Header=yes"
26071 else
26072   echo "$as_me: failed program was:" >&5
26073 sed 's/^/| /' conftest.$ac_ext >&5
26074
26075         eval "$as_ac_Header=no"
26076 fi
26077
26078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26079 fi
26080 ac_res=`eval echo '${'$as_ac_Header'}'`
26081                { echo "$as_me:$LINENO: result: $ac_res" >&5
26082 echo "${ECHO_T}$ac_res" >&6; }
26083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26084   cat >>confdefs.h <<_ACEOF
26085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26086 _ACEOF
26087
26088 fi
26089
26090 done
26091
26092
26093
26094
26095
26096
26097
26098
26099
26100
26101
26102
26103 for ac_func in getopt usleep gettimeofday nanosleep rand srand random srandom sleep sigaction
26104 do
26105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26109   echo $ECHO_N "(cached) $ECHO_C" >&6
26110 else
26111   cat >conftest.$ac_ext <<_ACEOF
26112 /* confdefs.h.  */
26113 _ACEOF
26114 cat confdefs.h >>conftest.$ac_ext
26115 cat >>conftest.$ac_ext <<_ACEOF
26116 /* end confdefs.h.  */
26117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26119 #define $ac_func innocuous_$ac_func
26120
26121 /* System header to define __stub macros and hopefully few prototypes,
26122     which can conflict with char $ac_func (); below.
26123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26124     <limits.h> exists even on freestanding compilers.  */
26125
26126 #ifdef __STDC__
26127 # include <limits.h>
26128 #else
26129 # include <assert.h>
26130 #endif
26131
26132 #undef $ac_func
26133
26134 /* Override any GCC internal prototype to avoid an error.
26135    Use char because int might match the return type of a GCC
26136    builtin and then its argument prototype would still apply.  */
26137 #ifdef __cplusplus
26138 extern "C"
26139 #endif
26140 char $ac_func ();
26141 /* The GNU C library defines this for functions which it implements
26142     to always fail with ENOSYS.  Some functions are actually named
26143     something starting with __ and the normal name is an alias.  */
26144 #if defined __stub_$ac_func || defined __stub___$ac_func
26145 choke me
26146 #endif
26147
26148 int
26149 main ()
26150 {
26151 return $ac_func ();
26152   ;
26153   return 0;
26154 }
26155 _ACEOF
26156 rm -f conftest.$ac_objext conftest$ac_exeext
26157 if { (ac_try="$ac_link"
26158 case "(($ac_try" in
26159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26160   *) ac_try_echo=$ac_try;;
26161 esac
26162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26163   (eval "$ac_link") 2>conftest.er1
26164   ac_status=$?
26165   grep -v '^ *+' conftest.er1 >conftest.err
26166   rm -f conftest.er1
26167   cat conftest.err >&5
26168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169   (exit $ac_status); } && {
26170          test -z "$ac_c_werror_flag" ||
26171          test ! -s conftest.err
26172        } && test -s conftest$ac_exeext &&
26173        $as_test_x conftest$ac_exeext; then
26174   eval "$as_ac_var=yes"
26175 else
26176   echo "$as_me: failed program was:" >&5
26177 sed 's/^/| /' conftest.$ac_ext >&5
26178
26179         eval "$as_ac_var=no"
26180 fi
26181
26182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26183       conftest$ac_exeext conftest.$ac_ext
26184 fi
26185 ac_res=`eval echo '${'$as_ac_var'}'`
26186                { echo "$as_me:$LINENO: result: $ac_res" >&5
26187 echo "${ECHO_T}$ac_res" >&6; }
26188 if test `eval echo '${'$as_ac_var'}'` = yes; then
26189   cat >>confdefs.h <<_ACEOF
26190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26191 _ACEOF
26192
26193 fi
26194 done
26195
26196 { echo "$as_me:$LINENO: checking for struct timezone" >&5
26197 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6; }
26198 if test "${ac_cv_type_struct_timezone+set}" = set; then
26199   echo $ECHO_N "(cached) $ECHO_C" >&6
26200 else
26201   cat >conftest.$ac_ext <<_ACEOF
26202 /* confdefs.h.  */
26203 _ACEOF
26204 cat confdefs.h >>conftest.$ac_ext
26205 cat >>conftest.$ac_ext <<_ACEOF
26206 /* end confdefs.h.  */
26207
26208      #if HAVE_SYS_TYPES_H
26209      # include <sys/types.h>
26210      #endif
26211      #if TIME_WITH_SYS_TIME
26212      # include <sys/time.h>
26213      # include <time.h>
26214      #else
26215      # if HAVE_SYS_TIME_H
26216      #  include <sys/time.h>
26217      # else
26218      #  include <time.h>
26219      # endif
26220      #endif
26221
26222
26223 typedef struct timezone ac__type_new_;
26224 int
26225 main ()
26226 {
26227 if ((ac__type_new_ *) 0)
26228   return 0;
26229 if (sizeof (ac__type_new_))
26230   return 0;
26231   ;
26232   return 0;
26233 }
26234 _ACEOF
26235 rm -f conftest.$ac_objext
26236 if { (ac_try="$ac_compile"
26237 case "(($ac_try" in
26238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26239   *) ac_try_echo=$ac_try;;
26240 esac
26241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26242   (eval "$ac_compile") 2>conftest.er1
26243   ac_status=$?
26244   grep -v '^ *+' conftest.er1 >conftest.err
26245   rm -f conftest.er1
26246   cat conftest.err >&5
26247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248   (exit $ac_status); } && {
26249          test -z "$ac_c_werror_flag" ||
26250          test ! -s conftest.err
26251        } && test -s conftest.$ac_objext; then
26252   ac_cv_type_struct_timezone=yes
26253 else
26254   echo "$as_me: failed program was:" >&5
26255 sed 's/^/| /' conftest.$ac_ext >&5
26256
26257         ac_cv_type_struct_timezone=no
26258 fi
26259
26260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26261 fi
26262 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timezone" >&5
26263 echo "${ECHO_T}$ac_cv_type_struct_timezone" >&6; }
26264 if test $ac_cv_type_struct_timezone = yes; then
26265
26266 cat >>confdefs.h <<_ACEOF
26267 #define HAVE_STRUCT_TIMEZONE 1
26268 _ACEOF
26269
26270
26271 fi
26272 { echo "$as_me:$LINENO: checking for struct timespec" >&5
26273 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
26274 if test "${ac_cv_type_struct_timespec+set}" = set; then
26275   echo $ECHO_N "(cached) $ECHO_C" >&6
26276 else
26277   cat >conftest.$ac_ext <<_ACEOF
26278 /* confdefs.h.  */
26279 _ACEOF
26280 cat confdefs.h >>conftest.$ac_ext
26281 cat >>conftest.$ac_ext <<_ACEOF
26282 /* end confdefs.h.  */
26283
26284      #if HAVE_SYS_TYPES_H
26285      # include <sys/types.h>
26286      #endif
26287      #if TIME_WITH_SYS_TIME
26288      # include <sys/time.h>
26289      # include <time.h>
26290      #else
26291      # if HAVE_SYS_TIME_H
26292      #  include <sys/time.h>
26293      # else
26294      #  include <time.h>
26295      # endif
26296      #endif
26297
26298
26299 typedef struct timespec ac__type_new_;
26300 int
26301 main ()
26302 {
26303 if ((ac__type_new_ *) 0)
26304   return 0;
26305 if (sizeof (ac__type_new_))
26306   return 0;
26307   ;
26308   return 0;
26309 }
26310 _ACEOF
26311 rm -f conftest.$ac_objext
26312 if { (ac_try="$ac_compile"
26313 case "(($ac_try" in
26314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26315   *) ac_try_echo=$ac_try;;
26316 esac
26317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26318   (eval "$ac_compile") 2>conftest.er1
26319   ac_status=$?
26320   grep -v '^ *+' conftest.er1 >conftest.err
26321   rm -f conftest.er1
26322   cat conftest.err >&5
26323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324   (exit $ac_status); } && {
26325          test -z "$ac_c_werror_flag" ||
26326          test ! -s conftest.err
26327        } && test -s conftest.$ac_objext; then
26328   ac_cv_type_struct_timespec=yes
26329 else
26330   echo "$as_me: failed program was:" >&5
26331 sed 's/^/| /' conftest.$ac_ext >&5
26332
26333         ac_cv_type_struct_timespec=no
26334 fi
26335
26336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26337 fi
26338 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
26339 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
26340 if test $ac_cv_type_struct_timespec = yes; then
26341
26342 cat >>confdefs.h <<_ACEOF
26343 #define HAVE_STRUCT_TIMESPEC 1
26344 _ACEOF
26345
26346
26347 fi
26348 { echo "$as_me:$LINENO: checking for ssize_t" >&5
26349 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
26350 if test "${ac_cv_type_ssize_t+set}" = set; then
26351   echo $ECHO_N "(cached) $ECHO_C" >&6
26352 else
26353   cat >conftest.$ac_ext <<_ACEOF
26354 /* confdefs.h.  */
26355 _ACEOF
26356 cat confdefs.h >>conftest.$ac_ext
26357 cat >>conftest.$ac_ext <<_ACEOF
26358 /* end confdefs.h.  */
26359
26360      #if HAVE_SYS_TYPES_H
26361      # include <sys/types.h>
26362      #endif
26363      #if TIME_WITH_SYS_TIME
26364      # include <sys/time.h>
26365      # include <time.h>
26366      #else
26367      # if HAVE_SYS_TIME_H
26368      #  include <sys/time.h>
26369      # else
26370      #  include <time.h>
26371      # endif
26372      #endif
26373
26374
26375 typedef ssize_t ac__type_new_;
26376 int
26377 main ()
26378 {
26379 if ((ac__type_new_ *) 0)
26380   return 0;
26381 if (sizeof (ac__type_new_))
26382   return 0;
26383   ;
26384   return 0;
26385 }
26386 _ACEOF
26387 rm -f conftest.$ac_objext
26388 if { (ac_try="$ac_compile"
26389 case "(($ac_try" in
26390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26391   *) ac_try_echo=$ac_try;;
26392 esac
26393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26394   (eval "$ac_compile") 2>conftest.er1
26395   ac_status=$?
26396   grep -v '^ *+' conftest.er1 >conftest.err
26397   rm -f conftest.er1
26398   cat conftest.err >&5
26399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400   (exit $ac_status); } && {
26401          test -z "$ac_c_werror_flag" ||
26402          test ! -s conftest.err
26403        } && test -s conftest.$ac_objext; then
26404   ac_cv_type_ssize_t=yes
26405 else
26406   echo "$as_me: failed program was:" >&5
26407 sed 's/^/| /' conftest.$ac_ext >&5
26408
26409         ac_cv_type_ssize_t=no
26410 fi
26411
26412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26413 fi
26414 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26415 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
26416 if test $ac_cv_type_ssize_t = yes; then
26417
26418 cat >>confdefs.h <<_ACEOF
26419 #define HAVE_SSIZE_T 1
26420 _ACEOF
26421
26422
26423 fi
26424
26425
26426
26427
26428
26429 for ac_func in getopt usleep gettimeofday
26430 do
26431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26432 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26435   echo $ECHO_N "(cached) $ECHO_C" >&6
26436 else
26437   cat >conftest.$ac_ext <<_ACEOF
26438 /* confdefs.h.  */
26439 _ACEOF
26440 cat confdefs.h >>conftest.$ac_ext
26441 cat >>conftest.$ac_ext <<_ACEOF
26442 /* end confdefs.h.  */
26443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26444    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26445 #define $ac_func innocuous_$ac_func
26446
26447 /* System header to define __stub macros and hopefully few prototypes,
26448     which can conflict with char $ac_func (); below.
26449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26450     <limits.h> exists even on freestanding compilers.  */
26451
26452 #ifdef __STDC__
26453 # include <limits.h>
26454 #else
26455 # include <assert.h>
26456 #endif
26457
26458 #undef $ac_func
26459
26460 /* Override any GCC internal prototype to avoid an error.
26461    Use char because int might match the return type of a GCC
26462    builtin and then its argument prototype would still apply.  */
26463 #ifdef __cplusplus
26464 extern "C"
26465 #endif
26466 char $ac_func ();
26467 /* The GNU C library defines this for functions which it implements
26468     to always fail with ENOSYS.  Some functions are actually named
26469     something starting with __ and the normal name is an alias.  */
26470 #if defined __stub_$ac_func || defined __stub___$ac_func
26471 choke me
26472 #endif
26473
26474 int
26475 main ()
26476 {
26477 return $ac_func ();
26478   ;
26479   return 0;
26480 }
26481 _ACEOF
26482 rm -f conftest.$ac_objext conftest$ac_exeext
26483 if { (ac_try="$ac_link"
26484 case "(($ac_try" in
26485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26486   *) ac_try_echo=$ac_try;;
26487 esac
26488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26489   (eval "$ac_link") 2>conftest.er1
26490   ac_status=$?
26491   grep -v '^ *+' conftest.er1 >conftest.err
26492   rm -f conftest.er1
26493   cat conftest.err >&5
26494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495   (exit $ac_status); } && {
26496          test -z "$ac_c_werror_flag" ||
26497          test ! -s conftest.err
26498        } && test -s conftest$ac_exeext &&
26499        $as_test_x conftest$ac_exeext; then
26500   eval "$as_ac_var=yes"
26501 else
26502   echo "$as_me: failed program was:" >&5
26503 sed 's/^/| /' conftest.$ac_ext >&5
26504
26505         eval "$as_ac_var=no"
26506 fi
26507
26508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26509       conftest$ac_exeext conftest.$ac_ext
26510 fi
26511 ac_res=`eval echo '${'$as_ac_var'}'`
26512                { echo "$as_me:$LINENO: result: $ac_res" >&5
26513 echo "${ECHO_T}$ac_res" >&6; }
26514 if test `eval echo '${'$as_ac_var'}'` = yes; then
26515   cat >>confdefs.h <<_ACEOF
26516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26517 _ACEOF
26518
26519 else
26520   case " $LIBOBJS " in
26521   *" $ac_func.$ac_objext "* ) ;;
26522   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26523  ;;
26524 esac
26525
26526 fi
26527 done
26528
26529
26530
26531
26532 { echo "$as_me:$LINENO: checking for Sleep" >&5
26533 echo $ECHO_N "checking for Sleep... $ECHO_C" >&6; }
26534 cat >conftest.$ac_ext <<_ACEOF
26535 /* confdefs.h.  */
26536 _ACEOF
26537 cat confdefs.h >>conftest.$ac_ext
26538 cat >>conftest.$ac_ext <<_ACEOF
26539 /* end confdefs.h.  */
26540    #include <windows.h>
26541                 #include <winbase.h>
26542
26543 int
26544 main ()
26545 {
26546  Sleep(0);
26547   ;
26548   return 0;
26549 }
26550 _ACEOF
26551 rm -f conftest.$ac_objext conftest$ac_exeext
26552 if { (ac_try="$ac_link"
26553 case "(($ac_try" in
26554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26555   *) ac_try_echo=$ac_try;;
26556 esac
26557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26558   (eval "$ac_link") 2>conftest.er1
26559   ac_status=$?
26560   grep -v '^ *+' conftest.er1 >conftest.err
26561   rm -f conftest.er1
26562   cat conftest.err >&5
26563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564   (exit $ac_status); } && {
26565          test -z "$ac_c_werror_flag" ||
26566          test ! -s conftest.err
26567        } && test -s conftest$ac_exeext &&
26568        $as_test_x conftest$ac_exeext; then
26569
26570 cat >>confdefs.h <<\_ACEOF
26571 #define HAVE_SSLEEP 1
26572 _ACEOF
26573
26574                 { echo "$as_me:$LINENO: result: yes" >&5
26575 echo "${ECHO_T}yes" >&6; }
26576 else
26577   echo "$as_me: failed program was:" >&5
26578 sed 's/^/| /' conftest.$ac_ext >&5
26579
26580         { echo "$as_me:$LINENO: result: no" >&5
26581 echo "${ECHO_T}no" >&6; }
26582
26583 fi
26584
26585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26586       conftest$ac_exeext conftest.$ac_ext
26587
26588 { echo "$as_me:$LINENO: checking whether mkdir accepts only one arg" >&5
26589 echo $ECHO_N "checking whether mkdir accepts only one arg... $ECHO_C" >&6; }
26590 cat >conftest.$ac_ext <<_ACEOF
26591 /* confdefs.h.  */
26592 _ACEOF
26593 cat confdefs.h >>conftest.$ac_ext
26594 cat >>conftest.$ac_ext <<_ACEOF
26595 /* end confdefs.h.  */
26596 #include <sys/types.h>
26597        #include <sys/stat.h>
26598        #include <fcntl.h>
26599 int
26600 main ()
26601 {
26602
26603        mkdir("")
26604
26605   ;
26606   return 0;
26607 }
26608 _ACEOF
26609 rm -f conftest.$ac_objext
26610 if { (ac_try="$ac_compile"
26611 case "(($ac_try" in
26612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26613   *) ac_try_echo=$ac_try;;
26614 esac
26615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26616   (eval "$ac_compile") 2>conftest.er1
26617   ac_status=$?
26618   grep -v '^ *+' conftest.er1 >conftest.err
26619   rm -f conftest.er1
26620   cat conftest.err >&5
26621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622   (exit $ac_status); } && {
26623          test -z "$ac_c_werror_flag" ||
26624          test ! -s conftest.err
26625        } && test -s conftest.$ac_objext; then
26626    { echo "$as_me:$LINENO: result: yes" >&5
26627 echo "${ECHO_T}yes" >&6; }
26628
26629 cat >>confdefs.h <<\_ACEOF
26630 #define MKDIR_TAKES_ONE_ARG
26631 _ACEOF
26632
26633 else
26634   echo "$as_me: failed program was:" >&5
26635 sed 's/^/| /' conftest.$ac_ext >&5
26636
26637          { echo "$as_me:$LINENO: result: no" >&5
26638 echo "${ECHO_T}no" >&6; }
26639
26640 fi
26641
26642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26643
26644
26645
26646
26647
26648
26649
26650 # Extract the first word of "dot", so it can be a program name with args.
26651 set dummy dot; ac_word=$2
26652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26654 if test "${ac_cv_prog_HAVE_DOT+set}" = set; then
26655   echo $ECHO_N "(cached) $ECHO_C" >&6
26656 else
26657   if test -n "$HAVE_DOT"; then
26658   ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
26659 else
26660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26661 for as_dir in $PATH
26662 do
26663   IFS=$as_save_IFS
26664   test -z "$as_dir" && as_dir=.
26665   for ac_exec_ext in '' $ac_executable_extensions; do
26666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26667     ac_cv_prog_HAVE_DOT="YES"
26668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26669     break 2
26670   fi
26671 done
26672 done
26673 IFS=$as_save_IFS
26674
26675   test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="NO"
26676 fi
26677 fi
26678 HAVE_DOT=$ac_cv_prog_HAVE_DOT
26679 if test -n "$HAVE_DOT"; then
26680   { echo "$as_me:$LINENO: result: $HAVE_DOT" >&5
26681 echo "${ECHO_T}$HAVE_DOT" >&6; }
26682 else
26683   { echo "$as_me:$LINENO: result: no" >&5
26684 echo "${ECHO_T}no" >&6; }
26685 fi
26686
26687
26688
26689
26690   succeeded=no
26691
26692   if test -z "$PKG_CONFIG"; then
26693     # Extract the first word of "pkg-config", so it can be a program name with args.
26694 set dummy pkg-config; ac_word=$2
26695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26697 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26698   echo $ECHO_N "(cached) $ECHO_C" >&6
26699 else
26700   case $PKG_CONFIG in
26701   [\\/]* | ?:[\\/]*)
26702   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26703   ;;
26704   *)
26705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26706 for as_dir in $PATH
26707 do
26708   IFS=$as_save_IFS
26709   test -z "$as_dir" && as_dir=.
26710   for ac_exec_ext in '' $ac_executable_extensions; do
26711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26712     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26714     break 2
26715   fi
26716 done
26717 done
26718 IFS=$as_save_IFS
26719
26720   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26721   ;;
26722 esac
26723 fi
26724 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26725 if test -n "$PKG_CONFIG"; then
26726   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26727 echo "${ECHO_T}$PKG_CONFIG" >&6; }
26728 else
26729   { echo "$as_me:$LINENO: result: no" >&5
26730 echo "${ECHO_T}no" >&6; }
26731 fi
26732
26733
26734   fi
26735
26736   if test "$PKG_CONFIG" = "no" ; then
26737      echo "*** The pkg-config script could not be found. Make sure it is"
26738      echo "*** in your path, or set the PKG_CONFIG environment variable"
26739      echo "*** to the full path to pkg-config."
26740      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26741   else
26742                     if test -z "$PKG_CONFIG_PATH"; then
26743         export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
26744      fi
26745
26746      PKG_CONFIG_MIN_VERSION=0.9.0
26747      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26748         { echo "$as_me:$LINENO: checking for fftw3f >= 3.0" >&5
26749 echo $ECHO_N "checking for fftw3f >= 3.0... $ECHO_C" >&6; }
26750
26751         if $PKG_CONFIG --exists "fftw3f >= 3.0" ; then
26752             { echo "$as_me:$LINENO: result: yes" >&5
26753 echo "${ECHO_T}yes" >&6; }
26754             succeeded=yes
26755
26756             { echo "$as_me:$LINENO: checking FFTW3F_CFLAGS" >&5
26757 echo $ECHO_N "checking FFTW3F_CFLAGS... $ECHO_C" >&6; }
26758             FFTW3F_CFLAGS=`$PKG_CONFIG --cflags "fftw3f >= 3.0"`
26759             { echo "$as_me:$LINENO: result: $FFTW3F_CFLAGS" >&5
26760 echo "${ECHO_T}$FFTW3F_CFLAGS" >&6; }
26761
26762             { echo "$as_me:$LINENO: checking FFTW3F_LIBS" >&5
26763 echo $ECHO_N "checking FFTW3F_LIBS... $ECHO_C" >&6; }
26764             FFTW3F_LIBS=`$PKG_CONFIG --libs "fftw3f >= 3.0"`
26765             { echo "$as_me:$LINENO: result: $FFTW3F_LIBS" >&5
26766 echo "${ECHO_T}$FFTW3F_LIBS" >&6; }
26767
26768             { echo "$as_me:$LINENO: checking FFTW3F_INCLUDEDIR" >&5
26769 echo $ECHO_N "checking FFTW3F_INCLUDEDIR... $ECHO_C" >&6; }
26770             FFTW3F_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "fftw3f >= 3.0"`
26771             { echo "$as_me:$LINENO: result: $FFTW3F_INCLUDEDIR" >&5
26772 echo "${ECHO_T}$FFTW3F_INCLUDEDIR" >&6; }
26773         else
26774             FFTW3F_CFLAGS=""
26775             FFTW3F_LIBS=""
26776             ## If we have a custom action on failure, don't print errors, but
26777             ## do set a variable so people can do so.
26778             FFTW3F_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3f >= 3.0"`
26779             echo $FFTW3F_PKG_ERRORS
26780         fi
26781
26782
26783
26784
26785      else
26786         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26787         echo "*** See http://www.freedesktop.org/software/pkgconfig"
26788      fi
26789   fi
26790
26791   if test $succeeded = yes; then
26792      :
26793   else
26794      { { echo "$as_me:$LINENO: error: Library requirements (fftw3f >= 3.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
26795 echo "$as_me: error: Library requirements (fftw3f >= 3.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
26796    { (exit 1); exit 1; }; }
26797   fi
26798
26799
26800
26801
26802   # Check whether --enable-doxygen was given.
26803 if test "${enable_doxygen+set}" = set; then
26804   enableval=$enable_doxygen;
26805 fi
26806
26807   # Check whether --enable-dot was given.
26808 if test "${enable_dot+set}" = set; then
26809   enableval=$enable_dot;
26810 fi
26811
26812   # Check whether --enable-html-docs was given.
26813 if test "${enable_html_docs+set}" = set; then
26814   enableval=$enable_html_docs;
26815 else
26816    enable_html_docs=yes
26817 fi
26818
26819   # Check whether --enable-latex-docs was given.
26820 if test "${enable_latex_docs+set}" = set; then
26821   enableval=$enable_latex_docs;
26822 else
26823    enable_latex_docs=no
26824 fi
26825
26826
26827   if test "x$enable_doxygen" = xyes; then
26828         # Extract the first word of "doxygen", so it can be a program name with args.
26829 set dummy doxygen; ac_word=$2
26830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26832 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26833   echo $ECHO_N "(cached) $ECHO_C" >&6
26834 else
26835   case $DOXYGEN in
26836   [\\/]* | ?:[\\/]*)
26837   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26838   ;;
26839   *)
26840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26841 for as_dir in $PATH
26842 do
26843   IFS=$as_save_IFS
26844   test -z "$as_dir" && as_dir=.
26845   for ac_exec_ext in '' $ac_executable_extensions; do
26846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26847     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26849     break 2
26850   fi
26851 done
26852 done
26853 IFS=$as_save_IFS
26854
26855   ;;
26856 esac
26857 fi
26858 DOXYGEN=$ac_cv_path_DOXYGEN
26859 if test -n "$DOXYGEN"; then
26860   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26861 echo "${ECHO_T}$DOXYGEN" >&6; }
26862 else
26863   { echo "$as_me:$LINENO: result: no" >&5
26864 echo "${ECHO_T}no" >&6; }
26865 fi
26866
26867
26868         if test x$DOXYGEN = x; then
26869                 if test "x$enable_doxygen" = xyes; then
26870                         { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
26871 echo "$as_me: error: could not find doxygen" >&2;}
26872    { (exit 1); exit 1; }; }
26873                 fi
26874                 enable_doc=no
26875                 generate_docs=
26876         else
26877                 enable_doc=yes
26878                 generate_docs=docs
26879                 # Extract the first word of "dot", so it can be a program name with args.
26880 set dummy dot; ac_word=$2
26881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26883 if test "${ac_cv_path_DOT+set}" = set; then
26884   echo $ECHO_N "(cached) $ECHO_C" >&6
26885 else
26886   case $DOT in
26887   [\\/]* | ?:[\\/]*)
26888   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
26889   ;;
26890   *)
26891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26892 for as_dir in $PATH
26893 do
26894   IFS=$as_save_IFS
26895   test -z "$as_dir" && as_dir=.
26896   for ac_exec_ext in '' $ac_executable_extensions; do
26897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26898     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
26899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26900     break 2
26901   fi
26902 done
26903 done
26904 IFS=$as_save_IFS
26905
26906   ;;
26907 esac
26908 fi
26909 DOT=$ac_cv_path_DOT
26910 if test -n "$DOT"; then
26911   { echo "$as_me:$LINENO: result: $DOT" >&5
26912 echo "${ECHO_T}$DOT" >&6; }
26913 else
26914   { echo "$as_me:$LINENO: result: no" >&5
26915 echo "${ECHO_T}no" >&6; }
26916 fi
26917
26918
26919         fi
26920   else
26921         enable_doc=no
26922   fi
26923
26924
26925
26926 if test x$enable_doc = xyes; then
26927   DOC_TRUE=
26928   DOC_FALSE='#'
26929 else
26930   DOC_TRUE='#'
26931   DOC_FALSE=
26932 fi
26933
26934
26935   if test x$DOT = x; then
26936         if test "x$enable_dot" = xyes; then
26937                 { { echo "$as_me:$LINENO: error: could not find dot" >&5
26938 echo "$as_me: error: could not find dot" >&2;}
26939    { (exit 1); exit 1; }; }
26940         fi
26941         enable_dot=no
26942   else
26943         enable_dot=yes
26944   fi
26945
26946
26947
26948
26949
26950
26951
26952
26953 # Check whether --with-md-cpu was given.
26954 if test "${with_md_cpu+set}" = set; then
26955   withval=$with_md_cpu; cf_with_md_cpu="$withval"
26956 else
26957   cf_with_md_cpu="$host_cpu"
26958 fi
26959
26960
26961   { echo "$as_me:$LINENO: checking for machine dependent speedups" >&5
26962 echo $ECHO_N "checking for machine dependent speedups... $ECHO_C" >&6; }
26963   case "$cf_with_md_cpu" in
26964    x86 | i[3-7]86)      MD_CPU=x86      MD_SUBCPU=x86   ;;
26965    x86_64)              MD_CPU=x86      MD_SUBCPU=x86_64        ;;
26966 #  sparc)       MD_CPU=sparc     ;;
26967    *)           MD_CPU=generic   ;;
26968   esac
26969   { echo "$as_me:$LINENO: result: $MD_CPU" >&5
26970 echo "${ECHO_T}$MD_CPU" >&6; }
26971
26972
26973
26974
26975
26976 if test "$MD_CPU" = "x86"; then
26977   MD_CPU_x86_TRUE=
26978   MD_CPU_x86_FALSE='#'
26979 else
26980   MD_CPU_x86_TRUE='#'
26981   MD_CPU_x86_FALSE=
26982 fi
26983
26984
26985
26986 if test "$MD_SUBCPU" = "x86_64"; then
26987   MD_SUBCPU_x86_64_TRUE=
26988   MD_SUBCPU_x86_64_FALSE='#'
26989 else
26990   MD_SUBCPU_x86_64_TRUE='#'
26991   MD_SUBCPU_x86_64_FALSE=
26992 fi
26993
26994
26995
26996 if test "$MD_CPU" = "generic"; then
26997   MD_CPU_generic_TRUE=
26998   MD_CPU_generic_FALSE='#'
26999 else
27000   MD_CPU_generic_TRUE='#'
27001   MD_CPU_generic_FALSE=
27002 fi
27003
27004
27005
27006
27007
27008
27009 # Check whether --with-cppunit-prefix was given.
27010 if test "${with_cppunit_prefix+set}" = set; then
27011   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
27012 else
27013   cppunit_config_prefix=""
27014 fi
27015
27016
27017 # Check whether --with-cppunit-exec-prefix was given.
27018 if test "${with_cppunit_exec_prefix+set}" = set; then
27019   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
27020 else
27021   cppunit_config_exec_prefix=""
27022 fi
27023
27024
27025   if test x$cppunit_config_exec_prefix != x ; then
27026      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
27027      if test x${CPPUNIT_CONFIG+set} != xset ; then
27028         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
27029      fi
27030   fi
27031   if test x$cppunit_config_prefix != x ; then
27032      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
27033      if test x${CPPUNIT_CONFIG+set} != xset ; then
27034         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
27035      fi
27036   fi
27037
27038   # Extract the first word of "cppunit-config", so it can be a program name with args.
27039 set dummy cppunit-config; ac_word=$2
27040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27042 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
27043   echo $ECHO_N "(cached) $ECHO_C" >&6
27044 else
27045   case $CPPUNIT_CONFIG in
27046   [\\/]* | ?:[\\/]*)
27047   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
27048   ;;
27049   *)
27050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27051 for as_dir in $PATH
27052 do
27053   IFS=$as_save_IFS
27054   test -z "$as_dir" && as_dir=.
27055   for ac_exec_ext in '' $ac_executable_extensions; do
27056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27057     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27059     break 2
27060   fi
27061 done
27062 done
27063 IFS=$as_save_IFS
27064
27065   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
27066   ;;
27067 esac
27068 fi
27069 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
27070 if test -n "$CPPUNIT_CONFIG"; then
27071   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
27072 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
27073 else
27074   { echo "$as_me:$LINENO: result: no" >&5
27075 echo "${ECHO_T}no" >&6; }
27076 fi
27077
27078
27079   cppunit_version_min=1.9.14
27080
27081   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
27082 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
27083   no_cppunit=""
27084   if test "$CPPUNIT_CONFIG" = "no" ; then
27085     no_cppunit=yes
27086   else
27087     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
27088     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
27089     cppunit_version=`$CPPUNIT_CONFIG --version`
27090
27091     cppunit_major_version=`echo $cppunit_version | \
27092            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27093     cppunit_minor_version=`echo $cppunit_version | \
27094            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27095     cppunit_micro_version=`echo $cppunit_version | \
27096            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27097
27098     cppunit_major_min=`echo $cppunit_version_min | \
27099            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27100     cppunit_minor_min=`echo $cppunit_version_min | \
27101            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27102     cppunit_micro_min=`echo $cppunit_version_min | \
27103            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27104
27105     cppunit_version_proper=`expr \
27106         $cppunit_major_version \> $cppunit_major_min \| \
27107         $cppunit_major_version \= $cppunit_major_min \& \
27108         $cppunit_minor_version \> $cppunit_minor_min \| \
27109         $cppunit_major_version \= $cppunit_major_min \& \
27110         $cppunit_minor_version \= $cppunit_minor_min \& \
27111         $cppunit_micro_version \>= $cppunit_micro_min `
27112
27113     if test "$cppunit_version_proper" = "1" ; then
27114       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
27115 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
27116     else
27117       { echo "$as_me:$LINENO: result: no" >&5
27118 echo "${ECHO_T}no" >&6; }
27119       no_cppunit=yes
27120     fi
27121   fi
27122
27123   if test "x$no_cppunit" = x ; then
27124      :
27125   else
27126      CPPUNIT_CFLAGS=""
27127      CPPUNIT_LIBS=""
27128      { { echo "$as_me:$LINENO: error: GNU Radio requires cppunit.  Stop" >&5
27129 echo "$as_me: error: GNU Radio requires cppunit.  Stop" >&2;}
27130    { (exit 1); exit 1; }; }
27131   fi
27132
27133
27134
27135
27136
27137 CPPUNIT_INCLUDES=$CPPUNIT_CFLAGS
27138
27139
27140
27141
27142   ac_ext=cpp
27143 ac_cpp='$CXXCPP $CPPFLAGS'
27144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27147
27148   gr_boost_include_dir=
27149
27150 # Check whether --with-boost-include-dir was given.
27151 if test "${with_boost_include_dir+set}" = set; then
27152   withval=$with_boost_include_dir;
27153       # "yes" and "no" are bogus answers
27154       if test x"$with_boost_include_dir" = xyes ||
27155          test x"$with_boost_include_dir" = xno; then
27156         gr_boost_include_dir=
27157       else
27158         gr_boost_include_dir=$with_boost_include_dir
27159       fi
27160
27161 fi
27162
27163   echo "gr_boost_include_dir = $gr_boost_include_dir"
27164   if test x$gr_boost_include_dir != x; then
27165     #
27166     # If the user specified a directory, then we use it
27167     #
27168     OLD_CPPFLAGS=$CPPFLAGS
27169     CPPFLAGS="$CPPFLAGS -I$gr_boost_include_dir"
27170     if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
27171   { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
27172 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
27173 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
27174   echo $ECHO_N "(cached) $ECHO_C" >&6
27175 fi
27176 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
27177 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
27178 else
27179   # Is the header compilable?
27180 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
27181 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
27182 cat >conftest.$ac_ext <<_ACEOF
27183 /* confdefs.h.  */
27184 _ACEOF
27185 cat confdefs.h >>conftest.$ac_ext
27186 cat >>conftest.$ac_ext <<_ACEOF
27187 /* end confdefs.h.  */
27188 $ac_includes_default
27189 #include <boost/shared_ptr.hpp>
27190 _ACEOF
27191 rm -f conftest.$ac_objext
27192 if { (ac_try="$ac_compile"
27193 case "(($ac_try" in
27194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27195   *) ac_try_echo=$ac_try;;
27196 esac
27197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27198   (eval "$ac_compile") 2>conftest.er1
27199   ac_status=$?
27200   grep -v '^ *+' conftest.er1 >conftest.err
27201   rm -f conftest.er1
27202   cat conftest.err >&5
27203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204   (exit $ac_status); } && {
27205          test -z "$ac_cxx_werror_flag" ||
27206          test ! -s conftest.err
27207        } && test -s conftest.$ac_objext; then
27208   ac_header_compiler=yes
27209 else
27210   echo "$as_me: failed program was:" >&5
27211 sed 's/^/| /' conftest.$ac_ext >&5
27212
27213         ac_header_compiler=no
27214 fi
27215
27216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27217 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27218 echo "${ECHO_T}$ac_header_compiler" >&6; }
27219
27220 # Is the header present?
27221 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
27222 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
27223 cat >conftest.$ac_ext <<_ACEOF
27224 /* confdefs.h.  */
27225 _ACEOF
27226 cat confdefs.h >>conftest.$ac_ext
27227 cat >>conftest.$ac_ext <<_ACEOF
27228 /* end confdefs.h.  */
27229 #include <boost/shared_ptr.hpp>
27230 _ACEOF
27231 if { (ac_try="$ac_cpp conftest.$ac_ext"
27232 case "(($ac_try" in
27233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27234   *) ac_try_echo=$ac_try;;
27235 esac
27236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27237   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27238   ac_status=$?
27239   grep -v '^ *+' conftest.er1 >conftest.err
27240   rm -f conftest.er1
27241   cat conftest.err >&5
27242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243   (exit $ac_status); } >/dev/null && {
27244          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27245          test ! -s conftest.err
27246        }; then
27247   ac_header_preproc=yes
27248 else
27249   echo "$as_me: failed program was:" >&5
27250 sed 's/^/| /' conftest.$ac_ext >&5
27251
27252   ac_header_preproc=no
27253 fi
27254
27255 rm -f conftest.err conftest.$ac_ext
27256 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27257 echo "${ECHO_T}$ac_header_preproc" >&6; }
27258
27259 # So?  What about this header?
27260 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27261   yes:no: )
27262     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
27263 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
27264     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
27265 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
27266     ac_header_preproc=yes
27267     ;;
27268   no:yes:* )
27269     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
27270 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
27271     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&5
27272 echo "$as_me: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&2;}
27273     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
27274 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
27275     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&5
27276 echo "$as_me: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
27277     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
27278 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
27279     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
27280 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
27281
27282     ;;
27283 esac
27284 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
27285 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
27286 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
27287   echo $ECHO_N "(cached) $ECHO_C" >&6
27288 else
27289   ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
27290 fi
27291 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
27292 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
27293
27294 fi
27295 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
27296   BOOST_CFLAGS="-I$gr_boost_include_dir"
27297 else
27298   { { echo "$as_me:$LINENO: error: Failed to locate boost/shared_ptr.hpp.
27299 Try using --with-boost-include-dir=<path>,
27300 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&5
27301 echo "$as_me: error: Failed to locate boost/shared_ptr.hpp.
27302 Try using --with-boost-include-dir=<path>,
27303 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&2;}
27304    { (exit 1); exit 1; }; }
27305 fi
27306
27307
27308     CPPFLAGS=$OLD_CPPFLAGS
27309   else
27310     #
27311     # Otherwise we check in the default places
27312     #
27313     if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
27314   { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
27315 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
27316 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
27317   echo $ECHO_N "(cached) $ECHO_C" >&6
27318 fi
27319 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
27320 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
27321 else
27322   # Is the header compilable?
27323 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
27324 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
27325 cat >conftest.$ac_ext <<_ACEOF
27326 /* confdefs.h.  */
27327 _ACEOF
27328 cat confdefs.h >>conftest.$ac_ext
27329 cat >>conftest.$ac_ext <<_ACEOF
27330 /* end confdefs.h.  */
27331 $ac_includes_default
27332 #include <boost/shared_ptr.hpp>
27333 _ACEOF
27334 rm -f conftest.$ac_objext
27335 if { (ac_try="$ac_compile"
27336 case "(($ac_try" in
27337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27338   *) ac_try_echo=$ac_try;;
27339 esac
27340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27341   (eval "$ac_compile") 2>conftest.er1
27342   ac_status=$?
27343   grep -v '^ *+' conftest.er1 >conftest.err
27344   rm -f conftest.er1
27345   cat conftest.err >&5
27346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347   (exit $ac_status); } && {
27348          test -z "$ac_cxx_werror_flag" ||
27349          test ! -s conftest.err
27350        } && test -s conftest.$ac_objext; then
27351   ac_header_compiler=yes
27352 else
27353   echo "$as_me: failed program was:" >&5
27354 sed 's/^/| /' conftest.$ac_ext >&5
27355
27356         ac_header_compiler=no
27357 fi
27358
27359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27361 echo "${ECHO_T}$ac_header_compiler" >&6; }
27362
27363 # Is the header present?
27364 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
27365 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
27366 cat >conftest.$ac_ext <<_ACEOF
27367 /* confdefs.h.  */
27368 _ACEOF
27369 cat confdefs.h >>conftest.$ac_ext
27370 cat >>conftest.$ac_ext <<_ACEOF
27371 /* end confdefs.h.  */
27372 #include <boost/shared_ptr.hpp>
27373 _ACEOF
27374 if { (ac_try="$ac_cpp conftest.$ac_ext"
27375 case "(($ac_try" in
27376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27377   *) ac_try_echo=$ac_try;;
27378 esac
27379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27380   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27381   ac_status=$?
27382   grep -v '^ *+' conftest.er1 >conftest.err
27383   rm -f conftest.er1
27384   cat conftest.err >&5
27385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386   (exit $ac_status); } >/dev/null && {
27387          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27388          test ! -s conftest.err
27389        }; then
27390   ac_header_preproc=yes
27391 else
27392   echo "$as_me: failed program was:" >&5
27393 sed 's/^/| /' conftest.$ac_ext >&5
27394
27395   ac_header_preproc=no
27396 fi
27397
27398 rm -f conftest.err conftest.$ac_ext
27399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27400 echo "${ECHO_T}$ac_header_preproc" >&6; }
27401
27402 # So?  What about this header?
27403 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27404   yes:no: )
27405     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
27406 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
27407     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
27408 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
27409     ac_header_preproc=yes
27410     ;;
27411   no:yes:* )
27412     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
27413 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
27414     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&5
27415 echo "$as_me: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&2;}
27416     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
27417 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
27418     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&5
27419 echo "$as_me: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
27420     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
27421 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
27422     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
27423 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
27424
27425     ;;
27426 esac
27427 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
27428 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
27429 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
27430   echo $ECHO_N "(cached) $ECHO_C" >&6
27431 else
27432   ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
27433 fi
27434 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
27435 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
27436
27437 fi
27438 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
27439   BOOST_CFLAGS=""
27440 else
27441    # Nope, look for latest version if any in $prefix/include/boost-*
27442
27443         # Wipe out cached value.  KLUDGE: AC should have API for this
27444         unset ac_cv_header_boost_shared_ptr_hpp
27445
27446         boost_last_match(){
27447           #echo "boost_last_match: [$]*"
27448           pattern="$1"
27449           shift
27450           if test "$pattern" = "$1"
27451           then
27452             LM=''
27453           else
27454             shift `expr $# - 1`
27455             LM=$1
27456           fi
27457           #echo "LM(1)='[$]LM'"
27458         }
27459
27460         pattern="/usr/local/include/boost-*"
27461         boost_last_match "$pattern" $pattern
27462         #echo "LM(2)='$LM'"
27463
27464         OLD_CPPFLAGS=$CPP_FLAGS
27465         CPPFLAGS="$CPPFLAGS -I$LM"
27466         if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
27467   { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
27468 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
27469 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
27470   echo $ECHO_N "(cached) $ECHO_C" >&6
27471 fi
27472 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
27473 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
27474 else
27475   # Is the header compilable?
27476 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
27477 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
27478 cat >conftest.$ac_ext <<_ACEOF
27479 /* confdefs.h.  */
27480 _ACEOF
27481 cat confdefs.h >>conftest.$ac_ext
27482 cat >>conftest.$ac_ext <<_ACEOF
27483 /* end confdefs.h.  */
27484 $ac_includes_default
27485 #include <boost/shared_ptr.hpp>
27486 _ACEOF
27487 rm -f conftest.$ac_objext
27488 if { (ac_try="$ac_compile"
27489 case "(($ac_try" in
27490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491   *) ac_try_echo=$ac_try;;
27492 esac
27493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27494   (eval "$ac_compile") 2>conftest.er1
27495   ac_status=$?
27496   grep -v '^ *+' conftest.er1 >conftest.err
27497   rm -f conftest.er1
27498   cat conftest.err >&5
27499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500   (exit $ac_status); } && {
27501          test -z "$ac_cxx_werror_flag" ||
27502          test ! -s conftest.err
27503        } && test -s conftest.$ac_objext; then
27504   ac_header_compiler=yes
27505 else
27506   echo "$as_me: failed program was:" >&5
27507 sed 's/^/| /' conftest.$ac_ext >&5
27508
27509         ac_header_compiler=no
27510 fi
27511
27512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27514 echo "${ECHO_T}$ac_header_compiler" >&6; }
27515
27516 # Is the header present?
27517 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
27518 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
27519 cat >conftest.$ac_ext <<_ACEOF
27520 /* confdefs.h.  */
27521 _ACEOF
27522 cat confdefs.h >>conftest.$ac_ext
27523 cat >>conftest.$ac_ext <<_ACEOF
27524 /* end confdefs.h.  */
27525 #include <boost/shared_ptr.hpp>
27526 _ACEOF
27527 if { (ac_try="$ac_cpp conftest.$ac_ext"
27528 case "(($ac_try" in
27529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27530   *) ac_try_echo=$ac_try;;
27531 esac
27532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27533   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27534   ac_status=$?
27535   grep -v '^ *+' conftest.er1 >conftest.err
27536   rm -f conftest.er1
27537   cat conftest.err >&5
27538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539   (exit $ac_status); } >/dev/null && {
27540          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27541          test ! -s conftest.err
27542        }; then
27543   ac_header_preproc=yes
27544 else
27545   echo "$as_me: failed program was:" >&5
27546 sed 's/^/| /' conftest.$ac_ext >&5
27547
27548   ac_header_preproc=no
27549 fi
27550
27551 rm -f conftest.err conftest.$ac_ext
27552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27553 echo "${ECHO_T}$ac_header_preproc" >&6; }
27554
27555 # So?  What about this header?
27556 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27557   yes:no: )
27558     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
27559 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
27560     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
27561 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
27562     ac_header_preproc=yes
27563     ;;
27564   no:yes:* )
27565     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
27566 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
27567     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&5
27568 echo "$as_me: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&2;}
27569     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
27570 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
27571     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&5
27572 echo "$as_me: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
27573     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
27574 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
27575     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
27576 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
27577
27578     ;;
27579 esac
27580 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
27581 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
27582 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
27583   echo $ECHO_N "(cached) $ECHO_C" >&6
27584 else
27585   ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
27586 fi
27587 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
27588 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
27589
27590 fi
27591 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
27592   BOOST_CFLAGS="-I$LM"
27593 else
27594   { { echo "$as_me:$LINENO: error: Failed to locate boost/shared_ptr.hpp.
27595 Try using --with-boost-include-dir=<path>,
27596 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&5
27597 echo "$as_me: error: Failed to locate boost/shared_ptr.hpp.
27598 Try using --with-boost-include-dir=<path>,
27599 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&2;}
27600    { (exit 1); exit 1; }; }
27601 fi
27602
27603
27604         CPPFLAGS=$OLD_CPPFLAGS
27605
27606 fi
27607
27608
27609
27610    fi
27611    unset boost_last_match LM
27612    ac_ext=c
27613 ac_cpp='$CPP $CPPFLAGS'
27614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27617
27618
27619
27620
27621 DEFINES=""
27622
27623
27624 # Check whether --enable-all-components was given.
27625 if test "${enable_all_components+set}" = set; then
27626   enableval=$enable_all_components;
27627 fi
27628
27629
27630 build_dirs="config"
27631
27632
27633     # Check whether --enable-gnuradio-core was given.
27634 if test "${enable_gnuradio_core+set}" = set; then
27635   enableval=$enable_gnuradio_core;
27636 else
27637   enable_gnuradio_core=$enable_all_components
27638 fi
27639
27640
27641
27642     ac_config_files="$ac_config_files gnuradio-core/Makefile gnuradio-core/gnuradio-core.pc gnuradio-core/doc/Doxyfile gnuradio-core/doc/Makefile gnuradio-core/doc/other/Makefile gnuradio-core/doc/xml/Makefile gnuradio-core/src/Makefile gnuradio-core/src/gen_interpolator_taps/Makefile gnuradio-core/src/lib/Makefile gnuradio-core/src/lib/filter/Makefile gnuradio-core/src/lib/g72x/Makefile gnuradio-core/src/lib/general/Makefile gnuradio-core/src/lib/general/gr_prefix.cc gnuradio-core/src/lib/io/Makefile gnuradio-core/src/lib/missing/Makefile gnuradio-core/src/lib/omnithread/Makefile gnuradio-core/src/lib/reed-solomon/Makefile gnuradio-core/src/lib/runtime/Makefile gnuradio-core/src/lib/swig/Makefile gnuradio-core/src/python/Makefile gnuradio-core/src/python/bin/Makefile gnuradio-core/src/python/gnuradio/Makefile gnuradio-core/src/python/gnuradio/blks/Makefile gnuradio-core/src/python/gnuradio/blksimpl/Makefile gnuradio-core/src/python/gnuradio/gr/Makefile gnuradio-core/src/python/gnuradio/gr/run_tests gnuradio-core/src/python/gnuradio/gru/Makefile gnuradio-core/src/python/gnuradio/gruimpl/Makefile gnuradio-core/src/tests/Makefile gnuradio-core/src/utils/Makefile"
27643
27644
27645     passed=yes
27646
27647     if test x$passed = xno; then
27648         skipped_dirs="$skipped_dirs gnuradio-core"
27649         if test x$enable_gnuradio_core = xyes; then
27650             { { echo "$as_me:$LINENO: error: Component gnuradio-core has errors, stopping." >&5
27651 echo "$as_me: error: Component gnuradio-core has errors, stopping." >&2;}
27652    { (exit 1); exit 1; }; }
27653         else
27654             { echo "$as_me:$LINENO: result: Not building component gnuradio-core." >&5
27655 echo "${ECHO_T}Not building component gnuradio-core." >&6; }
27656         fi
27657     else
27658         if test x$enable_gnuradio_core != xno; then
27659
27660                 ac_config_commands="$ac_config_commands run_tests_core"
27661
27662
27663                 ac_config_commands="$ac_config_commands swig_deps"
27664
27665
27666             build_dirs="$build_dirs gnuradio-core"
27667             { echo "$as_me:$LINENO: result: Component gnuradio-core passed configuration checks, building." >&5
27668 echo "${ECHO_T}Component gnuradio-core passed configuration checks, building." >&6; }
27669         else
27670             skipped_dirs="$skipped_dirs gnuradio-core"
27671             { echo "$as_me:$LINENO: result: Component gnuradio-core passed configuration checks, but not building." >&5
27672 echo "${ECHO_T}Component gnuradio-core passed configuration checks, but not building." >&6; }
27673         fi
27674     fi
27675
27676
27677
27678
27679     # Check whether --enable-gnuradio-examples was given.
27680 if test "${enable_gnuradio_examples+set}" = set; then
27681   enableval=$enable_gnuradio_examples;
27682 else
27683   enable_gnuradio_examples=$enable_all_components
27684 fi
27685
27686
27687
27688     ac_config_files="$ac_config_files gnuradio-examples/Makefile gnuradio-examples/python/Makefile gnuradio-examples/python/apps/hf_explorer/Makefile gnuradio-examples/python/apps/hf_radio/Makefile gnuradio-examples/python/apps/Makefile gnuradio-examples/python/audio/Makefile gnuradio-examples/python/channel-coding/Makefile gnuradio-examples/python/channel-coding/fsm_files/Makefile gnuradio-examples/python/digital/Makefile gnuradio-examples/python/digital_voice/Makefile gnuradio-examples/python/multi-antenna/Makefile gnuradio-examples/python/multi_usrp/Makefile gnuradio-examples/python/networking/Makefile gnuradio-examples/python/usrp/Makefile"
27689
27690
27691     passed=yes
27692
27693     if test x$passed = xno; then
27694         skipped_dirs="$skipped_dirs gnuradio-examples"
27695         if test x$enable_gnuradio_examples = xyes; then
27696             { { echo "$as_me:$LINENO: error: Component gnuradio-examples has errors, stopping." >&5
27697 echo "$as_me: error: Component gnuradio-examples has errors, stopping." >&2;}
27698    { (exit 1); exit 1; }; }
27699         else
27700             { echo "$as_me:$LINENO: result: Not building component gnuradio-examples." >&5
27701 echo "${ECHO_T}Not building component gnuradio-examples." >&6; }
27702         fi
27703     else
27704         if test x$enable_gnuradio_examples != xno; then
27705
27706             build_dirs="$build_dirs gnuradio-examples"
27707             { echo "$as_me:$LINENO: result: Component gnuradio-examples passed configuration checks, building." >&5
27708 echo "${ECHO_T}Component gnuradio-examples passed configuration checks, building." >&6; }
27709         else
27710             skipped_dirs="$skipped_dirs gnuradio-examples"
27711             { echo "$as_me:$LINENO: result: Component gnuradio-examples passed configuration checks, but not building." >&5
27712 echo "${ECHO_T}Component gnuradio-examples passed configuration checks, but not building." >&6; }
27713         fi
27714     fi
27715
27716
27717 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27718 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27719 if test "${ac_cv_header_stat_broken+set}" = set; then
27720   echo $ECHO_N "(cached) $ECHO_C" >&6
27721 else
27722   cat >conftest.$ac_ext <<_ACEOF
27723 /* confdefs.h.  */
27724 _ACEOF
27725 cat confdefs.h >>conftest.$ac_ext
27726 cat >>conftest.$ac_ext <<_ACEOF
27727 /* end confdefs.h.  */
27728 #include <sys/types.h>
27729 #include <sys/stat.h>
27730
27731 #if defined S_ISBLK && defined S_IFDIR
27732 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
27733 #endif
27734
27735 #if defined S_ISBLK && defined S_IFCHR
27736 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
27737 #endif
27738
27739 #if defined S_ISLNK && defined S_IFREG
27740 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
27741 #endif
27742
27743 #if defined S_ISSOCK && defined S_IFREG
27744 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
27745 #endif
27746
27747 _ACEOF
27748 rm -f conftest.$ac_objext
27749 if { (ac_try="$ac_compile"
27750 case "(($ac_try" in
27751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27752   *) ac_try_echo=$ac_try;;
27753 esac
27754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27755   (eval "$ac_compile") 2>conftest.er1
27756   ac_status=$?
27757   grep -v '^ *+' conftest.er1 >conftest.err
27758   rm -f conftest.er1
27759   cat conftest.err >&5
27760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761   (exit $ac_status); } && {
27762          test -z "$ac_c_werror_flag" ||
27763          test ! -s conftest.err
27764        } && test -s conftest.$ac_objext; then
27765   ac_cv_header_stat_broken=no
27766 else
27767   echo "$as_me: failed program was:" >&5
27768 sed 's/^/| /' conftest.$ac_ext >&5
27769
27770         ac_cv_header_stat_broken=yes
27771 fi
27772
27773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27774 fi
27775 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27776 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
27777 if test $ac_cv_header_stat_broken = yes; then
27778
27779 cat >>confdefs.h <<\_ACEOF
27780 #define STAT_MACROS_BROKEN 1
27781 _ACEOF
27782
27783 fi
27784
27785
27786
27787 for ac_header in fcntl.h
27788 do
27789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27791   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27794   echo $ECHO_N "(cached) $ECHO_C" >&6
27795 fi
27796 ac_res=`eval echo '${'$as_ac_Header'}'`
27797                { echo "$as_me:$LINENO: result: $ac_res" >&5
27798 echo "${ECHO_T}$ac_res" >&6; }
27799 else
27800   # Is the header compilable?
27801 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27803 cat >conftest.$ac_ext <<_ACEOF
27804 /* confdefs.h.  */
27805 _ACEOF
27806 cat confdefs.h >>conftest.$ac_ext
27807 cat >>conftest.$ac_ext <<_ACEOF
27808 /* end confdefs.h.  */
27809 $ac_includes_default
27810 #include <$ac_header>
27811 _ACEOF
27812 rm -f conftest.$ac_objext
27813 if { (ac_try="$ac_compile"
27814 case "(($ac_try" in
27815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27816   *) ac_try_echo=$ac_try;;
27817 esac
27818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27819   (eval "$ac_compile") 2>conftest.er1
27820   ac_status=$?
27821   grep -v '^ *+' conftest.er1 >conftest.err
27822   rm -f conftest.er1
27823   cat conftest.err >&5
27824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825   (exit $ac_status); } && {
27826          test -z "$ac_c_werror_flag" ||
27827          test ! -s conftest.err
27828        } && test -s conftest.$ac_objext; then
27829   ac_header_compiler=yes
27830 else
27831   echo "$as_me: failed program was:" >&5
27832 sed 's/^/| /' conftest.$ac_ext >&5
27833
27834         ac_header_compiler=no
27835 fi
27836
27837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27839 echo "${ECHO_T}$ac_header_compiler" >&6; }
27840
27841 # Is the header present?
27842 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27844 cat >conftest.$ac_ext <<_ACEOF
27845 /* confdefs.h.  */
27846 _ACEOF
27847 cat confdefs.h >>conftest.$ac_ext
27848 cat >>conftest.$ac_ext <<_ACEOF
27849 /* end confdefs.h.  */
27850 #include <$ac_header>
27851 _ACEOF
27852 if { (ac_try="$ac_cpp conftest.$ac_ext"
27853 case "(($ac_try" in
27854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27855   *) ac_try_echo=$ac_try;;
27856 esac
27857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27858   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27859   ac_status=$?
27860   grep -v '^ *+' conftest.er1 >conftest.err
27861   rm -f conftest.er1
27862   cat conftest.err >&5
27863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864   (exit $ac_status); } >/dev/null && {
27865          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27866          test ! -s conftest.err
27867        }; then
27868   ac_header_preproc=yes
27869 else
27870   echo "$as_me: failed program was:" >&5
27871 sed 's/^/| /' conftest.$ac_ext >&5
27872
27873   ac_header_preproc=no
27874 fi
27875
27876 rm -f conftest.err conftest.$ac_ext
27877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27878 echo "${ECHO_T}$ac_header_preproc" >&6; }
27879
27880 # So?  What about this header?
27881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27882   yes:no: )
27883     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27885     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27887     ac_header_preproc=yes
27888     ;;
27889   no:yes:* )
27890     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27892     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27893 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27894     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27896     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27897 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27898     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27900     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27902
27903     ;;
27904 esac
27905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27908   echo $ECHO_N "(cached) $ECHO_C" >&6
27909 else
27910   eval "$as_ac_Header=\$ac_header_preproc"
27911 fi
27912 ac_res=`eval echo '${'$as_ac_Header'}'`
27913                { echo "$as_me:$LINENO: result: $ac_res" >&5
27914 echo "${ECHO_T}$ac_res" >&6; }
27915
27916 fi
27917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27918   cat >>confdefs.h <<_ACEOF
27919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27920 _ACEOF
27921
27922 fi
27923
27924 done
27925
27926
27927
27928
27929 for ac_header in sys/time.h
27930 do
27931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27933   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27936   echo $ECHO_N "(cached) $ECHO_C" >&6
27937 fi
27938 ac_res=`eval echo '${'$as_ac_Header'}'`
27939                { echo "$as_me:$LINENO: result: $ac_res" >&5
27940 echo "${ECHO_T}$ac_res" >&6; }
27941 else
27942   # Is the header compilable?
27943 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27945 cat >conftest.$ac_ext <<_ACEOF
27946 /* confdefs.h.  */
27947 _ACEOF
27948 cat confdefs.h >>conftest.$ac_ext
27949 cat >>conftest.$ac_ext <<_ACEOF
27950 /* end confdefs.h.  */
27951 $ac_includes_default
27952 #include <$ac_header>
27953 _ACEOF
27954 rm -f conftest.$ac_objext
27955 if { (ac_try="$ac_compile"
27956 case "(($ac_try" in
27957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27958   *) ac_try_echo=$ac_try;;
27959 esac
27960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27961   (eval "$ac_compile") 2>conftest.er1
27962   ac_status=$?
27963   grep -v '^ *+' conftest.er1 >conftest.err
27964   rm -f conftest.er1
27965   cat conftest.err >&5
27966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967   (exit $ac_status); } && {
27968          test -z "$ac_c_werror_flag" ||
27969          test ! -s conftest.err
27970        } && test -s conftest.$ac_objext; then
27971   ac_header_compiler=yes
27972 else
27973   echo "$as_me: failed program was:" >&5
27974 sed 's/^/| /' conftest.$ac_ext >&5
27975
27976         ac_header_compiler=no
27977 fi
27978
27979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27981 echo "${ECHO_T}$ac_header_compiler" >&6; }
27982
27983 # Is the header present?
27984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27986 cat >conftest.$ac_ext <<_ACEOF
27987 /* confdefs.h.  */
27988 _ACEOF
27989 cat confdefs.h >>conftest.$ac_ext
27990 cat >>conftest.$ac_ext <<_ACEOF
27991 /* end confdefs.h.  */
27992 #include <$ac_header>
27993 _ACEOF
27994 if { (ac_try="$ac_cpp conftest.$ac_ext"
27995 case "(($ac_try" in
27996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27997   *) ac_try_echo=$ac_try;;
27998 esac
27999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28001   ac_status=$?
28002   grep -v '^ *+' conftest.er1 >conftest.err
28003   rm -f conftest.er1
28004   cat conftest.err >&5
28005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006   (exit $ac_status); } >/dev/null && {
28007          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28008          test ! -s conftest.err
28009        }; then
28010   ac_header_preproc=yes
28011 else
28012   echo "$as_me: failed program was:" >&5
28013 sed 's/^/| /' conftest.$ac_ext >&5
28014
28015   ac_header_preproc=no
28016 fi
28017
28018 rm -f conftest.err conftest.$ac_ext
28019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28020 echo "${ECHO_T}$ac_header_preproc" >&6; }
28021
28022 # So?  What about this header?
28023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28024   yes:no: )
28025     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28029     ac_header_preproc=yes
28030     ;;
28031   no:yes:* )
28032     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28034     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28035 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28036     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28038     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28039 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28042     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28044
28045     ;;
28046 esac
28047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28050   echo $ECHO_N "(cached) $ECHO_C" >&6
28051 else
28052   eval "$as_ac_Header=\$ac_header_preproc"
28053 fi
28054 ac_res=`eval echo '${'$as_ac_Header'}'`
28055                { echo "$as_me:$LINENO: result: $ac_res" >&5
28056 echo "${ECHO_T}$ac_res" >&6; }
28057
28058 fi
28059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28060   cat >>confdefs.h <<_ACEOF
28061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28062 _ACEOF
28063
28064 fi
28065
28066 done
28067
28068
28069
28070
28071 for ac_header in unistd.h
28072 do
28073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28075   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28078   echo $ECHO_N "(cached) $ECHO_C" >&6
28079 fi
28080 ac_res=`eval echo '${'$as_ac_Header'}'`
28081                { echo "$as_me:$LINENO: result: $ac_res" >&5
28082 echo "${ECHO_T}$ac_res" >&6; }
28083 else
28084   # Is the header compilable?
28085 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28087 cat >conftest.$ac_ext <<_ACEOF
28088 /* confdefs.h.  */
28089 _ACEOF
28090 cat confdefs.h >>conftest.$ac_ext
28091 cat >>conftest.$ac_ext <<_ACEOF
28092 /* end confdefs.h.  */
28093 $ac_includes_default
28094 #include <$ac_header>
28095 _ACEOF
28096 rm -f conftest.$ac_objext
28097 if { (ac_try="$ac_compile"
28098 case "(($ac_try" in
28099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28100   *) ac_try_echo=$ac_try;;
28101 esac
28102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28103   (eval "$ac_compile") 2>conftest.er1
28104   ac_status=$?
28105   grep -v '^ *+' conftest.er1 >conftest.err
28106   rm -f conftest.er1
28107   cat conftest.err >&5
28108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28109   (exit $ac_status); } && {
28110          test -z "$ac_c_werror_flag" ||
28111          test ! -s conftest.err
28112        } && test -s conftest.$ac_objext; then
28113   ac_header_compiler=yes
28114 else
28115   echo "$as_me: failed program was:" >&5
28116 sed 's/^/| /' conftest.$ac_ext >&5
28117
28118         ac_header_compiler=no
28119 fi
28120
28121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28122 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28123 echo "${ECHO_T}$ac_header_compiler" >&6; }
28124
28125 # Is the header present?
28126 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28128 cat >conftest.$ac_ext <<_ACEOF
28129 /* confdefs.h.  */
28130 _ACEOF
28131 cat confdefs.h >>conftest.$ac_ext
28132 cat >>conftest.$ac_ext <<_ACEOF
28133 /* end confdefs.h.  */
28134 #include <$ac_header>
28135 _ACEOF
28136 if { (ac_try="$ac_cpp conftest.$ac_ext"
28137 case "(($ac_try" in
28138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28139   *) ac_try_echo=$ac_try;;
28140 esac
28141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28142   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28143   ac_status=$?
28144   grep -v '^ *+' conftest.er1 >conftest.err
28145   rm -f conftest.er1
28146   cat conftest.err >&5
28147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148   (exit $ac_status); } >/dev/null && {
28149          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28150          test ! -s conftest.err
28151        }; then
28152   ac_header_preproc=yes
28153 else
28154   echo "$as_me: failed program was:" >&5
28155 sed 's/^/| /' conftest.$ac_ext >&5
28156
28157   ac_header_preproc=no
28158 fi
28159
28160 rm -f conftest.err conftest.$ac_ext
28161 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28162 echo "${ECHO_T}$ac_header_preproc" >&6; }
28163
28164 # So?  What about this header?
28165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28166   yes:no: )
28167     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28169     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28171     ac_header_preproc=yes
28172     ;;
28173   no:yes:* )
28174     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28176     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28177 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28178     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28180     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28181 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28184     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28186
28187     ;;
28188 esac
28189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28192   echo $ECHO_N "(cached) $ECHO_C" >&6
28193 else
28194   eval "$as_ac_Header=\$ac_header_preproc"
28195 fi
28196 ac_res=`eval echo '${'$as_ac_Header'}'`
28197                { echo "$as_me:$LINENO: result: $ac_res" >&5
28198 echo "${ECHO_T}$ac_res" >&6; }
28199
28200 fi
28201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28202   cat >>confdefs.h <<_ACEOF
28203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28204 _ACEOF
28205
28206 fi
28207
28208 done
28209
28210
28211
28212       { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
28213 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
28214 if test "${ac_cv_have_decl_getenv+set}" = set; then
28215   echo $ECHO_N "(cached) $ECHO_C" >&6
28216 else
28217   cat >conftest.$ac_ext <<_ACEOF
28218 /* confdefs.h.  */
28219 _ACEOF
28220 cat confdefs.h >>conftest.$ac_ext
28221 cat >>conftest.$ac_ext <<_ACEOF
28222 /* end confdefs.h.  */
28223 $ac_includes_default
28224 int
28225 main ()
28226 {
28227 #ifndef getenv
28228   (void) getenv;
28229 #endif
28230
28231   ;
28232   return 0;
28233 }
28234 _ACEOF
28235 rm -f conftest.$ac_objext
28236 if { (ac_try="$ac_compile"
28237 case "(($ac_try" in
28238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28239   *) ac_try_echo=$ac_try;;
28240 esac
28241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28242   (eval "$ac_compile") 2>conftest.er1
28243   ac_status=$?
28244   grep -v '^ *+' conftest.er1 >conftest.err
28245   rm -f conftest.er1
28246   cat conftest.err >&5
28247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28248   (exit $ac_status); } && {
28249          test -z "$ac_c_werror_flag" ||
28250          test ! -s conftest.err
28251        } && test -s conftest.$ac_objext; then
28252   ac_cv_have_decl_getenv=yes
28253 else
28254   echo "$as_me: failed program was:" >&5
28255 sed 's/^/| /' conftest.$ac_ext >&5
28256
28257         ac_cv_have_decl_getenv=no
28258 fi
28259
28260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28261 fi
28262 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
28263 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
28264 if test $ac_cv_have_decl_getenv = yes; then
28265
28266 cat >>confdefs.h <<_ACEOF
28267 #define HAVE_DECL_GETENV 1
28268 _ACEOF
28269
28270
28271 else
28272   cat >>confdefs.h <<_ACEOF
28273 #define HAVE_DECL_GETENV 0
28274 _ACEOF
28275
28276
28277 fi
28278
28279
28280
28281
28282
28283     # Check whether --enable-usrp was given.
28284 if test "${enable_usrp+set}" = set; then
28285   enableval=$enable_usrp;
28286 else
28287   enable_usrp=$enable_all_components
28288 fi
28289
28290
28291
28292     ac_config_files="$ac_config_files usrp/Makefile usrp/usrp.pc usrp/usrp.iss usrp/doc/Doxyfile usrp/doc/Makefile usrp/doc/other/Makefile usrp/host/Makefile usrp/host/misc/Makefile usrp/host/lib/Makefile usrp/host/lib/std_paths.h usrp/host/swig/Makefile usrp/host/apps/Makefile usrp/firmware/Makefile usrp/firmware/include/Makefile usrp/firmware/lib/Makefile usrp/firmware/src/Makefile usrp/firmware/src/common/Makefile usrp/firmware/src/usrp2/Makefile usrp/fpga/Makefile usrp/fpga/rbf/Makefile"
28293
28294
28295     # gnulib.
28296     # FIXME: this needs to fail gracefully and continue, not implemented yet
28297
28298 for ac_func in mkstemp
28299 do
28300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28304   echo $ECHO_N "(cached) $ECHO_C" >&6
28305 else
28306   cat >conftest.$ac_ext <<_ACEOF
28307 /* confdefs.h.  */
28308 _ACEOF
28309 cat confdefs.h >>conftest.$ac_ext
28310 cat >>conftest.$ac_ext <<_ACEOF
28311 /* end confdefs.h.  */
28312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28314 #define $ac_func innocuous_$ac_func
28315
28316 /* System header to define __stub macros and hopefully few prototypes,
28317     which can conflict with char $ac_func (); below.
28318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28319     <limits.h> exists even on freestanding compilers.  */
28320
28321 #ifdef __STDC__
28322 # include <limits.h>
28323 #else
28324 # include <assert.h>
28325 #endif
28326
28327 #undef $ac_func
28328
28329 /* Override any GCC internal prototype to avoid an error.
28330    Use char because int might match the return type of a GCC
28331    builtin and then its argument prototype would still apply.  */
28332 #ifdef __cplusplus
28333 extern "C"
28334 #endif
28335 char $ac_func ();
28336 /* The GNU C library defines this for functions which it implements
28337     to always fail with ENOSYS.  Some functions are actually named
28338     something starting with __ and the normal name is an alias.  */
28339 #if defined __stub_$ac_func || defined __stub___$ac_func
28340 choke me
28341 #endif
28342
28343 int
28344 main ()
28345 {
28346 return $ac_func ();
28347   ;
28348   return 0;
28349 }
28350 _ACEOF
28351 rm -f conftest.$ac_objext conftest$ac_exeext
28352 if { (ac_try="$ac_link"
28353 case "(($ac_try" in
28354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28355   *) ac_try_echo=$ac_try;;
28356 esac
28357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28358   (eval "$ac_link") 2>conftest.er1
28359   ac_status=$?
28360   grep -v '^ *+' conftest.er1 >conftest.err
28361   rm -f conftest.er1
28362   cat conftest.err >&5
28363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364   (exit $ac_status); } && {
28365          test -z "$ac_c_werror_flag" ||
28366          test ! -s conftest.err
28367        } && test -s conftest$ac_exeext &&
28368        $as_test_x conftest$ac_exeext; then
28369   eval "$as_ac_var=yes"
28370 else
28371   echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28373
28374         eval "$as_ac_var=no"
28375 fi
28376
28377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28378       conftest$ac_exeext conftest.$ac_ext
28379 fi
28380 ac_res=`eval echo '${'$as_ac_var'}'`
28381                { echo "$as_me:$LINENO: result: $ac_res" >&5
28382 echo "${ECHO_T}$ac_res" >&6; }
28383 if test `eval echo '${'$as_ac_var'}'` = yes; then
28384   cat >>confdefs.h <<_ACEOF
28385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28386 _ACEOF
28387
28388 else
28389   case " $LIBOBJS " in
28390   *" $ac_func.$ac_objext "* ) ;;
28391   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
28392  ;;
28393 esac
28394
28395 fi
28396 done
28397
28398
28399   if test $ac_cv_func_mkstemp = no; then
28400     utils_cv_func_mkstemp_limitations=yes
28401   else
28402     { echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
28403 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6; }
28404 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
28405   echo $ECHO_N "(cached) $ECHO_C" >&6
28406 else
28407
28408         if test "$cross_compiling" = yes; then
28409   utils_cv_func_mkstemp_limitations=yes
28410
28411 else
28412   cat >conftest.$ac_ext <<_ACEOF
28413 /* confdefs.h.  */
28414 _ACEOF
28415 cat confdefs.h >>conftest.$ac_ext
28416 cat >>conftest.$ac_ext <<_ACEOF
28417 /* end confdefs.h.  */
28418
28419 #         include <stdlib.h>
28420           int main ()
28421           {
28422             int i;
28423             for (i = 0; i < 70; i++)
28424               {
28425                 char template[] = "conftestXXXXXX";
28426                 int fd = mkstemp (template);
28427                 if (fd == -1)
28428                   exit (1);
28429                 close (fd);
28430               }
28431             exit (0);
28432           }
28433
28434 _ACEOF
28435 rm -f conftest$ac_exeext
28436 if { (ac_try="$ac_link"
28437 case "(($ac_try" in
28438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28439   *) ac_try_echo=$ac_try;;
28440 esac
28441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28442   (eval "$ac_link") 2>&5
28443   ac_status=$?
28444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28446   { (case "(($ac_try" in
28447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28448   *) ac_try_echo=$ac_try;;
28449 esac
28450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28451   (eval "$ac_try") 2>&5
28452   ac_status=$?
28453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454   (exit $ac_status); }; }; then
28455   utils_cv_func_mkstemp_limitations=no
28456 else
28457   echo "$as_me: program exited with status $ac_status" >&5
28458 echo "$as_me: failed program was:" >&5
28459 sed 's/^/| /' conftest.$ac_ext >&5
28460
28461 ( exit $ac_status )
28462 utils_cv_func_mkstemp_limitations=yes
28463 fi
28464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28465 fi
28466
28467
28468
28469
28470 fi
28471 { echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
28472 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6; }
28473   fi
28474
28475   if test $utils_cv_func_mkstemp_limitations = yes; then
28476     case " $LIBOBJS " in
28477   *" mkstemp.$ac_objext "* ) ;;
28478   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
28479  ;;
28480 esac
28481
28482     case " $LIBOBJS " in
28483   *" tempname.$ac_objext "* ) ;;
28484   *) LIBOBJS="$LIBOBJS tempname.$ac_objext"
28485  ;;
28486 esac
28487
28488
28489 cat >>confdefs.h <<\_ACEOF
28490 #define mkstemp rpl_mkstemp
28491 _ACEOF
28492
28493
28494
28495
28496
28497
28498
28499
28500   :
28501
28502
28503
28504
28505
28506
28507
28508
28509
28510
28511
28512
28513 for ac_header in stdint.h
28514 do
28515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28517   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28520   echo $ECHO_N "(cached) $ECHO_C" >&6
28521 fi
28522 ac_res=`eval echo '${'$as_ac_Header'}'`
28523                { echo "$as_me:$LINENO: result: $ac_res" >&5
28524 echo "${ECHO_T}$ac_res" >&6; }
28525 else
28526   # Is the header compilable?
28527 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28529 cat >conftest.$ac_ext <<_ACEOF
28530 /* confdefs.h.  */
28531 _ACEOF
28532 cat confdefs.h >>conftest.$ac_ext
28533 cat >>conftest.$ac_ext <<_ACEOF
28534 /* end confdefs.h.  */
28535 $ac_includes_default
28536 #include <$ac_header>
28537 _ACEOF
28538 rm -f conftest.$ac_objext
28539 if { (ac_try="$ac_compile"
28540 case "(($ac_try" in
28541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28542   *) ac_try_echo=$ac_try;;
28543 esac
28544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28545   (eval "$ac_compile") 2>conftest.er1
28546   ac_status=$?
28547   grep -v '^ *+' conftest.er1 >conftest.err
28548   rm -f conftest.er1
28549   cat conftest.err >&5
28550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551   (exit $ac_status); } && {
28552          test -z "$ac_c_werror_flag" ||
28553          test ! -s conftest.err
28554        } && test -s conftest.$ac_objext; then
28555   ac_header_compiler=yes
28556 else
28557   echo "$as_me: failed program was:" >&5
28558 sed 's/^/| /' conftest.$ac_ext >&5
28559
28560         ac_header_compiler=no
28561 fi
28562
28563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28565 echo "${ECHO_T}$ac_header_compiler" >&6; }
28566
28567 # Is the header present?
28568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28570 cat >conftest.$ac_ext <<_ACEOF
28571 /* confdefs.h.  */
28572 _ACEOF
28573 cat confdefs.h >>conftest.$ac_ext
28574 cat >>conftest.$ac_ext <<_ACEOF
28575 /* end confdefs.h.  */
28576 #include <$ac_header>
28577 _ACEOF
28578 if { (ac_try="$ac_cpp conftest.$ac_ext"
28579 case "(($ac_try" in
28580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28581   *) ac_try_echo=$ac_try;;
28582 esac
28583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28585   ac_status=$?
28586   grep -v '^ *+' conftest.er1 >conftest.err
28587   rm -f conftest.er1
28588   cat conftest.err >&5
28589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590   (exit $ac_status); } >/dev/null && {
28591          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28592          test ! -s conftest.err
28593        }; then
28594   ac_header_preproc=yes
28595 else
28596   echo "$as_me: failed program was:" >&5
28597 sed 's/^/| /' conftest.$ac_ext >&5
28598
28599   ac_header_preproc=no
28600 fi
28601
28602 rm -f conftest.err conftest.$ac_ext
28603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28604 echo "${ECHO_T}$ac_header_preproc" >&6; }
28605
28606 # So?  What about this header?
28607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28608   yes:no: )
28609     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28611     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28613     ac_header_preproc=yes
28614     ;;
28615   no:yes:* )
28616     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28618     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28619 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28620     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28622     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28623 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28626     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28628
28629     ;;
28630 esac
28631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28634   echo $ECHO_N "(cached) $ECHO_C" >&6
28635 else
28636   eval "$as_ac_Header=\$ac_header_preproc"
28637 fi
28638 ac_res=`eval echo '${'$as_ac_Header'}'`
28639                { echo "$as_me:$LINENO: result: $ac_res" >&5
28640 echo "${ECHO_T}$ac_res" >&6; }
28641
28642 fi
28643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28644   cat >>confdefs.h <<_ACEOF
28645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28646 _ACEOF
28647
28648 fi
28649
28650 done
28651
28652
28653
28654
28655 for ac_func in __secure_getenv gettimeofday lstat
28656 do
28657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28658 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28661   echo $ECHO_N "(cached) $ECHO_C" >&6
28662 else
28663   cat >conftest.$ac_ext <<_ACEOF
28664 /* confdefs.h.  */
28665 _ACEOF
28666 cat confdefs.h >>conftest.$ac_ext
28667 cat >>conftest.$ac_ext <<_ACEOF
28668 /* end confdefs.h.  */
28669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28670    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28671 #define $ac_func innocuous_$ac_func
28672
28673 /* System header to define __stub macros and hopefully few prototypes,
28674     which can conflict with char $ac_func (); below.
28675     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28676     <limits.h> exists even on freestanding compilers.  */
28677
28678 #ifdef __STDC__
28679 # include <limits.h>
28680 #else
28681 # include <assert.h>
28682 #endif
28683
28684 #undef $ac_func
28685
28686 /* Override any GCC internal prototype to avoid an error.
28687    Use char because int might match the return type of a GCC
28688    builtin and then its argument prototype would still apply.  */
28689 #ifdef __cplusplus
28690 extern "C"
28691 #endif
28692 char $ac_func ();
28693 /* The GNU C library defines this for functions which it implements
28694     to always fail with ENOSYS.  Some functions are actually named
28695     something starting with __ and the normal name is an alias.  */
28696 #if defined __stub_$ac_func || defined __stub___$ac_func
28697 choke me
28698 #endif
28699
28700 int
28701 main ()
28702 {
28703 return $ac_func ();
28704   ;
28705   return 0;
28706 }
28707 _ACEOF
28708 rm -f conftest.$ac_objext conftest$ac_exeext
28709 if { (ac_try="$ac_link"
28710 case "(($ac_try" in
28711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28712   *) ac_try_echo=$ac_try;;
28713 esac
28714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28715   (eval "$ac_link") 2>conftest.er1
28716   ac_status=$?
28717   grep -v '^ *+' conftest.er1 >conftest.err
28718   rm -f conftest.er1
28719   cat conftest.err >&5
28720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721   (exit $ac_status); } && {
28722          test -z "$ac_c_werror_flag" ||
28723          test ! -s conftest.err
28724        } && test -s conftest$ac_exeext &&
28725        $as_test_x conftest$ac_exeext; then
28726   eval "$as_ac_var=yes"
28727 else
28728   echo "$as_me: failed program was:" >&5
28729 sed 's/^/| /' conftest.$ac_ext >&5
28730
28731         eval "$as_ac_var=no"
28732 fi
28733
28734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28735       conftest$ac_exeext conftest.$ac_ext
28736 fi
28737 ac_res=`eval echo '${'$as_ac_var'}'`
28738                { echo "$as_me:$LINENO: result: $ac_res" >&5
28739 echo "${ECHO_T}$ac_res" >&6; }
28740 if test `eval echo '${'$as_ac_var'}'` = yes; then
28741   cat >>confdefs.h <<_ACEOF
28742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28743 _ACEOF
28744
28745 fi
28746 done
28747
28748
28749   :
28750
28751
28752
28753
28754
28755   # AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
28756
28757     { echo "$as_me:$LINENO: checking whether mkdir accepts only one arg" >&5
28758 echo $ECHO_N "checking whether mkdir accepts only one arg... $ECHO_C" >&6; }
28759   cat >conftest.$ac_ext <<_ACEOF
28760 /* confdefs.h.  */
28761 _ACEOF
28762 cat confdefs.h >>conftest.$ac_ext
28763 cat >>conftest.$ac_ext <<_ACEOF
28764 /* end confdefs.h.  */
28765 #include <sys/types.h>
28766        #include <sys/stat.h>
28767        #include <fcntl.h>
28768 int
28769 main ()
28770 {
28771
28772        mkdir("")
28773
28774   ;
28775   return 0;
28776 }
28777 _ACEOF
28778 rm -f conftest.$ac_objext
28779 if { (ac_try="$ac_compile"
28780 case "(($ac_try" in
28781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28782   *) ac_try_echo=$ac_try;;
28783 esac
28784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28785   (eval "$ac_compile") 2>conftest.er1
28786   ac_status=$?
28787   grep -v '^ *+' conftest.er1 >conftest.err
28788   rm -f conftest.er1
28789   cat conftest.err >&5
28790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791   (exit $ac_status); } && {
28792          test -z "$ac_c_werror_flag" ||
28793          test ! -s conftest.err
28794        } && test -s conftest.$ac_objext; then
28795    { echo "$as_me:$LINENO: result: yes" >&5
28796 echo "${ECHO_T}yes" >&6; }
28797
28798 cat >>confdefs.h <<\_ACEOF
28799 #define MKDIR_TAKES_ONE_ARG
28800 _ACEOF
28801
28802 else
28803   echo "$as_me: failed program was:" >&5
28804 sed 's/^/| /' conftest.$ac_ext >&5
28805
28806          { echo "$as_me:$LINENO: result: no" >&5
28807 echo "${ECHO_T}no" >&6; }
28808
28809 fi
28810
28811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28812
28813   fi
28814
28815
28816     # These checks don't fail
28817     { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
28818 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
28819 if test "${ac_cv_c_bigendian+set}" = set; then
28820   echo $ECHO_N "(cached) $ECHO_C" >&6
28821 else
28822   # See if sys/param.h defines the BYTE_ORDER macro.
28823 cat >conftest.$ac_ext <<_ACEOF
28824 /* confdefs.h.  */
28825 _ACEOF
28826 cat confdefs.h >>conftest.$ac_ext
28827 cat >>conftest.$ac_ext <<_ACEOF
28828 /* end confdefs.h.  */
28829 #include <sys/types.h>
28830 #include <sys/param.h>
28831
28832 int
28833 main ()
28834 {
28835 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
28836         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
28837  bogus endian macros
28838 #endif
28839
28840   ;
28841   return 0;
28842 }
28843 _ACEOF
28844 rm -f conftest.$ac_objext
28845 if { (ac_try="$ac_compile"
28846 case "(($ac_try" in
28847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28848   *) ac_try_echo=$ac_try;;
28849 esac
28850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28851   (eval "$ac_compile") 2>conftest.er1
28852   ac_status=$?
28853   grep -v '^ *+' conftest.er1 >conftest.err
28854   rm -f conftest.er1
28855   cat conftest.err >&5
28856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857   (exit $ac_status); } && {
28858          test -z "$ac_c_werror_flag" ||
28859          test ! -s conftest.err
28860        } && test -s conftest.$ac_objext; then
28861   # It does; now see whether it defined to BIG_ENDIAN or not.
28862 cat >conftest.$ac_ext <<_ACEOF
28863 /* confdefs.h.  */
28864 _ACEOF
28865 cat confdefs.h >>conftest.$ac_ext
28866 cat >>conftest.$ac_ext <<_ACEOF
28867 /* end confdefs.h.  */
28868 #include <sys/types.h>
28869 #include <sys/param.h>
28870
28871 int
28872 main ()
28873 {
28874 #if BYTE_ORDER != BIG_ENDIAN
28875  not big endian
28876 #endif
28877
28878   ;
28879   return 0;
28880 }
28881 _ACEOF
28882 rm -f conftest.$ac_objext
28883 if { (ac_try="$ac_compile"
28884 case "(($ac_try" in
28885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28886   *) ac_try_echo=$ac_try;;
28887 esac
28888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28889   (eval "$ac_compile") 2>conftest.er1
28890   ac_status=$?
28891   grep -v '^ *+' conftest.er1 >conftest.err
28892   rm -f conftest.er1
28893   cat conftest.err >&5
28894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895   (exit $ac_status); } && {
28896          test -z "$ac_c_werror_flag" ||
28897          test ! -s conftest.err
28898        } && test -s conftest.$ac_objext; then
28899   ac_cv_c_bigendian=yes
28900 else
28901   echo "$as_me: failed program was:" >&5
28902 sed 's/^/| /' conftest.$ac_ext >&5
28903
28904         ac_cv_c_bigendian=no
28905 fi
28906
28907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28908 else
28909   echo "$as_me: failed program was:" >&5
28910 sed 's/^/| /' conftest.$ac_ext >&5
28911
28912         # It does not; compile a test program.
28913 if test "$cross_compiling" = yes; then
28914   # try to guess the endianness by grepping values into an object file
28915   ac_cv_c_bigendian=unknown
28916   cat >conftest.$ac_ext <<_ACEOF
28917 /* confdefs.h.  */
28918 _ACEOF
28919 cat confdefs.h >>conftest.$ac_ext
28920 cat >>conftest.$ac_ext <<_ACEOF
28921 /* end confdefs.h.  */
28922 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28923 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28924 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
28925 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28926 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28927 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
28928 int
28929 main ()
28930 {
28931  _ascii (); _ebcdic ();
28932   ;
28933   return 0;
28934 }
28935 _ACEOF
28936 rm -f conftest.$ac_objext
28937 if { (ac_try="$ac_compile"
28938 case "(($ac_try" in
28939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28940   *) ac_try_echo=$ac_try;;
28941 esac
28942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28943   (eval "$ac_compile") 2>conftest.er1
28944   ac_status=$?
28945   grep -v '^ *+' conftest.er1 >conftest.err
28946   rm -f conftest.er1
28947   cat conftest.err >&5
28948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949   (exit $ac_status); } && {
28950          test -z "$ac_c_werror_flag" ||
28951          test ! -s conftest.err
28952        } && test -s conftest.$ac_objext; then
28953   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
28954   ac_cv_c_bigendian=yes
28955 fi
28956 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28957   if test "$ac_cv_c_bigendian" = unknown; then
28958     ac_cv_c_bigendian=no
28959   else
28960     # finding both strings is unlikely to happen, but who knows?
28961     ac_cv_c_bigendian=unknown
28962   fi
28963 fi
28964 else
28965   echo "$as_me: failed program was:" >&5
28966 sed 's/^/| /' conftest.$ac_ext >&5
28967
28968
28969 fi
28970
28971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28972 else
28973   cat >conftest.$ac_ext <<_ACEOF
28974 /* confdefs.h.  */
28975 _ACEOF
28976 cat confdefs.h >>conftest.$ac_ext
28977 cat >>conftest.$ac_ext <<_ACEOF
28978 /* end confdefs.h.  */
28979 $ac_includes_default
28980 int
28981 main ()
28982 {
28983
28984   /* Are we little or big endian?  From Harbison&Steele.  */
28985   union
28986   {
28987     long int l;
28988     char c[sizeof (long int)];
28989   } u;
28990   u.l = 1;
28991   return u.c[sizeof (long int) - 1] == 1;
28992
28993   ;
28994   return 0;
28995 }
28996 _ACEOF
28997 rm -f conftest$ac_exeext
28998 if { (ac_try="$ac_link"
28999 case "(($ac_try" in
29000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29001   *) ac_try_echo=$ac_try;;
29002 esac
29003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29004   (eval "$ac_link") 2>&5
29005   ac_status=$?
29006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29007   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29008   { (case "(($ac_try" in
29009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29010   *) ac_try_echo=$ac_try;;
29011 esac
29012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29013   (eval "$ac_try") 2>&5
29014   ac_status=$?
29015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016   (exit $ac_status); }; }; then
29017   ac_cv_c_bigendian=no
29018 else
29019   echo "$as_me: program exited with status $ac_status" >&5
29020 echo "$as_me: failed program was:" >&5
29021 sed 's/^/| /' conftest.$ac_ext >&5
29022
29023 ( exit $ac_status )
29024 ac_cv_c_bigendian=yes
29025 fi
29026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29027 fi
29028
29029
29030 fi
29031
29032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29033 fi
29034 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
29035 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
29036 case $ac_cv_c_bigendian in
29037   yes)
29038
29039 cat >>confdefs.h <<\_ACEOF
29040 #define WORDS_BIGENDIAN 1
29041 _ACEOF
29042  ;;
29043   no)
29044      ;;
29045   *)
29046     { { echo "$as_me:$LINENO: error: unknown endianness
29047 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
29048 echo "$as_me: error: unknown endianness
29049 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
29050    { (exit 1); exit 1; }; } ;;
29051 esac
29052
29053
29054
29055 for ac_header in byteswap.h linux/compiler.h
29056 do
29057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29059   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29062   echo $ECHO_N "(cached) $ECHO_C" >&6
29063 fi
29064 ac_res=`eval echo '${'$as_ac_Header'}'`
29065                { echo "$as_me:$LINENO: result: $ac_res" >&5
29066 echo "${ECHO_T}$ac_res" >&6; }
29067 else
29068   # Is the header compilable?
29069 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29071 cat >conftest.$ac_ext <<_ACEOF
29072 /* confdefs.h.  */
29073 _ACEOF
29074 cat confdefs.h >>conftest.$ac_ext
29075 cat >>conftest.$ac_ext <<_ACEOF
29076 /* end confdefs.h.  */
29077 $ac_includes_default
29078 #include <$ac_header>
29079 _ACEOF
29080 rm -f conftest.$ac_objext
29081 if { (ac_try="$ac_compile"
29082 case "(($ac_try" in
29083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29084   *) ac_try_echo=$ac_try;;
29085 esac
29086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29087   (eval "$ac_compile") 2>conftest.er1
29088   ac_status=$?
29089   grep -v '^ *+' conftest.er1 >conftest.err
29090   rm -f conftest.er1
29091   cat conftest.err >&5
29092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093   (exit $ac_status); } && {
29094          test -z "$ac_c_werror_flag" ||
29095          test ! -s conftest.err
29096        } && test -s conftest.$ac_objext; then
29097   ac_header_compiler=yes
29098 else
29099   echo "$as_me: failed program was:" >&5
29100 sed 's/^/| /' conftest.$ac_ext >&5
29101
29102         ac_header_compiler=no
29103 fi
29104
29105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29106 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29107 echo "${ECHO_T}$ac_header_compiler" >&6; }
29108
29109 # Is the header present?
29110 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29112 cat >conftest.$ac_ext <<_ACEOF
29113 /* confdefs.h.  */
29114 _ACEOF
29115 cat confdefs.h >>conftest.$ac_ext
29116 cat >>conftest.$ac_ext <<_ACEOF
29117 /* end confdefs.h.  */
29118 #include <$ac_header>
29119 _ACEOF
29120 if { (ac_try="$ac_cpp conftest.$ac_ext"
29121 case "(($ac_try" in
29122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29123   *) ac_try_echo=$ac_try;;
29124 esac
29125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29126   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29127   ac_status=$?
29128   grep -v '^ *+' conftest.er1 >conftest.err
29129   rm -f conftest.er1
29130   cat conftest.err >&5
29131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132   (exit $ac_status); } >/dev/null && {
29133          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29134          test ! -s conftest.err
29135        }; then
29136   ac_header_preproc=yes
29137 else
29138   echo "$as_me: failed program was:" >&5
29139 sed 's/^/| /' conftest.$ac_ext >&5
29140
29141   ac_header_preproc=no
29142 fi
29143
29144 rm -f conftest.err conftest.$ac_ext
29145 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29146 echo "${ECHO_T}$ac_header_preproc" >&6; }
29147
29148 # So?  What about this header?
29149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29150   yes:no: )
29151     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29155     ac_header_preproc=yes
29156     ;;
29157   no:yes:* )
29158     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29160     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29161 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29162     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29164     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29165 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29168     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29170
29171     ;;
29172 esac
29173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29176   echo $ECHO_N "(cached) $ECHO_C" >&6
29177 else
29178   eval "$as_ac_Header=\$ac_header_preproc"
29179 fi
29180 ac_res=`eval echo '${'$as_ac_Header'}'`
29181                { echo "$as_me:$LINENO: result: $ac_res" >&5
29182 echo "${ECHO_T}$ac_res" >&6; }
29183
29184 fi
29185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29186   cat >>confdefs.h <<_ACEOF
29187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29188 _ACEOF
29189
29190 fi
29191
29192 done
29193
29194
29195
29196 for ac_func in getrusage sched_setscheduler
29197 do
29198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29199 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29201 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29202   echo $ECHO_N "(cached) $ECHO_C" >&6
29203 else
29204   cat >conftest.$ac_ext <<_ACEOF
29205 /* confdefs.h.  */
29206 _ACEOF
29207 cat confdefs.h >>conftest.$ac_ext
29208 cat >>conftest.$ac_ext <<_ACEOF
29209 /* end confdefs.h.  */
29210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29211    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29212 #define $ac_func innocuous_$ac_func
29213
29214 /* System header to define __stub macros and hopefully few prototypes,
29215     which can conflict with char $ac_func (); below.
29216     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29217     <limits.h> exists even on freestanding compilers.  */
29218
29219 #ifdef __STDC__
29220 # include <limits.h>
29221 #else
29222 # include <assert.h>
29223 #endif
29224
29225 #undef $ac_func
29226
29227 /* Override any GCC internal prototype to avoid an error.
29228    Use char because int might match the return type of a GCC
29229    builtin and then its argument prototype would still apply.  */
29230 #ifdef __cplusplus
29231 extern "C"
29232 #endif
29233 char $ac_func ();
29234 /* The GNU C library defines this for functions which it implements
29235     to always fail with ENOSYS.  Some functions are actually named
29236     something starting with __ and the normal name is an alias.  */
29237 #if defined __stub_$ac_func || defined __stub___$ac_func
29238 choke me
29239 #endif
29240
29241 int
29242 main ()
29243 {
29244 return $ac_func ();
29245   ;
29246   return 0;
29247 }
29248 _ACEOF
29249 rm -f conftest.$ac_objext conftest$ac_exeext
29250 if { (ac_try="$ac_link"
29251 case "(($ac_try" in
29252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29253   *) ac_try_echo=$ac_try;;
29254 esac
29255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29256   (eval "$ac_link") 2>conftest.er1
29257   ac_status=$?
29258   grep -v '^ *+' conftest.er1 >conftest.err
29259   rm -f conftest.er1
29260   cat conftest.err >&5
29261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262   (exit $ac_status); } && {
29263          test -z "$ac_c_werror_flag" ||
29264          test ! -s conftest.err
29265        } && test -s conftest$ac_exeext &&
29266        $as_test_x conftest$ac_exeext; then
29267   eval "$as_ac_var=yes"
29268 else
29269   echo "$as_me: failed program was:" >&5
29270 sed 's/^/| /' conftest.$ac_ext >&5
29271
29272         eval "$as_ac_var=no"
29273 fi
29274
29275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29276       conftest$ac_exeext conftest.$ac_ext
29277 fi
29278 ac_res=`eval echo '${'$as_ac_var'}'`
29279                { echo "$as_me:$LINENO: result: $ac_res" >&5
29280 echo "${ECHO_T}$ac_res" >&6; }
29281 if test `eval echo '${'$as_ac_var'}'` = yes; then
29282   cat >>confdefs.h <<_ACEOF
29283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29284 _ACEOF
29285
29286 fi
29287 done
29288
29289
29290
29291 for ac_func in sigaction snprintf
29292 do
29293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29294 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29296 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29297   echo $ECHO_N "(cached) $ECHO_C" >&6
29298 else
29299   cat >conftest.$ac_ext <<_ACEOF
29300 /* confdefs.h.  */
29301 _ACEOF
29302 cat confdefs.h >>conftest.$ac_ext
29303 cat >>conftest.$ac_ext <<_ACEOF
29304 /* end confdefs.h.  */
29305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29307 #define $ac_func innocuous_$ac_func
29308
29309 /* System header to define __stub macros and hopefully few prototypes,
29310     which can conflict with char $ac_func (); below.
29311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29312     <limits.h> exists even on freestanding compilers.  */
29313
29314 #ifdef __STDC__
29315 # include <limits.h>
29316 #else
29317 # include <assert.h>
29318 #endif
29319
29320 #undef $ac_func
29321
29322 /* Override any GCC internal prototype to avoid an error.
29323    Use char because int might match the return type of a GCC
29324    builtin and then its argument prototype would still apply.  */
29325 #ifdef __cplusplus
29326 extern "C"
29327 #endif
29328 char $ac_func ();
29329 /* The GNU C library defines this for functions which it implements
29330     to always fail with ENOSYS.  Some functions are actually named
29331     something starting with __ and the normal name is an alias.  */
29332 #if defined __stub_$ac_func || defined __stub___$ac_func
29333 choke me
29334 #endif
29335
29336 int
29337 main ()
29338 {
29339 return $ac_func ();
29340   ;
29341   return 0;
29342 }
29343 _ACEOF
29344 rm -f conftest.$ac_objext conftest$ac_exeext
29345 if { (ac_try="$ac_link"
29346 case "(($ac_try" in
29347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29348   *) ac_try_echo=$ac_try;;
29349 esac
29350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29351   (eval "$ac_link") 2>conftest.er1
29352   ac_status=$?
29353   grep -v '^ *+' conftest.er1 >conftest.err
29354   rm -f conftest.er1
29355   cat conftest.err >&5
29356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357   (exit $ac_status); } && {
29358          test -z "$ac_c_werror_flag" ||
29359          test ! -s conftest.err
29360        } && test -s conftest$ac_exeext &&
29361        $as_test_x conftest$ac_exeext; then
29362   eval "$as_ac_var=yes"
29363 else
29364   echo "$as_me: failed program was:" >&5
29365 sed 's/^/| /' conftest.$ac_ext >&5
29366
29367         eval "$as_ac_var=no"
29368 fi
29369
29370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29371       conftest$ac_exeext conftest.$ac_ext
29372 fi
29373 ac_res=`eval echo '${'$as_ac_var'}'`
29374                { echo "$as_me:$LINENO: result: $ac_res" >&5
29375 echo "${ECHO_T}$ac_res" >&6; }
29376 if test `eval echo '${'$as_ac_var'}'` = yes; then
29377   cat >>confdefs.h <<_ACEOF
29378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29379 _ACEOF
29380
29381 fi
29382 done
29383
29384
29385     passed=yes
29386
29387         ac_ext=c
29388 ac_cpp='$CPP $CPPFLAGS'
29389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29392
29393
29394         libusbok=yes
29395
29396 for ac_header in usb.h
29397 do
29398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29400   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29403   echo $ECHO_N "(cached) $ECHO_C" >&6
29404 fi
29405 ac_res=`eval echo '${'$as_ac_Header'}'`
29406                { echo "$as_me:$LINENO: result: $ac_res" >&5
29407 echo "${ECHO_T}$ac_res" >&6; }
29408 else
29409   # Is the header compilable?
29410 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29412 cat >conftest.$ac_ext <<_ACEOF
29413 /* confdefs.h.  */
29414 _ACEOF
29415 cat confdefs.h >>conftest.$ac_ext
29416 cat >>conftest.$ac_ext <<_ACEOF
29417 /* end confdefs.h.  */
29418 $ac_includes_default
29419 #include <$ac_header>
29420 _ACEOF
29421 rm -f conftest.$ac_objext
29422 if { (ac_try="$ac_compile"
29423 case "(($ac_try" in
29424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29425   *) ac_try_echo=$ac_try;;
29426 esac
29427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29428   (eval "$ac_compile") 2>conftest.er1
29429   ac_status=$?
29430   grep -v '^ *+' conftest.er1 >conftest.err
29431   rm -f conftest.er1
29432   cat conftest.err >&5
29433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434   (exit $ac_status); } && {
29435          test -z "$ac_c_werror_flag" ||
29436          test ! -s conftest.err
29437        } && test -s conftest.$ac_objext; then
29438   ac_header_compiler=yes
29439 else
29440   echo "$as_me: failed program was:" >&5
29441 sed 's/^/| /' conftest.$ac_ext >&5
29442
29443         ac_header_compiler=no
29444 fi
29445
29446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29448 echo "${ECHO_T}$ac_header_compiler" >&6; }
29449
29450 # Is the header present?
29451 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29453 cat >conftest.$ac_ext <<_ACEOF
29454 /* confdefs.h.  */
29455 _ACEOF
29456 cat confdefs.h >>conftest.$ac_ext
29457 cat >>conftest.$ac_ext <<_ACEOF
29458 /* end confdefs.h.  */
29459 #include <$ac_header>
29460 _ACEOF
29461 if { (ac_try="$ac_cpp conftest.$ac_ext"
29462 case "(($ac_try" in
29463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29464   *) ac_try_echo=$ac_try;;
29465 esac
29466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29467   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29468   ac_status=$?
29469   grep -v '^ *+' conftest.er1 >conftest.err
29470   rm -f conftest.er1
29471   cat conftest.err >&5
29472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473   (exit $ac_status); } >/dev/null && {
29474          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29475          test ! -s conftest.err
29476        }; then
29477   ac_header_preproc=yes
29478 else
29479   echo "$as_me: failed program was:" >&5
29480 sed 's/^/| /' conftest.$ac_ext >&5
29481
29482   ac_header_preproc=no
29483 fi
29484
29485 rm -f conftest.err conftest.$ac_ext
29486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29487 echo "${ECHO_T}$ac_header_preproc" >&6; }
29488
29489 # So?  What about this header?
29490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29491   yes:no: )
29492     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29496     ac_header_preproc=yes
29497     ;;
29498   no:yes:* )
29499     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29501     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29502 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29503     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29505     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29506 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29507     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29509     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29511
29512     ;;
29513 esac
29514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29517   echo $ECHO_N "(cached) $ECHO_C" >&6
29518 else
29519   eval "$as_ac_Header=\$ac_header_preproc"
29520 fi
29521 ac_res=`eval echo '${'$as_ac_Header'}'`
29522                { echo "$as_me:$LINENO: result: $ac_res" >&5
29523 echo "${ECHO_T}$ac_res" >&6; }
29524
29525 fi
29526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29527   cat >>confdefs.h <<_ACEOF
29528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29529 _ACEOF
29530
29531 else
29532   libusbok=no,
29533            { echo "$as_me:$LINENO: result: USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&5
29534 echo "${ECHO_T}USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&6; }
29535
29536 fi
29537
29538 done
29539
29540
29541         save_LIBS="$LIBS"
29542         case "$host_os" in
29543             darwin*)    LIBS="$LIBS -lIOKit" ;;
29544             *) ;;
29545         esac
29546         { echo "$as_me:$LINENO: checking for library containing usb_bulk_write" >&5
29547 echo $ECHO_N "checking for library containing usb_bulk_write... $ECHO_C" >&6; }
29548 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
29549   echo $ECHO_N "(cached) $ECHO_C" >&6
29550 else
29551   ac_func_search_save_LIBS=$LIBS
29552 cat >conftest.$ac_ext <<_ACEOF
29553 /* confdefs.h.  */
29554 _ACEOF
29555 cat confdefs.h >>conftest.$ac_ext
29556 cat >>conftest.$ac_ext <<_ACEOF
29557 /* end confdefs.h.  */
29558
29559 /* Override any GCC internal prototype to avoid an error.
29560    Use char because int might match the return type of a GCC
29561    builtin and then its argument prototype would still apply.  */
29562 #ifdef __cplusplus
29563 extern "C"
29564 #endif
29565 char usb_bulk_write ();
29566 int
29567 main ()
29568 {
29569 return usb_bulk_write ();
29570   ;
29571   return 0;
29572 }
29573 _ACEOF
29574 for ac_lib in '' usb; do
29575   if test -z "$ac_lib"; then
29576     ac_res="none required"
29577   else
29578     ac_res=-l$ac_lib
29579     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29580   fi
29581   rm -f conftest.$ac_objext conftest$ac_exeext
29582 if { (ac_try="$ac_link"
29583 case "(($ac_try" in
29584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29585   *) ac_try_echo=$ac_try;;
29586 esac
29587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29588   (eval "$ac_link") 2>conftest.er1
29589   ac_status=$?
29590   grep -v '^ *+' conftest.er1 >conftest.err
29591   rm -f conftest.er1
29592   cat conftest.err >&5
29593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29594   (exit $ac_status); } && {
29595          test -z "$ac_c_werror_flag" ||
29596          test ! -s conftest.err
29597        } && test -s conftest$ac_exeext &&
29598        $as_test_x conftest$ac_exeext; then
29599   ac_cv_search_usb_bulk_write=$ac_res
29600 else
29601   echo "$as_me: failed program was:" >&5
29602 sed 's/^/| /' conftest.$ac_ext >&5
29603
29604
29605 fi
29606
29607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29608       conftest$ac_exeext
29609   if test "${ac_cv_search_usb_bulk_write+set}" = set; then
29610   break
29611 fi
29612 done
29613 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
29614   :
29615 else
29616   ac_cv_search_usb_bulk_write=no
29617 fi
29618 rm conftest.$ac_ext
29619 LIBS=$ac_func_search_save_LIBS
29620 fi
29621 { echo "$as_me:$LINENO: result: $ac_cv_search_usb_bulk_write" >&5
29622 echo "${ECHO_T}$ac_cv_search_usb_bulk_write" >&6; }
29623 ac_res=$ac_cv_search_usb_bulk_write
29624 if test "$ac_res" != no; then
29625   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29626   USB_LIBS="$LIBS"
29627 else
29628   libusbok=no,
29629            { echo "$as_me:$LINENO: result: USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&5
29630 echo "${ECHO_T}USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&6; }
29631
29632 fi
29633
29634         LIBS="$save_LIBS"
29635
29636         ac_ext=c
29637 ac_cpp='$CPP $CPPFLAGS'
29638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29641
29642
29643         if test $libusbok = yes; then
29644
29645             :
29646         else
29647             passed=no;{ echo "$as_me:$LINENO: result: Unable to configure USB dependency." >&5
29648 echo "${ECHO_T}Unable to configure USB dependency." >&6; }
29649         fi
29650
29651
29652
29653 # Check whether --with-fusb-tech was given.
29654 if test "${with_fusb_tech+set}" = set; then
29655   withval=$with_fusb_tech; cf_with_fusb_tech="$withval"
29656 else
29657   cf_with_fusb_tech="$host_os"
29658 fi
29659
29660
29661
29662   if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
29663   { echo "$as_me:$LINENO: checking for linux/usbdevice_fs.h" >&5
29664 echo $ECHO_N "checking for linux/usbdevice_fs.h... $ECHO_C" >&6; }
29665 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
29666   echo $ECHO_N "(cached) $ECHO_C" >&6
29667 fi
29668 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_usbdevice_fs_h" >&5
29669 echo "${ECHO_T}$ac_cv_header_linux_usbdevice_fs_h" >&6; }
29670 else
29671   # Is the header compilable?
29672 { echo "$as_me:$LINENO: checking linux/usbdevice_fs.h usability" >&5
29673 echo $ECHO_N "checking linux/usbdevice_fs.h usability... $ECHO_C" >&6; }
29674 cat >conftest.$ac_ext <<_ACEOF
29675 /* confdefs.h.  */
29676 _ACEOF
29677 cat confdefs.h >>conftest.$ac_ext
29678 cat >>conftest.$ac_ext <<_ACEOF
29679 /* end confdefs.h.  */
29680 $ac_includes_default
29681 #include <linux/usbdevice_fs.h>
29682 _ACEOF
29683 rm -f conftest.$ac_objext
29684 if { (ac_try="$ac_compile"
29685 case "(($ac_try" in
29686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29687   *) ac_try_echo=$ac_try;;
29688 esac
29689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29690   (eval "$ac_compile") 2>conftest.er1
29691   ac_status=$?
29692   grep -v '^ *+' conftest.er1 >conftest.err
29693   rm -f conftest.er1
29694   cat conftest.err >&5
29695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696   (exit $ac_status); } && {
29697          test -z "$ac_c_werror_flag" ||
29698          test ! -s conftest.err
29699        } && test -s conftest.$ac_objext; then
29700   ac_header_compiler=yes
29701 else
29702   echo "$as_me: failed program was:" >&5
29703 sed 's/^/| /' conftest.$ac_ext >&5
29704
29705         ac_header_compiler=no
29706 fi
29707
29708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29710 echo "${ECHO_T}$ac_header_compiler" >&6; }
29711
29712 # Is the header present?
29713 { echo "$as_me:$LINENO: checking linux/usbdevice_fs.h presence" >&5
29714 echo $ECHO_N "checking linux/usbdevice_fs.h presence... $ECHO_C" >&6; }
29715 cat >conftest.$ac_ext <<_ACEOF
29716 /* confdefs.h.  */
29717 _ACEOF
29718 cat confdefs.h >>conftest.$ac_ext
29719 cat >>conftest.$ac_ext <<_ACEOF
29720 /* end confdefs.h.  */
29721 #include <linux/usbdevice_fs.h>
29722 _ACEOF
29723 if { (ac_try="$ac_cpp conftest.$ac_ext"
29724 case "(($ac_try" in
29725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29726   *) ac_try_echo=$ac_try;;
29727 esac
29728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29729   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29730   ac_status=$?
29731   grep -v '^ *+' conftest.er1 >conftest.err
29732   rm -f conftest.er1
29733   cat conftest.err >&5
29734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29735   (exit $ac_status); } >/dev/null && {
29736          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29737          test ! -s conftest.err
29738        }; then
29739   ac_header_preproc=yes
29740 else
29741   echo "$as_me: failed program was:" >&5
29742 sed 's/^/| /' conftest.$ac_ext >&5
29743
29744   ac_header_preproc=no
29745 fi
29746
29747 rm -f conftest.err conftest.$ac_ext
29748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29749 echo "${ECHO_T}$ac_header_preproc" >&6; }
29750
29751 # So?  What about this header?
29752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29753   yes:no: )
29754     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
29755 echo "$as_me: WARNING: linux/usbdevice_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29756     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: proceeding with the compiler's result" >&5
29757 echo "$as_me: WARNING: linux/usbdevice_fs.h: proceeding with the compiler's result" >&2;}
29758     ac_header_preproc=yes
29759     ;;
29760   no:yes:* )
29761     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: present but cannot be compiled" >&5
29762 echo "$as_me: WARNING: linux/usbdevice_fs.h: present but cannot be compiled" >&2;}
29763     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h:     check for missing prerequisite headers?" >&5
29764 echo "$as_me: WARNING: linux/usbdevice_fs.h:     check for missing prerequisite headers?" >&2;}
29765     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: see the Autoconf documentation" >&5
29766 echo "$as_me: WARNING: linux/usbdevice_fs.h: see the Autoconf documentation" >&2;}
29767     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
29768 echo "$as_me: WARNING: linux/usbdevice_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29769     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: proceeding with the preprocessor's result" >&5
29770 echo "$as_me: WARNING: linux/usbdevice_fs.h: proceeding with the preprocessor's result" >&2;}
29771     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: in the future, the compiler will take precedence" >&5
29772 echo "$as_me: WARNING: linux/usbdevice_fs.h: in the future, the compiler will take precedence" >&2;}
29773
29774     ;;
29775 esac
29776 { echo "$as_me:$LINENO: checking for linux/usbdevice_fs.h" >&5
29777 echo $ECHO_N "checking for linux/usbdevice_fs.h... $ECHO_C" >&6; }
29778 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
29779   echo $ECHO_N "(cached) $ECHO_C" >&6
29780 else
29781   ac_cv_header_linux_usbdevice_fs_h=$ac_header_preproc
29782 fi
29783 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_usbdevice_fs_h" >&5
29784 echo "${ECHO_T}$ac_cv_header_linux_usbdevice_fs_h" >&6; }
29785
29786 fi
29787 if test $ac_cv_header_linux_usbdevice_fs_h = yes; then
29788   x_have_usbdevice_fs_h=yes
29789 else
29790   x_have_usbdevice_fs_h=no
29791 fi
29792
29793
29794
29795   { echo "$as_me:$LINENO: checking for fast usb technique to use" >&5
29796 echo $ECHO_N "checking for fast usb technique to use... $ECHO_C" >&6; }
29797   case "$cf_with_fusb_tech" in
29798     linux*)     if test x${x_have_usbdevice_fs_h} = xyes;
29799                 then
29800                   FUSB_TECH=linux
29801                 else
29802                   FUSB_TECH=generic
29803                 fi                      ;;
29804
29805     darwin*)    FUSB_TECH=darwin        ;;
29806     cygwin*|win*|mingw*)        FUSB_TECH=win32         ;;
29807     *bsd*)
29808                 { echo "$as_me:$LINENO: checking for RA/WB" >&5
29809 echo $ECHO_N "checking for RA/WB... $ECHO_C" >&6; }
29810                 cat >conftest.$ac_ext <<_ACEOF
29811 /* confdefs.h.  */
29812 _ACEOF
29813 cat confdefs.h >>conftest.$ac_ext
29814 cat >>conftest.$ac_ext <<_ACEOF
29815 /* end confdefs.h.  */
29816 #include <dev/usb/usb.h>
29817 int
29818 main ()
29819 {
29820 struct usb_bulk_ra_wb_opt o;
29821                                                      ioctl(0, USB_SET_BULK_RA, &o);
29822   ;
29823   return 0;
29824 }
29825 _ACEOF
29826 rm -f conftest.$ac_objext
29827 if { (ac_try="$ac_compile"
29828 case "(($ac_try" in
29829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29830   *) ac_try_echo=$ac_try;;
29831 esac
29832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29833   (eval "$ac_compile") 2>conftest.er1
29834   ac_status=$?
29835   grep -v '^ *+' conftest.er1 >conftest.err
29836   rm -f conftest.er1
29837   cat conftest.err >&5
29838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839   (exit $ac_status); } && {
29840          test -z "$ac_c_werror_flag" ||
29841          test ! -s conftest.err
29842        } && test -s conftest.$ac_objext; then
29843   FUSB_TECH=ra_wb
29844 else
29845   echo "$as_me: failed program was:" >&5
29846 sed 's/^/| /' conftest.$ac_ext >&5
29847
29848         FUSB_TECH=generic
29849 fi
29850
29851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext            ;;
29852     *)          FUSB_TECH=generic       ;;
29853   esac
29854
29855   { echo "$as_me:$LINENO: result: $FUSB_TECH" >&5
29856 echo "${ECHO_T}$FUSB_TECH" >&6; }
29857
29858
29859
29860
29861 if test $FUSB_TECH = darwin; then
29862   FUSB_TECH_darwin_TRUE=
29863   FUSB_TECH_darwin_FALSE='#'
29864 else
29865   FUSB_TECH_darwin_TRUE='#'
29866   FUSB_TECH_darwin_FALSE=
29867 fi
29868
29869
29870
29871 if test $FUSB_TECH = win32; then
29872   FUSB_TECH_win32_TRUE=
29873   FUSB_TECH_win32_FALSE='#'
29874 else
29875   FUSB_TECH_win32_TRUE='#'
29876   FUSB_TECH_win32_FALSE=
29877 fi
29878
29879
29880
29881 if test $FUSB_TECH = generic; then
29882   FUSB_TECH_generic_TRUE=
29883   FUSB_TECH_generic_FALSE='#'
29884 else
29885   FUSB_TECH_generic_TRUE='#'
29886   FUSB_TECH_generic_FALSE=
29887 fi
29888
29889
29890
29891 if test $FUSB_TECH = linux; then
29892   FUSB_TECH_linux_TRUE=
29893   FUSB_TECH_linux_FALSE='#'
29894 else
29895   FUSB_TECH_linux_TRUE='#'
29896   FUSB_TECH_linux_FALSE=
29897 fi
29898
29899
29900
29901 if test $FUSB_TECH = ra_wb; then
29902   FUSB_TECH_ra_wb_TRUE=
29903   FUSB_TECH_ra_wb_FALSE='#'
29904 else
29905   FUSB_TECH_ra_wb_TRUE='#'
29906   FUSB_TECH_ra_wb_FALSE=
29907 fi
29908
29909
29910
29911         sdccok=yes
29912         # Extract the first word of "sdcc", so it can be a program name with args.
29913 set dummy sdcc; ac_word=$2
29914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29916 if test "${ac_cv_prog_XCC+set}" = set; then
29917   echo $ECHO_N "(cached) $ECHO_C" >&6
29918 else
29919   if test -n "$XCC"; then
29920   ac_cv_prog_XCC="$XCC" # Let the user override the test.
29921 else
29922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29923 for as_dir in $PATH
29924 do
29925   IFS=$as_save_IFS
29926   test -z "$as_dir" && as_dir=.
29927   for ac_exec_ext in '' $ac_executable_extensions; do
29928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29929     ac_cv_prog_XCC="sdcc -mmcs51 --no-xinit-opt"
29930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29931     break 2
29932   fi
29933 done
29934 done
29935 IFS=$as_save_IFS
29936
29937   test -z "$ac_cv_prog_XCC" && ac_cv_prog_XCC="no"
29938 fi
29939 fi
29940 XCC=$ac_cv_prog_XCC
29941 if test -n "$XCC"; then
29942   { echo "$as_me:$LINENO: result: $XCC" >&5
29943 echo "${ECHO_T}$XCC" >&6; }
29944 else
29945   { echo "$as_me:$LINENO: result: no" >&5
29946 echo "${ECHO_T}no" >&6; }
29947 fi
29948
29949
29950         # Extract the first word of "asx8051", so it can be a program name with args.
29951 set dummy asx8051; ac_word=$2
29952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29954 if test "${ac_cv_prog_XAS+set}" = set; then
29955   echo $ECHO_N "(cached) $ECHO_C" >&6
29956 else
29957   if test -n "$XAS"; then
29958   ac_cv_prog_XAS="$XAS" # Let the user override the test.
29959 else
29960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29961 for as_dir in $PATH
29962 do
29963   IFS=$as_save_IFS
29964   test -z "$as_dir" && as_dir=.
29965   for ac_exec_ext in '' $ac_executable_extensions; do
29966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29967     ac_cv_prog_XAS="asx8051 -plosgff"
29968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29969     break 2
29970   fi
29971 done
29972 done
29973 IFS=$as_save_IFS
29974
29975   test -z "$ac_cv_prog_XAS" && ac_cv_prog_XAS="no"
29976 fi
29977 fi
29978 XAS=$ac_cv_prog_XAS
29979 if test -n "$XAS"; then
29980   { echo "$as_me:$LINENO: result: $XAS" >&5
29981 echo "${ECHO_T}$XAS" >&6; }
29982 else
29983   { echo "$as_me:$LINENO: result: no" >&5
29984 echo "${ECHO_T}no" >&6; }
29985 fi
29986
29987
29988
29989         if test "$XCC" = "no" -o "$XAS" = "no" ; then
29990                 { echo "$as_me:$LINENO: result: USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&5
29991 echo "${ECHO_T}USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&6; }
29992                 sdccok=no
29993         else
29994                 sdcc_version_min=2.4.0
29995
29996                 sdcc_version=`sdcc --version 2>&1 | \
29997                         sed  's/\(SDCC.* \)\([0-9]*\.[0-9]*\.[0-9]*\)\( .*$\)/\2/'`
29998
29999                 { echo "$as_me:$LINENO: checking sdcc_version \"$sdcc_version\"" >&5
30000 echo $ECHO_N "checking sdcc_version \"$sdcc_version\"... $ECHO_C" >&6; }
30001
30002                 sdcc_major_version=`echo $sdcc_version | \
30003                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30004                 sdcc_minor_version=`echo $sdcc_version | \
30005                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30006                 sdcc_micro_version=`echo $sdcc_version | \
30007                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30008
30009                 sdcc_major_min=`echo $sdcc_version_min | \
30010                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30011                 sdcc_minor_min=`echo $sdcc_version_min | \
30012                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30013                 sdcc_micro_min=`echo $sdcc_version_min | \
30014                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30015
30016                 sdcc_version_proper=`expr \
30017                         "$sdcc_major_version" \> "$sdcc_major_min" \| \
30018                         "$sdcc_major_version" \= "$sdcc_major_min" \& \
30019                         "$sdcc_minor_version" \> "$sdcc_minor_min" \| \
30020                         "$sdcc_major_version" \= "$sdcc_major_min" \& \
30021                         "$sdcc_minor_version" \= "$sdcc_minor_min" \& \
30022                         "$sdcc_micro_version" \>= "$sdcc_micro_min" `
30023
30024                 if test "$sdcc_version_proper" = "1" ; then
30025                         { echo "$as_me:$LINENO: result: $sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&5
30026 echo "${ECHO_T}$sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&6; }
30027                 else
30028                         sdccok=no
30029                         { echo "$as_me:$LINENO: result: USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net\"" >&5
30030 echo "${ECHO_T}USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net\"" >&6; }
30031                 fi
30032
30033
30034
30035         fi
30036
30037         if test $sdccok = yes; then
30038                 :
30039         else
30040                 passed=no;{ echo "$as_me:$LINENO: result: Unable to find firmware compiler." >&5
30041 echo "${ECHO_T}Unable to find firmware compiler." >&6; }
30042         fi
30043
30044
30045
30046     if test x$passed = xno; then
30047         skipped_dirs="$skipped_dirs usrp"
30048         if test x$enable_usrp = xyes; then
30049             { { echo "$as_me:$LINENO: error: Component usrp has errors, stopping." >&5
30050 echo "$as_me: error: Component usrp has errors, stopping." >&2;}
30051    { (exit 1); exit 1; }; }
30052         else
30053             { echo "$as_me:$LINENO: result: Not building component usrp." >&5
30054 echo "${ECHO_T}Not building component usrp." >&6; }
30055         fi
30056     else
30057         if test x$enable_usrp != xno; then
30058
30059             build_dirs="$build_dirs usrp"
30060             { echo "$as_me:$LINENO: result: Component usrp passed configuration checks, building." >&5
30061 echo "${ECHO_T}Component usrp passed configuration checks, building." >&6; }
30062         else
30063             skipped_dirs="$skipped_dirs usrp"
30064             { echo "$as_me:$LINENO: result: Component usrp passed configuration checks, but not building." >&5
30065 echo "${ECHO_T}Component usrp passed configuration checks, but not building." >&6; }
30066         fi
30067     fi
30068
30069
30070
30071
30072     # Check whether --enable-gr-usrp was given.
30073 if test "${enable_gr_usrp+set}" = set; then
30074   enableval=$enable_gr_usrp;
30075 else
30076   enable_gr_usrp=$enable_all_components
30077 fi
30078
30079
30080
30081     ac_config_files="$ac_config_files gr-usrp/Makefile gr-usrp/src/Makefile gr-usrp/src/run_tests"
30082
30083
30084     passed=yes
30085     # Don't do gr-usrp if usrp skipped
30086     # There *has* to be a better way to check if a value is in a string
30087     for dir in $skipped_dirs
30088     do
30089         if test x$dir = xusrp; then
30090             { echo "$as_me:$LINENO: result: Component gr-usrp requires usrp, which is not being built." >&5
30091 echo "${ECHO_T}Component gr-usrp requires usrp, which is not being built." >&6; }
30092             passed=no
30093         fi
30094     done
30095
30096
30097     if test x$passed = xno; then
30098         skipped_dirs="$skipped_dirs gr-usrp"
30099         if test x$enable_gr_usrp = xyes; then
30100             { { echo "$as_me:$LINENO: error: Component gr-usrp has errors, stopping." >&5
30101 echo "$as_me: error: Component gr-usrp has errors, stopping." >&2;}
30102    { (exit 1); exit 1; }; }
30103         else
30104             { echo "$as_me:$LINENO: result: Not building component gr-usrp." >&5
30105 echo "${ECHO_T}Not building component gr-usrp." >&6; }
30106         fi
30107     else
30108         if test x$enable_gr_usrp != xno; then
30109
30110                 ac_config_commands="$ac_config_commands run_tests_usrp"
30111
30112
30113             build_dirs="$build_dirs gr-usrp"
30114             { echo "$as_me:$LINENO: result: Component gr-usrp passed configuration checks, building." >&5
30115 echo "${ECHO_T}Component gr-usrp passed configuration checks, building." >&6; }
30116         else
30117             skipped_dirs="$skipped_dirs gr-usrp"
30118             { echo "$as_me:$LINENO: result: Component gr-usrp passed configuration checks, but not building." >&5
30119 echo "${ECHO_T}Component gr-usrp passed configuration checks, but not building." >&6; }
30120         fi
30121     fi
30122
30123
30124
30125     # Check whether --enable-gr-audio-alsa was given.
30126 if test "${enable_gr_audio_alsa+set}" = set; then
30127   enableval=$enable_gr_audio_alsa;
30128 else
30129   enable_gr_audio_alsa=$enable_all_components
30130 fi
30131
30132
30133
30134     ac_config_files="$ac_config_files gr-audio-alsa/Makefile gr-audio-alsa/src/Makefile gr-audio-alsa/src/run_tests"
30135
30136
30137     passed=yes
30138
30139   succeeded=no
30140
30141   if test -z "$PKG_CONFIG"; then
30142     # Extract the first word of "pkg-config", so it can be a program name with args.
30143 set dummy pkg-config; ac_word=$2
30144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30146 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30147   echo $ECHO_N "(cached) $ECHO_C" >&6
30148 else
30149   case $PKG_CONFIG in
30150   [\\/]* | ?:[\\/]*)
30151   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30152   ;;
30153   *)
30154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30155 for as_dir in $PATH
30156 do
30157   IFS=$as_save_IFS
30158   test -z "$as_dir" && as_dir=.
30159   for ac_exec_ext in '' $ac_executable_extensions; do
30160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30161     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30163     break 2
30164   fi
30165 done
30166 done
30167 IFS=$as_save_IFS
30168
30169   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30170   ;;
30171 esac
30172 fi
30173 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30174 if test -n "$PKG_CONFIG"; then
30175   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30176 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30177 else
30178   { echo "$as_me:$LINENO: result: no" >&5
30179 echo "${ECHO_T}no" >&6; }
30180 fi
30181
30182
30183   fi
30184
30185   if test "$PKG_CONFIG" = "no" ; then
30186      echo "*** The pkg-config script could not be found. Make sure it is"
30187      echo "*** in your path, or set the PKG_CONFIG environment variable"
30188      echo "*** to the full path to pkg-config."
30189      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
30190   else
30191                     if test -z "$PKG_CONFIG_PATH"; then
30192         export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
30193      fi
30194
30195      PKG_CONFIG_MIN_VERSION=0.9.0
30196      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
30197         { echo "$as_me:$LINENO: checking for alsa >= 0.9" >&5
30198 echo $ECHO_N "checking for alsa >= 0.9... $ECHO_C" >&6; }
30199
30200         if $PKG_CONFIG --exists "alsa >= 0.9" ; then
30201             { echo "$as_me:$LINENO: result: yes" >&5
30202 echo "${ECHO_T}yes" >&6; }
30203             succeeded=yes
30204
30205             { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
30206 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
30207             ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 0.9"`
30208             { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
30209 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
30210
30211             { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
30212 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
30213             ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= 0.9"`
30214             { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
30215 echo "${ECHO_T}$ALSA_LIBS" >&6; }
30216
30217             { echo "$as_me:$LINENO: checking ALSA_INCLUDEDIR" >&5
30218 echo $ECHO_N "checking ALSA_INCLUDEDIR... $ECHO_C" >&6; }
30219             ALSA_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "alsa >= 0.9"`
30220             { echo "$as_me:$LINENO: result: $ALSA_INCLUDEDIR" >&5
30221 echo "${ECHO_T}$ALSA_INCLUDEDIR" >&6; }
30222         else
30223             ALSA_CFLAGS=""
30224             ALSA_LIBS=""
30225             ## If we have a custom action on failure, don't print errors, but
30226             ## do set a variable so people can do so.
30227             ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa >= 0.9"`
30228
30229         fi
30230
30231
30232
30233
30234      else
30235         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
30236         echo "*** See http://www.freedesktop.org/software/pkgconfig"
30237      fi
30238   fi
30239
30240   if test $succeeded = yes; then
30241      :
30242   else
30243      passed=no;{ echo "$as_me:$LINENO: result: gr-audio-alsa requires package alsa, not found." >&5
30244 echo "${ECHO_T}gr-audio-alsa requires package alsa, not found." >&6; }
30245   fi
30246
30247
30248
30249     if test x$passed = xno; then
30250         skipped_dirs="$skipped_dirs gr-audio-alsa"
30251         if test x$enable_gr_audio_alsa = xyes; then
30252             { { echo "$as_me:$LINENO: error: Component gr-audio-alsa has errors, stopping." >&5
30253 echo "$as_me: error: Component gr-audio-alsa has errors, stopping." >&2;}
30254    { (exit 1); exit 1; }; }
30255         else
30256             { echo "$as_me:$LINENO: result: Not building component gr-audio-alsa." >&5
30257 echo "${ECHO_T}Not building component gr-audio-alsa." >&6; }
30258         fi
30259     else
30260         if test x$enable_gr_audio_alsa != xno; then
30261
30262
30263                 ac_config_commands="$ac_config_commands run_tests_alsa"
30264
30265
30266             build_dirs="$build_dirs gr-audio-alsa"
30267             { echo "$as_me:$LINENO: result: Component gr-audio-alsa passed configuration checks, building." >&5
30268 echo "${ECHO_T}Component gr-audio-alsa passed configuration checks, building." >&6; }
30269         else
30270             skipped_dirs="$skipped_dirs gr-audio-alsa"
30271             { echo "$as_me:$LINENO: result: Component gr-audio-alsa passed configuration checks, but not building." >&5
30272 echo "${ECHO_T}Component gr-audio-alsa passed configuration checks, but not building." >&6; }
30273         fi
30274     fi
30275
30276
30277
30278
30279     # Check whether --enable-gr-audio-jack was given.
30280 if test "${enable_gr_audio_jack+set}" = set; then
30281   enableval=$enable_gr_audio_jack;
30282 else
30283   enable_gr_audio_jack=$enable_all_components
30284 fi
30285
30286
30287
30288     ac_config_files="$ac_config_files gr-audio-jack/Makefile gr-audio-jack/src/Makefile gr-audio-jack/src/run_tests"
30289
30290
30291     passed=yes
30292
30293   succeeded=no
30294
30295   if test -z "$PKG_CONFIG"; then
30296     # Extract the first word of "pkg-config", so it can be a program name with args.
30297 set dummy pkg-config; ac_word=$2
30298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30300 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30301   echo $ECHO_N "(cached) $ECHO_C" >&6
30302 else
30303   case $PKG_CONFIG in
30304   [\\/]* | ?:[\\/]*)
30305   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30306   ;;
30307   *)
30308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30309 for as_dir in $PATH
30310 do
30311   IFS=$as_save_IFS
30312   test -z "$as_dir" && as_dir=.
30313   for ac_exec_ext in '' $ac_executable_extensions; do
30314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30315     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30317     break 2
30318   fi
30319 done
30320 done
30321 IFS=$as_save_IFS
30322
30323   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30324   ;;
30325 esac
30326 fi
30327 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30328 if test -n "$PKG_CONFIG"; then
30329   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30330 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30331 else
30332   { echo "$as_me:$LINENO: result: no" >&5
30333 echo "${ECHO_T}no" >&6; }
30334 fi
30335
30336
30337   fi
30338
30339   if test "$PKG_CONFIG" = "no" ; then
30340      echo "*** The pkg-config script could not be found. Make sure it is"
30341      echo "*** in your path, or set the PKG_CONFIG environment variable"
30342      echo "*** to the full path to pkg-config."
30343      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
30344   else
30345                     if test -z "$PKG_CONFIG_PATH"; then
30346         export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
30347      fi
30348
30349      PKG_CONFIG_MIN_VERSION=0.9.0
30350      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
30351         { echo "$as_me:$LINENO: checking for jack >= 0.8" >&5
30352 echo $ECHO_N "checking for jack >= 0.8... $ECHO_C" >&6; }
30353
30354         if $PKG_CONFIG --exists "jack >= 0.8" ; then
30355             { echo "$as_me:$LINENO: result: yes" >&5
30356 echo "${ECHO_T}yes" >&6; }
30357             succeeded=yes
30358
30359             { echo "$as_me:$LINENO: checking JACK_CFLAGS" >&5
30360 echo $ECHO_N "checking JACK_CFLAGS... $ECHO_C" >&6; }
30361             JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.8"`
30362             { echo "$as_me:$LINENO: result: $JACK_CFLAGS" >&5
30363 echo "${ECHO_T}$JACK_CFLAGS" >&6; }
30364
30365             { echo "$as_me:$LINENO: checking JACK_LIBS" >&5
30366 echo $ECHO_N "checking JACK_LIBS... $ECHO_C" >&6; }
30367             JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.8"`
30368             { echo "$as_me:$LINENO: result: $JACK_LIBS" >&5
30369 echo "${ECHO_T}$JACK_LIBS" >&6; }
30370
30371             { echo "$as_me:$LINENO: checking JACK_INCLUDEDIR" >&5
30372 echo $ECHO_N "checking JACK_INCLUDEDIR... $ECHO_C" >&6; }
30373             JACK_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "jack >= 0.8"`
30374             { echo "$as_me:$LINENO: result: $JACK_INCLUDEDIR" >&5
30375 echo "${ECHO_T}$JACK_INCLUDEDIR" >&6; }
30376         else
30377             JACK_CFLAGS=""
30378             JACK_LIBS=""
30379             ## If we have a custom action on failure, don't print errors, but
30380             ## do set a variable so people can do so.
30381             JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack >= 0.8"`
30382
30383         fi
30384
30385
30386
30387
30388      else
30389         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
30390         echo "*** See http://www.freedesktop.org/software/pkgconfig"
30391      fi
30392   fi
30393
30394   if test $succeeded = yes; then
30395      :
30396   else
30397      passed=no;{ echo "$as_me:$LINENO: result: gr-audio-jack requires package jack, not found." >&5
30398 echo "${ECHO_T}gr-audio-jack requires package jack, not found." >&6; }
30399   fi
30400
30401
30402
30403     if test x$passed = xno; then
30404         skipped_dirs="$skipped_dirs gr-audio-jack"
30405         if test x$enable_gr_audio_jack = xyes; then
30406             { { echo "$as_me:$LINENO: error: Component gr-audio-jack has errors, stopping." >&5
30407 echo "$as_me: error: Component gr-audio-jack has errors, stopping." >&2;}
30408    { (exit 1); exit 1; }; }
30409         else
30410             { echo "$as_me:$LINENO: result: Not building component gr-audio-jack." >&5
30411 echo "${ECHO_T}Not building component gr-audio-jack." >&6; }
30412         fi
30413     else
30414         if test x$enable_gr_audio_jack != xno; then
30415
30416
30417                 ac_config_commands="$ac_config_commands run_tests_jack"
30418
30419
30420             build_dirs="$build_dirs gr-audio-jack"
30421             { echo "$as_me:$LINENO: result: Component gr-audio-jack passed configuration checks, building." >&5
30422 echo "${ECHO_T}Component gr-audio-jack passed configuration checks, building." >&6; }
30423         else
30424             skipped_dirs="$skipped_dirs gr-audio-jack"
30425             { echo "$as_me:$LINENO: result: Component gr-audio-jack passed configuration checks, but not building." >&5
30426 echo "${ECHO_T}Component gr-audio-jack passed configuration checks, but not building." >&6; }
30427         fi
30428     fi
30429
30430
30431
30432
30433     # Check whether --enable-gr-audio-oss was given.
30434 if test "${enable_gr_audio_oss+set}" = set; then
30435   enableval=$enable_gr_audio_oss;
30436 else
30437   enable_gr_audio_oss=$enable_all_components
30438 fi
30439
30440
30441
30442     ac_config_files="$ac_config_files gr-audio-oss/Makefile gr-audio-oss/src/Makefile gr-audio-oss/src/run_tests"
30443
30444
30445     passed=yes
30446     case $target in
30447         *-*-netbsd*)
30448
30449 { echo "$as_me:$LINENO: checking for main in -lossaudio" >&5
30450 echo $ECHO_N "checking for main in -lossaudio... $ECHO_C" >&6; }
30451 if test "${ac_cv_lib_ossaudio_main+set}" = set; then
30452   echo $ECHO_N "(cached) $ECHO_C" >&6
30453 else
30454   ac_check_lib_save_LIBS=$LIBS
30455 LIBS="-lossaudio  $LIBS"
30456 cat >conftest.$ac_ext <<_ACEOF
30457 /* confdefs.h.  */
30458 _ACEOF
30459 cat confdefs.h >>conftest.$ac_ext
30460 cat >>conftest.$ac_ext <<_ACEOF
30461 /* end confdefs.h.  */
30462
30463
30464 int
30465 main ()
30466 {
30467 return main ();
30468   ;
30469   return 0;
30470 }
30471 _ACEOF
30472 rm -f conftest.$ac_objext conftest$ac_exeext
30473 if { (ac_try="$ac_link"
30474 case "(($ac_try" in
30475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30476   *) ac_try_echo=$ac_try;;
30477 esac
30478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30479   (eval "$ac_link") 2>conftest.er1
30480   ac_status=$?
30481   grep -v '^ *+' conftest.er1 >conftest.err
30482   rm -f conftest.er1
30483   cat conftest.err >&5
30484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485   (exit $ac_status); } && {
30486          test -z "$ac_c_werror_flag" ||
30487          test ! -s conftest.err
30488        } && test -s conftest$ac_exeext &&
30489        $as_test_x conftest$ac_exeext; then
30490   ac_cv_lib_ossaudio_main=yes
30491 else
30492   echo "$as_me: failed program was:" >&5
30493 sed 's/^/| /' conftest.$ac_ext >&5
30494
30495         ac_cv_lib_ossaudio_main=no
30496 fi
30497
30498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30499       conftest$ac_exeext conftest.$ac_ext
30500 LIBS=$ac_check_lib_save_LIBS
30501 fi
30502 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_main" >&5
30503 echo "${ECHO_T}$ac_cv_lib_ossaudio_main" >&6; }
30504 if test $ac_cv_lib_ossaudio_main = yes; then
30505   cat >>confdefs.h <<_ACEOF
30506 #define HAVE_LIBOSSAUDIO 1
30507 _ACEOF
30508
30509   LIBS="-lossaudio $LIBS"
30510
30511 else
30512   passed=no;{ echo "$as_me:$LINENO: result: gr-audio-oss requires library ossaudio, not found." >&5
30513 echo "${ECHO_T}gr-audio-oss requires library ossaudio, not found." >&6; }
30514 fi
30515 ac_cv_lib_ossaudio=ac_cv_lib_ossaudio_main
30516
30517             if test x$passed != xno; then
30518                 OSS_LIBS=-lossaudio
30519                 { echo "$as_me:$LINENO: result: Using OSS library $OSS_LIBS" >&5
30520 echo "${ECHO_T}Using OSS library $OSS_LIBS" >&6; }
30521             fi
30522             ;;
30523         *)
30524             if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
30525   { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
30526 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
30527 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
30528   echo $ECHO_N "(cached) $ECHO_C" >&6
30529 fi
30530 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
30531 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
30532 else
30533   # Is the header compilable?
30534 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
30535 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
30536 cat >conftest.$ac_ext <<_ACEOF
30537 /* confdefs.h.  */
30538 _ACEOF
30539 cat confdefs.h >>conftest.$ac_ext
30540 cat >>conftest.$ac_ext <<_ACEOF
30541 /* end confdefs.h.  */
30542 $ac_includes_default
30543 #include <sys/soundcard.h>
30544 _ACEOF
30545 rm -f conftest.$ac_objext
30546 if { (ac_try="$ac_compile"
30547 case "(($ac_try" in
30548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30549   *) ac_try_echo=$ac_try;;
30550 esac
30551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30552   (eval "$ac_compile") 2>conftest.er1
30553   ac_status=$?
30554   grep -v '^ *+' conftest.er1 >conftest.err
30555   rm -f conftest.er1
30556   cat conftest.err >&5
30557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558   (exit $ac_status); } && {
30559          test -z "$ac_c_werror_flag" ||
30560          test ! -s conftest.err
30561        } && test -s conftest.$ac_objext; then
30562   ac_header_compiler=yes
30563 else
30564   echo "$as_me: failed program was:" >&5
30565 sed 's/^/| /' conftest.$ac_ext >&5
30566
30567         ac_header_compiler=no
30568 fi
30569
30570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30572 echo "${ECHO_T}$ac_header_compiler" >&6; }
30573
30574 # Is the header present?
30575 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
30576 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
30577 cat >conftest.$ac_ext <<_ACEOF
30578 /* confdefs.h.  */
30579 _ACEOF
30580 cat confdefs.h >>conftest.$ac_ext
30581 cat >>conftest.$ac_ext <<_ACEOF
30582 /* end confdefs.h.  */
30583 #include <sys/soundcard.h>
30584 _ACEOF
30585 if { (ac_try="$ac_cpp conftest.$ac_ext"
30586 case "(($ac_try" in
30587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30588   *) ac_try_echo=$ac_try;;
30589 esac
30590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30591   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30592   ac_status=$?
30593   grep -v '^ *+' conftest.er1 >conftest.err
30594   rm -f conftest.er1
30595   cat conftest.err >&5
30596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597   (exit $ac_status); } >/dev/null && {
30598          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30599          test ! -s conftest.err
30600        }; then
30601   ac_header_preproc=yes
30602 else
30603   echo "$as_me: failed program was:" >&5
30604 sed 's/^/| /' conftest.$ac_ext >&5
30605
30606   ac_header_preproc=no
30607 fi
30608
30609 rm -f conftest.err conftest.$ac_ext
30610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30611 echo "${ECHO_T}$ac_header_preproc" >&6; }
30612
30613 # So?  What about this header?
30614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30615   yes:no: )
30616     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
30617 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30618     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
30619 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
30620     ac_header_preproc=yes
30621     ;;
30622   no:yes:* )
30623     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
30624 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
30625     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h:     check for missing prerequisite headers?" >&5
30626 echo "$as_me: WARNING: sys/soundcard.h:     check for missing prerequisite headers?" >&2;}
30627     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
30628 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
30629     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h:     section \"Present But Cannot Be Compiled\"" >&5
30630 echo "$as_me: WARNING: sys/soundcard.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30631     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
30632 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
30633     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
30634 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
30635
30636     ;;
30637 esac
30638 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
30639 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
30640 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
30641   echo $ECHO_N "(cached) $ECHO_C" >&6
30642 else
30643   ac_cv_header_sys_soundcard_h=$ac_header_preproc
30644 fi
30645 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
30646 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
30647
30648 fi
30649 if test $ac_cv_header_sys_soundcard_h = yes; then
30650   :
30651 else
30652   passed=no;{ echo "$as_me:$LINENO: result: gr-audio-oss requires sys/soundcard.h, not found." >&5
30653 echo "${ECHO_T}gr-audio-oss requires sys/soundcard.h, not found." >&6; }
30654 fi
30655
30656
30657     esac
30658
30659
30660     if test x$passed = xno; then
30661         skipped_dirs="$skipped_dirs gr-audio-oss"
30662         if test x$enable_gr_audio_oss = xyes; then
30663             { { echo "$as_me:$LINENO: error: Component gr-audio-oss has errors, stopping." >&5
30664 echo "$as_me: error: Component gr-audio-oss has errors, stopping." >&2;}
30665    { (exit 1); exit 1; }; }
30666         else
30667             { echo "$as_me:$LINENO: result: Not building component gr-audio-oss." >&5
30668 echo "${ECHO_T}Not building component gr-audio-oss." >&6; }
30669         fi
30670     else
30671         if test x$enable_gr_audio_oss != xno; then
30672
30673
30674                 ac_config_commands="$ac_config_commands run_tests_oss"
30675
30676
30677             build_dirs="$build_dirs gr-audio-oss"
30678             { echo "$as_me:$LINENO: result: Component gr-audio-oss passed configuration checks, building." >&5
30679 echo "${ECHO_T}Component gr-audio-oss passed configuration checks, building." >&6; }
30680         else
30681             skipped_dirs="$skipped_dirs gr-audio-oss"
30682             { echo "$as_me:$LINENO: result: Component gr-audio-oss passed configuration checks, but not building." >&5
30683 echo "${ECHO_T}Component gr-audio-oss passed configuration checks, but not building." >&6; }
30684         fi
30685     fi
30686
30687
30688
30689
30690     # Check whether --enable-gr-audio-osx was given.
30691 if test "${enable_gr_audio_osx+set}" = set; then
30692   enableval=$enable_gr_audio_osx;
30693 else
30694   enable_gr_audio_osx=$enable_all_components
30695 fi
30696
30697
30698
30699     ac_config_files="$ac_config_files gr-audio-osx/Makefile gr-audio-osx/src/Makefile gr-audio-osx/src/run_tests"
30700
30701
30702     passed=yes
30703
30704     audiounitok=yes
30705     case "$host_os" in
30706         darwin*);;
30707         *)
30708            audiounitok=no
30709            { echo "$as_me:$LINENO: result: gr-audio-osx requires darwin or MacOS X." >&5
30710 echo "${ECHO_T}gr-audio-osx requires darwin or MacOS X." >&6; }
30711     esac
30712
30713
30714 for ac_header in AudioUnit/AudioUnit.h
30715 do
30716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30718   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30721   echo $ECHO_N "(cached) $ECHO_C" >&6
30722 fi
30723 ac_res=`eval echo '${'$as_ac_Header'}'`
30724                { echo "$as_me:$LINENO: result: $ac_res" >&5
30725 echo "${ECHO_T}$ac_res" >&6; }
30726 else
30727   # Is the header compilable?
30728 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30730 cat >conftest.$ac_ext <<_ACEOF
30731 /* confdefs.h.  */
30732 _ACEOF
30733 cat confdefs.h >>conftest.$ac_ext
30734 cat >>conftest.$ac_ext <<_ACEOF
30735 /* end confdefs.h.  */
30736 $ac_includes_default
30737 #include <$ac_header>
30738 _ACEOF
30739 rm -f conftest.$ac_objext
30740 if { (ac_try="$ac_compile"
30741 case "(($ac_try" in
30742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30743   *) ac_try_echo=$ac_try;;
30744 esac
30745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30746   (eval "$ac_compile") 2>conftest.er1
30747   ac_status=$?
30748   grep -v '^ *+' conftest.er1 >conftest.err
30749   rm -f conftest.er1
30750   cat conftest.err >&5
30751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752   (exit $ac_status); } && {
30753          test -z "$ac_c_werror_flag" ||
30754          test ! -s conftest.err
30755        } && test -s conftest.$ac_objext; then
30756   ac_header_compiler=yes
30757 else
30758   echo "$as_me: failed program was:" >&5
30759 sed 's/^/| /' conftest.$ac_ext >&5
30760
30761         ac_header_compiler=no
30762 fi
30763
30764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30766 echo "${ECHO_T}$ac_header_compiler" >&6; }
30767
30768 # Is the header present?
30769 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30771 cat >conftest.$ac_ext <<_ACEOF
30772 /* confdefs.h.  */
30773 _ACEOF
30774 cat confdefs.h >>conftest.$ac_ext
30775 cat >>conftest.$ac_ext <<_ACEOF
30776 /* end confdefs.h.  */
30777 #include <$ac_header>
30778 _ACEOF
30779 if { (ac_try="$ac_cpp conftest.$ac_ext"
30780 case "(($ac_try" in
30781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30782   *) ac_try_echo=$ac_try;;
30783 esac
30784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30785   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30786   ac_status=$?
30787   grep -v '^ *+' conftest.er1 >conftest.err
30788   rm -f conftest.er1
30789   cat conftest.err >&5
30790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791   (exit $ac_status); } >/dev/null && {
30792          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30793          test ! -s conftest.err
30794        }; then
30795   ac_header_preproc=yes
30796 else
30797   echo "$as_me: failed program was:" >&5
30798 sed 's/^/| /' conftest.$ac_ext >&5
30799
30800   ac_header_preproc=no
30801 fi
30802
30803 rm -f conftest.err conftest.$ac_ext
30804 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30805 echo "${ECHO_T}$ac_header_preproc" >&6; }
30806
30807 # So?  What about this header?
30808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30809   yes:no: )
30810     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30814     ac_header_preproc=yes
30815     ;;
30816   no:yes:* )
30817     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30819     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30820 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30821     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30823     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30824 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30825     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30827     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30829
30830     ;;
30831 esac
30832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30835   echo $ECHO_N "(cached) $ECHO_C" >&6
30836 else
30837   eval "$as_ac_Header=\$ac_header_preproc"
30838 fi
30839 ac_res=`eval echo '${'$as_ac_Header'}'`
30840                { echo "$as_me:$LINENO: result: $ac_res" >&5
30841 echo "${ECHO_T}$ac_res" >&6; }
30842
30843 fi
30844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30845   cat >>confdefs.h <<_ACEOF
30846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30847 _ACEOF
30848
30849 else
30850   audiounitok=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&5
30851 echo "${ECHO_T}gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&6; }
30852 fi
30853
30854 done
30855
30856
30857
30858 for ac_header in AudioToolbox/AudioToolbox.h
30859 do
30860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30862   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30865   echo $ECHO_N "(cached) $ECHO_C" >&6
30866 fi
30867 ac_res=`eval echo '${'$as_ac_Header'}'`
30868                { echo "$as_me:$LINENO: result: $ac_res" >&5
30869 echo "${ECHO_T}$ac_res" >&6; }
30870 else
30871   # Is the header compilable?
30872 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30873 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30874 cat >conftest.$ac_ext <<_ACEOF
30875 /* confdefs.h.  */
30876 _ACEOF
30877 cat confdefs.h >>conftest.$ac_ext
30878 cat >>conftest.$ac_ext <<_ACEOF
30879 /* end confdefs.h.  */
30880 $ac_includes_default
30881 #include <$ac_header>
30882 _ACEOF
30883 rm -f conftest.$ac_objext
30884 if { (ac_try="$ac_compile"
30885 case "(($ac_try" in
30886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30887   *) ac_try_echo=$ac_try;;
30888 esac
30889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30890   (eval "$ac_compile") 2>conftest.er1
30891   ac_status=$?
30892   grep -v '^ *+' conftest.er1 >conftest.err
30893   rm -f conftest.er1
30894   cat conftest.err >&5
30895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896   (exit $ac_status); } && {
30897          test -z "$ac_c_werror_flag" ||
30898          test ! -s conftest.err
30899        } && test -s conftest.$ac_objext; then
30900   ac_header_compiler=yes
30901 else
30902   echo "$as_me: failed program was:" >&5
30903 sed 's/^/| /' conftest.$ac_ext >&5
30904
30905         ac_header_compiler=no
30906 fi
30907
30908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30910 echo "${ECHO_T}$ac_header_compiler" >&6; }
30911
30912 # Is the header present?
30913 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30915 cat >conftest.$ac_ext <<_ACEOF
30916 /* confdefs.h.  */
30917 _ACEOF
30918 cat confdefs.h >>conftest.$ac_ext
30919 cat >>conftest.$ac_ext <<_ACEOF
30920 /* end confdefs.h.  */
30921 #include <$ac_header>
30922 _ACEOF
30923 if { (ac_try="$ac_cpp conftest.$ac_ext"
30924 case "(($ac_try" in
30925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30926   *) ac_try_echo=$ac_try;;
30927 esac
30928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30929   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30930   ac_status=$?
30931   grep -v '^ *+' conftest.er1 >conftest.err
30932   rm -f conftest.er1
30933   cat conftest.err >&5
30934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935   (exit $ac_status); } >/dev/null && {
30936          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30937          test ! -s conftest.err
30938        }; then
30939   ac_header_preproc=yes
30940 else
30941   echo "$as_me: failed program was:" >&5
30942 sed 's/^/| /' conftest.$ac_ext >&5
30943
30944   ac_header_preproc=no
30945 fi
30946
30947 rm -f conftest.err conftest.$ac_ext
30948 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30949 echo "${ECHO_T}$ac_header_preproc" >&6; }
30950
30951 # So?  What about this header?
30952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30953   yes:no: )
30954     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30956     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30958     ac_header_preproc=yes
30959     ;;
30960   no:yes:* )
30961     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30963     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30964 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30965     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30966 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30967     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30968 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30969     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30971     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30972 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30973
30974     ;;
30975 esac
30976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30979   echo $ECHO_N "(cached) $ECHO_C" >&6
30980 else
30981   eval "$as_ac_Header=\$ac_header_preproc"
30982 fi
30983 ac_res=`eval echo '${'$as_ac_Header'}'`
30984                { echo "$as_me:$LINENO: result: $ac_res" >&5
30985 echo "${ECHO_T}$ac_res" >&6; }
30986
30987 fi
30988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30989   cat >>confdefs.h <<_ACEOF
30990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30991 _ACEOF
30992
30993 else
30994   audiounitok=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&5
30995 echo "${ECHO_T}gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&6; }
30996 fi
30997
30998 done
30999
31000
31001     if test $audiounitok = yes; then
31002         :
31003     else
31004         passed=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioUnit, not found." >&5
31005 echo "${ECHO_T}gr-audio-osx requires AudioUnit, not found." >&6; }
31006     fi
31007
31008
31009
31010     if test x$passed = xno; then
31011         skipped_dirs="$skipped_dirs gr-audio-osx"
31012         if test x$enable_gr_audio_osx = xyes; then
31013             { { echo "$as_me:$LINENO: error: Component gr-audio-osx has errors, stopping." >&5
31014 echo "$as_me: error: Component gr-audio-osx has errors, stopping." >&2;}
31015    { (exit 1); exit 1; }; }
31016         else
31017             { echo "$as_me:$LINENO: result: Not building component gr-audio-osx." >&5
31018 echo "${ECHO_T}Not building component gr-audio-osx." >&6; }
31019         fi
31020     else
31021         if test x$enable_gr_audio_osx != xno; then
31022
31023                 ac_config_commands="$ac_config_commands run_tests_osx"
31024
31025
31026             build_dirs="$build_dirs gr-audio-osx"
31027             { echo "$as_me:$LINENO: result: Component gr-audio-osx passed configuration checks, building." >&5
31028 echo "${ECHO_T}Component gr-audio-osx passed configuration checks, building." >&6; }
31029         else
31030             skipped_dirs="$skipped_dirs gr-audio-osx"
31031             { echo "$as_me:$LINENO: result: Component gr-audio-osx passed configuration checks, but not building." >&5
31032 echo "${ECHO_T}Component gr-audio-osx passed configuration checks, but not building." >&6; }
31033         fi
31034     fi
31035
31036
31037
31038
31039     # Check whether --enable-gr-audio-portaudio was given.
31040 if test "${enable_gr_audio_portaudio+set}" = set; then
31041   enableval=$enable_gr_audio_portaudio;
31042 else
31043   enable_gr_audio_portaudio=$enable_all_components
31044 fi
31045
31046
31047
31048     ac_config_files="$ac_config_files gr-audio-portaudio/Makefile gr-audio-portaudio/src/Makefile gr-audio-portaudio/src/run_tests"
31049
31050
31051     passed=yes
31052
31053   succeeded=no
31054
31055   if test -z "$PKG_CONFIG"; then
31056     # Extract the first word of "pkg-config", so it can be a program name with args.
31057 set dummy pkg-config; ac_word=$2
31058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31060 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31061   echo $ECHO_N "(cached) $ECHO_C" >&6
31062 else
31063   case $PKG_CONFIG in
31064   [\\/]* | ?:[\\/]*)
31065   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31066   ;;
31067   *)
31068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31069 for as_dir in $PATH
31070 do
31071   IFS=$as_save_IFS
31072   test -z "$as_dir" && as_dir=.
31073   for ac_exec_ext in '' $ac_executable_extensions; do
31074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31075     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31077     break 2
31078   fi
31079 done
31080 done
31081 IFS=$as_save_IFS
31082
31083   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
31084   ;;
31085 esac
31086 fi
31087 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31088 if test -n "$PKG_CONFIG"; then
31089   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31090 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31091 else
31092   { echo "$as_me:$LINENO: result: no" >&5
31093 echo "${ECHO_T}no" >&6; }
31094 fi
31095
31096
31097   fi
31098
31099   if test "$PKG_CONFIG" = "no" ; then
31100      echo "*** The pkg-config script could not be found. Make sure it is"
31101      echo "*** in your path, or set the PKG_CONFIG environment variable"
31102      echo "*** to the full path to pkg-config."
31103      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
31104   else
31105                     if test -z "$PKG_CONFIG_PATH"; then
31106         export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
31107      fi
31108
31109      PKG_CONFIG_MIN_VERSION=0.9.0
31110      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
31111         { echo "$as_me:$LINENO: checking for portaudio-2.0 >= 19" >&5
31112 echo $ECHO_N "checking for portaudio-2.0 >= 19... $ECHO_C" >&6; }
31113
31114         if $PKG_CONFIG --exists "portaudio-2.0 >= 19" ; then
31115             { echo "$as_me:$LINENO: result: yes" >&5
31116 echo "${ECHO_T}yes" >&6; }
31117             succeeded=yes
31118
31119             { echo "$as_me:$LINENO: checking PORTAUDIO_CFLAGS" >&5
31120 echo $ECHO_N "checking PORTAUDIO_CFLAGS... $ECHO_C" >&6; }
31121             PORTAUDIO_CFLAGS=`$PKG_CONFIG --cflags "portaudio-2.0 >= 19"`
31122             { echo "$as_me:$LINENO: result: $PORTAUDIO_CFLAGS" >&5
31123 echo "${ECHO_T}$PORTAUDIO_CFLAGS" >&6; }
31124
31125             { echo "$as_me:$LINENO: checking PORTAUDIO_LIBS" >&5
31126 echo $ECHO_N "checking PORTAUDIO_LIBS... $ECHO_C" >&6; }
31127             PORTAUDIO_LIBS=`$PKG_CONFIG --libs "portaudio-2.0 >= 19"`
31128             { echo "$as_me:$LINENO: result: $PORTAUDIO_LIBS" >&5
31129 echo "${ECHO_T}$PORTAUDIO_LIBS" >&6; }
31130
31131             { echo "$as_me:$LINENO: checking PORTAUDIO_INCLUDEDIR" >&5
31132 echo $ECHO_N "checking PORTAUDIO_INCLUDEDIR... $ECHO_C" >&6; }
31133             PORTAUDIO_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "portaudio-2.0 >= 19"`
31134             { echo "$as_me:$LINENO: result: $PORTAUDIO_INCLUDEDIR" >&5
31135 echo "${ECHO_T}$PORTAUDIO_INCLUDEDIR" >&6; }
31136         else
31137             PORTAUDIO_CFLAGS=""
31138             PORTAUDIO_LIBS=""
31139             ## If we have a custom action on failure, don't print errors, but
31140             ## do set a variable so people can do so.
31141             PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "portaudio-2.0 >= 19"`
31142
31143         fi
31144
31145
31146
31147
31148      else
31149         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
31150         echo "*** See http://www.freedesktop.org/software/pkgconfig"
31151      fi
31152   fi
31153
31154   if test $succeeded = yes; then
31155      :
31156   else
31157      passed=no;{ echo "$as_me:$LINENO: result: gr-audio-portaudio requires package portaudio, not found." >&5
31158 echo "${ECHO_T}gr-audio-portaudio requires package portaudio, not found." >&6; }
31159   fi
31160
31161
31162
31163     if test x$passed = xno; then
31164         skipped_dirs="$skipped_dirs gr-audio-portaudio"
31165         if test x$enable_gr_audio_portaudio = xyes; then
31166             { { echo "$as_me:$LINENO: error: Component gr-audio-portaudio has errors, stopping." >&5
31167 echo "$as_me: error: Component gr-audio-portaudio has errors, stopping." >&2;}
31168    { (exit 1); exit 1; }; }
31169         else
31170             { echo "$as_me:$LINENO: result: Not building component gr-audio-portaudio." >&5
31171 echo "${ECHO_T}Not building component gr-audio-portaudio." >&6; }
31172         fi
31173     else
31174         if test x$enable_gr_audio_portaudio != xno; then
31175
31176
31177                 ac_config_commands="$ac_config_commands run_tests_portaudio"
31178
31179
31180             build_dirs="$build_dirs gr-audio-portaudio"
31181             { echo "$as_me:$LINENO: result: Component gr-audio-portaudio passed configuration checks, building." >&5
31182 echo "${ECHO_T}Component gr-audio-portaudio passed configuration checks, building." >&6; }
31183         else
31184             skipped_dirs="$skipped_dirs gr-audio-portaudio"
31185             { echo "$as_me:$LINENO: result: Component gr-audio-portaudio passed configuration checks, but not building." >&5
31186 echo "${ECHO_T}Component gr-audio-portaudio passed configuration checks, but not building." >&6; }
31187         fi
31188     fi
31189
31190
31191
31192
31193     # Check whether --enable-gr-audio-windows was given.
31194 if test "${enable_gr_audio_windows+set}" = set; then
31195   enableval=$enable_gr_audio_windows;
31196 else
31197   enable_gr_audio_windows=$enable_all_components
31198 fi
31199
31200
31201
31202     ac_config_files="$ac_config_files gr-audio-windows/Makefile gr-audio-windows/src/Makefile gr-audio-windows/src/run_tests"
31203
31204
31205     passed=yes
31206
31207 { echo "$as_me:$LINENO: checking for main in -lwinmm" >&5
31208 echo $ECHO_N "checking for main in -lwinmm... $ECHO_C" >&6; }
31209 if test "${ac_cv_lib_winmm_main+set}" = set; then
31210   echo $ECHO_N "(cached) $ECHO_C" >&6
31211 else
31212   ac_check_lib_save_LIBS=$LIBS
31213 LIBS="-lwinmm  $LIBS"
31214 cat >conftest.$ac_ext <<_ACEOF
31215 /* confdefs.h.  */
31216 _ACEOF
31217 cat confdefs.h >>conftest.$ac_ext
31218 cat >>conftest.$ac_ext <<_ACEOF
31219 /* end confdefs.h.  */
31220
31221
31222 int
31223 main ()
31224 {
31225 return main ();
31226   ;
31227   return 0;
31228 }
31229 _ACEOF
31230 rm -f conftest.$ac_objext conftest$ac_exeext
31231 if { (ac_try="$ac_link"
31232 case "(($ac_try" in
31233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31234   *) ac_try_echo=$ac_try;;
31235 esac
31236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31237   (eval "$ac_link") 2>conftest.er1
31238   ac_status=$?
31239   grep -v '^ *+' conftest.er1 >conftest.err
31240   rm -f conftest.er1
31241   cat conftest.err >&5
31242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31243   (exit $ac_status); } && {
31244          test -z "$ac_c_werror_flag" ||
31245          test ! -s conftest.err
31246        } && test -s conftest$ac_exeext &&
31247        $as_test_x conftest$ac_exeext; then
31248   ac_cv_lib_winmm_main=yes
31249 else
31250   echo "$as_me: failed program was:" >&5
31251 sed 's/^/| /' conftest.$ac_ext >&5
31252
31253         ac_cv_lib_winmm_main=no
31254 fi
31255
31256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31257       conftest$ac_exeext conftest.$ac_ext
31258 LIBS=$ac_check_lib_save_LIBS
31259 fi
31260 { echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_main" >&5
31261 echo "${ECHO_T}$ac_cv_lib_winmm_main" >&6; }
31262 if test $ac_cv_lib_winmm_main = yes; then
31263   cat >>confdefs.h <<_ACEOF
31264 #define HAVE_LIBWINMM 1
31265 _ACEOF
31266
31267   LIBS="-lwinmm $LIBS"
31268
31269 else
31270   passed=no;{ echo "$as_me:$LINENO: result: gr-audio-windows requires library winmm, not found." >&5
31271 echo "${ECHO_T}gr-audio-windows requires library winmm, not found." >&6; }
31272 fi
31273 ac_cv_lib_winmm=ac_cv_lib_winmm_main
31274
31275
31276
31277     if test x$passed = xno; then
31278         skipped_dirs="$skipped_dirs gr-audio-windows"
31279         if test x$enable_gr_audio_windows = xyes; then
31280             { { echo "$as_me:$LINENO: error: Component gr-audio-windows has errors, stopping." >&5
31281 echo "$as_me: error: Component gr-audio-windows has errors, stopping." >&2;}
31282    { (exit 1); exit 1; }; }
31283         else
31284             { echo "$as_me:$LINENO: result: Not building component gr-audio-windows." >&5
31285 echo "${ECHO_T}Not building component gr-audio-windows." >&6; }
31286         fi
31287     else
31288         if test x$enable_gr_audio_windows != xno; then
31289
31290         WINAUDIO_LIBS=-lwinmm
31291
31292                 ac_config_commands="$ac_config_commands run_tests_audio_windows"
31293
31294
31295             build_dirs="$build_dirs gr-audio-windows"
31296             { echo "$as_me:$LINENO: result: Component gr-audio-windows passed configuration checks, building." >&5
31297 echo "${ECHO_T}Component gr-audio-windows passed configuration checks, building." >&6; }
31298         else
31299             skipped_dirs="$skipped_dirs gr-audio-windows"
31300             { echo "$as_me:$LINENO: result: Component gr-audio-windows passed configuration checks, but not building." >&5
31301 echo "${ECHO_T}Component gr-audio-windows passed configuration checks, but not building." >&6; }
31302         fi
31303     fi
31304
31305
31306
31307
31308     # Check whether --enable-gr-gsm-fr-vocoder was given.
31309 if test "${enable_gr_gsm_fr_vocoder+set}" = set; then
31310   enableval=$enable_gr_gsm_fr_vocoder;
31311 else
31312   enable_gr_gsm_fr_vocoder=$enable_all_components
31313 fi
31314
31315
31316
31317     ac_config_files="$ac_config_files gr-gsm-fr-vocoder/Makefile gr-gsm-fr-vocoder/src/Makefile gr-gsm-fr-vocoder/src/lib/Makefile gr-gsm-fr-vocoder/src/lib/gsm/Makefile gr-gsm-fr-vocoder/src/python/Makefile gr-gsm-fr-vocoder/src/python/run_tests"
31318
31319
31320     passed=yes
31321
31322     if test x$passed = xno; then
31323         skipped_dirs="$skipped_dirs gr-gsm-fr-vocoder"
31324         if test x$enable_gr_gsm_fr_vocoder = xyes; then
31325             { { echo "$as_me:$LINENO: error: Component gr-gsm-fr-vocoder has errors, stopping." >&5
31326 echo "$as_me: error: Component gr-gsm-fr-vocoder has errors, stopping." >&2;}
31327    { (exit 1); exit 1; }; }
31328         else
31329             { echo "$as_me:$LINENO: result: Not building component gr-gsm-fr-vocoder." >&5
31330 echo "${ECHO_T}Not building component gr-gsm-fr-vocoder." >&6; }
31331         fi
31332     else
31333         if test x$enable_gr_gsm_fr_vocoder != xno; then
31334
31335                 ac_config_commands="$ac_config_commands run_tests_gsm"
31336
31337
31338             build_dirs="$build_dirs gr-gsm-fr-vocoder"
31339             { echo "$as_me:$LINENO: result: Component gr-gsm-fr-vocoder passed configuration checks, building." >&5
31340 echo "${ECHO_T}Component gr-gsm-fr-vocoder passed configuration checks, building." >&6; }
31341         else
31342             skipped_dirs="$skipped_dirs gr-gsm-fr-vocoder"
31343             { echo "$as_me:$LINENO: result: Component gr-gsm-fr-vocoder passed configuration checks, but not building." >&5
31344 echo "${ECHO_T}Component gr-gsm-fr-vocoder passed configuration checks, but not building." >&6; }
31345         fi
31346     fi
31347
31348
31349
31350
31351     # Check whether --enable-gr-radio-astronomy was given.
31352 if test "${enable_gr_radio_astronomy+set}" = set; then
31353   enableval=$enable_gr_radio_astronomy;
31354 else
31355   enable_gr_radio_astronomy=$enable_all_components
31356 fi
31357
31358
31359
31360     ac_config_files="$ac_config_files gr-radio-astronomy/Makefile gr-radio-astronomy/src/Makefile gr-radio-astronomy/src/lib/Makefile gr-radio-astronomy/src/python/Makefile gr-radio-astronomy/src/python/run_tests"
31361
31362
31363     passed=yes
31364
31365     if test x$passed = xno; then
31366         skipped_dirs="$skipped_dirs gr-radio-astronomy"
31367         if test x$enable_gr_radio_astronomy = xyes; then
31368             { { echo "$as_me:$LINENO: error: Component gr-radio-astronomy has errors, stopping." >&5
31369 echo "$as_me: error: Component gr-radio-astronomy has errors, stopping." >&2;}
31370    { (exit 1); exit 1; }; }
31371         else
31372             { echo "$as_me:$LINENO: result: Not building component gr-radio-astronomy." >&5
31373 echo "${ECHO_T}Not building component gr-radio-astronomy." >&6; }
31374         fi
31375     else
31376         if test x$enable_gr_radio_astronomy != xno; then
31377
31378                 ac_config_commands="$ac_config_commands run_tests_astronomy"
31379
31380
31381             build_dirs="$build_dirs gr-radio-astronomy"
31382             { echo "$as_me:$LINENO: result: Component gr-radio-astronomy passed configuration checks, building." >&5
31383 echo "${ECHO_T}Component gr-radio-astronomy passed configuration checks, building." >&6; }
31384         else
31385             skipped_dirs="$skipped_dirs gr-radio-astronomy"
31386             { echo "$as_me:$LINENO: result: Component gr-radio-astronomy passed configuration checks, but not building." >&5
31387 echo "${ECHO_T}Component gr-radio-astronomy passed configuration checks, but not building." >&6; }
31388         fi
31389     fi
31390
31391
31392
31393
31394     # Check whether --enable-gr-trellis was given.
31395 if test "${enable_gr_trellis+set}" = set; then
31396   enableval=$enable_gr_trellis;
31397 else
31398   enable_gr_trellis=$enable_all_components
31399 fi
31400
31401
31402
31403     ac_config_files="$ac_config_files gr-trellis/Makefile gr-trellis/doc/Makefile gr-trellis/src/Makefile gr-trellis/src/lib/Makefile gr-trellis/src/python/Makefile gr-trellis/src/python/run_tests"
31404
31405
31406     passed=yes
31407
31408     if test x$passed = xno; then
31409         skipped_dirs="$skipped_dirs gr-trellis"
31410         if test x$enable_gr_trellis = xyes; then
31411             { { echo "$as_me:$LINENO: error: Component gr-trellis has errors, stopping." >&5
31412 echo "$as_me: error: Component gr-trellis has errors, stopping." >&2;}
31413    { (exit 1); exit 1; }; }
31414         else
31415             { echo "$as_me:$LINENO: result: Not building component gr-trellis." >&5
31416 echo "${ECHO_T}Not building component gr-trellis." >&6; }
31417         fi
31418     else
31419         if test x$enable_gr_trellis != xno; then
31420
31421                 ac_config_commands="$ac_config_commands run_tests_gr_trellis"
31422
31423
31424             build_dirs="$build_dirs gr-trellis"
31425             { echo "$as_me:$LINENO: result: Component gr-trellis passed configuration checks, building." >&5
31426 echo "${ECHO_T}Component gr-trellis passed configuration checks, building." >&6; }
31427         else
31428             skipped_dirs="$skipped_dirs gr-trellis"
31429             { echo "$as_me:$LINENO: result: Component gr-trellis passed configuration checks, but not building." >&5
31430 echo "${ECHO_T}Component gr-trellis passed configuration checks, but not building." >&6; }
31431         fi
31432     fi
31433
31434
31435
31436
31437     # Check whether --enable-gr-video-sdl was given.
31438 if test "${enable_gr_video_sdl+set}" = set; then
31439   enableval=$enable_gr_video_sdl;
31440 else
31441   enable_gr_video_sdl=$enable_all_components
31442 fi
31443
31444
31445
31446     ac_config_files="$ac_config_files gr-video-sdl/Makefile gr-video-sdl/src/Makefile gr-video-sdl/src/run_tests"
31447
31448
31449     passed=yes
31450     SDL_VERSION=1.2.0
31451
31452 # Check whether --with-sdl-prefix was given.
31453 if test "${with_sdl_prefix+set}" = set; then
31454   withval=$with_sdl_prefix; sdl_prefix="$withval"
31455 else
31456   sdl_prefix=""
31457 fi
31458
31459
31460 # Check whether --with-sdl-exec-prefix was given.
31461 if test "${with_sdl_exec_prefix+set}" = set; then
31462   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
31463 else
31464   sdl_exec_prefix=""
31465 fi
31466
31467 # Check whether --enable-sdltest was given.
31468 if test "${enable_sdltest+set}" = set; then
31469   enableval=$enable_sdltest;
31470 else
31471   enable_sdltest=yes
31472 fi
31473
31474
31475   if test x$sdl_exec_prefix != x ; then
31476      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
31477      if test x${SDL_CONFIG+set} != xset ; then
31478         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
31479      fi
31480   fi
31481   if test x$sdl_prefix != x ; then
31482      sdl_args="$sdl_args --prefix=$sdl_prefix"
31483      if test x${SDL_CONFIG+set} != xset ; then
31484         SDL_CONFIG=$sdl_prefix/bin/sdl-config
31485      fi
31486   fi
31487
31488
31489   PATH="$prefix/bin:$prefix/usr/bin:$PATH"
31490   # Extract the first word of "sdl-config", so it can be a program name with args.
31491 set dummy sdl-config; ac_word=$2
31492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31494 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
31495   echo $ECHO_N "(cached) $ECHO_C" >&6
31496 else
31497   case $SDL_CONFIG in
31498   [\\/]* | ?:[\\/]*)
31499   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
31500   ;;
31501   *)
31502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31503 for as_dir in $PATH
31504 do
31505   IFS=$as_save_IFS
31506   test -z "$as_dir" && as_dir=.
31507   for ac_exec_ext in '' $ac_executable_extensions; do
31508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31509     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31511     break 2
31512   fi
31513 done
31514 done
31515 IFS=$as_save_IFS
31516
31517   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
31518   ;;
31519 esac
31520 fi
31521 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
31522 if test -n "$SDL_CONFIG"; then
31523   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
31524 echo "${ECHO_T}$SDL_CONFIG" >&6; }
31525 else
31526   { echo "$as_me:$LINENO: result: no" >&5
31527 echo "${ECHO_T}no" >&6; }
31528 fi
31529
31530
31531   min_sdl_version=$SDL_VERSION
31532   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
31533 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
31534   no_sdl=""
31535   if test "$SDL_CONFIG" = "no" ; then
31536     no_sdl=yes
31537   else
31538     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
31539     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
31540
31541     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
31542            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31543     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
31544            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31545     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
31546            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31547     if test "x$enable_sdltest" = "xyes" ; then
31548       ac_save_CFLAGS="$CFLAGS"
31549       ac_save_LIBS="$LIBS"
31550       CFLAGS="$CFLAGS $SDL_CFLAGS"
31551       LIBS="$LIBS $SDL_LIBS"
31552       rm -f conf.sdltest
31553       if test "$cross_compiling" = yes; then
31554   echo $ac_n "cross compiling; assumed OK... $ac_c"
31555 else
31556   cat >conftest.$ac_ext <<_ACEOF
31557 /* confdefs.h.  */
31558 _ACEOF
31559 cat confdefs.h >>conftest.$ac_ext
31560 cat >>conftest.$ac_ext <<_ACEOF
31561 /* end confdefs.h.  */
31562
31563 #include <stdio.h>
31564 #include <stdlib.h>
31565 #include <string.h>
31566 #include "SDL.h"
31567
31568 char*
31569 my_strdup (char *str)
31570 {
31571   char *new_str;
31572
31573   if (str)
31574     {
31575       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
31576       strcpy (new_str, str);
31577     }
31578   else
31579     new_str = NULL;
31580
31581   return new_str;
31582 }
31583
31584 int main (int argc, char *argv[])
31585 {
31586   int major, minor, micro;
31587   char *tmp_version;
31588
31589   /* This hangs on some systems (?)
31590   system ("touch conf.sdltest");
31591   */
31592   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
31593
31594   /* HP/UX 9 (%@#!) writes to sscanf strings */
31595   tmp_version = my_strdup("$min_sdl_version");
31596   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31597      printf("%s, bad version string\n", "$min_sdl_version");
31598      exit(1);
31599    }
31600
31601    if (($sdl_major_version > major) ||
31602       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
31603       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
31604     {
31605       return 0;
31606     }
31607   else
31608     {
31609       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
31610       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
31611       printf("*** best to upgrade to the required version.\n");
31612       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
31613       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
31614       printf("*** config.cache before re-running configure\n");
31615       return 1;
31616     }
31617 }
31618
31619
31620 _ACEOF
31621 rm -f conftest$ac_exeext
31622 if { (ac_try="$ac_link"
31623 case "(($ac_try" in
31624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31625   *) ac_try_echo=$ac_try;;
31626 esac
31627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31628   (eval "$ac_link") 2>&5
31629   ac_status=$?
31630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31632   { (case "(($ac_try" in
31633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31634   *) ac_try_echo=$ac_try;;
31635 esac
31636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31637   (eval "$ac_try") 2>&5
31638   ac_status=$?
31639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640   (exit $ac_status); }; }; then
31641   :
31642 else
31643   echo "$as_me: program exited with status $ac_status" >&5
31644 echo "$as_me: failed program was:" >&5
31645 sed 's/^/| /' conftest.$ac_ext >&5
31646
31647 ( exit $ac_status )
31648 no_sdl=yes
31649 fi
31650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31651 fi
31652
31653
31654        CFLAGS="$ac_save_CFLAGS"
31655        LIBS="$ac_save_LIBS"
31656      fi
31657   fi
31658   if test "x$no_sdl" = x ; then
31659      { echo "$as_me:$LINENO: result: yes" >&5
31660 echo "${ECHO_T}yes" >&6; }
31661      :
31662   else
31663      { echo "$as_me:$LINENO: result: no" >&5
31664 echo "${ECHO_T}no" >&6; }
31665      if test "$SDL_CONFIG" = "no" ; then
31666        echo "*** The sdl-config script installed by SDL could not be found"
31667        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
31668        echo "*** your path, or set the SDL_CONFIG environment variable to the"
31669        echo "*** full path to sdl-config."
31670      else
31671        if test -f conf.sdltest ; then
31672         :
31673        else
31674           echo "*** Could not run SDL test program, checking why..."
31675           CFLAGS="$CFLAGS $SDL_CFLAGS"
31676           LIBS="$LIBS $SDL_LIBS"
31677           cat >conftest.$ac_ext <<_ACEOF
31678 /* confdefs.h.  */
31679 _ACEOF
31680 cat confdefs.h >>conftest.$ac_ext
31681 cat >>conftest.$ac_ext <<_ACEOF
31682 /* end confdefs.h.  */
31683
31684 #include <stdio.h>
31685 #include "SDL.h"
31686
31687 int main(int argc, char *argv[])
31688 { return 0; }
31689 #undef  main
31690 #define main K_and_R_C_main
31691
31692 int
31693 main ()
31694 {
31695  return 0;
31696   ;
31697   return 0;
31698 }
31699 _ACEOF
31700 rm -f conftest.$ac_objext conftest$ac_exeext
31701 if { (ac_try="$ac_link"
31702 case "(($ac_try" in
31703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31704   *) ac_try_echo=$ac_try;;
31705 esac
31706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31707   (eval "$ac_link") 2>conftest.er1
31708   ac_status=$?
31709   grep -v '^ *+' conftest.er1 >conftest.err
31710   rm -f conftest.er1
31711   cat conftest.err >&5
31712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31713   (exit $ac_status); } && {
31714          test -z "$ac_c_werror_flag" ||
31715          test ! -s conftest.err
31716        } && test -s conftest$ac_exeext &&
31717        $as_test_x conftest$ac_exeext; then
31718    echo "*** The test program compiled, but did not run. This usually means"
31719           echo "*** that the run-time linker is not finding SDL or finding the wrong"
31720           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
31721           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31722           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
31723           echo "*** is required on your system"
31724           echo "***"
31725           echo "*** If you have an old version installed, it is best to remove it, although"
31726           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31727 else
31728   echo "$as_me: failed program was:" >&5
31729 sed 's/^/| /' conftest.$ac_ext >&5
31730
31731          echo "*** The test program failed to compile or link. See the file config.log for the"
31732           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
31733           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
31734           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
31735 fi
31736
31737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31738       conftest$ac_exeext conftest.$ac_ext
31739           CFLAGS="$ac_save_CFLAGS"
31740           LIBS="$ac_save_LIBS"
31741        fi
31742      fi
31743      SDL_CFLAGS=""
31744      SDL_LIBS=""
31745      passed=no;{ echo "$as_me:$LINENO: result: gr-video-sdl requires library sdl, not found or failed test." >&5
31746 echo "${ECHO_T}gr-video-sdl requires library sdl, not found or failed test." >&6; }
31747   fi
31748
31749
31750   rm -f conf.sdltest
31751
31752
31753
31754     if test x$passed = xno; then
31755         skipped_dirs="$skipped_dirs gr-video-sdl"
31756         if test x$enable_gr_video_sdl = xyes; then
31757             { { echo "$as_me:$LINENO: error: Component gr-video-sdl has errors, stopping." >&5
31758 echo "$as_me: error: Component gr-video-sdl has errors, stopping." >&2;}
31759    { (exit 1); exit 1; }; }
31760         else
31761             { echo "$as_me:$LINENO: result: Not building component gr-video-sdl." >&5
31762 echo "${ECHO_T}Not building component gr-video-sdl." >&6; }
31763         fi
31764     else
31765         if test x$enable_gr_video_sdl != xno; then
31766
31767
31768
31769                 ac_config_commands="$ac_config_commands run_tests_sdl"
31770
31771
31772             build_dirs="$build_dirs gr-video-sdl"
31773             { echo "$as_me:$LINENO: result: Component gr-video-sdl passed configuration checks, building." >&5
31774 echo "${ECHO_T}Component gr-video-sdl passed configuration checks, building." >&6; }
31775         else
31776             skipped_dirs="$skipped_dirs gr-video-sdl"
31777             { echo "$as_me:$LINENO: result: Component gr-video-sdl passed configuration checks, but not building." >&5
31778 echo "${ECHO_T}Component gr-video-sdl passed configuration checks, but not building." >&6; }
31779         fi
31780     fi
31781
31782
31783
31784
31785     # Check whether --enable-gr-wxgui was given.
31786 if test "${enable_gr_wxgui+set}" = set; then
31787   enableval=$enable_gr_wxgui;
31788 else
31789   enable_gr_wxgui=$enable_all_components
31790 fi
31791
31792
31793
31794     ac_config_files="$ac_config_files gr-wxgui/Makefile gr-wxgui/src/Makefile gr-wxgui/src/python/Makefile"
31795
31796
31797     if ${PYTHON} -c 'import wx'; then
31798         passed=yes
31799     else
31800         passed=no
31801     fi
31802
31803
31804     if test x$passed = xno; then
31805         skipped_dirs="$skipped_dirs gr-wxgui"
31806         if test x$enable_gr_wxgui = xyes; then
31807             { { echo "$as_me:$LINENO: error: Component gr-wxgui has errors, stopping." >&5
31808 echo "$as_me: error: Component gr-wxgui has errors, stopping." >&2;}
31809    { (exit 1); exit 1; }; }
31810         else
31811             { echo "$as_me:$LINENO: result: Not building component gr-wxgui." >&5
31812 echo "${ECHO_T}Not building component gr-wxgui." >&6; }
31813         fi
31814     else
31815         if test x$enable_gr_wxgui != xno; then
31816
31817             build_dirs="$build_dirs gr-wxgui"
31818             { echo "$as_me:$LINENO: result: Component gr-wxgui passed configuration checks, building." >&5
31819 echo "${ECHO_T}Component gr-wxgui passed configuration checks, building." >&6; }
31820         else
31821             skipped_dirs="$skipped_dirs gr-wxgui"
31822             { echo "$as_me:$LINENO: result: Component gr-wxgui passed configuration checks, but not building." >&5
31823 echo "${ECHO_T}Component gr-wxgui passed configuration checks, but not building." >&6; }
31824         fi
31825     fi
31826
31827
31828
31829 # Each component is now either to be built, was skipped, or failed dependencies
31830 build_dirs=$build_dirs
31831
31832 skipped_dirs=$skipped_dirs
31833
31834
31835 ac_config_files="$ac_config_files Makefile run_tests.sh config/Makefile"
31836
31837
31838 ac_config_commands="$ac_config_commands run_tests_build"
31839
31840
31841 cat >confcache <<\_ACEOF
31842 # This file is a shell script that caches the results of configure
31843 # tests run on this system so they can be shared between configure
31844 # scripts and configure runs, see configure's option --config-cache.
31845 # It is not useful on other systems.  If it contains results you don't
31846 # want to keep, you may remove or edit it.
31847 #
31848 # config.status only pays attention to the cache file if you give it
31849 # the --recheck option to rerun configure.
31850 #
31851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31853 # following values.
31854
31855 _ACEOF
31856
31857 # The following way of writing the cache mishandles newlines in values,
31858 # but we know of no workaround that is simple, portable, and efficient.
31859 # So, we kill variables containing newlines.
31860 # Ultrix sh set writes to stderr and can't be redirected directly,
31861 # and sets the high bit in the cache file unless we assign to the vars.
31862 (
31863   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31864     eval ac_val=\$$ac_var
31865     case $ac_val in #(
31866     *${as_nl}*)
31867       case $ac_var in #(
31868       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
31869 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
31870       esac
31871       case $ac_var in #(
31872       _ | IFS | as_nl) ;; #(
31873       *) $as_unset $ac_var ;;
31874       esac ;;
31875     esac
31876   done
31877
31878   (set) 2>&1 |
31879     case $as_nl`(ac_space=' '; set) 2>&1` in #(
31880     *${as_nl}ac_space=\ *)
31881       # `set' does not quote correctly, so add quotes (double-quote
31882       # substitution turns \\\\ into \\, and sed turns \\ into \).
31883       sed -n \
31884         "s/'/'\\\\''/g;
31885           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31886       ;; #(
31887     *)
31888       # `set' quotes correctly as required by POSIX, so do not add quotes.
31889       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31890       ;;
31891     esac |
31892     sort
31893 ) |
31894   sed '
31895      /^ac_cv_env_/b end
31896      t clear
31897      :clear
31898      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31899      t end
31900      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31901      :end' >>confcache
31902 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31903   if test -w "$cache_file"; then
31904     test "x$cache_file" != "x/dev/null" &&
31905       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
31906 echo "$as_me: updating cache $cache_file" >&6;}
31907     cat confcache >$cache_file
31908   else
31909     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31910 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31911   fi
31912 fi
31913 rm -f confcache
31914
31915 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31916 # Let make expand exec_prefix.
31917 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31918
31919 DEFS=-DHAVE_CONFIG_H
31920
31921 ac_libobjs=
31922 ac_ltlibobjs=
31923 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31924   # 1. Remove the extension, and $U if already installed.
31925   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31926   ac_i=`echo "$ac_i" | sed "$ac_script"`
31927   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31928   #    will be set to the directory where LIBOBJS objects are built.
31929   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31930   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
31931 done
31932 LIBOBJS=$ac_libobjs
31933
31934 LTLIBOBJS=$ac_ltlibobjs
31935
31936
31937 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31938   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
31939 Usually this means the macro was only invoked conditionally." >&5
31940 echo "$as_me: error: conditional \"AMDEP\" was never defined.
31941 Usually this means the macro was only invoked conditionally." >&2;}
31942    { (exit 1); exit 1; }; }
31943 fi
31944 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31945   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31946 Usually this means the macro was only invoked conditionally." >&5
31947 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31948 Usually this means the macro was only invoked conditionally." >&2;}
31949    { (exit 1); exit 1; }; }
31950 fi
31951 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31952   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
31953 Usually this means the macro was only invoked conditionally." >&5
31954 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
31955 Usually this means the macro was only invoked conditionally." >&2;}
31956    { (exit 1); exit 1; }; }
31957 fi
31958 if test -z "${ENABLE_FORTRAN_TRUE}" && test -z "${ENABLE_FORTRAN_FALSE}"; then
31959   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FORTRAN\" was never defined.
31960 Usually this means the macro was only invoked conditionally." >&5
31961 echo "$as_me: error: conditional \"ENABLE_FORTRAN\" was never defined.
31962 Usually this means the macro was only invoked conditionally." >&2;}
31963    { (exit 1); exit 1; }; }
31964 fi
31965 if test -z "${HAS_XMLTO_TRUE}" && test -z "${HAS_XMLTO_FALSE}"; then
31966   { { echo "$as_me:$LINENO: error: conditional \"HAS_XMLTO\" was never defined.
31967 Usually this means the macro was only invoked conditionally." >&5
31968 echo "$as_me: error: conditional \"HAS_XMLTO\" was never defined.
31969 Usually this means the macro was only invoked conditionally." >&2;}
31970    { (exit 1); exit 1; }; }
31971 fi
31972 if test -z "${OMNITHREAD_POSIX_TRUE}" && test -z "${OMNITHREAD_POSIX_FALSE}"; then
31973   { { echo "$as_me:$LINENO: error: conditional \"OMNITHREAD_POSIX\" was never defined.
31974 Usually this means the macro was only invoked conditionally." >&5
31975 echo "$as_me: error: conditional \"OMNITHREAD_POSIX\" was never defined.
31976 Usually this means the macro was only invoked conditionally." >&2;}
31977    { (exit 1); exit 1; }; }
31978 fi
31979 if test -z "${OMNITHREAD_NT_TRUE}" && test -z "${OMNITHREAD_NT_FALSE}"; then
31980   { { echo "$as_me:$LINENO: error: conditional \"OMNITHREAD_NT\" was never defined.
31981 Usually this means the macro was only invoked conditionally." >&5
31982 echo "$as_me: error: conditional \"OMNITHREAD_NT\" was never defined.
31983 Usually this means the macro was only invoked conditionally." >&2;}
31984    { (exit 1); exit 1; }; }
31985 fi
31986 if test -z "${HAVE_CREATEFILEMAPPING_TRUE}" && test -z "${HAVE_CREATEFILEMAPPING_FALSE}"; then
31987   { { echo "$as_me:$LINENO: error: conditional \"HAVE_CREATEFILEMAPPING\" was never defined.
31988 Usually this means the macro was only invoked conditionally." >&5
31989 echo "$as_me: error: conditional \"HAVE_CREATEFILEMAPPING\" was never defined.
31990 Usually this means the macro was only invoked conditionally." >&2;}
31991    { (exit 1); exit 1; }; }
31992 fi
31993 if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
31994   { { echo "$as_me:$LINENO: error: conditional \"DOC\" was never defined.
31995 Usually this means the macro was only invoked conditionally." >&5
31996 echo "$as_me: error: conditional \"DOC\" was never defined.
31997 Usually this means the macro was only invoked conditionally." >&2;}
31998    { (exit 1); exit 1; }; }
31999 fi
32000 if test -z "${MD_CPU_x86_TRUE}" && test -z "${MD_CPU_x86_FALSE}"; then
32001   { { echo "$as_me:$LINENO: error: conditional \"MD_CPU_x86\" was never defined.
32002 Usually this means the macro was only invoked conditionally." >&5
32003 echo "$as_me: error: conditional \"MD_CPU_x86\" was never defined.
32004 Usually this means the macro was only invoked conditionally." >&2;}
32005    { (exit 1); exit 1; }; }
32006 fi
32007 if test -z "${MD_SUBCPU_x86_64_TRUE}" && test -z "${MD_SUBCPU_x86_64_FALSE}"; then
32008   { { echo "$as_me:$LINENO: error: conditional \"MD_SUBCPU_x86_64\" was never defined.
32009 Usually this means the macro was only invoked conditionally." >&5
32010 echo "$as_me: error: conditional \"MD_SUBCPU_x86_64\" was never defined.
32011 Usually this means the macro was only invoked conditionally." >&2;}
32012    { (exit 1); exit 1; }; }
32013 fi
32014 if test -z "${MD_CPU_generic_TRUE}" && test -z "${MD_CPU_generic_FALSE}"; then
32015   { { echo "$as_me:$LINENO: error: conditional \"MD_CPU_generic\" was never defined.
32016 Usually this means the macro was only invoked conditionally." >&5
32017 echo "$as_me: error: conditional \"MD_CPU_generic\" was never defined.
32018 Usually this means the macro was only invoked conditionally." >&2;}
32019    { (exit 1); exit 1; }; }
32020 fi
32021 if test -z "${FUSB_TECH_darwin_TRUE}" && test -z "${FUSB_TECH_darwin_FALSE}"; then
32022   { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_darwin\" was never defined.
32023 Usually this means the macro was only invoked conditionally." >&5
32024 echo "$as_me: error: conditional \"FUSB_TECH_darwin\" was never defined.
32025 Usually this means the macro was only invoked conditionally." >&2;}
32026    { (exit 1); exit 1; }; }
32027 fi
32028 if test -z "${FUSB_TECH_win32_TRUE}" && test -z "${FUSB_TECH_win32_FALSE}"; then
32029   { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_win32\" was never defined.
32030 Usually this means the macro was only invoked conditionally." >&5
32031 echo "$as_me: error: conditional \"FUSB_TECH_win32\" was never defined.
32032 Usually this means the macro was only invoked conditionally." >&2;}
32033    { (exit 1); exit 1; }; }
32034 fi
32035 if test -z "${FUSB_TECH_generic_TRUE}" && test -z "${FUSB_TECH_generic_FALSE}"; then
32036   { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_generic\" was never defined.
32037 Usually this means the macro was only invoked conditionally." >&5
32038 echo "$as_me: error: conditional \"FUSB_TECH_generic\" was never defined.
32039 Usually this means the macro was only invoked conditionally." >&2;}
32040    { (exit 1); exit 1; }; }
32041 fi
32042 if test -z "${FUSB_TECH_linux_TRUE}" && test -z "${FUSB_TECH_linux_FALSE}"; then
32043   { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_linux\" was never defined.
32044 Usually this means the macro was only invoked conditionally." >&5
32045 echo "$as_me: error: conditional \"FUSB_TECH_linux\" was never defined.
32046 Usually this means the macro was only invoked conditionally." >&2;}
32047    { (exit 1); exit 1; }; }
32048 fi
32049 if test -z "${FUSB_TECH_ra_wb_TRUE}" && test -z "${FUSB_TECH_ra_wb_FALSE}"; then
32050   { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_ra_wb\" was never defined.
32051 Usually this means the macro was only invoked conditionally." >&5
32052 echo "$as_me: error: conditional \"FUSB_TECH_ra_wb\" was never defined.
32053 Usually this means the macro was only invoked conditionally." >&2;}
32054    { (exit 1); exit 1; }; }
32055 fi
32056
32057 : ${CONFIG_STATUS=./config.status}
32058 ac_clean_files_save=$ac_clean_files
32059 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32060 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32061 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32062 cat >$CONFIG_STATUS <<_ACEOF
32063 #! $SHELL
32064 # Generated by $as_me.
32065 # Run this file to recreate the current configuration.
32066 # Compiler output produced by configure, useful for debugging
32067 # configure, is in config.log if it exists.
32068
32069 debug=false
32070 ac_cs_recheck=false
32071 ac_cs_silent=false
32072 SHELL=\${CONFIG_SHELL-$SHELL}
32073 _ACEOF
32074
32075 cat >>$CONFIG_STATUS <<\_ACEOF
32076 ## --------------------- ##
32077 ## M4sh Initialization.  ##
32078 ## --------------------- ##
32079
32080 # Be more Bourne compatible
32081 DUALCASE=1; export DUALCASE # for MKS sh
32082 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32083   emulate sh
32084   NULLCMD=:
32085   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32086   # is contrary to our usage.  Disable this feature.
32087   alias -g '${1+"$@"}'='"$@"'
32088   setopt NO_GLOB_SUBST
32089 else
32090   case `(set -o) 2>/dev/null` in
32091   *posix*) set -o posix ;;
32092 esac
32093
32094 fi
32095
32096
32097
32098
32099 # PATH needs CR
32100 # Avoid depending upon Character Ranges.
32101 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32102 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32103 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32104 as_cr_digits='0123456789'
32105 as_cr_alnum=$as_cr_Letters$as_cr_digits
32106
32107 # The user is always right.
32108 if test "${PATH_SEPARATOR+set}" != set; then
32109   echo "#! /bin/sh" >conf$$.sh
32110   echo  "exit 0"   >>conf$$.sh
32111   chmod +x conf$$.sh
32112   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32113     PATH_SEPARATOR=';'
32114   else
32115     PATH_SEPARATOR=:
32116   fi
32117   rm -f conf$$.sh
32118 fi
32119
32120 # Support unset when possible.
32121 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32122   as_unset=unset
32123 else
32124   as_unset=false
32125 fi
32126
32127
32128 # IFS
32129 # We need space, tab and new line, in precisely that order.  Quoting is
32130 # there to prevent editors from complaining about space-tab.
32131 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32132 # splitting by setting IFS to empty value.)
32133 as_nl='
32134 '
32135 IFS=" ""        $as_nl"
32136
32137 # Find who we are.  Look in the path if we contain no directory separator.
32138 case $0 in
32139   *[\\/]* ) as_myself=$0 ;;
32140   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32141 for as_dir in $PATH
32142 do
32143   IFS=$as_save_IFS
32144   test -z "$as_dir" && as_dir=.
32145   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32146 done
32147 IFS=$as_save_IFS
32148
32149      ;;
32150 esac
32151 # We did not find ourselves, most probably we were run as `sh COMMAND'
32152 # in which case we are not to be found in the path.
32153 if test "x$as_myself" = x; then
32154   as_myself=$0
32155 fi
32156 if test ! -f "$as_myself"; then
32157   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32158   { (exit 1); exit 1; }
32159 fi
32160
32161 # Work around bugs in pre-3.0 UWIN ksh.
32162 for as_var in ENV MAIL MAILPATH
32163 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32164 done
32165 PS1='$ '
32166 PS2='> '
32167 PS4='+ '
32168
32169 # NLS nuisances.
32170 for as_var in \
32171   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32172   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32173   LC_TELEPHONE LC_TIME
32174 do
32175   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32176     eval $as_var=C; export $as_var
32177   else
32178     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32179   fi
32180 done
32181
32182 # Required to use basename.
32183 if expr a : '\(a\)' >/dev/null 2>&1 &&
32184    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32185   as_expr=expr
32186 else
32187   as_expr=false
32188 fi
32189
32190 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32191   as_basename=basename
32192 else
32193   as_basename=false
32194 fi
32195
32196
32197 # Name of the executable.
32198 as_me=`$as_basename -- "$0" ||
32199 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32200          X"$0" : 'X\(//\)$' \| \
32201          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32202 echo X/"$0" |
32203     sed '/^.*\/\([^/][^/]*\)\/*$/{
32204             s//\1/
32205             q
32206           }
32207           /^X\/\(\/\/\)$/{
32208             s//\1/
32209             q
32210           }
32211           /^X\/\(\/\).*/{
32212             s//\1/
32213             q
32214           }
32215           s/.*/./; q'`
32216
32217 # CDPATH.
32218 $as_unset CDPATH
32219
32220
32221
32222   as_lineno_1=$LINENO
32223   as_lineno_2=$LINENO
32224   test "x$as_lineno_1" != "x$as_lineno_2" &&
32225   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32226
32227   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32228   # uniformly replaced by the line number.  The first 'sed' inserts a
32229   # line-number line after each line using $LINENO; the second 'sed'
32230   # does the real work.  The second script uses 'N' to pair each
32231   # line-number line with the line containing $LINENO, and appends
32232   # trailing '-' during substitution so that $LINENO is not a special
32233   # case at line end.
32234   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32235   # scripts with optimization help from Paolo Bonzini.  Blame Lee
32236   # E. McMahon (1931-1989) for sed's syntax.  :-)
32237   sed -n '
32238     p
32239     /[$]LINENO/=
32240   ' <$as_myself |
32241     sed '
32242       s/[$]LINENO.*/&-/
32243       t lineno
32244       b
32245       :lineno
32246       N
32247       :loop
32248       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32249       t loop
32250       s/-\n.*//
32251     ' >$as_me.lineno &&
32252   chmod +x "$as_me.lineno" ||
32253     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32254    { (exit 1); exit 1; }; }
32255
32256   # Don't try to exec as it changes $[0], causing all sort of problems
32257   # (the dirname of $[0] is not the place where we might find the
32258   # original and so on.  Autoconf is especially sensitive to this).
32259   . "./$as_me.lineno"
32260   # Exit status is that of the last command.
32261   exit
32262 }
32263
32264
32265 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32266   as_dirname=dirname
32267 else
32268   as_dirname=false
32269 fi
32270
32271 ECHO_C= ECHO_N= ECHO_T=
32272 case `echo -n x` in
32273 -n*)
32274   case `echo 'x\c'` in
32275   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
32276   *)   ECHO_C='\c';;
32277   esac;;
32278 *)
32279   ECHO_N='-n';;
32280 esac
32281
32282 if expr a : '\(a\)' >/dev/null 2>&1 &&
32283    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32284   as_expr=expr
32285 else
32286   as_expr=false
32287 fi
32288
32289 rm -f conf$$ conf$$.exe conf$$.file
32290 if test -d conf$$.dir; then
32291   rm -f conf$$.dir/conf$$.file
32292 else
32293   rm -f conf$$.dir
32294   mkdir conf$$.dir
32295 fi
32296 echo >conf$$.file
32297 if ln -s conf$$.file conf$$ 2>/dev/null; then
32298   as_ln_s='ln -s'
32299   # ... but there are two gotchas:
32300   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32301   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32302   # In both cases, we have to default to `cp -p'.
32303   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32304     as_ln_s='cp -p'
32305 elif ln conf$$.file conf$$ 2>/dev/null; then
32306   as_ln_s=ln
32307 else
32308   as_ln_s='cp -p'
32309 fi
32310 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32311 rmdir conf$$.dir 2>/dev/null
32312
32313 if mkdir -p . 2>/dev/null; then
32314   as_mkdir_p=:
32315 else
32316   test -d ./-p && rmdir ./-p
32317   as_mkdir_p=false
32318 fi
32319
32320 if test -x / >/dev/null 2>&1; then
32321   as_test_x='test -x'
32322 else
32323   if ls -dL / >/dev/null 2>&1; then
32324     as_ls_L_option=L
32325   else
32326     as_ls_L_option=
32327   fi
32328   as_test_x='
32329     eval sh -c '\''
32330       if test -d "$1"; then
32331         test -d "$1/.";
32332       else
32333         case $1 in
32334         -*)set "./$1";;
32335         esac;
32336         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32337         ???[sx]*):;;*)false;;esac;fi
32338     '\'' sh
32339   '
32340 fi
32341 as_executable_p=$as_test_x
32342
32343 # Sed expression to map a string onto a valid CPP name.
32344 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32345
32346 # Sed expression to map a string onto a valid variable name.
32347 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32348
32349
32350 exec 6>&1
32351
32352 # Save the log message, to keep $[0] and so on meaningful, and to
32353 # report actual input values of CONFIG_FILES etc. instead of their
32354 # values after options handling.
32355 ac_log="
32356 This file was extended by $as_me, which was
32357 generated by GNU Autoconf 2.61.  Invocation command line was
32358
32359   CONFIG_FILES    = $CONFIG_FILES
32360   CONFIG_HEADERS  = $CONFIG_HEADERS
32361   CONFIG_LINKS    = $CONFIG_LINKS
32362   CONFIG_COMMANDS = $CONFIG_COMMANDS
32363   $ $0 $@
32364
32365 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32366 "
32367
32368 _ACEOF
32369
32370 cat >>$CONFIG_STATUS <<_ACEOF
32371 # Files that config.status was made for.
32372 config_files="$ac_config_files"
32373 config_headers="$ac_config_headers"
32374 config_commands="$ac_config_commands"
32375
32376 _ACEOF
32377
32378 cat >>$CONFIG_STATUS <<\_ACEOF
32379 ac_cs_usage="\
32380 \`$as_me' instantiates files from templates according to the
32381 current configuration.
32382
32383 Usage: $0 [OPTIONS] [FILE]...
32384
32385   -h, --help       print this help, then exit
32386   -V, --version    print version number and configuration settings, then exit
32387   -q, --quiet      do not print progress messages
32388   -d, --debug      don't remove temporary files
32389       --recheck    update $as_me by reconfiguring in the same conditions
32390   --file=FILE[:TEMPLATE]
32391                    instantiate the configuration file FILE
32392   --header=FILE[:TEMPLATE]
32393                    instantiate the configuration header FILE
32394
32395 Configuration files:
32396 $config_files
32397
32398 Configuration headers:
32399 $config_headers
32400
32401 Configuration commands:
32402 $config_commands
32403
32404 Report bugs to <bug-autoconf@gnu.org>."
32405
32406 _ACEOF
32407 cat >>$CONFIG_STATUS <<_ACEOF
32408 ac_cs_version="\\
32409 config.status
32410 configured by $0, generated by GNU Autoconf 2.61,
32411   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32412
32413 Copyright (C) 2006 Free Software Foundation, Inc.
32414 This config.status script is free software; the Free Software Foundation
32415 gives unlimited permission to copy, distribute and modify it."
32416
32417 ac_pwd='$ac_pwd'
32418 srcdir='$srcdir'
32419 INSTALL='$INSTALL'
32420 _ACEOF
32421
32422 cat >>$CONFIG_STATUS <<\_ACEOF
32423 # If no file are specified by the user, then we need to provide default
32424 # value.  By we need to know if files were specified by the user.
32425 ac_need_defaults=:
32426 while test $# != 0
32427 do
32428   case $1 in
32429   --*=*)
32430     ac_option=`expr "X$1" : 'X\([^=]*\)='`
32431     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32432     ac_shift=:
32433     ;;
32434   *)
32435     ac_option=$1
32436     ac_optarg=$2
32437     ac_shift=shift
32438     ;;
32439   esac
32440
32441   case $ac_option in
32442   # Handling of the options.
32443   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32444     ac_cs_recheck=: ;;
32445   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32446     echo "$ac_cs_version"; exit ;;
32447   --debug | --debu | --deb | --de | --d | -d )
32448     debug=: ;;
32449   --file | --fil | --fi | --f )
32450     $ac_shift
32451     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32452     ac_need_defaults=false;;
32453   --header | --heade | --head | --hea )
32454     $ac_shift
32455     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32456     ac_need_defaults=false;;
32457   --he | --h)
32458     # Conflict between --help and --header
32459     { echo "$as_me: error: ambiguous option: $1
32460 Try \`$0 --help' for more information." >&2
32461    { (exit 1); exit 1; }; };;
32462   --help | --hel | -h )
32463     echo "$ac_cs_usage"; exit ;;
32464   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32465   | -silent | --silent | --silen | --sile | --sil | --si | --s)
32466     ac_cs_silent=: ;;
32467
32468   # This is an error.
32469   -*) { echo "$as_me: error: unrecognized option: $1
32470 Try \`$0 --help' for more information." >&2
32471    { (exit 1); exit 1; }; } ;;
32472
32473   *) ac_config_targets="$ac_config_targets $1"
32474      ac_need_defaults=false ;;
32475
32476   esac
32477   shift
32478 done
32479
32480 ac_configure_extra_args=
32481
32482 if $ac_cs_silent; then
32483   exec 6>/dev/null
32484   ac_configure_extra_args="$ac_configure_extra_args --silent"
32485 fi
32486
32487 _ACEOF
32488 cat >>$CONFIG_STATUS <<_ACEOF
32489 if \$ac_cs_recheck; then
32490   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32491   CONFIG_SHELL=$SHELL
32492   export CONFIG_SHELL
32493   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32494 fi
32495
32496 _ACEOF
32497 cat >>$CONFIG_STATUS <<\_ACEOF
32498 exec 5>>config.log
32499 {
32500   echo
32501   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32502 ## Running $as_me. ##
32503 _ASBOX
32504   echo "$ac_log"
32505 } >&5
32506
32507 _ACEOF
32508 cat >>$CONFIG_STATUS <<_ACEOF
32509 #
32510 # INIT-COMMANDS
32511 #
32512 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32513
32514 _ACEOF
32515
32516 cat >>$CONFIG_STATUS <<\_ACEOF
32517
32518 # Handling of arguments.
32519 for ac_config_target in $ac_config_targets
32520 do
32521   case $ac_config_target in
32522     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32523     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32524     "gnuradio-core/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/Makefile" ;;
32525     "gnuradio-core/gnuradio-core.pc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/gnuradio-core.pc" ;;
32526     "gnuradio-core/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/Doxyfile" ;;
32527     "gnuradio-core/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/Makefile" ;;
32528     "gnuradio-core/doc/other/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/other/Makefile" ;;
32529     "gnuradio-core/doc/xml/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/xml/Makefile" ;;
32530     "gnuradio-core/src/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/Makefile" ;;
32531     "gnuradio-core/src/gen_interpolator_taps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/gen_interpolator_taps/Makefile" ;;
32532     "gnuradio-core/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/Makefile" ;;
32533     "gnuradio-core/src/lib/filter/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/filter/Makefile" ;;
32534     "gnuradio-core/src/lib/g72x/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/g72x/Makefile" ;;
32535     "gnuradio-core/src/lib/general/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/Makefile" ;;
32536     "gnuradio-core/src/lib/general/gr_prefix.cc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/gr_prefix.cc" ;;
32537     "gnuradio-core/src/lib/io/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/io/Makefile" ;;
32538     "gnuradio-core/src/lib/missing/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/missing/Makefile" ;;
32539     "gnuradio-core/src/lib/omnithread/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/omnithread/Makefile" ;;
32540     "gnuradio-core/src/lib/reed-solomon/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/reed-solomon/Makefile" ;;
32541     "gnuradio-core/src/lib/runtime/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/runtime/Makefile" ;;
32542     "gnuradio-core/src/lib/swig/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/swig/Makefile" ;;
32543     "gnuradio-core/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/Makefile" ;;
32544     "gnuradio-core/src/python/bin/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/bin/Makefile" ;;
32545     "gnuradio-core/src/python/gnuradio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/Makefile" ;;
32546     "gnuradio-core/src/python/gnuradio/blks/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blks/Makefile" ;;
32547     "gnuradio-core/src/python/gnuradio/blksimpl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blksimpl/Makefile" ;;
32548     "gnuradio-core/src/python/gnuradio/gr/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/Makefile" ;;
32549     "gnuradio-core/src/python/gnuradio/gr/run_tests") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/run_tests" ;;
32550     "gnuradio-core/src/python/gnuradio/gru/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gru/Makefile" ;;
32551     "gnuradio-core/src/python/gnuradio/gruimpl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gruimpl/Makefile" ;;
32552     "gnuradio-core/src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/tests/Makefile" ;;
32553     "gnuradio-core/src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/utils/Makefile" ;;
32554     "run_tests_core") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_core" ;;
32555     "swig_deps") CONFIG_COMMANDS="$CONFIG_COMMANDS swig_deps" ;;
32556     "gnuradio-examples/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/Makefile" ;;
32557     "gnuradio-examples/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/Makefile" ;;
32558     "gnuradio-examples/python/apps/hf_explorer/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_explorer/Makefile" ;;
32559     "gnuradio-examples/python/apps/hf_radio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_radio/Makefile" ;;
32560     "gnuradio-examples/python/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/Makefile" ;;
32561     "gnuradio-examples/python/audio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/audio/Makefile" ;;
32562     "gnuradio-examples/python/channel-coding/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/channel-coding/Makefile" ;;
32563     "gnuradio-examples/python/channel-coding/fsm_files/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/channel-coding/fsm_files/Makefile" ;;
32564     "gnuradio-examples/python/digital/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital/Makefile" ;;
32565     "gnuradio-examples/python/digital_voice/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital_voice/Makefile" ;;
32566     "gnuradio-examples/python/multi-antenna/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi-antenna/Makefile" ;;
32567     "gnuradio-examples/python/multi_usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi_usrp/Makefile" ;;
32568     "gnuradio-examples/python/networking/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/networking/Makefile" ;;
32569     "gnuradio-examples/python/usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/usrp/Makefile" ;;
32570     "usrp/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/Makefile" ;;
32571     "usrp/usrp.pc") CONFIG_FILES="$CONFIG_FILES usrp/usrp.pc" ;;
32572     "usrp/usrp.iss") CONFIG_FILES="$CONFIG_FILES usrp/usrp.iss" ;;
32573     "usrp/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Doxyfile" ;;
32574     "usrp/doc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Makefile" ;;
32575     "usrp/doc/other/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/other/Makefile" ;;
32576     "usrp/host/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/Makefile" ;;
32577     "usrp/host/misc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/misc/Makefile" ;;
32578     "usrp/host/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/Makefile" ;;
32579     "usrp/host/lib/std_paths.h") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/std_paths.h" ;;
32580     "usrp/host/swig/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/swig/Makefile" ;;
32581     "usrp/host/apps/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/apps/Makefile" ;;
32582     "usrp/firmware/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/Makefile" ;;
32583     "usrp/firmware/include/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/include/Makefile" ;;
32584     "usrp/firmware/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/lib/Makefile" ;;
32585     "usrp/firmware/src/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/Makefile" ;;
32586     "usrp/firmware/src/common/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/common/Makefile" ;;
32587     "usrp/firmware/src/usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/usrp2/Makefile" ;;
32588     "usrp/fpga/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/Makefile" ;;
32589     "usrp/fpga/rbf/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/rbf/Makefile" ;;
32590     "gr-usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/Makefile" ;;
32591     "gr-usrp/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/Makefile" ;;
32592     "gr-usrp/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/run_tests" ;;
32593     "run_tests_usrp") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_usrp" ;;
32594     "gr-audio-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/Makefile" ;;
32595     "gr-audio-alsa/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/Makefile" ;;
32596     "gr-audio-alsa/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/run_tests" ;;
32597     "run_tests_alsa") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_alsa" ;;
32598     "gr-audio-jack/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/Makefile" ;;
32599     "gr-audio-jack/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/Makefile" ;;
32600     "gr-audio-jack/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/run_tests" ;;
32601     "run_tests_jack") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_jack" ;;
32602     "gr-audio-oss/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/Makefile" ;;
32603     "gr-audio-oss/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/Makefile" ;;
32604     "gr-audio-oss/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/run_tests" ;;
32605     "run_tests_oss") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_oss" ;;
32606     "gr-audio-osx/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/Makefile" ;;
32607     "gr-audio-osx/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/Makefile" ;;
32608     "gr-audio-osx/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/run_tests" ;;
32609     "run_tests_osx") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_osx" ;;
32610     "gr-audio-portaudio/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/Makefile" ;;
32611     "gr-audio-portaudio/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/Makefile" ;;
32612     "gr-audio-portaudio/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/run_tests" ;;
32613     "run_tests_portaudio") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_portaudio" ;;
32614     "gr-audio-windows/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/Makefile" ;;
32615     "gr-audio-windows/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/Makefile" ;;
32616     "gr-audio-windows/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/run_tests" ;;
32617     "run_tests_audio_windows") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_audio_windows" ;;
32618     "gr-gsm-fr-vocoder/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/Makefile" ;;
32619     "gr-gsm-fr-vocoder/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/Makefile" ;;
32620     "gr-gsm-fr-vocoder/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/Makefile" ;;
32621     "gr-gsm-fr-vocoder/src/lib/gsm/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/gsm/Makefile" ;;
32622     "gr-gsm-fr-vocoder/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/Makefile" ;;
32623     "gr-gsm-fr-vocoder/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/run_tests" ;;
32624     "run_tests_gsm") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gsm" ;;
32625     "gr-radio-astronomy/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/Makefile" ;;
32626     "gr-radio-astronomy/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/Makefile" ;;
32627     "gr-radio-astronomy/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/lib/Makefile" ;;
32628     "gr-radio-astronomy/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/Makefile" ;;
32629     "gr-radio-astronomy/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/run_tests" ;;
32630     "run_tests_astronomy") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_astronomy" ;;
32631     "gr-trellis/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/Makefile" ;;
32632     "gr-trellis/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/doc/Makefile" ;;
32633     "gr-trellis/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/Makefile" ;;
32634     "gr-trellis/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/lib/Makefile" ;;
32635     "gr-trellis/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/Makefile" ;;
32636     "gr-trellis/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/run_tests" ;;
32637     "run_tests_gr_trellis") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gr_trellis" ;;
32638     "gr-video-sdl/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/Makefile" ;;
32639     "gr-video-sdl/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/Makefile" ;;
32640     "gr-video-sdl/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/run_tests" ;;
32641     "run_tests_sdl") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_sdl" ;;
32642     "gr-wxgui/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/Makefile" ;;
32643     "gr-wxgui/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/Makefile" ;;
32644     "gr-wxgui/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/python/Makefile" ;;
32645     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32646     "run_tests.sh") CONFIG_FILES="$CONFIG_FILES run_tests.sh" ;;
32647     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
32648     "run_tests_build") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_build" ;;
32649
32650   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32651 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32652    { (exit 1); exit 1; }; };;
32653   esac
32654 done
32655
32656
32657 # If the user did not use the arguments to specify the items to instantiate,
32658 # then the envvar interface is used.  Set only those that are not.
32659 # We use the long form for the default assignment because of an extremely
32660 # bizarre bug on SunOS 4.1.3.
32661 if $ac_need_defaults; then
32662   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32663   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32664   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32665 fi
32666
32667 # Have a temporary directory for convenience.  Make it in the build tree
32668 # simply because there is no reason against having it here, and in addition,
32669 # creating and moving files from /tmp can sometimes cause problems.
32670 # Hook for its removal unless debugging.
32671 # Note that there is a small window in which the directory will not be cleaned:
32672 # after its creation but before its name has been assigned to `$tmp'.
32673 $debug ||
32674 {
32675   tmp=
32676   trap 'exit_status=$?
32677   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32678 ' 0
32679   trap '{ (exit 1); exit 1; }' 1 2 13 15
32680 }
32681 # Create a (secure) tmp directory for tmp files.
32682
32683 {
32684   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32685   test -n "$tmp" && test -d "$tmp"
32686 }  ||
32687 {
32688   tmp=./conf$$-$RANDOM
32689   (umask 077 && mkdir "$tmp")
32690 } ||
32691 {
32692    echo "$me: cannot create a temporary directory in ." >&2
32693    { (exit 1); exit 1; }
32694 }
32695
32696 #
32697 # Set up the sed scripts for CONFIG_FILES section.
32698 #
32699
32700 # No need to generate the scripts if there are no CONFIG_FILES.
32701 # This happens for instance when ./config.status config.h
32702 if test -n "$CONFIG_FILES"; then
32703
32704 _ACEOF
32705
32706
32707
32708 ac_delim='%!_!# '
32709 for ac_last_try in false false false false false :; do
32710   cat >conf$$subs.sed <<_ACEOF
32711 SHELL!$SHELL$ac_delim
32712 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32713 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32714 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32715 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32716 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32717 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32718 exec_prefix!$exec_prefix$ac_delim
32719 prefix!$prefix$ac_delim
32720 program_transform_name!$program_transform_name$ac_delim
32721 bindir!$bindir$ac_delim
32722 sbindir!$sbindir$ac_delim
32723 libexecdir!$libexecdir$ac_delim
32724 datarootdir!$datarootdir$ac_delim
32725 datadir!$datadir$ac_delim
32726 sysconfdir!$sysconfdir$ac_delim
32727 sharedstatedir!$sharedstatedir$ac_delim
32728 localstatedir!$localstatedir$ac_delim
32729 includedir!$includedir$ac_delim
32730 oldincludedir!$oldincludedir$ac_delim
32731 docdir!$docdir$ac_delim
32732 infodir!$infodir$ac_delim
32733 htmldir!$htmldir$ac_delim
32734 dvidir!$dvidir$ac_delim
32735 pdfdir!$pdfdir$ac_delim
32736 psdir!$psdir$ac_delim
32737 libdir!$libdir$ac_delim
32738 localedir!$localedir$ac_delim
32739 mandir!$mandir$ac_delim
32740 DEFS!$DEFS$ac_delim
32741 ECHO_C!$ECHO_C$ac_delim
32742 ECHO_N!$ECHO_N$ac_delim
32743 ECHO_T!$ECHO_T$ac_delim
32744 LIBS!$LIBS$ac_delim
32745 build_alias!$build_alias$ac_delim
32746 host_alias!$host_alias$ac_delim
32747 target_alias!$target_alias$ac_delim
32748 build!$build$ac_delim
32749 build_cpu!$build_cpu$ac_delim
32750 build_vendor!$build_vendor$ac_delim
32751 build_os!$build_os$ac_delim
32752 host!$host$ac_delim
32753 host_cpu!$host_cpu$ac_delim
32754 host_vendor!$host_vendor$ac_delim
32755 host_os!$host_os$ac_delim
32756 target!$target$ac_delim
32757 target_cpu!$target_cpu$ac_delim
32758 target_vendor!$target_vendor$ac_delim
32759 target_os!$target_os$ac_delim
32760 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32761 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32762 INSTALL_DATA!$INSTALL_DATA$ac_delim
32763 CYGPATH_W!$CYGPATH_W$ac_delim
32764 PACKAGE!$PACKAGE$ac_delim
32765 VERSION!$VERSION$ac_delim
32766 ACLOCAL!$ACLOCAL$ac_delim
32767 AUTOCONF!$AUTOCONF$ac_delim
32768 AUTOMAKE!$AUTOMAKE$ac_delim
32769 AUTOHEADER!$AUTOHEADER$ac_delim
32770 MAKEINFO!$MAKEINFO$ac_delim
32771 install_sh!$install_sh$ac_delim
32772 STRIP!$STRIP$ac_delim
32773 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
32774 mkdir_p!$mkdir_p$ac_delim
32775 AWK!$AWK$ac_delim
32776 SET_MAKE!$SET_MAKE$ac_delim
32777 am__leading_dot!$am__leading_dot$ac_delim
32778 AMTAR!$AMTAR$ac_delim
32779 am__tar!$am__tar$ac_delim
32780 am__untar!$am__untar$ac_delim
32781 CC!$CC$ac_delim
32782 CFLAGS!$CFLAGS$ac_delim
32783 LDFLAGS!$LDFLAGS$ac_delim
32784 CPPFLAGS!$CPPFLAGS$ac_delim
32785 ac_ct_CC!$ac_ct_CC$ac_delim
32786 EXEEXT!$EXEEXT$ac_delim
32787 OBJEXT!$OBJEXT$ac_delim
32788 DEPDIR!$DEPDIR$ac_delim
32789 am__include!$am__include$ac_delim
32790 am__quote!$am__quote$ac_delim
32791 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
32792 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
32793 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
32794 CCDEPMODE!$CCDEPMODE$ac_delim
32795 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
32796 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
32797 CPP!$CPP$ac_delim
32798 GREP!$GREP$ac_delim
32799 EGREP!$EGREP$ac_delim
32800 CXX!$CXX$ac_delim
32801 CXXFLAGS!$CXXFLAGS$ac_delim
32802 ac_ct_CXX!$ac_ct_CXX$ac_delim
32803 CXXDEPMODE!$CXXDEPMODE$ac_delim
32804 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
32805 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
32806 CXXCPP!$CXXCPP$ac_delim
32807 CCAS!$CCAS$ac_delim
32808 _ACEOF
32809
32810   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32811     break
32812   elif $ac_last_try; then
32813     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32814 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32815    { (exit 1); exit 1; }; }
32816   else
32817     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32818   fi
32819 done
32820
32821 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32822 if test -n "$ac_eof"; then
32823   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32824   ac_eof=`expr $ac_eof + 1`
32825 fi
32826
32827 cat >>$CONFIG_STATUS <<_ACEOF
32828 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32829 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32830 _ACEOF
32831 sed '
32832 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32833 s/^/s,@/; s/!/@,|#_!!_#|/
32834 :n
32835 t n
32836 s/'"$ac_delim"'$/,g/; t
32837 s/$/\\/; p
32838 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32839 ' >>$CONFIG_STATUS <conf$$subs.sed
32840 rm -f conf$$subs.sed
32841 cat >>$CONFIG_STATUS <<_ACEOF
32842 CEOF$ac_eof
32843 _ACEOF
32844
32845
32846 ac_delim='%!_!# '
32847 for ac_last_try in false false false false false :; do
32848   cat >conf$$subs.sed <<_ACEOF
32849 CCASFLAGS!$CCASFLAGS$ac_delim
32850 LN_S!$LN_S$ac_delim
32851 RM_PROG!$RM_PROG$ac_delim
32852 ECHO!$ECHO$ac_delim
32853 AR!$AR$ac_delim
32854 RANLIB!$RANLIB$ac_delim
32855 DLLTOOL!$DLLTOOL$ac_delim
32856 AS!$AS$ac_delim
32857 OBJDUMP!$OBJDUMP$ac_delim
32858 F77!$F77$ac_delim
32859 FFLAGS!$FFLAGS$ac_delim
32860 ac_ct_F77!$ac_ct_F77$ac_delim
32861 LIBTOOL!$LIBTOOL$ac_delim
32862 ENABLE_FORTRAN_TRUE!$ENABLE_FORTRAN_TRUE$ac_delim
32863 ENABLE_FORTRAN_FALSE!$ENABLE_FORTRAN_FALSE$ac_delim
32864 FLIBS!$FLIBS$ac_delim
32865 NO_UNDEFINED!$NO_UNDEFINED$ac_delim
32866 SWIG!$SWIG$ac_delim
32867 PYTHON!$PYTHON$ac_delim
32868 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
32869 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
32870 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
32871 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
32872 pythondir!$pythondir$ac_delim
32873 pkgpythondir!$pkgpythondir$ac_delim
32874 pyexecdir!$pyexecdir$ac_delim
32875 pkgpyexecdir!$pkgpyexecdir$ac_delim
32876 PYTHON_CPPFLAGS!$PYTHON_CPPFLAGS$ac_delim
32877 PYTHON_LDFLAGS!$PYTHON_LDFLAGS$ac_delim
32878 SWIG_PYTHON_LIB!$SWIG_PYTHON_LIB$ac_delim
32879 SWIG_PYTHON_OPT!$SWIG_PYTHON_OPT$ac_delim
32880 SWIG_PYTHON_CPPFLAGS!$SWIG_PYTHON_CPPFLAGS$ac_delim
32881 XMLTO!$XMLTO$ac_delim
32882 HAS_XMLTO_TRUE!$HAS_XMLTO_TRUE$ac_delim
32883 HAS_XMLTO_FALSE!$HAS_XMLTO_FALSE$ac_delim
32884 PTHREAD_CC!$PTHREAD_CC$ac_delim
32885 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
32886 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
32887 OMNITHREAD_POSIX_TRUE!$OMNITHREAD_POSIX_TRUE$ac_delim
32888 OMNITHREAD_POSIX_FALSE!$OMNITHREAD_POSIX_FALSE$ac_delim
32889 OMNITHREAD_NT_TRUE!$OMNITHREAD_NT_TRUE$ac_delim
32890 OMNITHREAD_NT_FALSE!$OMNITHREAD_NT_FALSE$ac_delim
32891 CXX_FOR_BUILD!$CXX_FOR_BUILD$ac_delim
32892 IPC_LIBS!$IPC_LIBS$ac_delim
32893 ALLOCA!$ALLOCA$ac_delim
32894 SHM_OPEN_LIBS!$SHM_OPEN_LIBS$ac_delim
32895 LIBGNURADIO_CORE_EXTRA_LDFLAGS!$LIBGNURADIO_CORE_EXTRA_LDFLAGS$ac_delim
32896 HAVE_CREATEFILEMAPPING_TRUE!$HAVE_CREATEFILEMAPPING_TRUE$ac_delim
32897 HAVE_CREATEFILEMAPPING_FALSE!$HAVE_CREATEFILEMAPPING_FALSE$ac_delim
32898 LIBOBJS!$LIBOBJS$ac_delim
32899 HAVE_DOT!$HAVE_DOT$ac_delim
32900 PKG_CONFIG!$PKG_CONFIG$ac_delim
32901 FFTW3F_CFLAGS!$FFTW3F_CFLAGS$ac_delim
32902 FFTW3F_LIBS!$FFTW3F_LIBS$ac_delim
32903 FFTW3F_INCLUDEDIR!$FFTW3F_INCLUDEDIR$ac_delim
32904 DOXYGEN!$DOXYGEN$ac_delim
32905 DOT!$DOT$ac_delim
32906 DOC_TRUE!$DOC_TRUE$ac_delim
32907 DOC_FALSE!$DOC_FALSE$ac_delim
32908 enable_dot!$enable_dot$ac_delim
32909 enable_html_docs!$enable_html_docs$ac_delim
32910 enable_latex_docs!$enable_latex_docs$ac_delim
32911 generate_docs!$generate_docs$ac_delim
32912 MD_CPU!$MD_CPU$ac_delim
32913 MD_SUBCPU!$MD_SUBCPU$ac_delim
32914 MD_CPU_x86_TRUE!$MD_CPU_x86_TRUE$ac_delim
32915 MD_CPU_x86_FALSE!$MD_CPU_x86_FALSE$ac_delim
32916 MD_SUBCPU_x86_64_TRUE!$MD_SUBCPU_x86_64_TRUE$ac_delim
32917 MD_SUBCPU_x86_64_FALSE!$MD_SUBCPU_x86_64_FALSE$ac_delim
32918 MD_CPU_generic_TRUE!$MD_CPU_generic_TRUE$ac_delim
32919 MD_CPU_generic_FALSE!$MD_CPU_generic_FALSE$ac_delim
32920 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
32921 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
32922 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
32923 CPPUNIT_INCLUDES!$CPPUNIT_INCLUDES$ac_delim
32924 BOOST_CFLAGS!$BOOST_CFLAGS$ac_delim
32925 DEFINES!$DEFINES$ac_delim
32926 USB_LIBS!$USB_LIBS$ac_delim
32927 FUSB_TECH!$FUSB_TECH$ac_delim
32928 FUSB_TECH_darwin_TRUE!$FUSB_TECH_darwin_TRUE$ac_delim
32929 FUSB_TECH_darwin_FALSE!$FUSB_TECH_darwin_FALSE$ac_delim
32930 FUSB_TECH_win32_TRUE!$FUSB_TECH_win32_TRUE$ac_delim
32931 FUSB_TECH_win32_FALSE!$FUSB_TECH_win32_FALSE$ac_delim
32932 FUSB_TECH_generic_TRUE!$FUSB_TECH_generic_TRUE$ac_delim
32933 FUSB_TECH_generic_FALSE!$FUSB_TECH_generic_FALSE$ac_delim
32934 FUSB_TECH_linux_TRUE!$FUSB_TECH_linux_TRUE$ac_delim
32935 FUSB_TECH_linux_FALSE!$FUSB_TECH_linux_FALSE$ac_delim
32936 FUSB_TECH_ra_wb_TRUE!$FUSB_TECH_ra_wb_TRUE$ac_delim
32937 FUSB_TECH_ra_wb_FALSE!$FUSB_TECH_ra_wb_FALSE$ac_delim
32938 XCC!$XCC$ac_delim
32939 XAS!$XAS$ac_delim
32940 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
32941 ALSA_LIBS!$ALSA_LIBS$ac_delim
32942 ALSA_INCLUDEDIR!$ALSA_INCLUDEDIR$ac_delim
32943 JACK_CFLAGS!$JACK_CFLAGS$ac_delim
32944 JACK_LIBS!$JACK_LIBS$ac_delim
32945 JACK_INCLUDEDIR!$JACK_INCLUDEDIR$ac_delim
32946 _ACEOF
32947
32948   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32949     break
32950   elif $ac_last_try; then
32951     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32952 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32953    { (exit 1); exit 1; }; }
32954   else
32955     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32956   fi
32957 done
32958
32959 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32960 if test -n "$ac_eof"; then
32961   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32962   ac_eof=`expr $ac_eof + 1`
32963 fi
32964
32965 cat >>$CONFIG_STATUS <<_ACEOF
32966 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32968 _ACEOF
32969 sed '
32970 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32971 s/^/s,@/; s/!/@,|#_!!_#|/
32972 :n
32973 t n
32974 s/'"$ac_delim"'$/,g/; t
32975 s/$/\\/; p
32976 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32977 ' >>$CONFIG_STATUS <conf$$subs.sed
32978 rm -f conf$$subs.sed
32979 cat >>$CONFIG_STATUS <<_ACEOF
32980 CEOF$ac_eof
32981 _ACEOF
32982
32983
32984 ac_delim='%!_!# '
32985 for ac_last_try in false false false false false :; do
32986   cat >conf$$subs.sed <<_ACEOF
32987 OSS_LIBS!$OSS_LIBS$ac_delim
32988 PORTAUDIO_CFLAGS!$PORTAUDIO_CFLAGS$ac_delim
32989 PORTAUDIO_LIBS!$PORTAUDIO_LIBS$ac_delim
32990 PORTAUDIO_INCLUDEDIR!$PORTAUDIO_INCLUDEDIR$ac_delim
32991 WINAUDIO_LIBS!$WINAUDIO_LIBS$ac_delim
32992 SDL_CONFIG!$SDL_CONFIG$ac_delim
32993 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
32994 SDL_LIBS!$SDL_LIBS$ac_delim
32995 build_dirs!$build_dirs$ac_delim
32996 skipped_dirs!$skipped_dirs$ac_delim
32997 LTLIBOBJS!$LTLIBOBJS$ac_delim
32998 _ACEOF
32999
33000   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
33001     break
33002   elif $ac_last_try; then
33003     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33004 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33005    { (exit 1); exit 1; }; }
33006   else
33007     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33008   fi
33009 done
33010
33011 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33012 if test -n "$ac_eof"; then
33013   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33014   ac_eof=`expr $ac_eof + 1`
33015 fi
33016
33017 cat >>$CONFIG_STATUS <<_ACEOF
33018 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
33019 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
33020 _ACEOF
33021 sed '
33022 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33023 s/^/s,@/; s/!/@,|#_!!_#|/
33024 :n
33025 t n
33026 s/'"$ac_delim"'$/,g/; t
33027 s/$/\\/; p
33028 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33029 ' >>$CONFIG_STATUS <conf$$subs.sed
33030 rm -f conf$$subs.sed
33031 cat >>$CONFIG_STATUS <<_ACEOF
33032 :end
33033 s/|#_!!_#|//g
33034 CEOF$ac_eof
33035 _ACEOF
33036
33037
33038 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33039 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33040 # trailing colons and then remove the whole line if VPATH becomes empty
33041 # (actually we leave an empty line to preserve line numbers).
33042 if test "x$srcdir" = x.; then
33043   ac_vpsub='/^[  ]*VPATH[        ]*=/{
33044 s/:*\$(srcdir):*/:/
33045 s/:*\${srcdir}:*/:/
33046 s/:*@srcdir@:*/:/
33047 s/^\([^=]*=[     ]*\):*/\1/
33048 s/:*$//
33049 s/^[^=]*=[       ]*$//
33050 }'
33051 fi
33052
33053 cat >>$CONFIG_STATUS <<\_ACEOF
33054 fi # test -n "$CONFIG_FILES"
33055
33056
33057 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
33058 do
33059   case $ac_tag in
33060   :[FHLC]) ac_mode=$ac_tag; continue;;
33061   esac
33062   case $ac_mode$ac_tag in
33063   :[FHL]*:*);;
33064   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
33065 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
33066    { (exit 1); exit 1; }; };;
33067   :[FH]-) ac_tag=-:-;;
33068   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33069   esac
33070   ac_save_IFS=$IFS
33071   IFS=:
33072   set x $ac_tag
33073   IFS=$ac_save_IFS
33074   shift
33075   ac_file=$1
33076   shift
33077
33078   case $ac_mode in
33079   :L) ac_source=$1;;
33080   :[FH])
33081     ac_file_inputs=
33082     for ac_f
33083     do
33084       case $ac_f in
33085       -) ac_f="$tmp/stdin";;
33086       *) # Look for the file first in the build tree, then in the source tree
33087          # (if the path is not absolute).  The absolute path cannot be DOS-style,
33088          # because $ac_f cannot contain `:'.
33089          test -f "$ac_f" ||
33090            case $ac_f in
33091            [\\/$]*) false;;
33092            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33093            esac ||
33094            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33095 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33096    { (exit 1); exit 1; }; };;
33097       esac
33098       ac_file_inputs="$ac_file_inputs $ac_f"
33099     done
33100
33101     # Let's still pretend it is `configure' which instantiates (i.e., don't
33102     # use $as_me), people would be surprised to read:
33103     #    /* config.h.  Generated by config.status.  */
33104     configure_input="Generated from "`IFS=:
33105           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33106     if test x"$ac_file" != x-; then
33107       configure_input="$ac_file.  $configure_input"
33108       { echo "$as_me:$LINENO: creating $ac_file" >&5
33109 echo "$as_me: creating $ac_file" >&6;}
33110     fi
33111
33112     case $ac_tag in
33113     *:-:* | *:-) cat >"$tmp/stdin";;
33114     esac
33115     ;;
33116   esac
33117
33118   ac_dir=`$as_dirname -- "$ac_file" ||
33119 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33120          X"$ac_file" : 'X\(//\)[^/]' \| \
33121          X"$ac_file" : 'X\(//\)$' \| \
33122          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33123 echo X"$ac_file" |
33124     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33125             s//\1/
33126             q
33127           }
33128           /^X\(\/\/\)[^/].*/{
33129             s//\1/
33130             q
33131           }
33132           /^X\(\/\/\)$/{
33133             s//\1/
33134             q
33135           }
33136           /^X\(\/\).*/{
33137             s//\1/
33138             q
33139           }
33140           s/.*/./; q'`
33141   { as_dir="$ac_dir"
33142   case $as_dir in #(
33143   -*) as_dir=./$as_dir;;
33144   esac
33145   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33146     as_dirs=
33147     while :; do
33148       case $as_dir in #(
33149       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33150       *) as_qdir=$as_dir;;
33151       esac
33152       as_dirs="'$as_qdir' $as_dirs"
33153       as_dir=`$as_dirname -- "$as_dir" ||
33154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33155          X"$as_dir" : 'X\(//\)[^/]' \| \
33156          X"$as_dir" : 'X\(//\)$' \| \
33157          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33158 echo X"$as_dir" |
33159     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33160             s//\1/
33161             q
33162           }
33163           /^X\(\/\/\)[^/].*/{
33164             s//\1/
33165             q
33166           }
33167           /^X\(\/\/\)$/{
33168             s//\1/
33169             q
33170           }
33171           /^X\(\/\).*/{
33172             s//\1/
33173             q
33174           }
33175           s/.*/./; q'`
33176       test -d "$as_dir" && break
33177     done
33178     test -z "$as_dirs" || eval "mkdir $as_dirs"
33179   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33180 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33181    { (exit 1); exit 1; }; }; }
33182   ac_builddir=.
33183
33184 case "$ac_dir" in
33185 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33186 *)
33187   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33188   # A ".." for each directory in $ac_dir_suffix.
33189   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33190   case $ac_top_builddir_sub in
33191   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33192   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33193   esac ;;
33194 esac
33195 ac_abs_top_builddir=$ac_pwd
33196 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33197 # for backward compatibility:
33198 ac_top_builddir=$ac_top_build_prefix
33199
33200 case $srcdir in
33201   .)  # We are building in place.
33202     ac_srcdir=.
33203     ac_top_srcdir=$ac_top_builddir_sub
33204     ac_abs_top_srcdir=$ac_pwd ;;
33205   [\\/]* | ?:[\\/]* )  # Absolute name.
33206     ac_srcdir=$srcdir$ac_dir_suffix;
33207     ac_top_srcdir=$srcdir
33208     ac_abs_top_srcdir=$srcdir ;;
33209   *) # Relative name.
33210     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33211     ac_top_srcdir=$ac_top_build_prefix$srcdir
33212     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33213 esac
33214 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33215
33216
33217   case $ac_mode in
33218   :F)
33219   #
33220   # CONFIG_FILE
33221   #
33222
33223   case $INSTALL in
33224   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33225   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33226   esac
33227 _ACEOF
33228
33229 cat >>$CONFIG_STATUS <<\_ACEOF
33230 # If the template does not know about datarootdir, expand it.
33231 # FIXME: This hack should be removed a few years after 2.60.
33232 ac_datarootdir_hack=; ac_datarootdir_seen=
33233
33234 case `sed -n '/datarootdir/ {
33235   p
33236   q
33237 }
33238 /@datadir@/p
33239 /@docdir@/p
33240 /@infodir@/p
33241 /@localedir@/p
33242 /@mandir@/p
33243 ' $ac_file_inputs` in
33244 *datarootdir*) ac_datarootdir_seen=yes;;
33245 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33246   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33247 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33248 _ACEOF
33249 cat >>$CONFIG_STATUS <<_ACEOF
33250   ac_datarootdir_hack='
33251   s&@datadir@&$datadir&g
33252   s&@docdir@&$docdir&g
33253   s&@infodir@&$infodir&g
33254   s&@localedir@&$localedir&g
33255   s&@mandir@&$mandir&g
33256     s&\\\${datarootdir}&$datarootdir&g' ;;
33257 esac
33258 _ACEOF
33259
33260 # Neutralize VPATH when `$srcdir' = `.'.
33261 # Shell code in configure.ac might set extrasub.
33262 # FIXME: do we really want to maintain this feature?
33263 cat >>$CONFIG_STATUS <<_ACEOF
33264   sed "$ac_vpsub
33265 $extrasub
33266 _ACEOF
33267 cat >>$CONFIG_STATUS <<\_ACEOF
33268 :t
33269 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33270 s&@configure_input@&$configure_input&;t t
33271 s&@top_builddir@&$ac_top_builddir_sub&;t t
33272 s&@srcdir@&$ac_srcdir&;t t
33273 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33274 s&@top_srcdir@&$ac_top_srcdir&;t t
33275 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33276 s&@builddir@&$ac_builddir&;t t
33277 s&@abs_builddir@&$ac_abs_builddir&;t t
33278 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33279 s&@INSTALL@&$ac_INSTALL&;t t
33280 $ac_datarootdir_hack
33281 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
33282
33283 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33284   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33285   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33286   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33287 which seems to be undefined.  Please make sure it is defined." >&5
33288 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33289 which seems to be undefined.  Please make sure it is defined." >&2;}
33290
33291   rm -f "$tmp/stdin"
33292   case $ac_file in
33293   -) cat "$tmp/out"; rm -f "$tmp/out";;
33294   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33295   esac
33296  ;;
33297   :H)
33298   #
33299   # CONFIG_HEADER
33300   #
33301 _ACEOF
33302
33303 # Transform confdefs.h into a sed script `conftest.defines', that
33304 # substitutes the proper values into config.h.in to produce config.h.
33305 rm -f conftest.defines conftest.tail
33306 # First, append a space to every undef/define line, to ease matching.
33307 echo 's/$/ /' >conftest.defines
33308 # Then, protect against being on the right side of a sed subst, or in
33309 # an unquoted here document, in config.status.  If some macros were
33310 # called several times there might be several #defines for the same
33311 # symbol, which is useless.  But do not sort them, since the last
33312 # AC_DEFINE must be honored.
33313 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33314 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33315 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33316 # PARAMS is the parameter list in the macro definition--in most cases, it's
33317 # just an empty string.
33318 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
33319 ac_dB='\\)[      (].*,\\1define\\2'
33320 ac_dC=' '
33321 ac_dD=' ,'
33322
33323 uniq confdefs.h |
33324   sed -n '
33325         t rset
33326         :rset
33327         s/^[     ]*#[    ]*define[       ][      ]*//
33328         t ok
33329         d
33330         :ok
33331         s/[\\&,]/\\&/g
33332         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33333         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33334   ' >>conftest.defines
33335
33336 # Remove the space that was appended to ease matching.
33337 # Then replace #undef with comments.  This is necessary, for
33338 # example, in the case of _POSIX_SOURCE, which is predefined and required
33339 # on some systems where configure will not decide to define it.
33340 # (The regexp can be short, since the line contains either #define or #undef.)
33341 echo 's/ $//
33342 s,^[     #]*u.*,/* & */,' >>conftest.defines
33343
33344 # Break up conftest.defines:
33345 ac_max_sed_lines=50
33346
33347 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33348 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33349 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33350 # et cetera.
33351 ac_in='$ac_file_inputs'
33352 ac_out='"$tmp/out1"'
33353 ac_nxt='"$tmp/out2"'
33354
33355 while :
33356 do
33357   # Write a here document:
33358     cat >>$CONFIG_STATUS <<_ACEOF
33359     # First, check the format of the line:
33360     cat >"\$tmp/defines.sed" <<\\CEOF
33361 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
33362 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
33363 b
33364 :def
33365 _ACEOF
33366   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33367   echo 'CEOF
33368     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33369   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33370   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33371   grep . conftest.tail >/dev/null || break
33372   rm -f conftest.defines
33373   mv conftest.tail conftest.defines
33374 done
33375 rm -f conftest.defines conftest.tail
33376
33377 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33378 cat >>$CONFIG_STATUS <<\_ACEOF
33379   if test x"$ac_file" != x-; then
33380     echo "/* $configure_input  */" >"$tmp/config.h"
33381     cat "$ac_result" >>"$tmp/config.h"
33382     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33383       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33384 echo "$as_me: $ac_file is unchanged" >&6;}
33385     else
33386       rm -f $ac_file
33387       mv "$tmp/config.h" $ac_file
33388     fi
33389   else
33390     echo "/* $configure_input  */"
33391     cat "$ac_result"
33392   fi
33393   rm -f "$tmp/out12"
33394 # Compute $ac_file's index in $config_headers.
33395 _am_stamp_count=1
33396 for _am_header in $config_headers :; do
33397   case $_am_header in
33398     $ac_file | $ac_file:* )
33399       break ;;
33400     * )
33401       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33402   esac
33403 done
33404 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
33405 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33406          X$ac_file : 'X\(//\)[^/]' \| \
33407          X$ac_file : 'X\(//\)$' \| \
33408          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
33409 echo X$ac_file |
33410     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33411             s//\1/
33412             q
33413           }
33414           /^X\(\/\/\)[^/].*/{
33415             s//\1/
33416             q
33417           }
33418           /^X\(\/\/\)$/{
33419             s//\1/
33420             q
33421           }
33422           /^X\(\/\).*/{
33423             s//\1/
33424             q
33425           }
33426           s/.*/./; q'`/stamp-h$_am_stamp_count
33427  ;;
33428
33429   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33430 echo "$as_me: executing $ac_file commands" >&6;}
33431  ;;
33432   esac
33433
33434
33435   case $ac_file$ac_mode in
33436     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
33437   # Strip MF so we end up with the name of the file.
33438   mf=`echo "$mf" | sed -e 's/:.*$//'`
33439   # Check whether this is an Automake generated Makefile or not.
33440   # We used to match only the files named `Makefile.in', but
33441   # some people rename them; so instead we look at the file content.
33442   # Grep'ing the first line is not enough: some people post-process
33443   # each Makefile.in and add a new line on top of each file to say so.
33444   # So let's grep whole file.
33445   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
33446     dirpart=`$as_dirname -- "$mf" ||
33447 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33448          X"$mf" : 'X\(//\)[^/]' \| \
33449          X"$mf" : 'X\(//\)$' \| \
33450          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33451 echo X"$mf" |
33452     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33453             s//\1/
33454             q
33455           }
33456           /^X\(\/\/\)[^/].*/{
33457             s//\1/
33458             q
33459           }
33460           /^X\(\/\/\)$/{
33461             s//\1/
33462             q
33463           }
33464           /^X\(\/\).*/{
33465             s//\1/
33466             q
33467           }
33468           s/.*/./; q'`
33469   else
33470     continue
33471   fi
33472   # Extract the definition of DEPDIR, am__include, and am__quote
33473   # from the Makefile without running `make'.
33474   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33475   test -z "$DEPDIR" && continue
33476   am__include=`sed -n 's/^am__include = //p' < "$mf"`
33477   test -z "am__include" && continue
33478   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33479   # When using ansi2knr, U may be empty or an underscore; expand it
33480   U=`sed -n 's/^U = //p' < "$mf"`
33481   # Find all dependency output files, they are included files with
33482   # $(DEPDIR) in their names.  We invoke sed twice because it is the
33483   # simplest approach to changing $(DEPDIR) to its actual value in the
33484   # expansion.
33485   for file in `sed -n "
33486     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33487        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33488     # Make sure the directory exists.
33489     test -f "$dirpart/$file" && continue
33490     fdir=`$as_dirname -- "$file" ||
33491 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33492          X"$file" : 'X\(//\)[^/]' \| \
33493          X"$file" : 'X\(//\)$' \| \
33494          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33495 echo X"$file" |
33496     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33497             s//\1/
33498             q
33499           }
33500           /^X\(\/\/\)[^/].*/{
33501             s//\1/
33502             q
33503           }
33504           /^X\(\/\/\)$/{
33505             s//\1/
33506             q
33507           }
33508           /^X\(\/\).*/{
33509             s//\1/
33510             q
33511           }
33512           s/.*/./; q'`
33513     { as_dir=$dirpart/$fdir
33514   case $as_dir in #(
33515   -*) as_dir=./$as_dir;;
33516   esac
33517   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33518     as_dirs=
33519     while :; do
33520       case $as_dir in #(
33521       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33522       *) as_qdir=$as_dir;;
33523       esac
33524       as_dirs="'$as_qdir' $as_dirs"
33525       as_dir=`$as_dirname -- "$as_dir" ||
33526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33527          X"$as_dir" : 'X\(//\)[^/]' \| \
33528          X"$as_dir" : 'X\(//\)$' \| \
33529          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33530 echo X"$as_dir" |
33531     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33532             s//\1/
33533             q
33534           }
33535           /^X\(\/\/\)[^/].*/{
33536             s//\1/
33537             q
33538           }
33539           /^X\(\/\/\)$/{
33540             s//\1/
33541             q
33542           }
33543           /^X\(\/\).*/{
33544             s//\1/
33545             q
33546           }
33547           s/.*/./; q'`
33548       test -d "$as_dir" && break
33549     done
33550     test -z "$as_dirs" || eval "mkdir $as_dirs"
33551   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33552 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33553    { (exit 1); exit 1; }; }; }
33554     # echo "creating $dirpart/$file"
33555     echo '# dummy' > "$dirpart/$file"
33556   done
33557 done
33558  ;;
33559     "run_tests_core":C) chmod +x gnuradio-core/src/python/gnuradio/gr/run_tests ;;
33560     "swig_deps":C) touch gnuradio-core/src/lib/swig/gnuradio_swig_python.d ;;
33561     "run_tests_usrp":C) chmod +x gr-usrp/src/run_tests ;;
33562     "run_tests_alsa":C) chmod +x gr-audio-alsa/src/run_tests ;;
33563     "run_tests_jack":C) chmod +x gr-audio-jack/src/run_tests ;;
33564     "run_tests_oss":C) chmod +x gr-audio-oss/src/run_tests ;;
33565     "run_tests_osx":C) chmod +x gr-audio-osx/src/run_tests ;;
33566     "run_tests_portaudio":C) chmod +x gr-audio-portaudio/src/run_tests ;;
33567     "run_tests_audio_windows":C) chmod +x gr-audio-windows/src/run_tests ;;
33568     "run_tests_gsm":C) chmod +x gr-gsm-fr-vocoder/src/python/run_tests ;;
33569     "run_tests_astronomy":C) chmod +x gr-radio-astronomy/src/python/run_tests ;;
33570     "run_tests_gr_trellis":C) chmod +x gr-trellis/src/python/run_tests ;;
33571     "run_tests_sdl":C) chmod +x gr-video-sdl/src/run_tests ;;
33572     "run_tests_build":C) chmod +x run_tests.sh ;;
33573
33574   esac
33575 done # for ac_tag
33576
33577
33578 { (exit 0); exit 0; }
33579 _ACEOF
33580 chmod +x $CONFIG_STATUS
33581 ac_clean_files=$ac_clean_files_save
33582
33583
33584 # configure is writing to config.log, and then calls config.status.
33585 # config.status does its own redirection, appending to config.log.
33586 # Unfortunately, on DOS this fails, as config.log is still kept open
33587 # by configure, so config.status won't be able to write to it; its
33588 # output is simply discarded.  So we exec the FD to /dev/null,
33589 # effectively closing config.log, so it can be properly (re)opened and
33590 # appended to by config.status.  When coming back to configure, we
33591 # need to make the FD available again.
33592 if test "$no_create" != yes; then
33593   ac_cs_success=:
33594   ac_config_status_args=
33595   test "$silent" = yes &&
33596     ac_config_status_args="$ac_config_status_args --quiet"
33597   exec 5>/dev/null
33598   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33599   exec 5>>config.log
33600   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33601   # would make configure fail if this is the last instruction.
33602   $ac_cs_success || { (exit 1); exit 1; }
33603 fi
33604
33605
33606 echo
33607 echo "*********************************************************************"
33608 echo The following GNU Radio components have been successfully configured:
33609 echo
33610 for dir in $build_dirs
33611 do
33612     echo $dir
33613 done
33614 echo
33615 echo You my now run the 'make' command to build these components.
33616 echo
33617 if test "$skipped_dirs" != ""; then
33618     echo "*********************************************************************"
33619     echo The following components were skipped either because you asked not
33620     echo to build them or they didn\'t pass configuration checks:
33621     echo
33622     for dir in $skipped_dirs
33623     do
33624         echo $dir
33625     done
33626     echo
33627     echo These components will not be built.
33628     echo
33629 fi