Imported Upstream version 3.0
[debian/gnuradio] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
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 Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20   setopt NO_GLOB_SUBST
21 else
22   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23 fi
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38   echo "#! /bin/sh" >conf$$.sh
39   echo  "exit 0"   >>conf$$.sh
40   chmod +x conf$$.sh
41   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42     PATH_SEPARATOR=';'
43   else
44     PATH_SEPARATOR=:
45   fi
46   rm -f conf$$.sh
47 fi
48
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51   as_unset=unset
52 else
53   as_unset=false
54 fi
55
56
57 # IFS
58 # We need space, tab and new line, in precisely that order.  Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
63 '
64 IFS=" ""        $as_nl"
65
66 # Find who we are.  Look in the path if we contain no directory separator.
67 case $0 in
68   *[\\/]* ) as_myself=$0 ;;
69   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
71 do
72   IFS=$as_save_IFS
73   test -z "$as_dir" && as_dir=.
74   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
77
78      ;;
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83   as_myself=$0
84 fi
85 if test ! -f "$as_myself"; then
86   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87   { (exit 1); exit 1; }
88 fi
89
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
97
98 # NLS nuisances.
99 for as_var in \
100   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102   LC_TELEPHONE LC_TIME
103 do
104   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105     eval $as_var=C; export $as_var
106   else
107     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108   fi
109 done
110
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113    test "X`expr 00001 : '.*\(...\)'`" = X001; then
114   as_expr=expr
115 else
116   as_expr=false
117 fi
118
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120   as_basename=basename
121 else
122   as_basename=false
123 fi
124
125
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129          X"$0" : 'X\(//\)$' \| \
130          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132     sed '/^.*\/\([^/][^/]*\)\/*$/{
133             s//\1/
134             q
135           }
136           /^X\/\(\/\/\)$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\).*/{
141             s//\1/
142             q
143           }
144           s/.*/./; q'`
145
146 # CDPATH.
147 $as_unset CDPATH
148
149
150 if test "x$CONFIG_SHELL" = x; then
151   if (eval ":") 2>/dev/null; then
152   as_have_required=yes
153 else
154   as_have_required=no
155 fi
156
157   if test $as_have_required = yes &&     (eval ":
158 (as_func_return () {
159   (exit \$1)
160 }
161 as_func_success () {
162   as_func_return 0
163 }
164 as_func_failure () {
165   as_func_return 1
166 }
167 as_func_ret_success () {
168   return 0
169 }
170 as_func_ret_failure () {
171   return 1
172 }
173
174 exitcode=0
175 if as_func_success; then
176   :
177 else
178   exitcode=1
179   echo as_func_success failed.
180 fi
181
182 if as_func_failure; then
183   exitcode=1
184   echo as_func_failure succeeded.
185 fi
186
187 if as_func_ret_success; then
188   :
189 else
190   exitcode=1
191   echo as_func_ret_success failed.
192 fi
193
194 if as_func_ret_failure; then
195   exitcode=1
196   echo as_func_ret_failure succeeded.
197 fi
198
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200   :
201 else
202   exitcode=1
203   echo positional parameters were not saved.
204 fi
205
206 test \$exitcode = 0) || { (exit 1); exit 1; }
207
208 (
209   as_lineno_1=\$LINENO
210   as_lineno_2=\$LINENO
211   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
214   :
215 else
216   as_candidate_shells=
217     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   case $as_dir in
223          /*)
224            for as_base in sh bash ksh sh5; do
225              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226            done;;
227        esac
228 done
229 IFS=$as_save_IFS
230
231
232       for as_shell in $as_candidate_shells $SHELL; do
233          # Try only shells that exist, to save several forks.
234          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235                 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238   emulate sh
239   NULLCMD=:
240   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241   # is contrary to our usage.  Disable this feature.
242   alias -g '${1+"$@"}'='"$@"'
243   setopt NO_GLOB_SUBST
244 else
245   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246 fi
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
249
250 :
251 _ASEOF
252 }; then
253   CONFIG_SHELL=$as_shell
254                as_have_required=yes
255                if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258   emulate sh
259   NULLCMD=:
260   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261   # is contrary to our usage.  Disable this feature.
262   alias -g '${1+"$@"}'='"$@"'
263   setopt NO_GLOB_SUBST
264 else
265   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266 fi
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
269
270 :
271 (as_func_return () {
272   (exit $1)
273 }
274 as_func_success () {
275   as_func_return 0
276 }
277 as_func_failure () {
278   as_func_return 1
279 }
280 as_func_ret_success () {
281   return 0
282 }
283 as_func_ret_failure () {
284   return 1
285 }
286
287 exitcode=0
288 if as_func_success; then
289   :
290 else
291   exitcode=1
292   echo as_func_success failed.
293 fi
294
295 if as_func_failure; then
296   exitcode=1
297   echo as_func_failure succeeded.
298 fi
299
300 if as_func_ret_success; then
301   :
302 else
303   exitcode=1
304   echo as_func_ret_success failed.
305 fi
306
307 if as_func_ret_failure; then
308   exitcode=1
309   echo as_func_ret_failure succeeded.
310 fi
311
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
313   :
314 else
315   exitcode=1
316   echo positional parameters were not saved.
317 fi
318
319 test $exitcode = 0) || { (exit 1); exit 1; }
320
321 (
322   as_lineno_1=$LINENO
323   as_lineno_2=$LINENO
324   test "x$as_lineno_1" != "x$as_lineno_2" &&
325   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327 _ASEOF
328 }; then
329   break
330 fi
331
332 fi
333
334       done
335
336       if test "x$CONFIG_SHELL" != x; then
337   for as_var in BASH_ENV ENV
338         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339         done
340         export CONFIG_SHELL
341         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342 fi
343
344
345     if test $as_have_required = no; then
346   echo This script requires a shell more modern than all the
347       echo shells that I found on your system.  Please install a
348       echo modern shell, or manually run the script under such a
349       echo shell if you do have one.
350       { (exit 1); exit 1; }
351 fi
352
353
354 fi
355
356 fi
357
358
359
360 (eval "as_func_return () {
361   (exit \$1)
362 }
363 as_func_success () {
364   as_func_return 0
365 }
366 as_func_failure () {
367   as_func_return 1
368 }
369 as_func_ret_success () {
370   return 0
371 }
372 as_func_ret_failure () {
373   return 1
374 }
375
376 exitcode=0
377 if as_func_success; then
378   :
379 else
380   exitcode=1
381   echo as_func_success failed.
382 fi
383
384 if as_func_failure; then
385   exitcode=1
386   echo as_func_failure succeeded.
387 fi
388
389 if as_func_ret_success; then
390   :
391 else
392   exitcode=1
393   echo as_func_ret_success failed.
394 fi
395
396 if as_func_ret_failure; then
397   exitcode=1
398   echo as_func_ret_failure succeeded.
399 fi
400
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402   :
403 else
404   exitcode=1
405   echo positional parameters were not saved.
406 fi
407
408 test \$exitcode = 0") || {
409   echo No shell found that supports shell functions.
410   echo Please tell autoconf@gnu.org about your system,
411   echo including any error possibly output before this
412   echo message
413 }
414
415
416
417   as_lineno_1=$LINENO
418   as_lineno_2=$LINENO
419   test "x$as_lineno_1" != "x$as_lineno_2" &&
420   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423   # uniformly replaced by the line number.  The first 'sed' inserts a
424   # line-number line after each line using $LINENO; the second 'sed'
425   # does the real work.  The second script uses 'N' to pair each
426   # line-number line with the line containing $LINENO, and appends
427   # trailing '-' during substitution so that $LINENO is not a special
428   # case at line end.
429   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430   # scripts with optimization help from Paolo Bonzini.  Blame Lee
431   # E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449    { (exit 1); exit 1; }; }
450
451   # Don't try to exec as it changes $[0], causing all sort of problems
452   # (the dirname of $[0] is not the place where we might find the
453   # original and so on.  Autoconf is especially sensitive to this).
454   . "./$as_me.lineno"
455   # Exit status is that of the last command.
456   exit
457 }
458
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461   as_dirname=dirname
462 else
463   as_dirname=false
464 fi
465
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469   case `echo 'x\c'` in
470   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
471   *)   ECHO_C='\c';;
472   esac;;
473 *)
474   ECHO_N='-n';;
475 esac
476
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478    test "X`expr 00001 : '.*\(...\)'`" = X001; then
479   as_expr=expr
480 else
481   as_expr=false
482 fi
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir
490 fi
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493   as_ln_s='ln -s'
494   # ... but there are two gotchas:
495   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497   # In both cases, we have to default to `cp -p'.
498   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499     as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s=ln
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p=:
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523   as_executable_p="test -x"
524 else
525   as_executable_p=:
526 fi
527 rm -f conf$$.file
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541 case X$ECHO in
542 X*--fallback-echo)
543   # Remove one level of quotation (which was required for Make).
544   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
545   ;;
546 esac
547
548 echo=${ECHO-echo}
549 if test "X$1" = X--no-reexec; then
550   # Discard the --no-reexec flag, and continue.
551   shift
552 elif test "X$1" = X--fallback-echo; then
553   # Avoid inline document here, it may be left over
554   :
555 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556   # Yippee, $echo works!
557   :
558 else
559   # Restart under the correct shell.
560   exec $SHELL "$0" --no-reexec ${1+"$@"}
561 fi
562
563 if test "X$1" = X--fallback-echo; then
564   # used as fallback echo
565   shift
566   cat <<EOF
567 $*
568 EOF
569   exit 0
570 fi
571
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
573 # if CDPATH is set.
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575
576 if test -z "$ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582        echo_test_string=`eval $cmd` &&
583        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
584     then
585       break
586     fi
587   done
588 fi
589
590 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592    test "X$echo_testing_string" = "X$echo_test_string"; then
593   :
594 else
595   # The Solaris, AIX, and Digital Unix default echo programs unquote
596   # backslashes.  This makes it impossible to quote backslashes using
597   #   echo "$something" | sed 's/\\/\\\\/g'
598   #
599   # So, first we look for a working echo in the user's PATH.
600
601   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602   for dir in $PATH /usr/ucb; do
603     IFS="$lt_save_ifs"
604     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607        test "X$echo_testing_string" = "X$echo_test_string"; then
608       echo="$dir/echo"
609       break
610     fi
611   done
612   IFS="$lt_save_ifs"
613
614   if test "X$echo" = Xecho; then
615     # We didn't find a better echo, so look for alternatives.
616     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618        test "X$echo_testing_string" = "X$echo_test_string"; then
619       # This shell has a builtin print -r that does the trick.
620       echo='print -r'
621     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622          test "X$CONFIG_SHELL" != X/bin/ksh; then
623       # If we have ksh, try running configure again with it.
624       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625       export ORIGINAL_CONFIG_SHELL
626       CONFIG_SHELL=/bin/ksh
627       export CONFIG_SHELL
628       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
629     else
630       # Try using printf.
631       echo='printf %s\n'
632       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634          test "X$echo_testing_string" = "X$echo_test_string"; then
635         # Cool, printf works
636         :
637       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638            test "X$echo_testing_string" = 'X\t' &&
639            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640            test "X$echo_testing_string" = "X$echo_test_string"; then
641         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
642         export CONFIG_SHELL
643         SHELL="$CONFIG_SHELL"
644         export SHELL
645         echo="$CONFIG_SHELL $0 --fallback-echo"
646       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647            test "X$echo_testing_string" = 'X\t' &&
648            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649            test "X$echo_testing_string" = "X$echo_test_string"; then
650         echo="$CONFIG_SHELL $0 --fallback-echo"
651       else
652         # maybe with a smaller string...
653         prev=:
654
655         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
657           then
658             break
659           fi
660           prev="$cmd"
661         done
662
663         if test "$prev" != 'sed 50q "$0"'; then
664           echo_test_string=`eval $prev`
665           export echo_test_string
666           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
667         else
668           # Oops.  We lost completely, so just stick with echo.
669           echo=echo
670         fi
671       fi
672     fi
673   fi
674 fi
675 fi
676
677 # Copy echo and quote the copy suitably for passing to libtool from
678 # the Makefile, instead of quoting the original, which is used later.
679 ECHO=$echo
680 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
682 fi
683
684
685
686
687 tagnames=${tagnames+${tagnames},}CXX
688
689 tagnames=${tagnames+${tagnames},}F77
690
691 exec 7<&0 </dev/null 6>&1
692
693 # Name of the host.
694 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695 # so uname gets run too.
696 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
697
698 #
699 # Initializations.
700 #
701 ac_default_prefix=/usr/local
702 ac_clean_files=
703 ac_config_libobj_dir=.
704 LIBOBJS=
705 cross_compiling=no
706 subdirs=
707 MFLAGS=
708 MAKEFLAGS=
709 SHELL=${CONFIG_SHELL-/bin/sh}
710
711 # Identity of this package.
712 PACKAGE_NAME=
713 PACKAGE_TARNAME=
714 PACKAGE_VERSION=
715 PACKAGE_STRING=
716 PACKAGE_BUGREPORT=
717
718 ac_unique_file="gnuradio-core/src/lib/runtime/gr_vmcircbuf.cc"
719 # Factoring default headers for most tests.
720 ac_includes_default="\
721 #include <stdio.h>
722 #if HAVE_SYS_TYPES_H
723 # include <sys/types.h>
724 #endif
725 #if HAVE_SYS_STAT_H
726 # include <sys/stat.h>
727 #endif
728 #if STDC_HEADERS
729 # include <stdlib.h>
730 # include <stddef.h>
731 #else
732 # if HAVE_STDLIB_H
733 #  include <stdlib.h>
734 # endif
735 #endif
736 #if HAVE_STRING_H
737 # if !STDC_HEADERS && HAVE_MEMORY_H
738 #  include <memory.h>
739 # endif
740 # include <string.h>
741 #endif
742 #if HAVE_STRINGS_H
743 # include <strings.h>
744 #endif
745 #if HAVE_INTTYPES_H
746 # include <inttypes.h>
747 #endif
748 #if HAVE_STDINT_H
749 # include <stdint.h>
750 #endif
751 #if HAVE_UNISTD_H
752 # include <unistd.h>
753 #endif"
754
755 ac_subst_vars='SHELL
756 PATH_SEPARATOR
757 PACKAGE_NAME
758 PACKAGE_TARNAME
759 PACKAGE_VERSION
760 PACKAGE_STRING
761 PACKAGE_BUGREPORT
762 exec_prefix
763 prefix
764 program_transform_name
765 bindir
766 sbindir
767 libexecdir
768 datarootdir
769 datadir
770 sysconfdir
771 sharedstatedir
772 localstatedir
773 includedir
774 oldincludedir
775 docdir
776 infodir
777 htmldir
778 dvidir
779 pdfdir
780 psdir
781 libdir
782 localedir
783 mandir
784 DEFS
785 ECHO_C
786 ECHO_N
787 ECHO_T
788 LIBS
789 build_alias
790 host_alias
791 target_alias
792 build
793 build_cpu
794 build_vendor
795 build_os
796 host
797 host_cpu
798 host_vendor
799 host_os
800 target
801 target_cpu
802 target_vendor
803 target_os
804 INSTALL_PROGRAM
805 INSTALL_SCRIPT
806 INSTALL_DATA
807 CYGPATH_W
808 PACKAGE
809 VERSION
810 ACLOCAL
811 AUTOCONF
812 AUTOMAKE
813 AUTOHEADER
814 MAKEINFO
815 install_sh
816 STRIP
817 INSTALL_STRIP_PROGRAM
818 mkdir_p
819 AWK
820 SET_MAKE
821 am__leading_dot
822 AMTAR
823 am__tar
824 am__untar
825 CC
826 CFLAGS
827 LDFLAGS
828 CPPFLAGS
829 ac_ct_CC
830 EXEEXT
831 OBJEXT
832 DEPDIR
833 am__include
834 am__quote
835 AMDEP_TRUE
836 AMDEP_FALSE
837 AMDEPBACKSLASH
838 CCDEPMODE
839 am__fastdepCC_TRUE
840 am__fastdepCC_FALSE
841 CPP
842 GREP
843 EGREP
844 CXX
845 CXXFLAGS
846 ac_ct_CXX
847 CXXDEPMODE
848 am__fastdepCXX_TRUE
849 am__fastdepCXX_FALSE
850 CXXCPP
851 CCAS
852 CCASFLAGS
853 LN_S
854 RM_PROG
855 ECHO
856 AR
857 RANLIB
858 DLLTOOL
859 AS
860 OBJDUMP
861 F77
862 FFLAGS
863 ac_ct_F77
864 LIBTOOL
865 ENABLE_FORTRAN_TRUE
866 ENABLE_FORTRAN_FALSE
867 FLIBS
868 NO_UNDEFINED
869 SWIG
870 PYTHON
871 PYTHON_VERSION
872 PYTHON_PREFIX
873 PYTHON_EXEC_PREFIX
874 PYTHON_PLATFORM
875 pythondir
876 pkgpythondir
877 pyexecdir
878 pkgpyexecdir
879 PYTHON_CPPFLAGS
880 PYTHON_LDFLAGS
881 SWIG_PYTHON_LIB
882 SWIG_PYTHON_OPT
883 SWIG_PYTHON_CPPFLAGS
884 XMLTO
885 HAS_XMLTO_TRUE
886 HAS_XMLTO_FALSE
887 PTHREAD_CC
888 PTHREAD_LIBS
889 PTHREAD_CFLAGS
890 OMNITHREAD_POSIX_TRUE
891 OMNITHREAD_POSIX_FALSE
892 OMNITHREAD_NT_TRUE
893 OMNITHREAD_NT_FALSE
894 CXX_FOR_BUILD
895 IPC_LIBS
896 ALLOCA
897 SHM_OPEN_LIBS
898 LIBGNURADIO_CORE_EXTRA_LDFLAGS
899 HAVE_CREATEFILEMAPPING_TRUE
900 HAVE_CREATEFILEMAPPING_FALSE
901 LIBOBJS
902 HAVE_DOT
903 PKG_CONFIG
904 FFTW3F_CFLAGS
905 FFTW3F_LIBS
906 FFTW3F_INCLUDEDIR
907 DOXYGEN
908 DOT
909 DOC_TRUE
910 DOC_FALSE
911 enable_dot
912 enable_html_docs
913 enable_latex_docs
914 generate_docs
915 MD_CPU
916 MD_SUBCPU
917 MD_CPU_x86_TRUE
918 MD_CPU_x86_FALSE
919 MD_SUBCPU_x86_64_TRUE
920 MD_SUBCPU_x86_64_FALSE
921 MD_CPU_generic_TRUE
922 MD_CPU_generic_FALSE
923 CPPUNIT_CONFIG
924 CPPUNIT_CFLAGS
925 CPPUNIT_LIBS
926 CPPUNIT_INCLUDES
927 BOOST_CFLAGS
928 DEFINES
929 USB_LIBS
930 FUSB_TECH
931 FUSB_TECH_darwin_TRUE
932 FUSB_TECH_darwin_FALSE
933 FUSB_TECH_win32_TRUE
934 FUSB_TECH_win32_FALSE
935 FUSB_TECH_generic_TRUE
936 FUSB_TECH_generic_FALSE
937 FUSB_TECH_linux_TRUE
938 FUSB_TECH_linux_FALSE
939 FUSB_TECH_ra_wb_TRUE
940 FUSB_TECH_ra_wb_FALSE
941 XCC
942 XAS
943 ALSA_CFLAGS
944 ALSA_LIBS
945 ALSA_INCLUDEDIR
946 JACK_CFLAGS
947 JACK_LIBS
948 JACK_INCLUDEDIR
949 OSS_LIBS
950 PORTAUDIO_CFLAGS
951 PORTAUDIO_LIBS
952 PORTAUDIO_INCLUDEDIR
953 WINAUDIO_LIBS
954 SDL_CONFIG
955 SDL_CFLAGS
956 SDL_LIBS
957 build_dirs
958 skipped_dirs
959 LTLIBOBJS'
960 ac_subst_files=''
961       ac_precious_vars='build_alias
962 host_alias
963 target_alias
964 CC
965 CFLAGS
966 LDFLAGS
967 CPPFLAGS
968 CPP
969 CXX
970 CXXFLAGS
971 CCC
972 CXXCPP
973 F77
974 FFLAGS'
975
976
977 # Initialize some variables set by options.
978 ac_init_help=
979 ac_init_version=false
980 # The variables have the same names as the options, with
981 # dashes changed to underlines.
982 cache_file=/dev/null
983 exec_prefix=NONE
984 no_create=
985 no_recursion=
986 prefix=NONE
987 program_prefix=NONE
988 program_suffix=NONE
989 program_transform_name=s,x,x,
990 silent=
991 site=
992 srcdir=
993 verbose=
994 x_includes=NONE
995 x_libraries=NONE
996
997 # Installation directory options.
998 # These are left unexpanded so users can "make install exec_prefix=/foo"
999 # and all the variables that are supposed to be based on exec_prefix
1000 # by default will actually change.
1001 # Use braces instead of parens because sh, perl, etc. also accept them.
1002 # (The list follows the same order as the GNU Coding Standards.)
1003 bindir='${exec_prefix}/bin'
1004 sbindir='${exec_prefix}/sbin'
1005 libexecdir='${exec_prefix}/libexec'
1006 datarootdir='${prefix}/share'
1007 datadir='${datarootdir}'
1008 sysconfdir='${prefix}/etc'
1009 sharedstatedir='${prefix}/com'
1010 localstatedir='${prefix}/var'
1011 includedir='${prefix}/include'
1012 oldincludedir='/usr/include'
1013 docdir='${datarootdir}/doc/${PACKAGE}'
1014 infodir='${datarootdir}/info'
1015 htmldir='${docdir}'
1016 dvidir='${docdir}'
1017 pdfdir='${docdir}'
1018 psdir='${docdir}'
1019 libdir='${exec_prefix}/lib'
1020 localedir='${datarootdir}/locale'
1021 mandir='${datarootdir}/man'
1022
1023 ac_prev=
1024 ac_dashdash=
1025 for ac_option
1026 do
1027   # If the previous option needs an argument, assign it.
1028   if test -n "$ac_prev"; then
1029     eval $ac_prev=\$ac_option
1030     ac_prev=
1031     continue
1032   fi
1033
1034   case $ac_option in
1035   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1036   *)    ac_optarg=yes ;;
1037   esac
1038
1039   # Accept the important Cygnus configure options, so we can diagnose typos.
1040
1041   case $ac_dashdash$ac_option in
1042   --)
1043     ac_dashdash=yes ;;
1044
1045   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1046     ac_prev=bindir ;;
1047   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1048     bindir=$ac_optarg ;;
1049
1050   -build | --build | --buil | --bui | --bu)
1051     ac_prev=build_alias ;;
1052   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1053     build_alias=$ac_optarg ;;
1054
1055   -cache-file | --cache-file | --cache-fil | --cache-fi \
1056   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1057     ac_prev=cache_file ;;
1058   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1059   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1060     cache_file=$ac_optarg ;;
1061
1062   --config-cache | -C)
1063     cache_file=config.cache ;;
1064
1065   -datadir | --datadir | --datadi | --datad)
1066     ac_prev=datadir ;;
1067   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1068     datadir=$ac_optarg ;;
1069
1070   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1071   | --dataroo | --dataro | --datar)
1072     ac_prev=datarootdir ;;
1073   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1074   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1075     datarootdir=$ac_optarg ;;
1076
1077   -disable-* | --disable-*)
1078     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1079     # Reject names that are not valid shell variable names.
1080     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1081       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1082    { (exit 1); exit 1; }; }
1083     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1084     eval enable_$ac_feature=no ;;
1085
1086   -docdir | --docdir | --docdi | --doc | --do)
1087     ac_prev=docdir ;;
1088   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1089     docdir=$ac_optarg ;;
1090
1091   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1092     ac_prev=dvidir ;;
1093   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1094     dvidir=$ac_optarg ;;
1095
1096   -enable-* | --enable-*)
1097     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1098     # Reject names that are not valid shell variable names.
1099     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1100       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1101    { (exit 1); exit 1; }; }
1102     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1103     eval enable_$ac_feature=\$ac_optarg ;;
1104
1105   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1106   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1107   | --exec | --exe | --ex)
1108     ac_prev=exec_prefix ;;
1109   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1110   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1111   | --exec=* | --exe=* | --ex=*)
1112     exec_prefix=$ac_optarg ;;
1113
1114   -gas | --gas | --ga | --g)
1115     # Obsolete; use --with-gas.
1116     with_gas=yes ;;
1117
1118   -help | --help | --hel | --he | -h)
1119     ac_init_help=long ;;
1120   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1121     ac_init_help=recursive ;;
1122   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1123     ac_init_help=short ;;
1124
1125   -host | --host | --hos | --ho)
1126     ac_prev=host_alias ;;
1127   -host=* | --host=* | --hos=* | --ho=*)
1128     host_alias=$ac_optarg ;;
1129
1130   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131     ac_prev=htmldir ;;
1132   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133   | --ht=*)
1134     htmldir=$ac_optarg ;;
1135
1136   -includedir | --includedir | --includedi | --included | --include \
1137   | --includ | --inclu | --incl | --inc)
1138     ac_prev=includedir ;;
1139   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1140   | --includ=* | --inclu=* | --incl=* | --inc=*)
1141     includedir=$ac_optarg ;;
1142
1143   -infodir | --infodir | --infodi | --infod | --info | --inf)
1144     ac_prev=infodir ;;
1145   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1146     infodir=$ac_optarg ;;
1147
1148   -libdir | --libdir | --libdi | --libd)
1149     ac_prev=libdir ;;
1150   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1151     libdir=$ac_optarg ;;
1152
1153   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1154   | --libexe | --libex | --libe)
1155     ac_prev=libexecdir ;;
1156   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1157   | --libexe=* | --libex=* | --libe=*)
1158     libexecdir=$ac_optarg ;;
1159
1160   -localedir | --localedir | --localedi | --localed | --locale)
1161     ac_prev=localedir ;;
1162   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1163     localedir=$ac_optarg ;;
1164
1165   -localstatedir | --localstatedir | --localstatedi | --localstated \
1166   | --localstate | --localstat | --localsta | --localst | --locals)
1167     ac_prev=localstatedir ;;
1168   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1169   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1170     localstatedir=$ac_optarg ;;
1171
1172   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173     ac_prev=mandir ;;
1174   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1175     mandir=$ac_optarg ;;
1176
1177   -nfp | --nfp | --nf)
1178     # Obsolete; use --without-fp.
1179     with_fp=no ;;
1180
1181   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182   | --no-cr | --no-c | -n)
1183     no_create=yes ;;
1184
1185   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187     no_recursion=yes ;;
1188
1189   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1190   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1191   | --oldin | --oldi | --old | --ol | --o)
1192     ac_prev=oldincludedir ;;
1193   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1194   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1195   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1196     oldincludedir=$ac_optarg ;;
1197
1198   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199     ac_prev=prefix ;;
1200   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1201     prefix=$ac_optarg ;;
1202
1203   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1204   | --program-pre | --program-pr | --program-p)
1205     ac_prev=program_prefix ;;
1206   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1207   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1208     program_prefix=$ac_optarg ;;
1209
1210   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1211   | --program-suf | --program-su | --program-s)
1212     ac_prev=program_suffix ;;
1213   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1214   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1215     program_suffix=$ac_optarg ;;
1216
1217   -program-transform-name | --program-transform-name \
1218   | --program-transform-nam | --program-transform-na \
1219   | --program-transform-n | --program-transform- \
1220   | --program-transform | --program-transfor \
1221   | --program-transfo | --program-transf \
1222   | --program-trans | --program-tran \
1223   | --progr-tra | --program-tr | --program-t)
1224     ac_prev=program_transform_name ;;
1225   -program-transform-name=* | --program-transform-name=* \
1226   | --program-transform-nam=* | --program-transform-na=* \
1227   | --program-transform-n=* | --program-transform-=* \
1228   | --program-transform=* | --program-transfor=* \
1229   | --program-transfo=* | --program-transf=* \
1230   | --program-trans=* | --program-tran=* \
1231   | --progr-tra=* | --program-tr=* | --program-t=*)
1232     program_transform_name=$ac_optarg ;;
1233
1234   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235     ac_prev=pdfdir ;;
1236   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1237     pdfdir=$ac_optarg ;;
1238
1239   -psdir | --psdir | --psdi | --psd | --ps)
1240     ac_prev=psdir ;;
1241   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1242     psdir=$ac_optarg ;;
1243
1244   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245   | -silent | --silent | --silen | --sile | --sil)
1246     silent=yes ;;
1247
1248   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249     ac_prev=sbindir ;;
1250   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251   | --sbi=* | --sb=*)
1252     sbindir=$ac_optarg ;;
1253
1254   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1255   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1256   | --sharedst | --shareds | --shared | --share | --shar \
1257   | --sha | --sh)
1258     ac_prev=sharedstatedir ;;
1259   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1260   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1261   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262   | --sha=* | --sh=*)
1263     sharedstatedir=$ac_optarg ;;
1264
1265   -site | --site | --sit)
1266     ac_prev=site ;;
1267   -site=* | --site=* | --sit=*)
1268     site=$ac_optarg ;;
1269
1270   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271     ac_prev=srcdir ;;
1272   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1273     srcdir=$ac_optarg ;;
1274
1275   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1276   | --syscon | --sysco | --sysc | --sys | --sy)
1277     ac_prev=sysconfdir ;;
1278   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1279   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1280     sysconfdir=$ac_optarg ;;
1281
1282   -target | --target | --targe | --targ | --tar | --ta | --t)
1283     ac_prev=target_alias ;;
1284   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1285     target_alias=$ac_optarg ;;
1286
1287   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1288     verbose=yes ;;
1289
1290   -version | --version | --versio | --versi | --vers | -V)
1291     ac_init_version=: ;;
1292
1293   -with-* | --with-*)
1294     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295     # Reject names that are not valid shell variable names.
1296     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1297       { echo "$as_me: error: invalid package name: $ac_package" >&2
1298    { (exit 1); exit 1; }; }
1299     ac_package=`echo $ac_package| sed 's/-/_/g'`
1300     eval with_$ac_package=\$ac_optarg ;;
1301
1302   -without-* | --without-*)
1303     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1304     # Reject names that are not valid shell variable names.
1305     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1306       { echo "$as_me: error: invalid package name: $ac_package" >&2
1307    { (exit 1); exit 1; }; }
1308     ac_package=`echo $ac_package | sed 's/-/_/g'`
1309     eval with_$ac_package=no ;;
1310
1311   --x)
1312     # Obsolete; use --with-x.
1313     with_x=yes ;;
1314
1315   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316   | --x-incl | --x-inc | --x-in | --x-i)
1317     ac_prev=x_includes ;;
1318   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320     x_includes=$ac_optarg ;;
1321
1322   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324     ac_prev=x_libraries ;;
1325   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327     x_libraries=$ac_optarg ;;
1328
1329   -*) { echo "$as_me: error: unrecognized option: $ac_option
1330 Try \`$0 --help' for more information." >&2
1331    { (exit 1); exit 1; }; }
1332     ;;
1333
1334   *=*)
1335     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336     # Reject names that are not valid shell variable names.
1337     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1338       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1339    { (exit 1); exit 1; }; }
1340     eval $ac_envvar=\$ac_optarg
1341     export $ac_envvar ;;
1342
1343   *)
1344     # FIXME: should be removed in autoconf 3.0.
1345     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349     ;;
1350
1351   esac
1352 done
1353
1354 if test -n "$ac_prev"; then
1355   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356   { echo "$as_me: error: missing argument to $ac_option" >&2
1357    { (exit 1); exit 1; }; }
1358 fi
1359
1360 # Be sure to have absolute directory names.
1361 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362                 datadir sysconfdir sharedstatedir localstatedir includedir \
1363                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364                 libdir localedir mandir
1365 do
1366   eval ac_val=\$$ac_var
1367   case $ac_val in
1368     [\\/$]* | ?:[\\/]* )  continue;;
1369     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1370   esac
1371   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1372    { (exit 1); exit 1; }; }
1373 done
1374
1375 # There might be people who depend on the old broken behavior: `$host'
1376 # used to hold the argument of --host etc.
1377 # FIXME: To remove some day.
1378 build=$build_alias
1379 host=$host_alias
1380 target=$target_alias
1381
1382 # FIXME: To remove some day.
1383 if test "x$host_alias" != x; then
1384   if test "x$build_alias" = x; then
1385     cross_compiling=maybe
1386     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1387     If a cross compiler is detected then cross compile mode will be used." >&2
1388   elif test "x$build_alias" != "x$host_alias"; then
1389     cross_compiling=yes
1390   fi
1391 fi
1392
1393 ac_tool_prefix=
1394 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1395
1396 test "$silent" = yes && exec 6>/dev/null
1397
1398
1399 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1400 ac_ls_di=`ls -di .` &&
1401 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1402   { echo "$as_me: error: Working directory cannot be determined" >&2
1403    { (exit 1); exit 1; }; }
1404 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1405   { echo "$as_me: error: pwd does not report name of working directory" >&2
1406    { (exit 1); exit 1; }; }
1407
1408
1409 # Find the source files, if location was not specified.
1410 if test -z "$srcdir"; then
1411   ac_srcdir_defaulted=yes
1412   # Try the directory containing this script, then the parent directory.
1413   ac_confdir=`$as_dirname -- "$0" ||
1414 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1415          X"$0" : 'X\(//\)[^/]' \| \
1416          X"$0" : 'X\(//\)$' \| \
1417          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1418 echo X"$0" |
1419     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420             s//\1/
1421             q
1422           }
1423           /^X\(\/\/\)[^/].*/{
1424             s//\1/
1425             q
1426           }
1427           /^X\(\/\/\)$/{
1428             s//\1/
1429             q
1430           }
1431           /^X\(\/\).*/{
1432             s//\1/
1433             q
1434           }
1435           s/.*/./; q'`
1436   srcdir=$ac_confdir
1437   if test ! -r "$srcdir/$ac_unique_file"; then
1438     srcdir=..
1439   fi
1440 else
1441   ac_srcdir_defaulted=no
1442 fi
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1445   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1446    { (exit 1); exit 1; }; }
1447 fi
1448 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449 ac_abs_confdir=`(
1450         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1451    { (exit 1); exit 1; }; }
1452         pwd)`
1453 # When building in place, set srcdir=.
1454 if test "$ac_abs_confdir" = "$ac_pwd"; then
1455   srcdir=.
1456 fi
1457 # Remove unnecessary trailing slashes from srcdir.
1458 # Double slashes in file names in object file debugging info
1459 # mess up M-x gdb in Emacs.
1460 case $srcdir in
1461 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462 esac
1463 for ac_var in $ac_precious_vars; do
1464   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1465   eval ac_env_${ac_var}_value=\$${ac_var}
1466   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1467   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1468 done
1469
1470 #
1471 # Report the --help message.
1472 #
1473 if test "$ac_init_help" = "long"; then
1474   # Omit some internal or obsolete options to make the list less imposing.
1475   # This message is too long to be a string in the A/UX 3.1 sh.
1476   cat <<_ACEOF
1477 \`configure' configures this package to adapt to many kinds of systems.
1478
1479 Usage: $0 [OPTION]... [VAR=VALUE]...
1480
1481 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1482 VAR=VALUE.  See below for descriptions of some of the useful variables.
1483
1484 Defaults for the options are specified in brackets.
1485
1486 Configuration:
1487   -h, --help              display this help and exit
1488       --help=short        display options specific to this package
1489       --help=recursive    display the short help of all the included packages
1490   -V, --version           display version information and exit
1491   -q, --quiet, --silent   do not print \`checking...' messages
1492       --cache-file=FILE   cache test results in FILE [disabled]
1493   -C, --config-cache      alias for \`--cache-file=config.cache'
1494   -n, --no-create         do not create output files
1495       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1496
1497 Installation directories:
1498   --prefix=PREFIX         install architecture-independent files in PREFIX
1499                           [$ac_default_prefix]
1500   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1501                           [PREFIX]
1502
1503 By default, \`make install' will install all the files in
1504 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1505 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1506 for instance \`--prefix=\$HOME'.
1507
1508 For better control, use the options below.
1509
1510 Fine tuning of the installation directories:
1511   --bindir=DIR           user executables [EPREFIX/bin]
1512   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1513   --libexecdir=DIR       program executables [EPREFIX/libexec]
1514   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1515   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1516   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1517   --libdir=DIR           object code libraries [EPREFIX/lib]
1518   --includedir=DIR       C header files [PREFIX/include]
1519   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1520   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1521   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1522   --infodir=DIR          info documentation [DATAROOTDIR/info]
1523   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1524   --mandir=DIR           man documentation [DATAROOTDIR/man]
1525   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1526   --htmldir=DIR          html documentation [DOCDIR]
1527   --dvidir=DIR           dvi documentation [DOCDIR]
1528   --pdfdir=DIR           pdf documentation [DOCDIR]
1529   --psdir=DIR            ps documentation [DOCDIR]
1530 _ACEOF
1531
1532   cat <<\_ACEOF
1533
1534 Program names:
1535   --program-prefix=PREFIX            prepend PREFIX to installed program names
1536   --program-suffix=SUFFIX            append SUFFIX to installed program names
1537   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1538
1539 System types:
1540   --build=BUILD     configure for building on BUILD [guessed]
1541   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1542   --target=TARGET   configure for building compilers for TARGET [HOST]
1543 _ACEOF
1544 fi
1545
1546 if test -n "$ac_init_help"; then
1547
1548   cat <<\_ACEOF
1549
1550 Optional Features:
1551   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1552   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1553   --disable-dependency-tracking  speeds up one-time build
1554   --enable-dependency-tracking   do not reject slow dependency extractors
1555   --disable-assert        don't use cpp.h assert
1556   --enable-shared[=PKGS]  build shared libraries [default=yes]
1557   --enable-static[=PKGS]  build static libraries [default=no]
1558   --enable-fast-install[=PKGS]
1559                           optimize for fast installation [default=yes]
1560   --disable-libtool-lock  avoid locking (might break parallel builds)
1561   --enable-fortran        enable fortran (no)
1562   --enable-doxygen        enable documentation generation with doxygen (no)
1563   --enable-dot            use 'dot' to generate graphs in doxygen (auto)
1564   --enable-html-docs      enable HTML generation with doxygen (yes)
1565   --enable-latex-docs     enable LaTeX doc generation with doxygen (no)
1566   --enable-all-components Build all components or stop on failed dependencies
1567
1568   --enable-gnuradio-core  Fail build if gnuradio-core fails configuration
1569   --enable-gnuradio-examples  Fail build if gnuradio-examples fails configuration
1570   --enable-usrp  Fail build if usrp fails configuration
1571   --enable-gr-usrp  Fail build if gr-usrp fails configuration
1572   --enable-gr-audio-alsa  Fail build if gr-audio-alsa fails configuration
1573   --enable-gr-audio-jack  Fail build if gr-audio-jack fails configuration
1574   --enable-gr-audio-oss  Fail build if gr-audio-oss fails configuration
1575   --enable-gr-audio-osx  Fail build if gr-audio-osx fails configuration
1576   --enable-gr-audio-portaudio  Fail build if gr-audio-portaudio fails configuration
1577   --enable-gr-audio-windows  Fail build if gr-audio-windows fails configuration
1578   --enable-gr-gsm-fr-vocoder  Fail build if gr-gsm-fr-vocoder fails configuration
1579   --enable-gr-radio-astronomy  Fail build if gr-radio-astronomy fails configuration
1580   --enable-gr-trellis  Fail build if gr-trellis fails configuration
1581   --enable-gr-video-sdl  Fail build if gr-video-sdl fails configuration
1582   --disable-sdltest       Do not try to compile and run a test SDL program
1583   --enable-gr-wxgui  Fail build if gr-wxgui fails configuration
1584
1585 Optional Packages:
1586   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1587   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1588   --with-warnings         Turn on warnings
1589   --with-gprof            Turn on gprof profiling
1590   --with-prof             Turn on prof profiling
1591   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1592   --with-pic              try to use only PIC/non-PIC objects [default=use
1593                           both]
1594   --with-tags[=TAGS]      include additional configurations [automatic]
1595   --with-md-cpu=ARCH      set machine dependent speedups (auto)
1596   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1597   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1598   --with-boost-include-dir=<path>
1599                           path to boost c++ include files
1600   --with-fusb-tech=OS     set fast usb technique (auto)
1601   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1602   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1603
1604 Some influential environment variables:
1605   CC          C compiler command
1606   CFLAGS      C compiler flags
1607   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1608               nonstandard directory <lib dir>
1609   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1610               you have headers in a nonstandard directory <include dir>
1611   CPP         C preprocessor
1612   CXX         C++ compiler command
1613   CXXFLAGS    C++ compiler flags
1614   CXXCPP      C++ preprocessor
1615   F77         Fortran 77 compiler command
1616   FFLAGS      Fortran 77 compiler flags
1617
1618 Use these variables to override the choices made by `configure' or to help
1619 it to find libraries and programs with nonstandard names/locations.
1620
1621 _ACEOF
1622 ac_status=$?
1623 fi
1624
1625 if test "$ac_init_help" = "recursive"; then
1626   # If there are subdirs, report their specific --help.
1627   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628     test -d "$ac_dir" || continue
1629     ac_builddir=.
1630
1631 case "$ac_dir" in
1632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 *)
1634   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1635   # A ".." for each directory in $ac_dir_suffix.
1636   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1637   case $ac_top_builddir_sub in
1638   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640   esac ;;
1641 esac
1642 ac_abs_top_builddir=$ac_pwd
1643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644 # for backward compatibility:
1645 ac_top_builddir=$ac_top_build_prefix
1646
1647 case $srcdir in
1648   .)  # We are building in place.
1649     ac_srcdir=.
1650     ac_top_srcdir=$ac_top_builddir_sub
1651     ac_abs_top_srcdir=$ac_pwd ;;
1652   [\\/]* | ?:[\\/]* )  # Absolute name.
1653     ac_srcdir=$srcdir$ac_dir_suffix;
1654     ac_top_srcdir=$srcdir
1655     ac_abs_top_srcdir=$srcdir ;;
1656   *) # Relative name.
1657     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658     ac_top_srcdir=$ac_top_build_prefix$srcdir
1659     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1660 esac
1661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1662
1663     cd "$ac_dir" || { ac_status=$?; continue; }
1664     # Check for guested configure.
1665     if test -f "$ac_srcdir/configure.gnu"; then
1666       echo &&
1667       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668     elif test -f "$ac_srcdir/configure"; then
1669       echo &&
1670       $SHELL "$ac_srcdir/configure" --help=recursive
1671     else
1672       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1673     fi || ac_status=$?
1674     cd "$ac_pwd" || { ac_status=$?; break; }
1675   done
1676 fi
1677
1678 test -n "$ac_init_help" && exit $ac_status
1679 if $ac_init_version; then
1680   cat <<\_ACEOF
1681 configure
1682 generated by GNU Autoconf 2.60
1683
1684 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1685 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1686 This configure script is free software; the Free Software Foundation
1687 gives unlimited permission to copy, distribute and modify it.
1688 _ACEOF
1689   exit
1690 fi
1691 cat >config.log <<_ACEOF
1692 This file contains any messages produced by compilers while
1693 running configure, to aid debugging if configure makes a mistake.
1694
1695 It was created by $as_me, which was
1696 generated by GNU Autoconf 2.60.  Invocation command line was
1697
1698   $ $0 $@
1699
1700 _ACEOF
1701 exec 5>>config.log
1702 {
1703 cat <<_ASUNAME
1704 ## --------- ##
1705 ## Platform. ##
1706 ## --------- ##
1707
1708 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1709 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1710 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1711 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1712 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1713
1714 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1715 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1716
1717 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1718 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1719 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1720 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1721 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1722 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1723 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1724
1725 _ASUNAME
1726
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 for as_dir in $PATH
1729 do
1730   IFS=$as_save_IFS
1731   test -z "$as_dir" && as_dir=.
1732   echo "PATH: $as_dir"
1733 done
1734 IFS=$as_save_IFS
1735
1736 } >&5
1737
1738 cat >&5 <<_ACEOF
1739
1740
1741 ## ----------- ##
1742 ## Core tests. ##
1743 ## ----------- ##
1744
1745 _ACEOF
1746
1747
1748 # Keep a trace of the command line.
1749 # Strip out --no-create and --no-recursion so they do not pile up.
1750 # Strip out --silent because we don't want to record it for future runs.
1751 # Also quote any args containing shell meta-characters.
1752 # Make two passes to allow for proper duplicate-argument suppression.
1753 ac_configure_args=
1754 ac_configure_args0=
1755 ac_configure_args1=
1756 ac_must_keep_next=false
1757 for ac_pass in 1 2
1758 do
1759   for ac_arg
1760   do
1761     case $ac_arg in
1762     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1763     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1764     | -silent | --silent | --silen | --sile | --sil)
1765       continue ;;
1766     *\'*)
1767       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1768     esac
1769     case $ac_pass in
1770     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1771     2)
1772       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1773       if test $ac_must_keep_next = true; then
1774         ac_must_keep_next=false # Got value, back to normal.
1775       else
1776         case $ac_arg in
1777           *=* | --config-cache | -C | -disable-* | --disable-* \
1778           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1779           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1780           | -with-* | --with-* | -without-* | --without-* | --x)
1781             case "$ac_configure_args0 " in
1782               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1783             esac
1784             ;;
1785           -* ) ac_must_keep_next=true ;;
1786         esac
1787       fi
1788       ac_configure_args="$ac_configure_args '$ac_arg'"
1789       ;;
1790     esac
1791   done
1792 done
1793 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1794 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1795
1796 # When interrupted or exit'd, cleanup temporary files, and complete
1797 # config.log.  We remove comments because anyway the quotes in there
1798 # would cause problems or look ugly.
1799 # WARNING: Use '\'' to represent an apostrophe within the trap.
1800 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1801 trap 'exit_status=$?
1802   # Save into config.log some information that might help in debugging.
1803   {
1804     echo
1805
1806     cat <<\_ASBOX
1807 ## ---------------- ##
1808 ## Cache variables. ##
1809 ## ---------------- ##
1810 _ASBOX
1811     echo
1812     # The following way of writing the cache mishandles newlines in values,
1813 (
1814   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1815     eval ac_val=\$$ac_var
1816     case $ac_val in #(
1817     *${as_nl}*)
1818       case $ac_var in #(
1819       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1820 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1821       esac
1822       case $ac_var in #(
1823       _ | IFS | as_nl) ;; #(
1824       *) $as_unset $ac_var ;;
1825       esac ;;
1826     esac
1827   done
1828   (set) 2>&1 |
1829     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1830     *${as_nl}ac_space=\ *)
1831       sed -n \
1832         "s/'\''/'\''\\\\'\'''\''/g;
1833           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1834       ;; #(
1835     *)
1836       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1837       ;;
1838     esac |
1839     sort
1840 )
1841     echo
1842
1843     cat <<\_ASBOX
1844 ## ----------------- ##
1845 ## Output variables. ##
1846 ## ----------------- ##
1847 _ASBOX
1848     echo
1849     for ac_var in $ac_subst_vars
1850     do
1851       eval ac_val=\$$ac_var
1852       case $ac_val in
1853       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854       esac
1855       echo "$ac_var='\''$ac_val'\''"
1856     done | sort
1857     echo
1858
1859     if test -n "$ac_subst_files"; then
1860       cat <<\_ASBOX
1861 ## ------------------- ##
1862 ## File substitutions. ##
1863 ## ------------------- ##
1864 _ASBOX
1865       echo
1866       for ac_var in $ac_subst_files
1867       do
1868         eval ac_val=\$$ac_var
1869         case $ac_val in
1870         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1871         esac
1872         echo "$ac_var='\''$ac_val'\''"
1873       done | sort
1874       echo
1875     fi
1876
1877     if test -s confdefs.h; then
1878       cat <<\_ASBOX
1879 ## ----------- ##
1880 ## confdefs.h. ##
1881 ## ----------- ##
1882 _ASBOX
1883       echo
1884       cat confdefs.h
1885       echo
1886     fi
1887     test "$ac_signal" != 0 &&
1888       echo "$as_me: caught signal $ac_signal"
1889     echo "$as_me: exit $exit_status"
1890   } >&5
1891   rm -f core *.core core.conftest.* &&
1892     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1893     exit $exit_status
1894 ' 0
1895 for ac_signal in 1 2 13 15; do
1896   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1897 done
1898 ac_signal=0
1899
1900 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1901 rm -f -r conftest* confdefs.h
1902
1903 # Predefined preprocessor variables.
1904
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_NAME "$PACKAGE_NAME"
1907 _ACEOF
1908
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1912 _ACEOF
1913
1914
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1917 _ACEOF
1918
1919
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_STRING "$PACKAGE_STRING"
1922 _ACEOF
1923
1924
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1927 _ACEOF
1928
1929
1930 # Let the site file select an alternate cache file if it wants to.
1931 # Prefer explicitly selected file to automatically selected ones.
1932 if test -n "$CONFIG_SITE"; then
1933   set x "$CONFIG_SITE"
1934 elif test "x$prefix" != xNONE; then
1935   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1936 else
1937   set x "$ac_default_prefix/share/config.site" \
1938         "$ac_default_prefix/etc/config.site"
1939 fi
1940 shift
1941 for ac_site_file
1942 do
1943   if test -r "$ac_site_file"; then
1944     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1945 echo "$as_me: loading site script $ac_site_file" >&6;}
1946     sed 's/^/| /' "$ac_site_file" >&5
1947     . "$ac_site_file"
1948   fi
1949 done
1950
1951 if test -r "$cache_file"; then
1952   # Some versions of bash will fail to source /dev/null (special
1953   # files actually), so we avoid doing that.
1954   if test -f "$cache_file"; then
1955     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1956 echo "$as_me: loading cache $cache_file" >&6;}
1957     case $cache_file in
1958       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1959       *)                      . "./$cache_file";;
1960     esac
1961   fi
1962 else
1963   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1964 echo "$as_me: creating cache $cache_file" >&6;}
1965   >$cache_file
1966 fi
1967
1968 # Check that the precious variables saved in the cache have kept the same
1969 # value.
1970 ac_cache_corrupted=false
1971 for ac_var in $ac_precious_vars; do
1972   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1973   eval ac_new_set=\$ac_env_${ac_var}_set
1974   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1975   eval ac_new_val=\$ac_env_${ac_var}_value
1976   case $ac_old_set,$ac_new_set in
1977     set,)
1978       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1979 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1980       ac_cache_corrupted=: ;;
1981     ,set)
1982       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1983 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1984       ac_cache_corrupted=: ;;
1985     ,);;
1986     *)
1987       if test "x$ac_old_val" != "x$ac_new_val"; then
1988         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1989 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1990         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1991 echo "$as_me:   former value:  $ac_old_val" >&2;}
1992         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1993 echo "$as_me:   current value: $ac_new_val" >&2;}
1994         ac_cache_corrupted=:
1995       fi;;
1996   esac
1997   # Pass precious variables to config.status.
1998   if test "$ac_new_set" = set; then
1999     case $ac_new_val in
2000     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2001     *) ac_arg=$ac_var=$ac_new_val ;;
2002     esac
2003     case " $ac_configure_args " in
2004       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2005       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2006     esac
2007   fi
2008 done
2009 if $ac_cache_corrupted; then
2010   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2011 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2012   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2013 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2014    { (exit 1); exit 1; }; }
2015 fi
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033 ac_ext=c
2034 ac_cpp='$CPP $CPPFLAGS'
2035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2038
2039
2040
2041 ac_config_headers="$ac_config_headers config.h"
2042
2043 ac_aux_dir=
2044 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2045   if test -f "$ac_dir/install-sh"; then
2046     ac_aux_dir=$ac_dir
2047     ac_install_sh="$ac_aux_dir/install-sh -c"
2048     break
2049   elif test -f "$ac_dir/install.sh"; then
2050     ac_aux_dir=$ac_dir
2051     ac_install_sh="$ac_aux_dir/install.sh -c"
2052     break
2053   elif test -f "$ac_dir/shtool"; then
2054     ac_aux_dir=$ac_dir
2055     ac_install_sh="$ac_aux_dir/shtool install -c"
2056     break
2057   fi
2058 done
2059 if test -z "$ac_aux_dir"; then
2060   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2061 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2062    { (exit 1); exit 1; }; }
2063 fi
2064
2065 # These three variables are undocumented and unsupported,
2066 # and are intended to be withdrawn in a future Autoconf release.
2067 # They can cause serious problems if a builder's source tree is in a directory
2068 # whose full name contains unusual characters.
2069 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2070 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2071 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2072
2073
2074 # Make sure we can run config.sub.
2075 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2076   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2077 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2078    { (exit 1); exit 1; }; }
2079
2080 { echo "$as_me:$LINENO: checking build system type" >&5
2081 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2082 if test "${ac_cv_build+set}" = set; then
2083   echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085   ac_build_alias=$build_alias
2086 test "x$ac_build_alias" = x &&
2087   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2088 test "x$ac_build_alias" = x &&
2089   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2090 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2091    { (exit 1); exit 1; }; }
2092 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2093   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2094 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2095    { (exit 1); exit 1; }; }
2096
2097 fi
2098 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2099 echo "${ECHO_T}$ac_cv_build" >&6; }
2100 case $ac_cv_build in
2101 *-*-*) ;;
2102 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2103 echo "$as_me: error: invalid value of canonical build" >&2;}
2104    { (exit 1); exit 1; }; };;
2105 esac
2106 build=$ac_cv_build
2107 ac_save_IFS=$IFS; IFS='-'
2108 set x $ac_cv_build
2109 shift
2110 build_cpu=$1
2111 build_vendor=$2
2112 shift; shift
2113 # Remember, the first character of IFS is used to create $*,
2114 # except with old shells:
2115 build_os=$*
2116 IFS=$ac_save_IFS
2117 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2118
2119
2120 { echo "$as_me:$LINENO: checking host system type" >&5
2121 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2122 if test "${ac_cv_host+set}" = set; then
2123   echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125   if test "x$host_alias" = x; then
2126   ac_cv_host=$ac_cv_build
2127 else
2128   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2129     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2130 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2131    { (exit 1); exit 1; }; }
2132 fi
2133
2134 fi
2135 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2136 echo "${ECHO_T}$ac_cv_host" >&6; }
2137 case $ac_cv_host in
2138 *-*-*) ;;
2139 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2140 echo "$as_me: error: invalid value of canonical host" >&2;}
2141    { (exit 1); exit 1; }; };;
2142 esac
2143 host=$ac_cv_host
2144 ac_save_IFS=$IFS; IFS='-'
2145 set x $ac_cv_host
2146 shift
2147 host_cpu=$1
2148 host_vendor=$2
2149 shift; shift
2150 # Remember, the first character of IFS is used to create $*,
2151 # except with old shells:
2152 host_os=$*
2153 IFS=$ac_save_IFS
2154 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2155
2156
2157 { echo "$as_me:$LINENO: checking target system type" >&5
2158 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2159 if test "${ac_cv_target+set}" = set; then
2160   echo $ECHO_N "(cached) $ECHO_C" >&6
2161 else
2162   if test "x$target_alias" = x; then
2163   ac_cv_target=$ac_cv_host
2164 else
2165   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2166     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2167 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2168    { (exit 1); exit 1; }; }
2169 fi
2170
2171 fi
2172 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2173 echo "${ECHO_T}$ac_cv_target" >&6; }
2174 case $ac_cv_target in
2175 *-*-*) ;;
2176 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2177 echo "$as_me: error: invalid value of canonical target" >&2;}
2178    { (exit 1); exit 1; }; };;
2179 esac
2180 target=$ac_cv_target
2181 ac_save_IFS=$IFS; IFS='-'
2182 set x $ac_cv_target
2183 shift
2184 target_cpu=$1
2185 target_vendor=$2
2186 shift; shift
2187 # Remember, the first character of IFS is used to create $*,
2188 # except with old shells:
2189 target_os=$*
2190 IFS=$ac_save_IFS
2191 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2192
2193
2194 # The aliases save the names the user supplied, while $host etc.
2195 # will get canonicalized.
2196 test -n "$target_alias" &&
2197   test "$program_prefix$program_suffix$program_transform_name" = \
2198     NONENONEs,x,x, &&
2199   program_prefix=${target_alias}-
2200 am__api_version="1.9"
2201 # Find a good install program.  We prefer a C program (faster),
2202 # so one script is as good as another.  But avoid the broken or
2203 # incompatible versions:
2204 # SysV /etc/install, /usr/sbin/install
2205 # SunOS /usr/etc/install
2206 # IRIX /sbin/install
2207 # AIX /bin/install
2208 # AmigaOS /C/install, which installs bootblocks on floppy discs
2209 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2210 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2211 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2212 # OS/2's system install, which has a completely different semantic
2213 # ./install, which can be erroneously created by make from ./install.sh.
2214 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2215 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2216 if test -z "$INSTALL"; then
2217 if test "${ac_cv_path_install+set}" = set; then
2218   echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 for as_dir in $PATH
2222 do
2223   IFS=$as_save_IFS
2224   test -z "$as_dir" && as_dir=.
2225   # Account for people who put trailing slashes in PATH elements.
2226 case $as_dir/ in
2227   ./ | .// | /cC/* | \
2228   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2229   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2230   /usr/ucb/* ) ;;
2231   *)
2232     # OSF1 and SCO ODT 3.0 have their own names for install.
2233     # Don't use installbsd from OSF since it installs stuff as root
2234     # by default.
2235     for ac_prog in ginstall scoinst install; do
2236       for ac_exec_ext in '' $ac_executable_extensions; do
2237         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2238           if test $ac_prog = install &&
2239             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2240             # AIX install.  It has an incompatible calling convention.
2241             :
2242           elif test $ac_prog = install &&
2243             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2244             # program-specific install script used by HP pwplus--don't use.
2245             :
2246           else
2247             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2248             break 3
2249           fi
2250         fi
2251       done
2252     done
2253     ;;
2254 esac
2255 done
2256 IFS=$as_save_IFS
2257
2258
2259 fi
2260   if test "${ac_cv_path_install+set}" = set; then
2261     INSTALL=$ac_cv_path_install
2262   else
2263     # As a last resort, use the slow shell script.  Don't cache a
2264     # value for INSTALL within a source directory, because that will
2265     # break other packages using the cache if that directory is
2266     # removed, or if the value is a relative name.
2267     INSTALL=$ac_install_sh
2268   fi
2269 fi
2270 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2271 echo "${ECHO_T}$INSTALL" >&6; }
2272
2273 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2274 # It thinks the first close brace ends the variable substitution.
2275 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2276
2277 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2278
2279 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2280
2281 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2282 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2283 # Just in case
2284 sleep 1
2285 echo timestamp > conftest.file
2286 # Do `set' in a subshell so we don't clobber the current shell's
2287 # arguments.  Must try -L first in case configure is actually a
2288 # symlink; some systems play weird games with the mod time of symlinks
2289 # (eg FreeBSD returns the mod time of the symlink's containing
2290 # directory).
2291 if (
2292    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2293    if test "$*" = "X"; then
2294       # -L didn't work.
2295       set X `ls -t $srcdir/configure conftest.file`
2296    fi
2297    rm -f conftest.file
2298    if test "$*" != "X $srcdir/configure conftest.file" \
2299       && test "$*" != "X conftest.file $srcdir/configure"; then
2300
2301       # If neither matched, then we have a broken ls.  This can happen
2302       # if, for instance, CONFIG_SHELL is bash and it inherits a
2303       # broken ls alias from the environment.  This has actually
2304       # happened.  Such a system could not be considered "sane".
2305       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2306 alias in your environment" >&5
2307 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2308 alias in your environment" >&2;}
2309    { (exit 1); exit 1; }; }
2310    fi
2311
2312    test "$2" = conftest.file
2313    )
2314 then
2315    # Ok.
2316    :
2317 else
2318    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2319 Check your system clock" >&5
2320 echo "$as_me: error: newly created file is older than distributed files!
2321 Check your system clock" >&2;}
2322    { (exit 1); exit 1; }; }
2323 fi
2324 { echo "$as_me:$LINENO: result: yes" >&5
2325 echo "${ECHO_T}yes" >&6; }
2326 test "$program_prefix" != NONE &&
2327   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2328 # Use a double $ so make ignores it.
2329 test "$program_suffix" != NONE &&
2330   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2331 # Double any \ or $.  echo might interpret backslashes.
2332 # By default was `s,x,x', remove it if useless.
2333 cat <<\_ACEOF >conftest.sed
2334 s/[\\$]/&&/g;s/;s,x,x,$//
2335 _ACEOF
2336 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2337 rm -f conftest.sed
2338
2339 # expand $ac_aux_dir to an absolute path
2340 am_aux_dir=`cd $ac_aux_dir && pwd`
2341
2342 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2343 # Use eval to expand $SHELL
2344 if eval "$MISSING --run true"; then
2345   am_missing_run="$MISSING --run "
2346 else
2347   am_missing_run=
2348   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2349 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2350 fi
2351
2352 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2353   # We used to keeping the `.' as first argument, in order to
2354   # allow $(mkdir_p) to be used without argument.  As in
2355   #   $(mkdir_p) $(somedir)
2356   # where $(somedir) is conditionally defined.  However this is wrong
2357   # for two reasons:
2358   #  1. if the package is installed by a user who cannot write `.'
2359   #     make install will fail,
2360   #  2. the above comment should most certainly read
2361   #     $(mkdir_p) $(DESTDIR)$(somedir)
2362   #     so it does not work when $(somedir) is undefined and
2363   #     $(DESTDIR) is not.
2364   #  To support the latter case, we have to write
2365   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2366   #  so the `.' trick is pointless.
2367   mkdir_p='mkdir -p --'
2368 else
2369   # On NextStep and OpenStep, the `mkdir' command does not
2370   # recognize any option.  It will interpret all options as
2371   # directories to create, and then abort because `.' already
2372   # exists.
2373   for d in ./-p ./--version;
2374   do
2375     test -d $d && rmdir $d
2376   done
2377   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2378   if test -f "$ac_aux_dir/mkinstalldirs"; then
2379     mkdir_p='$(mkinstalldirs)'
2380   else
2381     mkdir_p='$(install_sh) -d'
2382   fi
2383 fi
2384
2385 for ac_prog in gawk mawk nawk awk
2386 do
2387   # Extract the first word of "$ac_prog", so it can be a program name with args.
2388 set dummy $ac_prog; ac_word=$2
2389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391 if test "${ac_cv_prog_AWK+set}" = set; then
2392   echo $ECHO_N "(cached) $ECHO_C" >&6
2393 else
2394   if test -n "$AWK"; then
2395   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2399 do
2400   IFS=$as_save_IFS
2401   test -z "$as_dir" && as_dir=.
2402   for ac_exec_ext in '' $ac_executable_extensions; do
2403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2404     ac_cv_prog_AWK="$ac_prog"
2405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406     break 2
2407   fi
2408 done
2409 done
2410 IFS=$as_save_IFS
2411
2412 fi
2413 fi
2414 AWK=$ac_cv_prog_AWK
2415 if test -n "$AWK"; then
2416   { echo "$as_me:$LINENO: result: $AWK" >&5
2417 echo "${ECHO_T}$AWK" >&6; }
2418 else
2419   { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2421 fi
2422
2423
2424   test -n "$AWK" && break
2425 done
2426
2427 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2428 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2429 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2430 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   cat >conftest.make <<\_ACEOF
2434 SHELL = /bin/sh
2435 all:
2436         @echo '@@@%%%=$(MAKE)=@@@%%%'
2437 _ACEOF
2438 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2439 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2440   *@@@%%%=?*=@@@%%%*)
2441     eval ac_cv_prog_make_${ac_make}_set=yes;;
2442   *)
2443     eval ac_cv_prog_make_${ac_make}_set=no;;
2444 esac
2445 rm -f conftest.make
2446 fi
2447 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2448   { echo "$as_me:$LINENO: result: yes" >&5
2449 echo "${ECHO_T}yes" >&6; }
2450   SET_MAKE=
2451 else
2452   { echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6; }
2454   SET_MAKE="MAKE=${MAKE-make}"
2455 fi
2456
2457 rm -rf .tst 2>/dev/null
2458 mkdir .tst 2>/dev/null
2459 if test -d .tst; then
2460   am__leading_dot=.
2461 else
2462   am__leading_dot=_
2463 fi
2464 rmdir .tst 2>/dev/null
2465
2466 # test to see if srcdir already configured
2467 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2468    test -f $srcdir/config.status; then
2469   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2470 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2471    { (exit 1); exit 1; }; }
2472 fi
2473
2474 # test whether we have cygpath
2475 if test -z "$CYGPATH_W"; then
2476   if (cygpath --version) >/dev/null 2>/dev/null; then
2477     CYGPATH_W='cygpath -w'
2478   else
2479     CYGPATH_W=echo
2480   fi
2481 fi
2482
2483
2484 # Define the identity of the package.
2485  PACKAGE=gnuradio
2486  VERSION=3.0
2487
2488
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE "$PACKAGE"
2491 _ACEOF
2492
2493
2494 cat >>confdefs.h <<_ACEOF
2495 #define VERSION "$VERSION"
2496 _ACEOF
2497
2498 # Some tools Automake needs.
2499
2500 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2501
2502
2503 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2504
2505
2506 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2507
2508
2509 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2510
2511
2512 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2513
2514 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2515
2516 # Installed binaries are usually stripped using `strip' when the user
2517 # run `make install-strip'.  However `strip' might not be the right
2518 # tool to use in cross-compilation environments, therefore Automake
2519 # will honor the `STRIP' environment variable to overrule this program.
2520 if test "$cross_compiling" != no; then
2521   if test -n "$ac_tool_prefix"; then
2522   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2523 set dummy ${ac_tool_prefix}strip; ac_word=$2
2524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2526 if test "${ac_cv_prog_STRIP+set}" = set; then
2527   echo $ECHO_N "(cached) $ECHO_C" >&6
2528 else
2529   if test -n "$STRIP"; then
2530   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2531 else
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2534 do
2535   IFS=$as_save_IFS
2536   test -z "$as_dir" && as_dir=.
2537   for ac_exec_ext in '' $ac_executable_extensions; do
2538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2539     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541     break 2
2542   fi
2543 done
2544 done
2545 IFS=$as_save_IFS
2546
2547 fi
2548 fi
2549 STRIP=$ac_cv_prog_STRIP
2550 if test -n "$STRIP"; then
2551   { echo "$as_me:$LINENO: result: $STRIP" >&5
2552 echo "${ECHO_T}$STRIP" >&6; }
2553 else
2554   { echo "$as_me:$LINENO: result: no" >&5
2555 echo "${ECHO_T}no" >&6; }
2556 fi
2557
2558
2559 fi
2560 if test -z "$ac_cv_prog_STRIP"; then
2561   ac_ct_STRIP=$STRIP
2562   # Extract the first word of "strip", so it can be a program name with args.
2563 set dummy strip; ac_word=$2
2564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2566 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2567   echo $ECHO_N "(cached) $ECHO_C" >&6
2568 else
2569   if test -n "$ac_ct_STRIP"; then
2570   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2571 else
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 for as_dir in $PATH
2574 do
2575   IFS=$as_save_IFS
2576   test -z "$as_dir" && as_dir=.
2577   for ac_exec_ext in '' $ac_executable_extensions; do
2578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2579     ac_cv_prog_ac_ct_STRIP="strip"
2580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581     break 2
2582   fi
2583 done
2584 done
2585 IFS=$as_save_IFS
2586
2587 fi
2588 fi
2589 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2590 if test -n "$ac_ct_STRIP"; then
2591   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2592 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2593 else
2594   { echo "$as_me:$LINENO: result: no" >&5
2595 echo "${ECHO_T}no" >&6; }
2596 fi
2597
2598   if test "x$ac_ct_STRIP" = x; then
2599     STRIP=":"
2600   else
2601     case $cross_compiling:$ac_tool_warned in
2602 yes:)
2603 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2604 whose name does not start with the host triplet.  If you think this
2605 configuration is useful to you, please write to autoconf@gnu.org." >&5
2606 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2607 whose name does not start with the host triplet.  If you think this
2608 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2609 ac_tool_warned=yes ;;
2610 esac
2611     STRIP=$ac_ct_STRIP
2612   fi
2613 else
2614   STRIP="$ac_cv_prog_STRIP"
2615 fi
2616
2617 fi
2618 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2619
2620 # We need awk for the "check" target.  The system "awk" is bad on
2621 # some platforms.
2622 # Always define AMTAR for backward compatibility.
2623
2624 AMTAR=${AMTAR-"${am_missing_run}tar"}
2625
2626 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636   if test "$host_cpu" = "x86_64"; then
2637     { echo "$as_me:$LINENO: checking libdir for lib64 suffix" >&5
2638 echo $ECHO_N "checking libdir for lib64 suffix... $ECHO_C" >&6; }
2639     t=${libdir##*/lib}
2640     if test "$t" != 64 && test -d /lib64 && ! test -L /lib64; then
2641       libdir=${libdir}64
2642       { echo "$as_me:$LINENO: result: no. Setting libdir to $libdir" >&5
2643 echo "${ECHO_T}no. Setting libdir to $libdir" >&6; }
2644     else
2645       { echo "$as_me:$LINENO: result: yes" >&5
2646 echo "${ECHO_T}yes" >&6; }
2647     fi
2648   fi
2649                 DEPDIR="${am__leading_dot}deps"
2650
2651 ac_config_commands="$ac_config_commands depfiles"
2652
2653
2654 am_make=${MAKE-make}
2655 cat > confinc << 'END'
2656 am__doit:
2657         @echo done
2658 .PHONY: am__doit
2659 END
2660 # If we don't find an include directive, just comment out the code.
2661 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2662 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2663 am__include="#"
2664 am__quote=
2665 _am_result=none
2666 # First try GNU make style include.
2667 echo "include confinc" > confmf
2668 # We grep out `Entering directory' and `Leaving directory'
2669 # messages which can occur if `w' ends up in MAKEFLAGS.
2670 # In particular we don't look at `^make:' because GNU make might
2671 # be invoked under some other name (usually "gmake"), in which
2672 # case it prints its new name instead of `make'.
2673 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2674    am__include=include
2675    am__quote=
2676    _am_result=GNU
2677 fi
2678 # Now try BSD make style include.
2679 if test "$am__include" = "#"; then
2680    echo '.include "confinc"' > confmf
2681    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2682       am__include=.include
2683       am__quote="\""
2684       _am_result=BSD
2685    fi
2686 fi
2687
2688
2689 { echo "$as_me:$LINENO: result: $_am_result" >&5
2690 echo "${ECHO_T}$_am_result" >&6; }
2691 rm -f confinc confmf
2692
2693 # Check whether --enable-dependency-tracking was given.
2694 if test "${enable_dependency_tracking+set}" = set; then
2695   enableval=$enable_dependency_tracking;
2696 fi
2697
2698 if test "x$enable_dependency_tracking" != xno; then
2699   am_depcomp="$ac_aux_dir/depcomp"
2700   AMDEPBACKSLASH='\'
2701 fi
2702
2703
2704 if test "x$enable_dependency_tracking" != xno; then
2705   AMDEP_TRUE=
2706   AMDEP_FALSE='#'
2707 else
2708   AMDEP_TRUE='#'
2709   AMDEP_FALSE=
2710 fi
2711
2712
2713
2714 ac_ext=c
2715 ac_cpp='$CPP $CPPFLAGS'
2716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2719 if test -n "$ac_tool_prefix"; then
2720   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2721 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725   echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727   if test -n "$CC"; then
2728   ac_cv_prog_CC="$CC" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2732 do
2733   IFS=$as_save_IFS
2734   test -z "$as_dir" && as_dir=.
2735   for ac_exec_ext in '' $ac_executable_extensions; do
2736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2737     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739     break 2
2740   fi
2741 done
2742 done
2743 IFS=$as_save_IFS
2744
2745 fi
2746 fi
2747 CC=$ac_cv_prog_CC
2748 if test -n "$CC"; then
2749   { echo "$as_me:$LINENO: result: $CC" >&5
2750 echo "${ECHO_T}$CC" >&6; }
2751 else
2752   { echo "$as_me:$LINENO: result: no" >&5
2753 echo "${ECHO_T}no" >&6; }
2754 fi
2755
2756
2757 fi
2758 if test -z "$ac_cv_prog_CC"; then
2759   ac_ct_CC=$CC
2760   # Extract the first word of "gcc", so it can be a program name with args.
2761 set dummy gcc; ac_word=$2
2762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2764 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2765   echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767   if test -n "$ac_ct_CC"; then
2768   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773   IFS=$as_save_IFS
2774   test -z "$as_dir" && as_dir=.
2775   for ac_exec_ext in '' $ac_executable_extensions; do
2776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2777     ac_cv_prog_ac_ct_CC="gcc"
2778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2779     break 2
2780   fi
2781 done
2782 done
2783 IFS=$as_save_IFS
2784
2785 fi
2786 fi
2787 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2788 if test -n "$ac_ct_CC"; then
2789   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2790 echo "${ECHO_T}$ac_ct_CC" >&6; }
2791 else
2792   { echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6; }
2794 fi
2795
2796   if test "x$ac_ct_CC" = x; then
2797     CC=""
2798   else
2799     case $cross_compiling:$ac_tool_warned in
2800 yes:)
2801 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2802 whose name does not start with the host triplet.  If you think this
2803 configuration is useful to you, please write to autoconf@gnu.org." >&5
2804 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2805 whose name does not start with the host triplet.  If you think this
2806 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2807 ac_tool_warned=yes ;;
2808 esac
2809     CC=$ac_ct_CC
2810   fi
2811 else
2812   CC="$ac_cv_prog_CC"
2813 fi
2814
2815 if test -z "$CC"; then
2816           if test -n "$ac_tool_prefix"; then
2817     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2818 set dummy ${ac_tool_prefix}cc; ac_word=$2
2819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2821 if test "${ac_cv_prog_CC+set}" = set; then
2822   echo $ECHO_N "(cached) $ECHO_C" >&6
2823 else
2824   if test -n "$CC"; then
2825   ac_cv_prog_CC="$CC" # Let the user override the test.
2826 else
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2829 do
2830   IFS=$as_save_IFS
2831   test -z "$as_dir" && as_dir=.
2832   for ac_exec_ext in '' $ac_executable_extensions; do
2833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2834     ac_cv_prog_CC="${ac_tool_prefix}cc"
2835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2836     break 2
2837   fi
2838 done
2839 done
2840 IFS=$as_save_IFS
2841
2842 fi
2843 fi
2844 CC=$ac_cv_prog_CC
2845 if test -n "$CC"; then
2846   { echo "$as_me:$LINENO: result: $CC" >&5
2847 echo "${ECHO_T}$CC" >&6; }
2848 else
2849   { echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6; }
2851 fi
2852
2853
2854   fi
2855 fi
2856 if test -z "$CC"; then
2857   # Extract the first word of "cc", so it can be a program name with args.
2858 set dummy cc; ac_word=$2
2859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2861 if test "${ac_cv_prog_CC+set}" = set; then
2862   echo $ECHO_N "(cached) $ECHO_C" >&6
2863 else
2864   if test -n "$CC"; then
2865   ac_cv_prog_CC="$CC" # Let the user override the test.
2866 else
2867   ac_prog_rejected=no
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2870 do
2871   IFS=$as_save_IFS
2872   test -z "$as_dir" && as_dir=.
2873   for ac_exec_ext in '' $ac_executable_extensions; do
2874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2875     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2876        ac_prog_rejected=yes
2877        continue
2878      fi
2879     ac_cv_prog_CC="cc"
2880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2881     break 2
2882   fi
2883 done
2884 done
2885 IFS=$as_save_IFS
2886
2887 if test $ac_prog_rejected = yes; then
2888   # We found a bogon in the path, so make sure we never use it.
2889   set dummy $ac_cv_prog_CC
2890   shift
2891   if test $# != 0; then
2892     # We chose a different compiler from the bogus one.
2893     # However, it has the same basename, so the bogon will be chosen
2894     # first if we set CC to just the basename; use the full file name.
2895     shift
2896     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2897   fi
2898 fi
2899 fi
2900 fi
2901 CC=$ac_cv_prog_CC
2902 if test -n "$CC"; then
2903   { echo "$as_me:$LINENO: result: $CC" >&5
2904 echo "${ECHO_T}$CC" >&6; }
2905 else
2906   { echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6; }
2908 fi
2909
2910
2911 fi
2912 if test -z "$CC"; then
2913   if test -n "$ac_tool_prefix"; then
2914   for ac_prog in cl.exe
2915   do
2916     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2920 if test "${ac_cv_prog_CC+set}" = set; then
2921   echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923   if test -n "$CC"; then
2924   ac_cv_prog_CC="$CC" # Let the user override the test.
2925 else
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2928 do
2929   IFS=$as_save_IFS
2930   test -z "$as_dir" && as_dir=.
2931   for ac_exec_ext in '' $ac_executable_extensions; do
2932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2933     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2935     break 2
2936   fi
2937 done
2938 done
2939 IFS=$as_save_IFS
2940
2941 fi
2942 fi
2943 CC=$ac_cv_prog_CC
2944 if test -n "$CC"; then
2945   { echo "$as_me:$LINENO: result: $CC" >&5
2946 echo "${ECHO_T}$CC" >&6; }
2947 else
2948   { echo "$as_me:$LINENO: result: no" >&5
2949 echo "${ECHO_T}no" >&6; }
2950 fi
2951
2952
2953     test -n "$CC" && break
2954   done
2955 fi
2956 if test -z "$CC"; then
2957   ac_ct_CC=$CC
2958   for ac_prog in cl.exe
2959 do
2960   # Extract the first word of "$ac_prog", so it can be a program name with args.
2961 set dummy $ac_prog; ac_word=$2
2962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2965   echo $ECHO_N "(cached) $ECHO_C" >&6
2966 else
2967   if test -n "$ac_ct_CC"; then
2968   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2972 do
2973   IFS=$as_save_IFS
2974   test -z "$as_dir" && as_dir=.
2975   for ac_exec_ext in '' $ac_executable_extensions; do
2976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2977     ac_cv_prog_ac_ct_CC="$ac_prog"
2978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979     break 2
2980   fi
2981 done
2982 done
2983 IFS=$as_save_IFS
2984
2985 fi
2986 fi
2987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2988 if test -n "$ac_ct_CC"; then
2989   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2990 echo "${ECHO_T}$ac_ct_CC" >&6; }
2991 else
2992   { echo "$as_me:$LINENO: result: no" >&5
2993 echo "${ECHO_T}no" >&6; }
2994 fi
2995
2996
2997   test -n "$ac_ct_CC" && break
2998 done
2999
3000   if test "x$ac_ct_CC" = x; then
3001     CC=""
3002   else
3003     case $cross_compiling:$ac_tool_warned in
3004 yes:)
3005 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3006 whose name does not start with the host triplet.  If you think this
3007 configuration is useful to you, please write to autoconf@gnu.org." >&5
3008 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3009 whose name does not start with the host triplet.  If you think this
3010 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3011 ac_tool_warned=yes ;;
3012 esac
3013     CC=$ac_ct_CC
3014   fi
3015 fi
3016
3017 fi
3018
3019
3020 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3021 See \`config.log' for more details." >&5
3022 echo "$as_me: error: no acceptable C compiler found in \$PATH
3023 See \`config.log' for more details." >&2;}
3024    { (exit 1); exit 1; }; }
3025
3026 # Provide some information about the compiler.
3027 echo "$as_me:$LINENO: checking for C compiler version" >&5
3028 ac_compiler=`set X $ac_compile; echo $2`
3029 { (ac_try="$ac_compiler --version >&5"
3030 case "(($ac_try" in
3031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032   *) ac_try_echo=$ac_try;;
3033 esac
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035   (eval "$ac_compiler --version >&5") 2>&5
3036   ac_status=$?
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); }
3039 { (ac_try="$ac_compiler -v >&5"
3040 case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045   (eval "$ac_compiler -v >&5") 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); }
3049 { (ac_try="$ac_compiler -V >&5"
3050 case "(($ac_try" in
3051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052   *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055   (eval "$ac_compiler -V >&5") 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }
3059
3060 cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h.  */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h.  */
3066
3067 int
3068 main ()
3069 {
3070
3071   ;
3072   return 0;
3073 }
3074 _ACEOF
3075 ac_clean_files_save=$ac_clean_files
3076 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3077 # Try to create an executable without -o first, disregard a.out.
3078 # It will help us diagnose broken compilers, and finding out an intuition
3079 # of exeext.
3080 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3081 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3082 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3083 #
3084 # List of possible output files, starting from the most likely.
3085 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3086 # only as a last resort.  b.out is created by i960 compilers.
3087 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3088 #
3089 # The IRIX 6 linker writes into existing files which may not be
3090 # executable, retaining their permissions.  Remove them first so a
3091 # subsequent execution test works.
3092 ac_rmfiles=
3093 for ac_file in $ac_files
3094 do
3095   case $ac_file in
3096     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3097     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3098   esac
3099 done
3100 rm -f $ac_rmfiles
3101
3102 if { (ac_try="$ac_link_default"
3103 case "(($ac_try" in
3104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105   *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108   (eval "$ac_link_default") 2>&5
3109   ac_status=$?
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); }; then
3112   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3113 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3114 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3115 # so that the user can short-circuit this test for compilers unknown to
3116 # Autoconf.
3117 for ac_file in $ac_files
3118 do
3119   test -f "$ac_file" || continue
3120   case $ac_file in
3121     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3122         ;;
3123     [ab].out )
3124         # We found the default executable, but exeext='' is most
3125         # certainly right.
3126         break;;
3127     *.* )
3128         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3129         then :; else
3130            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3131         fi
3132         # We set ac_cv_exeext here because the later test for it is not
3133         # safe: cross compilers may not add the suffix if given an `-o'
3134         # argument, so we may need to know it at that point already.
3135         # Even if this section looks crufty: it has the advantage of
3136         # actually working.
3137         break;;
3138     * )
3139         break;;
3140   esac
3141 done
3142 test "$ac_cv_exeext" = no && ac_cv_exeext=
3143
3144 else
3145   echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3147
3148 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3149 See \`config.log' for more details." >&5
3150 echo "$as_me: error: C compiler cannot create executables
3151 See \`config.log' for more details." >&2;}
3152    { (exit 77); exit 77; }; }
3153 fi
3154
3155 ac_exeext=$ac_cv_exeext
3156 { echo "$as_me:$LINENO: result: $ac_file" >&5
3157 echo "${ECHO_T}$ac_file" >&6; }
3158
3159 # Check that the compiler produces executables we can run.  If not, either
3160 # the compiler is broken, or we cross compile.
3161 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3162 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3163 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3164 # If not cross compiling, check that we can run a simple program.
3165 if test "$cross_compiling" != yes; then
3166   if { ac_try='./$ac_file'
3167   { (case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_try") 2>&5
3173   ac_status=$?
3174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175   (exit $ac_status); }; }; then
3176     cross_compiling=no
3177   else
3178     if test "$cross_compiling" = maybe; then
3179         cross_compiling=yes
3180     else
3181         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3182 If you meant to cross compile, use \`--host'.
3183 See \`config.log' for more details." >&5
3184 echo "$as_me: error: cannot run C compiled programs.
3185 If you meant to cross compile, use \`--host'.
3186 See \`config.log' for more details." >&2;}
3187    { (exit 1); exit 1; }; }
3188     fi
3189   fi
3190 fi
3191 { echo "$as_me:$LINENO: result: yes" >&5
3192 echo "${ECHO_T}yes" >&6; }
3193
3194 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3195 ac_clean_files=$ac_clean_files_save
3196 # Check that the compiler produces executables we can run.  If not, either
3197 # the compiler is broken, or we cross compile.
3198 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3199 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3200 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3201 echo "${ECHO_T}$cross_compiling" >&6; }
3202
3203 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3204 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3205 if { (ac_try="$ac_link"
3206 case "(($ac_try" in
3207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208   *) ac_try_echo=$ac_try;;
3209 esac
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211   (eval "$ac_link") 2>&5
3212   ac_status=$?
3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214   (exit $ac_status); }; then
3215   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3216 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3217 # work properly (i.e., refer to `conftest.exe'), while it won't with
3218 # `rm'.
3219 for ac_file in conftest.exe conftest conftest.*; do
3220   test -f "$ac_file" || continue
3221   case $ac_file in
3222     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3223     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3224           break;;
3225     * ) break;;
3226   esac
3227 done
3228 else
3229   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3230 See \`config.log' for more details." >&5
3231 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3232 See \`config.log' for more details." >&2;}
3233    { (exit 1); exit 1; }; }
3234 fi
3235
3236 rm -f conftest$ac_cv_exeext
3237 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3238 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3239
3240 rm -f conftest.$ac_ext
3241 EXEEXT=$ac_cv_exeext
3242 ac_exeext=$EXEEXT
3243 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3244 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3245 if test "${ac_cv_objext+set}" = set; then
3246   echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248   cat >conftest.$ac_ext <<_ACEOF
3249 /* confdefs.h.  */
3250 _ACEOF
3251 cat confdefs.h >>conftest.$ac_ext
3252 cat >>conftest.$ac_ext <<_ACEOF
3253 /* end confdefs.h.  */
3254
3255 int
3256 main ()
3257 {
3258
3259   ;
3260   return 0;
3261 }
3262 _ACEOF
3263 rm -f conftest.o conftest.obj
3264 if { (ac_try="$ac_compile"
3265 case "(($ac_try" in
3266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267   *) ac_try_echo=$ac_try;;
3268 esac
3269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3270   (eval "$ac_compile") 2>&5
3271   ac_status=$?
3272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273   (exit $ac_status); }; then
3274   for ac_file in conftest.o conftest.obj conftest.*; do
3275   test -f "$ac_file" || continue;
3276   case $ac_file in
3277     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3278     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3279        break;;
3280   esac
3281 done
3282 else
3283   echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3285
3286 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3287 See \`config.log' for more details." >&5
3288 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3289 See \`config.log' for more details." >&2;}
3290    { (exit 1); exit 1; }; }
3291 fi
3292
3293 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3294 fi
3295 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3296 echo "${ECHO_T}$ac_cv_objext" >&6; }
3297 OBJEXT=$ac_cv_objext
3298 ac_objext=$OBJEXT
3299 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3300 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3301 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3302   echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304   cat >conftest.$ac_ext <<_ACEOF
3305 /* confdefs.h.  */
3306 _ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h.  */
3310
3311 int
3312 main ()
3313 {
3314 #ifndef __GNUC__
3315        choke me
3316 #endif
3317
3318   ;
3319   return 0;
3320 }
3321 _ACEOF
3322 rm -f conftest.$ac_objext
3323 if { (ac_try="$ac_compile"
3324 case "(($ac_try" in
3325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326   *) ac_try_echo=$ac_try;;
3327 esac
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329   (eval "$ac_compile") 2>conftest.er1
3330   ac_status=$?
3331   grep -v '^ *+' conftest.er1 >conftest.err
3332   rm -f conftest.er1
3333   cat conftest.err >&5
3334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335   (exit $ac_status); } &&
3336          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3337   { (case "(($ac_try" in
3338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339   *) ac_try_echo=$ac_try;;
3340 esac
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342   (eval "$ac_try") 2>&5
3343   ac_status=$?
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); }; } &&
3346          { ac_try='test -s conftest.$ac_objext'
3347   { (case "(($ac_try" in
3348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349   *) ac_try_echo=$ac_try;;
3350 esac
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352   (eval "$ac_try") 2>&5
3353   ac_status=$?
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); }; }; then
3356   ac_compiler_gnu=yes
3357 else
3358   echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3360
3361         ac_compiler_gnu=no
3362 fi
3363
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3366
3367 fi
3368 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3369 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3370 GCC=`test $ac_compiler_gnu = yes && echo yes`
3371 ac_test_CFLAGS=${CFLAGS+set}
3372 ac_save_CFLAGS=$CFLAGS
3373 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3374 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3375 if test "${ac_cv_prog_cc_g+set}" = set; then
3376   echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378   ac_save_c_werror_flag=$ac_c_werror_flag
3379    ac_c_werror_flag=yes
3380    ac_cv_prog_cc_g=no
3381    CFLAGS="-g"
3382    cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h.  */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h.  */
3388
3389 int
3390 main ()
3391 {
3392
3393   ;
3394   return 0;
3395 }
3396 _ACEOF
3397 rm -f conftest.$ac_objext
3398 if { (ac_try="$ac_compile"
3399 case "(($ac_try" in
3400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401   *) ac_try_echo=$ac_try;;
3402 esac
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404   (eval "$ac_compile") 2>conftest.er1
3405   ac_status=$?
3406   grep -v '^ *+' conftest.er1 >conftest.err
3407   rm -f conftest.er1
3408   cat conftest.err >&5
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); } &&
3411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3412   { (case "(($ac_try" in
3413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414   *) ac_try_echo=$ac_try;;
3415 esac
3416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417   (eval "$ac_try") 2>&5
3418   ac_status=$?
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); }; } &&
3421          { ac_try='test -s conftest.$ac_objext'
3422   { (case "(($ac_try" in
3423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424   *) ac_try_echo=$ac_try;;
3425 esac
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427   (eval "$ac_try") 2>&5
3428   ac_status=$?
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); }; }; then
3431   ac_cv_prog_cc_g=yes
3432 else
3433   echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436         CFLAGS=""
3437       cat >conftest.$ac_ext <<_ACEOF
3438 /* confdefs.h.  */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h.  */
3443
3444 int
3445 main ()
3446 {
3447
3448   ;
3449   return 0;
3450 }
3451 _ACEOF
3452 rm -f conftest.$ac_objext
3453 if { (ac_try="$ac_compile"
3454 case "(($ac_try" in
3455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456   *) ac_try_echo=$ac_try;;
3457 esac
3458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3459   (eval "$ac_compile") 2>conftest.er1
3460   ac_status=$?
3461   grep -v '^ *+' conftest.er1 >conftest.err
3462   rm -f conftest.er1
3463   cat conftest.err >&5
3464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465   (exit $ac_status); } &&
3466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3467   { (case "(($ac_try" in
3468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469   *) ac_try_echo=$ac_try;;
3470 esac
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472   (eval "$ac_try") 2>&5
3473   ac_status=$?
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); }; } &&
3476          { ac_try='test -s conftest.$ac_objext'
3477   { (case "(($ac_try" in
3478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479   *) ac_try_echo=$ac_try;;
3480 esac
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482   (eval "$ac_try") 2>&5
3483   ac_status=$?
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); }; }; then
3486   :
3487 else
3488   echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491         ac_c_werror_flag=$ac_save_c_werror_flag
3492          CFLAGS="-g"
3493          cat >conftest.$ac_ext <<_ACEOF
3494 /* confdefs.h.  */
3495 _ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h.  */
3499
3500 int
3501 main ()
3502 {
3503
3504   ;
3505   return 0;
3506 }
3507 _ACEOF
3508 rm -f conftest.$ac_objext
3509 if { (ac_try="$ac_compile"
3510 case "(($ac_try" in
3511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512   *) ac_try_echo=$ac_try;;
3513 esac
3514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3515   (eval "$ac_compile") 2>conftest.er1
3516   ac_status=$?
3517   grep -v '^ *+' conftest.er1 >conftest.err
3518   rm -f conftest.er1
3519   cat conftest.err >&5
3520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521   (exit $ac_status); } &&
3522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3523   { (case "(($ac_try" in
3524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525   *) ac_try_echo=$ac_try;;
3526 esac
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528   (eval "$ac_try") 2>&5
3529   ac_status=$?
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); }; } &&
3532          { ac_try='test -s conftest.$ac_objext'
3533   { (case "(($ac_try" in
3534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535   *) ac_try_echo=$ac_try;;
3536 esac
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538   (eval "$ac_try") 2>&5
3539   ac_status=$?
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); }; }; then
3542   ac_cv_prog_cc_g=yes
3543 else
3544   echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547
3548 fi
3549
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 fi
3552
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 fi
3555
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557    ac_c_werror_flag=$ac_save_c_werror_flag
3558 fi
3559 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3560 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3561 if test "$ac_test_CFLAGS" = set; then
3562   CFLAGS=$ac_save_CFLAGS
3563 elif test $ac_cv_prog_cc_g = yes; then
3564   if test "$GCC" = yes; then
3565     CFLAGS="-g -O2"
3566   else
3567     CFLAGS="-g"
3568   fi
3569 else
3570   if test "$GCC" = yes; then
3571     CFLAGS="-O2"
3572   else
3573     CFLAGS=
3574   fi
3575 fi
3576 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3577 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3578 if test "${ac_cv_prog_cc_c89+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   ac_cv_prog_cc_c89=no
3582 ac_save_CC=$CC
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h.  */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h.  */
3589 #include <stdarg.h>
3590 #include <stdio.h>
3591 #include <sys/types.h>
3592 #include <sys/stat.h>
3593 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3594 struct buf { int x; };
3595 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3596 static char *e (p, i)
3597      char **p;
3598      int i;
3599 {
3600   return p[i];
3601 }
3602 static char *f (char * (*g) (char **, int), char **p, ...)
3603 {
3604   char *s;
3605   va_list v;
3606   va_start (v,p);
3607   s = g (p, va_arg (v,int));
3608   va_end (v);
3609   return s;
3610 }
3611
3612 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3613    function prototypes and stuff, but not '\xHH' hex character constants.
3614    These don't provoke an error unfortunately, instead are silently treated
3615    as 'x'.  The following induces an error, until -std is added to get
3616    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3617    array size at least.  It's necessary to write '\x00'==0 to get something
3618    that's true only with -std.  */
3619 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3620
3621 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3622    inside strings and character constants.  */
3623 #define FOO(x) 'x'
3624 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3625
3626 int test (int i, double x);
3627 struct s1 {int (*f) (int a);};
3628 struct s2 {int (*f) (double a);};
3629 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3630 int argc;
3631 char **argv;
3632 int
3633 main ()
3634 {
3635 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3636   ;
3637   return 0;
3638 }
3639 _ACEOF
3640 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3641         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3642 do
3643   CC="$ac_save_CC $ac_arg"
3644   rm -f conftest.$ac_objext
3645 if { (ac_try="$ac_compile"
3646 case "(($ac_try" in
3647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648   *) ac_try_echo=$ac_try;;
3649 esac
3650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3651   (eval "$ac_compile") 2>conftest.er1
3652   ac_status=$?
3653   grep -v '^ *+' conftest.er1 >conftest.err
3654   rm -f conftest.er1
3655   cat conftest.err >&5
3656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657   (exit $ac_status); } &&
3658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3659   { (case "(($ac_try" in
3660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661   *) ac_try_echo=$ac_try;;
3662 esac
3663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3664   (eval "$ac_try") 2>&5
3665   ac_status=$?
3666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667   (exit $ac_status); }; } &&
3668          { ac_try='test -s conftest.$ac_objext'
3669   { (case "(($ac_try" in
3670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671   *) ac_try_echo=$ac_try;;
3672 esac
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674   (eval "$ac_try") 2>&5
3675   ac_status=$?
3676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677   (exit $ac_status); }; }; then
3678   ac_cv_prog_cc_c89=$ac_arg
3679 else
3680   echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3682
3683
3684 fi
3685
3686 rm -f core conftest.err conftest.$ac_objext
3687   test "x$ac_cv_prog_cc_c89" != "xno" && break
3688 done
3689 rm -f conftest.$ac_ext
3690 CC=$ac_save_CC
3691
3692 fi
3693 # AC_CACHE_VAL
3694 case "x$ac_cv_prog_cc_c89" in
3695   x)
3696     { echo "$as_me:$LINENO: result: none needed" >&5
3697 echo "${ECHO_T}none needed" >&6; } ;;
3698   xno)
3699     { echo "$as_me:$LINENO: result: unsupported" >&5
3700 echo "${ECHO_T}unsupported" >&6; } ;;
3701   *)
3702     CC="$CC $ac_cv_prog_cc_c89"
3703     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3704 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3705 esac
3706
3707
3708 ac_ext=c
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713
3714 depcc="$CC"   am_compiler_list=
3715
3716 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3717 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3718 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3719   echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3722   # We make a subdir and do the tests there.  Otherwise we can end up
3723   # making bogus files that we don't know about and never remove.  For
3724   # instance it was reported that on HP-UX the gcc test will end up
3725   # making a dummy file named `D' -- because `-MD' means `put the output
3726   # in D'.
3727   mkdir conftest.dir
3728   # Copy depcomp to subdir because otherwise we won't find it if we're
3729   # using a relative directory.
3730   cp "$am_depcomp" conftest.dir
3731   cd conftest.dir
3732   # We will build objects and dependencies in a subdirectory because
3733   # it helps to detect inapplicable dependency modes.  For instance
3734   # both Tru64's cc and ICC support -MD to output dependencies as a
3735   # side effect of compilation, but ICC will put the dependencies in
3736   # the current directory while Tru64 will put them in the object
3737   # directory.
3738   mkdir sub
3739
3740   am_cv_CC_dependencies_compiler_type=none
3741   if test "$am_compiler_list" = ""; then
3742      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3743   fi
3744   for depmode in $am_compiler_list; do
3745     # Setup a source with many dependencies, because some compilers
3746     # like to wrap large dependency lists on column 80 (with \), and
3747     # we should not choose a depcomp mode which is confused by this.
3748     #
3749     # We need to recreate these files for each test, as the compiler may
3750     # overwrite some of them when testing with obscure command lines.
3751     # This happens at least with the AIX C compiler.
3752     : > sub/conftest.c
3753     for i in 1 2 3 4 5 6; do
3754       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3755       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3756       # Solaris 8's {/usr,}/bin/sh.
3757       touch sub/conftst$i.h
3758     done
3759     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3760
3761     case $depmode in
3762     nosideeffect)
3763       # after this tag, mechanisms are not by side-effect, so they'll
3764       # only be used when explicitly requested
3765       if test "x$enable_dependency_tracking" = xyes; then
3766         continue
3767       else
3768         break
3769       fi
3770       ;;
3771     none) break ;;
3772     esac
3773     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3774     # mode.  It turns out that the SunPro C++ compiler does not properly
3775     # handle `-M -o', and we need to detect this.
3776     if depmode=$depmode \
3777        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3778        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3779        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3780          >/dev/null 2>conftest.err &&
3781        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3782        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3783        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3784       # icc doesn't choke on unknown options, it will just issue warnings
3785       # or remarks (even with -Werror).  So we grep stderr for any message
3786       # that says an option was ignored or not supported.
3787       # When given -MP, icc 7.0 and 7.1 complain thusly:
3788       #   icc: Command line warning: ignoring option '-M'; no argument required
3789       # The diagnosis changed in icc 8.0:
3790       #   icc: Command line remark: option '-MP' not supported
3791       if (grep 'ignoring option' conftest.err ||
3792           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3793         am_cv_CC_dependencies_compiler_type=$depmode
3794         break
3795       fi
3796     fi
3797   done
3798
3799   cd ..
3800   rm -rf conftest.dir
3801 else
3802   am_cv_CC_dependencies_compiler_type=none
3803 fi
3804
3805 fi
3806 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3807 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3808 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3809
3810
3811
3812 if
3813   test "x$enable_dependency_tracking" != xno \
3814   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3815   am__fastdepCC_TRUE=
3816   am__fastdepCC_FALSE='#'
3817 else
3818   am__fastdepCC_TRUE='#'
3819   am__fastdepCC_FALSE=
3820 fi
3821
3822
3823 ac_ext=c
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3829 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3830 # On Suns, sometimes $CPP names a directory.
3831 if test -n "$CPP" && test -d "$CPP"; then
3832   CPP=
3833 fi
3834 if test -z "$CPP"; then
3835   if test "${ac_cv_prog_CPP+set}" = set; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838       # Double quotes because CPP needs to be expanded
3839     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3840     do
3841       ac_preproc_ok=false
3842 for ac_c_preproc_warn_flag in '' yes
3843 do
3844   # Use a header file that comes with gcc, so configuring glibc
3845   # with a fresh cross-compiler works.
3846   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3847   # <limits.h> exists even on freestanding compilers.
3848   # On the NeXT, cc -E runs the code through the compiler's parser,
3849   # not just through cpp. "Syntax error" is here to catch this case.
3850   cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h.  */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h.  */
3856 #ifdef __STDC__
3857 # include <limits.h>
3858 #else
3859 # include <assert.h>
3860 #endif
3861                      Syntax error
3862 _ACEOF
3863 if { (ac_try="$ac_cpp conftest.$ac_ext"
3864 case "(($ac_try" in
3865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866   *) ac_try_echo=$ac_try;;
3867 esac
3868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3870   ac_status=$?
3871   grep -v '^ *+' conftest.er1 >conftest.err
3872   rm -f conftest.er1
3873   cat conftest.err >&5
3874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875   (exit $ac_status); } >/dev/null; then
3876   if test -s conftest.err; then
3877     ac_cpp_err=$ac_c_preproc_warn_flag
3878     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3879   else
3880     ac_cpp_err=
3881   fi
3882 else
3883   ac_cpp_err=yes
3884 fi
3885 if test -z "$ac_cpp_err"; then
3886   :
3887 else
3888   echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3890
3891   # Broken: fails on valid input.
3892 continue
3893 fi
3894
3895 rm -f conftest.err conftest.$ac_ext
3896
3897   # OK, works on sane cases.  Now check whether nonexistent headers
3898   # can be detected and how.
3899   cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h.  */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h.  */
3905 #include <ac_nonexistent.h>
3906 _ACEOF
3907 if { (ac_try="$ac_cpp conftest.$ac_ext"
3908 case "(($ac_try" in
3909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910   *) ac_try_echo=$ac_try;;
3911 esac
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3914   ac_status=$?
3915   grep -v '^ *+' conftest.er1 >conftest.err
3916   rm -f conftest.er1
3917   cat conftest.err >&5
3918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919   (exit $ac_status); } >/dev/null; then
3920   if test -s conftest.err; then
3921     ac_cpp_err=$ac_c_preproc_warn_flag
3922     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3923   else
3924     ac_cpp_err=
3925   fi
3926 else
3927   ac_cpp_err=yes
3928 fi
3929 if test -z "$ac_cpp_err"; then
3930   # Broken: success on invalid input.
3931 continue
3932 else
3933   echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3935
3936   # Passes both tests.
3937 ac_preproc_ok=:
3938 break
3939 fi
3940
3941 rm -f conftest.err conftest.$ac_ext
3942
3943 done
3944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3945 rm -f conftest.err conftest.$ac_ext
3946 if $ac_preproc_ok; then
3947   break
3948 fi
3949
3950     done
3951     ac_cv_prog_CPP=$CPP
3952
3953 fi
3954   CPP=$ac_cv_prog_CPP
3955 else
3956   ac_cv_prog_CPP=$CPP
3957 fi
3958 { echo "$as_me:$LINENO: result: $CPP" >&5
3959 echo "${ECHO_T}$CPP" >&6; }
3960 ac_preproc_ok=false
3961 for ac_c_preproc_warn_flag in '' yes
3962 do
3963   # Use a header file that comes with gcc, so configuring glibc
3964   # with a fresh cross-compiler works.
3965   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3966   # <limits.h> exists even on freestanding compilers.
3967   # On the NeXT, cc -E runs the code through the compiler's parser,
3968   # not just through cpp. "Syntax error" is here to catch this case.
3969   cat >conftest.$ac_ext <<_ACEOF
3970 /* confdefs.h.  */
3971 _ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h.  */
3975 #ifdef __STDC__
3976 # include <limits.h>
3977 #else
3978 # include <assert.h>
3979 #endif
3980                      Syntax error
3981 _ACEOF
3982 if { (ac_try="$ac_cpp conftest.$ac_ext"
3983 case "(($ac_try" in
3984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985   *) ac_try_echo=$ac_try;;
3986 esac
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3989   ac_status=$?
3990   grep -v '^ *+' conftest.er1 >conftest.err
3991   rm -f conftest.er1
3992   cat conftest.err >&5
3993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994   (exit $ac_status); } >/dev/null; then
3995   if test -s conftest.err; then
3996     ac_cpp_err=$ac_c_preproc_warn_flag
3997     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3998   else
3999     ac_cpp_err=
4000   fi
4001 else
4002   ac_cpp_err=yes
4003 fi
4004 if test -z "$ac_cpp_err"; then
4005   :
4006 else
4007   echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4009
4010   # Broken: fails on valid input.
4011 continue
4012 fi
4013
4014 rm -f conftest.err conftest.$ac_ext
4015
4016   # OK, works on sane cases.  Now check whether nonexistent headers
4017   # can be detected and how.
4018   cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h.  */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h.  */
4024 #include <ac_nonexistent.h>
4025 _ACEOF
4026 if { (ac_try="$ac_cpp conftest.$ac_ext"
4027 case "(($ac_try" in
4028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029   *) ac_try_echo=$ac_try;;
4030 esac
4031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4033   ac_status=$?
4034   grep -v '^ *+' conftest.er1 >conftest.err
4035   rm -f conftest.er1
4036   cat conftest.err >&5
4037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038   (exit $ac_status); } >/dev/null; then
4039   if test -s conftest.err; then
4040     ac_cpp_err=$ac_c_preproc_warn_flag
4041     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4042   else
4043     ac_cpp_err=
4044   fi
4045 else
4046   ac_cpp_err=yes
4047 fi
4048 if test -z "$ac_cpp_err"; then
4049   # Broken: success on invalid input.
4050 continue
4051 else
4052   echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4054
4055   # Passes both tests.
4056 ac_preproc_ok=:
4057 break
4058 fi
4059
4060 rm -f conftest.err conftest.$ac_ext
4061
4062 done
4063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4064 rm -f conftest.err conftest.$ac_ext
4065 if $ac_preproc_ok; then
4066   :
4067 else
4068   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4069 See \`config.log' for more details." >&5
4070 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4071 See \`config.log' for more details." >&2;}
4072    { (exit 1); exit 1; }; }
4073 fi
4074
4075 ac_ext=c
4076 ac_cpp='$CPP $CPPFLAGS'
4077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080
4081
4082
4083 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4084 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4085 if test "${ac_cv_path_GREP+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088   # Extract the first word of "grep ggrep" to use in msg output
4089 if test -z "$GREP"; then
4090 set dummy grep ggrep; ac_prog_name=$2
4091 if test "${ac_cv_path_GREP+set}" = set; then
4092   echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094   ac_path_GREP_found=false
4095 # Loop through the user's path and test for each of PROGNAME-LIST
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4098 do
4099   IFS=$as_save_IFS
4100   test -z "$as_dir" && as_dir=.
4101   for ac_prog in grep ggrep; do
4102   for ac_exec_ext in '' $ac_executable_extensions; do
4103     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4104     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4105     # Check for GNU ac_path_GREP and select it if it is found.
4106   # Check for GNU $ac_path_GREP
4107 case `"$ac_path_GREP" --version 2>&1` in
4108 *GNU*)
4109   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4110 *)
4111   ac_count=0
4112   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4113   while :
4114   do
4115     cat "conftest.in" "conftest.in" >"conftest.tmp"
4116     mv "conftest.tmp" "conftest.in"
4117     cp "conftest.in" "conftest.nl"
4118     echo 'GREP' >> "conftest.nl"
4119     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4120     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4121     ac_count=`expr $ac_count + 1`
4122     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4123       # Best one so far, save it but keep looking for a better one
4124       ac_cv_path_GREP="$ac_path_GREP"
4125       ac_path_GREP_max=$ac_count
4126     fi
4127     # 10*(2^10) chars as input seems more than enough
4128     test $ac_count -gt 10 && break
4129   done
4130   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4131 esac
4132
4133
4134     $ac_path_GREP_found && break 3
4135   done
4136 done
4137
4138 done
4139 IFS=$as_save_IFS
4140
4141
4142 fi
4143
4144 GREP="$ac_cv_path_GREP"
4145 if test -z "$GREP"; then
4146   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4147 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4148    { (exit 1); exit 1; }; }
4149 fi
4150
4151 else
4152   ac_cv_path_GREP=$GREP
4153 fi
4154
4155
4156 fi
4157 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4158 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4159  GREP="$ac_cv_path_GREP"
4160
4161
4162 { echo "$as_me:$LINENO: checking for egrep" >&5
4163 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4164 if test "${ac_cv_path_EGREP+set}" = set; then
4165   echo $ECHO_N "(cached) $ECHO_C" >&6
4166 else
4167   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4168    then ac_cv_path_EGREP="$GREP -E"
4169    else
4170      # Extract the first word of "egrep" to use in msg output
4171 if test -z "$EGREP"; then
4172 set dummy egrep; ac_prog_name=$2
4173 if test "${ac_cv_path_EGREP+set}" = set; then
4174   echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176   ac_path_EGREP_found=false
4177 # Loop through the user's path and test for each of PROGNAME-LIST
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4180 do
4181   IFS=$as_save_IFS
4182   test -z "$as_dir" && as_dir=.
4183   for ac_prog in egrep; do
4184   for ac_exec_ext in '' $ac_executable_extensions; do
4185     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4186     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4187     # Check for GNU ac_path_EGREP and select it if it is found.
4188   # Check for GNU $ac_path_EGREP
4189 case `"$ac_path_EGREP" --version 2>&1` in
4190 *GNU*)
4191   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4192 *)
4193   ac_count=0
4194   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4195   while :
4196   do
4197     cat "conftest.in" "conftest.in" >"conftest.tmp"
4198     mv "conftest.tmp" "conftest.in"
4199     cp "conftest.in" "conftest.nl"
4200     echo 'EGREP' >> "conftest.nl"
4201     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4202     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4203     ac_count=`expr $ac_count + 1`
4204     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4205       # Best one so far, save it but keep looking for a better one
4206       ac_cv_path_EGREP="$ac_path_EGREP"
4207       ac_path_EGREP_max=$ac_count
4208     fi
4209     # 10*(2^10) chars as input seems more than enough
4210     test $ac_count -gt 10 && break
4211   done
4212   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4213 esac
4214
4215
4216     $ac_path_EGREP_found && break 3
4217   done
4218 done
4219
4220 done
4221 IFS=$as_save_IFS
4222
4223
4224 fi
4225
4226 EGREP="$ac_cv_path_EGREP"
4227 if test -z "$EGREP"; then
4228   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4229 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4230    { (exit 1); exit 1; }; }
4231 fi
4232
4233 else
4234   ac_cv_path_EGREP=$EGREP
4235 fi
4236
4237
4238    fi
4239 fi
4240 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4241 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4242  EGREP="$ac_cv_path_EGREP"
4243
4244
4245
4246 { echo "$as_me:$LINENO: checking for AIX" >&5
4247 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4248 cat >conftest.$ac_ext <<_ACEOF
4249 /* confdefs.h.  */
4250 _ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h.  */
4254 #ifdef _AIX
4255   yes
4256 #endif
4257
4258 _ACEOF
4259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4260   $EGREP "yes" >/dev/null 2>&1; then
4261   { echo "$as_me:$LINENO: result: yes" >&5
4262 echo "${ECHO_T}yes" >&6; }
4263 cat >>confdefs.h <<\_ACEOF
4264 #define _ALL_SOURCE 1
4265 _ACEOF
4266
4267 else
4268   { echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6; }
4270 fi
4271 rm -f conftest*
4272
4273
4274 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4275 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4276 if test "${ac_cv_search_strerror+set}" = set; then
4277   echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4279   ac_func_search_save_LIBS=$LIBS
4280 cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h.  */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h.  */
4286
4287 /* Override any GCC internal prototype to avoid an error.
4288    Use char because int might match the return type of a GCC
4289    builtin and then its argument prototype would still apply.  */
4290 #ifdef __cplusplus
4291 extern "C"
4292 #endif
4293 char strerror ();
4294 int
4295 main ()
4296 {
4297 return strerror ();
4298   ;
4299   return 0;
4300 }
4301 _ACEOF
4302 for ac_lib in '' cposix; do
4303   if test -z "$ac_lib"; then
4304     ac_res="none required"
4305   else
4306     ac_res=-l$ac_lib
4307     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4308   fi
4309   rm -f conftest.$ac_objext conftest$ac_exeext
4310 if { (ac_try="$ac_link"
4311 case "(($ac_try" in
4312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313   *) ac_try_echo=$ac_try;;
4314 esac
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316   (eval "$ac_link") 2>conftest.er1
4317   ac_status=$?
4318   grep -v '^ *+' conftest.er1 >conftest.err
4319   rm -f conftest.er1
4320   cat conftest.err >&5
4321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322   (exit $ac_status); } &&
4323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4324   { (case "(($ac_try" in
4325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326   *) ac_try_echo=$ac_try;;
4327 esac
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329   (eval "$ac_try") 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); }; } &&
4333          { ac_try='test -s conftest$ac_exeext'
4334   { (case "(($ac_try" in
4335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336   *) ac_try_echo=$ac_try;;
4337 esac
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339   (eval "$ac_try") 2>&5
4340   ac_status=$?
4341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342   (exit $ac_status); }; }; then
4343   ac_cv_search_strerror=$ac_res
4344 else
4345   echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4347
4348
4349 fi
4350
4351 rm -f core conftest.err conftest.$ac_objext \
4352       conftest$ac_exeext
4353   if test "${ac_cv_search_strerror+set}" = set; then
4354   break
4355 fi
4356 done
4357 if test "${ac_cv_search_strerror+set}" = set; then
4358   :
4359 else
4360   ac_cv_search_strerror=no
4361 fi
4362 rm conftest.$ac_ext
4363 LIBS=$ac_func_search_save_LIBS
4364 fi
4365 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4366 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4367 ac_res=$ac_cv_search_strerror
4368 if test "$ac_res" != no; then
4369   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4370
4371 fi
4372
4373 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4374 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4375 if test "${ac_cv_header_stdc+set}" = set; then
4376   echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378   cat >conftest.$ac_ext <<_ACEOF
4379 /* confdefs.h.  */
4380 _ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h.  */
4384 #include <stdlib.h>
4385 #include <stdarg.h>
4386 #include <string.h>
4387 #include <float.h>
4388
4389 int
4390 main ()
4391 {
4392
4393   ;
4394   return 0;
4395 }
4396 _ACEOF
4397 rm -f conftest.$ac_objext
4398 if { (ac_try="$ac_compile"
4399 case "(($ac_try" in
4400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401   *) ac_try_echo=$ac_try;;
4402 esac
4403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404   (eval "$ac_compile") 2>conftest.er1
4405   ac_status=$?
4406   grep -v '^ *+' conftest.er1 >conftest.err
4407   rm -f conftest.er1
4408   cat conftest.err >&5
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); } &&
4411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4412   { (case "(($ac_try" in
4413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414   *) ac_try_echo=$ac_try;;
4415 esac
4416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417   (eval "$ac_try") 2>&5
4418   ac_status=$?
4419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420   (exit $ac_status); }; } &&
4421          { ac_try='test -s conftest.$ac_objext'
4422   { (case "(($ac_try" in
4423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424   *) ac_try_echo=$ac_try;;
4425 esac
4426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427   (eval "$ac_try") 2>&5
4428   ac_status=$?
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); }; }; then
4431   ac_cv_header_stdc=yes
4432 else
4433   echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436         ac_cv_header_stdc=no
4437 fi
4438
4439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4440
4441 if test $ac_cv_header_stdc = yes; then
4442   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4443   cat >conftest.$ac_ext <<_ACEOF
4444 /* confdefs.h.  */
4445 _ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h.  */
4449 #include <string.h>
4450
4451 _ACEOF
4452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4453   $EGREP "memchr" >/dev/null 2>&1; then
4454   :
4455 else
4456   ac_cv_header_stdc=no
4457 fi
4458 rm -f conftest*
4459
4460 fi
4461
4462 if test $ac_cv_header_stdc = yes; then
4463   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4464   cat >conftest.$ac_ext <<_ACEOF
4465 /* confdefs.h.  */
4466 _ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h.  */
4470 #include <stdlib.h>
4471
4472 _ACEOF
4473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4474   $EGREP "free" >/dev/null 2>&1; then
4475   :
4476 else
4477   ac_cv_header_stdc=no
4478 fi
4479 rm -f conftest*
4480
4481 fi
4482
4483 if test $ac_cv_header_stdc = yes; then
4484   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4485   if test "$cross_compiling" = yes; then
4486   :
4487 else
4488   cat >conftest.$ac_ext <<_ACEOF
4489 /* confdefs.h.  */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h.  */
4494 #include <ctype.h>
4495 #include <stdlib.h>
4496 #if ((' ' & 0x0FF) == 0x020)
4497 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4498 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4499 #else
4500 # define ISLOWER(c) \
4501                    (('a' <= (c) && (c) <= 'i') \
4502                      || ('j' <= (c) && (c) <= 'r') \
4503                      || ('s' <= (c) && (c) <= 'z'))
4504 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4505 #endif
4506
4507 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4508 int
4509 main ()
4510 {
4511   int i;
4512   for (i = 0; i < 256; i++)
4513     if (XOR (islower (i), ISLOWER (i))
4514         || toupper (i) != TOUPPER (i))
4515       return 2;
4516   return 0;
4517 }
4518 _ACEOF
4519 rm -f conftest$ac_exeext
4520 if { (ac_try="$ac_link"
4521 case "(($ac_try" in
4522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523   *) ac_try_echo=$ac_try;;
4524 esac
4525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4526   (eval "$ac_link") 2>&5
4527   ac_status=$?
4528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4530   { (case "(($ac_try" in
4531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532   *) ac_try_echo=$ac_try;;
4533 esac
4534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4535   (eval "$ac_try") 2>&5
4536   ac_status=$?
4537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538   (exit $ac_status); }; }; then
4539   :
4540 else
4541   echo "$as_me: program exited with status $ac_status" >&5
4542 echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4544
4545 ( exit $ac_status )
4546 ac_cv_header_stdc=no
4547 fi
4548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4549 fi
4550
4551
4552 fi
4553 fi
4554 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4555 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4556 if test $ac_cv_header_stdc = yes; then
4557
4558 cat >>confdefs.h <<\_ACEOF
4559 #define STDC_HEADERS 1
4560 _ACEOF
4561
4562 fi
4563
4564 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4575                   inttypes.h stdint.h unistd.h
4576 do
4577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4581   echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583   cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h.  */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h.  */
4589 $ac_includes_default
4590
4591 #include <$ac_header>
4592 _ACEOF
4593 rm -f conftest.$ac_objext
4594 if { (ac_try="$ac_compile"
4595 case "(($ac_try" in
4596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597   *) ac_try_echo=$ac_try;;
4598 esac
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600   (eval "$ac_compile") 2>conftest.er1
4601   ac_status=$?
4602   grep -v '^ *+' conftest.er1 >conftest.err
4603   rm -f conftest.er1
4604   cat conftest.err >&5
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); } &&
4607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4608   { (case "(($ac_try" in
4609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610   *) ac_try_echo=$ac_try;;
4611 esac
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613   (eval "$ac_try") 2>&5
4614   ac_status=$?
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); }; } &&
4617          { ac_try='test -s conftest.$ac_objext'
4618   { (case "(($ac_try" in
4619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620   *) ac_try_echo=$ac_try;;
4621 esac
4622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4623   (eval "$ac_try") 2>&5
4624   ac_status=$?
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); }; }; then
4627   eval "$as_ac_Header=yes"
4628 else
4629   echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632         eval "$as_ac_Header=no"
4633 fi
4634
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 fi
4637 ac_res=`eval echo '${'$as_ac_Header'}'`
4638                { echo "$as_me:$LINENO: result: $ac_res" >&5
4639 echo "${ECHO_T}$ac_res" >&6; }
4640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4641   cat >>confdefs.h <<_ACEOF
4642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4643 _ACEOF
4644
4645 fi
4646
4647 done
4648
4649
4650 if test "${ac_cv_header_minix_config_h+set}" = set; then
4651   { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4652 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4653 if test "${ac_cv_header_minix_config_h+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 fi
4656 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4657 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4658 else
4659   # Is the header compilable?
4660 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4661 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4662 cat >conftest.$ac_ext <<_ACEOF
4663 /* confdefs.h.  */
4664 _ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h.  */
4668 $ac_includes_default
4669 #include <minix/config.h>
4670 _ACEOF
4671 rm -f conftest.$ac_objext
4672 if { (ac_try="$ac_compile"
4673 case "(($ac_try" in
4674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675   *) ac_try_echo=$ac_try;;
4676 esac
4677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4678   (eval "$ac_compile") 2>conftest.er1
4679   ac_status=$?
4680   grep -v '^ *+' conftest.er1 >conftest.err
4681   rm -f conftest.er1
4682   cat conftest.err >&5
4683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684   (exit $ac_status); } &&
4685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4686   { (case "(($ac_try" in
4687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688   *) ac_try_echo=$ac_try;;
4689 esac
4690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691   (eval "$ac_try") 2>&5
4692   ac_status=$?
4693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); }; } &&
4695          { ac_try='test -s conftest.$ac_objext'
4696   { (case "(($ac_try" in
4697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698   *) ac_try_echo=$ac_try;;
4699 esac
4700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4701   (eval "$ac_try") 2>&5
4702   ac_status=$?
4703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704   (exit $ac_status); }; }; then
4705   ac_header_compiler=yes
4706 else
4707   echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4709
4710         ac_header_compiler=no
4711 fi
4712
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4715 echo "${ECHO_T}$ac_header_compiler" >&6; }
4716
4717 # Is the header present?
4718 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4719 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4720 cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h.  */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h.  */
4726 #include <minix/config.h>
4727 _ACEOF
4728 if { (ac_try="$ac_cpp conftest.$ac_ext"
4729 case "(($ac_try" in
4730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731   *) ac_try_echo=$ac_try;;
4732 esac
4733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4734   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4735   ac_status=$?
4736   grep -v '^ *+' conftest.er1 >conftest.err
4737   rm -f conftest.er1
4738   cat conftest.err >&5
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); } >/dev/null; then
4741   if test -s conftest.err; then
4742     ac_cpp_err=$ac_c_preproc_warn_flag
4743     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4744   else
4745     ac_cpp_err=
4746   fi
4747 else
4748   ac_cpp_err=yes
4749 fi
4750 if test -z "$ac_cpp_err"; then
4751   ac_header_preproc=yes
4752 else
4753   echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4755
4756   ac_header_preproc=no
4757 fi
4758
4759 rm -f conftest.err conftest.$ac_ext
4760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4761 echo "${ECHO_T}$ac_header_preproc" >&6; }
4762
4763 # So?  What about this header?
4764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4765   yes:no: )
4766     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4767 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4768     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4769 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4770     ac_header_preproc=yes
4771     ;;
4772   no:yes:* )
4773     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4774 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4775     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4776 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4777     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4778 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4779     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4780 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4781     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4782 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4783     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4784 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4785
4786     ;;
4787 esac
4788 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4789 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4790 if test "${ac_cv_header_minix_config_h+set}" = set; then
4791   echo $ECHO_N "(cached) $ECHO_C" >&6
4792 else
4793   ac_cv_header_minix_config_h=$ac_header_preproc
4794 fi
4795 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4796 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4797
4798 fi
4799 if test $ac_cv_header_minix_config_h = yes; then
4800   MINIX=yes
4801 else
4802   MINIX=
4803 fi
4804
4805
4806 if test "$MINIX" = yes; then
4807
4808 cat >>confdefs.h <<\_ACEOF
4809 #define _POSIX_SOURCE 1
4810 _ACEOF
4811
4812
4813 cat >>confdefs.h <<\_ACEOF
4814 #define _POSIX_1_SOURCE 2
4815 _ACEOF
4816
4817
4818 cat >>confdefs.h <<\_ACEOF
4819 #define _MINIX 1
4820 _ACEOF
4821
4822 fi
4823
4824
4825
4826 ac_ext=cpp
4827 ac_cpp='$CXXCPP $CPPFLAGS'
4828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4831 if test -z "$CXX"; then
4832   if test -n "$CCC"; then
4833     CXX=$CCC
4834   else
4835     if test -n "$ac_tool_prefix"; then
4836   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4837   do
4838     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4839 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4842 if test "${ac_cv_prog_CXX+set}" = set; then
4843   echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845   if test -n "$CXX"; then
4846   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4847 else
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH
4850 do
4851   IFS=$as_save_IFS
4852   test -z "$as_dir" && as_dir=.
4853   for ac_exec_ext in '' $ac_executable_extensions; do
4854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4855     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4857     break 2
4858   fi
4859 done
4860 done
4861 IFS=$as_save_IFS
4862
4863 fi
4864 fi
4865 CXX=$ac_cv_prog_CXX
4866 if test -n "$CXX"; then
4867   { echo "$as_me:$LINENO: result: $CXX" >&5
4868 echo "${ECHO_T}$CXX" >&6; }
4869 else
4870   { echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6; }
4872 fi
4873
4874
4875     test -n "$CXX" && break
4876   done
4877 fi
4878 if test -z "$CXX"; then
4879   ac_ct_CXX=$CXX
4880   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4881 do
4882   # Extract the first word of "$ac_prog", so it can be a program name with args.
4883 set dummy $ac_prog; ac_word=$2
4884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4886 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4887   echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889   if test -n "$ac_ct_CXX"; then
4890   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4894 do
4895   IFS=$as_save_IFS
4896   test -z "$as_dir" && as_dir=.
4897   for ac_exec_ext in '' $ac_executable_extensions; do
4898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4899     ac_cv_prog_ac_ct_CXX="$ac_prog"
4900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901     break 2
4902   fi
4903 done
4904 done
4905 IFS=$as_save_IFS
4906
4907 fi
4908 fi
4909 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4910 if test -n "$ac_ct_CXX"; then
4911   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4912 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4913 else
4914   { echo "$as_me:$LINENO: result: no" >&5
4915 echo "${ECHO_T}no" >&6; }
4916 fi
4917
4918
4919   test -n "$ac_ct_CXX" && break
4920 done
4921
4922   if test "x$ac_ct_CXX" = x; then
4923     CXX="g++"
4924   else
4925     case $cross_compiling:$ac_tool_warned in
4926 yes:)
4927 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4928 whose name does not start with the host triplet.  If you think this
4929 configuration is useful to you, please write to autoconf@gnu.org." >&5
4930 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4931 whose name does not start with the host triplet.  If you think this
4932 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4933 ac_tool_warned=yes ;;
4934 esac
4935     CXX=$ac_ct_CXX
4936   fi
4937 fi
4938
4939   fi
4940 fi
4941 # Provide some information about the compiler.
4942 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4943 ac_compiler=`set X $ac_compile; echo $2`
4944 { (ac_try="$ac_compiler --version >&5"
4945 case "(($ac_try" in
4946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947   *) ac_try_echo=$ac_try;;
4948 esac
4949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4950   (eval "$ac_compiler --version >&5") 2>&5
4951   ac_status=$?
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); }
4954 { (ac_try="$ac_compiler -v >&5"
4955 case "(($ac_try" in
4956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957   *) ac_try_echo=$ac_try;;
4958 esac
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960   (eval "$ac_compiler -v >&5") 2>&5
4961   ac_status=$?
4962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963   (exit $ac_status); }
4964 { (ac_try="$ac_compiler -V >&5"
4965 case "(($ac_try" in
4966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967   *) ac_try_echo=$ac_try;;
4968 esac
4969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4970   (eval "$ac_compiler -V >&5") 2>&5
4971   ac_status=$?
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); }
4974
4975 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4976 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4977 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4978   echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980   cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h.  */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h.  */
4986
4987 int
4988 main ()
4989 {
4990 #ifndef __GNUC__
4991        choke me
4992 #endif
4993
4994   ;
4995   return 0;
4996 }
4997 _ACEOF
4998 rm -f conftest.$ac_objext
4999 if { (ac_try="$ac_compile"
5000 case "(($ac_try" in
5001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002   *) ac_try_echo=$ac_try;;
5003 esac
5004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5005   (eval "$ac_compile") 2>conftest.er1
5006   ac_status=$?
5007   grep -v '^ *+' conftest.er1 >conftest.err
5008   rm -f conftest.er1
5009   cat conftest.err >&5
5010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011   (exit $ac_status); } &&
5012          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5013   { (case "(($ac_try" in
5014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015   *) ac_try_echo=$ac_try;;
5016 esac
5017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5018   (eval "$ac_try") 2>&5
5019   ac_status=$?
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); }; } &&
5022          { ac_try='test -s conftest.$ac_objext'
5023   { (case "(($ac_try" in
5024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025   *) ac_try_echo=$ac_try;;
5026 esac
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028   (eval "$ac_try") 2>&5
5029   ac_status=$?
5030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031   (exit $ac_status); }; }; then
5032   ac_compiler_gnu=yes
5033 else
5034   echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.$ac_ext >&5
5036
5037         ac_compiler_gnu=no
5038 fi
5039
5040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5042
5043 fi
5044 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5045 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5046 GXX=`test $ac_compiler_gnu = yes && echo yes`
5047 ac_test_CXXFLAGS=${CXXFLAGS+set}
5048 ac_save_CXXFLAGS=$CXXFLAGS
5049 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5050 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5051 if test "${ac_cv_prog_cxx_g+set}" = set; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5055    ac_cxx_werror_flag=yes
5056    ac_cv_prog_cxx_g=no
5057    CXXFLAGS="-g"
5058    cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h.  */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h.  */
5064
5065 int
5066 main ()
5067 {
5068
5069   ;
5070   return 0;
5071 }
5072 _ACEOF
5073 rm -f conftest.$ac_objext
5074 if { (ac_try="$ac_compile"
5075 case "(($ac_try" in
5076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077   *) ac_try_echo=$ac_try;;
5078 esac
5079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080   (eval "$ac_compile") 2>conftest.er1
5081   ac_status=$?
5082   grep -v '^ *+' conftest.er1 >conftest.err
5083   rm -f conftest.er1
5084   cat conftest.err >&5
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); } &&
5087          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5088   { (case "(($ac_try" in
5089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090   *) ac_try_echo=$ac_try;;
5091 esac
5092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5093   (eval "$ac_try") 2>&5
5094   ac_status=$?
5095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096   (exit $ac_status); }; } &&
5097          { ac_try='test -s conftest.$ac_objext'
5098   { (case "(($ac_try" in
5099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100   *) ac_try_echo=$ac_try;;
5101 esac
5102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103   (eval "$ac_try") 2>&5
5104   ac_status=$?
5105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106   (exit $ac_status); }; }; then
5107   ac_cv_prog_cxx_g=yes
5108 else
5109   echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112         CXXFLAGS=""
5113       cat >conftest.$ac_ext <<_ACEOF
5114 /* confdefs.h.  */
5115 _ACEOF
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h.  */
5119
5120 int
5121 main ()
5122 {
5123
5124   ;
5125   return 0;
5126 }
5127 _ACEOF
5128 rm -f conftest.$ac_objext
5129 if { (ac_try="$ac_compile"
5130 case "(($ac_try" in
5131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132   *) ac_try_echo=$ac_try;;
5133 esac
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135   (eval "$ac_compile") 2>conftest.er1
5136   ac_status=$?
5137   grep -v '^ *+' conftest.er1 >conftest.err
5138   rm -f conftest.er1
5139   cat conftest.err >&5
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); } &&
5142          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5143   { (case "(($ac_try" in
5144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5145   *) ac_try_echo=$ac_try;;
5146 esac
5147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5148   (eval "$ac_try") 2>&5
5149   ac_status=$?
5150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151   (exit $ac_status); }; } &&
5152          { ac_try='test -s conftest.$ac_objext'
5153   { (case "(($ac_try" in
5154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155   *) ac_try_echo=$ac_try;;
5156 esac
5157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5158   (eval "$ac_try") 2>&5
5159   ac_status=$?
5160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161   (exit $ac_status); }; }; then
5162   :
5163 else
5164   echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5166
5167         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5168          CXXFLAGS="-g"
5169          cat >conftest.$ac_ext <<_ACEOF
5170 /* confdefs.h.  */
5171 _ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h.  */
5175
5176 int
5177 main ()
5178 {
5179
5180   ;
5181   return 0;
5182 }
5183 _ACEOF
5184 rm -f conftest.$ac_objext
5185 if { (ac_try="$ac_compile"
5186 case "(($ac_try" in
5187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188   *) ac_try_echo=$ac_try;;
5189 esac
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191   (eval "$ac_compile") 2>conftest.er1
5192   ac_status=$?
5193   grep -v '^ *+' conftest.er1 >conftest.err
5194   rm -f conftest.er1
5195   cat conftest.err >&5
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); } &&
5198          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5199   { (case "(($ac_try" in
5200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201   *) ac_try_echo=$ac_try;;
5202 esac
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204   (eval "$ac_try") 2>&5
5205   ac_status=$?
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); }; } &&
5208          { ac_try='test -s conftest.$ac_objext'
5209   { (case "(($ac_try" in
5210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211   *) ac_try_echo=$ac_try;;
5212 esac
5213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214   (eval "$ac_try") 2>&5
5215   ac_status=$?
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); }; }; then
5218   ac_cv_prog_cxx_g=yes
5219 else
5220   echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5222
5223
5224 fi
5225
5226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227 fi
5228
5229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230 fi
5231
5232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5234 fi
5235 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5236 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5237 if test "$ac_test_CXXFLAGS" = set; then
5238   CXXFLAGS=$ac_save_CXXFLAGS
5239 elif test $ac_cv_prog_cxx_g = yes; then
5240   if test "$GXX" = yes; then
5241     CXXFLAGS="-g -O2"
5242   else
5243     CXXFLAGS="-g"
5244   fi
5245 else
5246   if test "$GXX" = yes; then
5247     CXXFLAGS="-O2"
5248   else
5249     CXXFLAGS=
5250   fi
5251 fi
5252 ac_ext=c
5253 ac_cpp='$CPP $CPPFLAGS'
5254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5257
5258 depcc="$CXX"  am_compiler_list=
5259
5260 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5261 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5262 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5263   echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5266   # We make a subdir and do the tests there.  Otherwise we can end up
5267   # making bogus files that we don't know about and never remove.  For
5268   # instance it was reported that on HP-UX the gcc test will end up
5269   # making a dummy file named `D' -- because `-MD' means `put the output
5270   # in D'.
5271   mkdir conftest.dir
5272   # Copy depcomp to subdir because otherwise we won't find it if we're
5273   # using a relative directory.
5274   cp "$am_depcomp" conftest.dir
5275   cd conftest.dir
5276   # We will build objects and dependencies in a subdirectory because
5277   # it helps to detect inapplicable dependency modes.  For instance
5278   # both Tru64's cc and ICC support -MD to output dependencies as a
5279   # side effect of compilation, but ICC will put the dependencies in
5280   # the current directory while Tru64 will put them in the object
5281   # directory.
5282   mkdir sub
5283
5284   am_cv_CXX_dependencies_compiler_type=none
5285   if test "$am_compiler_list" = ""; then
5286      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5287   fi
5288   for depmode in $am_compiler_list; do
5289     # Setup a source with many dependencies, because some compilers
5290     # like to wrap large dependency lists on column 80 (with \), and
5291     # we should not choose a depcomp mode which is confused by this.
5292     #
5293     # We need to recreate these files for each test, as the compiler may
5294     # overwrite some of them when testing with obscure command lines.
5295     # This happens at least with the AIX C compiler.
5296     : > sub/conftest.c
5297     for i in 1 2 3 4 5 6; do
5298       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5299       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5300       # Solaris 8's {/usr,}/bin/sh.
5301       touch sub/conftst$i.h
5302     done
5303     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5304
5305     case $depmode in
5306     nosideeffect)
5307       # after this tag, mechanisms are not by side-effect, so they'll
5308       # only be used when explicitly requested
5309       if test "x$enable_dependency_tracking" = xyes; then
5310         continue
5311       else
5312         break
5313       fi
5314       ;;
5315     none) break ;;
5316     esac
5317     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5318     # mode.  It turns out that the SunPro C++ compiler does not properly
5319     # handle `-M -o', and we need to detect this.
5320     if depmode=$depmode \
5321        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5322        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5323        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5324          >/dev/null 2>conftest.err &&
5325        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5326        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5327        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5328       # icc doesn't choke on unknown options, it will just issue warnings
5329       # or remarks (even with -Werror).  So we grep stderr for any message
5330       # that says an option was ignored or not supported.
5331       # When given -MP, icc 7.0 and 7.1 complain thusly:
5332       #   icc: Command line warning: ignoring option '-M'; no argument required
5333       # The diagnosis changed in icc 8.0:
5334       #   icc: Command line remark: option '-MP' not supported
5335       if (grep 'ignoring option' conftest.err ||
5336           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5337         am_cv_CXX_dependencies_compiler_type=$depmode
5338         break
5339       fi
5340     fi
5341   done
5342
5343   cd ..
5344   rm -rf conftest.dir
5345 else
5346   am_cv_CXX_dependencies_compiler_type=none
5347 fi
5348
5349 fi
5350 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5351 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5352 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5353
5354
5355
5356 if
5357   test "x$enable_dependency_tracking" != xno \
5358   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5359   am__fastdepCXX_TRUE=
5360   am__fastdepCXX_FALSE='#'
5361 else
5362   am__fastdepCXX_TRUE='#'
5363   am__fastdepCXX_FALSE=
5364 fi
5365
5366
5367 ac_ext=cpp
5368 ac_cpp='$CXXCPP $CPPFLAGS'
5369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5372 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5373 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5374 if test -z "$CXXCPP"; then
5375   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5376   echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378       # Double quotes because CXXCPP needs to be expanded
5379     for CXXCPP in "$CXX -E" "/lib/cpp"
5380     do
5381       ac_preproc_ok=false
5382 for ac_cxx_preproc_warn_flag in '' yes
5383 do
5384   # Use a header file that comes with gcc, so configuring glibc
5385   # with a fresh cross-compiler works.
5386   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5387   # <limits.h> exists even on freestanding compilers.
5388   # On the NeXT, cc -E runs the code through the compiler's parser,
5389   # not just through cpp. "Syntax error" is here to catch this case.
5390   cat >conftest.$ac_ext <<_ACEOF
5391 /* confdefs.h.  */
5392 _ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h.  */
5396 #ifdef __STDC__
5397 # include <limits.h>
5398 #else
5399 # include <assert.h>
5400 #endif
5401                      Syntax error
5402 _ACEOF
5403 if { (ac_try="$ac_cpp conftest.$ac_ext"
5404 case "(($ac_try" in
5405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406   *) ac_try_echo=$ac_try;;
5407 esac
5408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5410   ac_status=$?
5411   grep -v '^ *+' conftest.er1 >conftest.err
5412   rm -f conftest.er1
5413   cat conftest.err >&5
5414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415   (exit $ac_status); } >/dev/null; then
5416   if test -s conftest.err; then
5417     ac_cpp_err=$ac_cxx_preproc_warn_flag
5418     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5419   else
5420     ac_cpp_err=
5421   fi
5422 else
5423   ac_cpp_err=yes
5424 fi
5425 if test -z "$ac_cpp_err"; then
5426   :
5427 else
5428   echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5430
5431   # Broken: fails on valid input.
5432 continue
5433 fi
5434
5435 rm -f conftest.err conftest.$ac_ext
5436
5437   # OK, works on sane cases.  Now check whether nonexistent headers
5438   # can be detected and how.
5439   cat >conftest.$ac_ext <<_ACEOF
5440 /* confdefs.h.  */
5441 _ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h.  */
5445 #include <ac_nonexistent.h>
5446 _ACEOF
5447 if { (ac_try="$ac_cpp conftest.$ac_ext"
5448 case "(($ac_try" in
5449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450   *) ac_try_echo=$ac_try;;
5451 esac
5452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5454   ac_status=$?
5455   grep -v '^ *+' conftest.er1 >conftest.err
5456   rm -f conftest.er1
5457   cat conftest.err >&5
5458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); } >/dev/null; then
5460   if test -s conftest.err; then
5461     ac_cpp_err=$ac_cxx_preproc_warn_flag
5462     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5463   else
5464     ac_cpp_err=
5465   fi
5466 else
5467   ac_cpp_err=yes
5468 fi
5469 if test -z "$ac_cpp_err"; then
5470   # Broken: success on invalid input.
5471 continue
5472 else
5473   echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5475
5476   # Passes both tests.
5477 ac_preproc_ok=:
5478 break
5479 fi
5480
5481 rm -f conftest.err conftest.$ac_ext
5482
5483 done
5484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5485 rm -f conftest.err conftest.$ac_ext
5486 if $ac_preproc_ok; then
5487   break
5488 fi
5489
5490     done
5491     ac_cv_prog_CXXCPP=$CXXCPP
5492
5493 fi
5494   CXXCPP=$ac_cv_prog_CXXCPP
5495 else
5496   ac_cv_prog_CXXCPP=$CXXCPP
5497 fi
5498 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5499 echo "${ECHO_T}$CXXCPP" >&6; }
5500 ac_preproc_ok=false
5501 for ac_cxx_preproc_warn_flag in '' yes
5502 do
5503   # Use a header file that comes with gcc, so configuring glibc
5504   # with a fresh cross-compiler works.
5505   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5506   # <limits.h> exists even on freestanding compilers.
5507   # On the NeXT, cc -E runs the code through the compiler's parser,
5508   # not just through cpp. "Syntax error" is here to catch this case.
5509   cat >conftest.$ac_ext <<_ACEOF
5510 /* confdefs.h.  */
5511 _ACEOF
5512 cat confdefs.h >>conftest.$ac_ext
5513 cat >>conftest.$ac_ext <<_ACEOF
5514 /* end confdefs.h.  */
5515 #ifdef __STDC__
5516 # include <limits.h>
5517 #else
5518 # include <assert.h>
5519 #endif
5520                      Syntax error
5521 _ACEOF
5522 if { (ac_try="$ac_cpp conftest.$ac_ext"
5523 case "(($ac_try" in
5524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525   *) ac_try_echo=$ac_try;;
5526 esac
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5529   ac_status=$?
5530   grep -v '^ *+' conftest.er1 >conftest.err
5531   rm -f conftest.er1
5532   cat conftest.err >&5
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); } >/dev/null; then
5535   if test -s conftest.err; then
5536     ac_cpp_err=$ac_cxx_preproc_warn_flag
5537     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5538   else
5539     ac_cpp_err=
5540   fi
5541 else
5542   ac_cpp_err=yes
5543 fi
5544 if test -z "$ac_cpp_err"; then
5545   :
5546 else
5547   echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5549
5550   # Broken: fails on valid input.
5551 continue
5552 fi
5553
5554 rm -f conftest.err conftest.$ac_ext
5555
5556   # OK, works on sane cases.  Now check whether nonexistent headers
5557   # can be detected and how.
5558   cat >conftest.$ac_ext <<_ACEOF
5559 /* confdefs.h.  */
5560 _ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h.  */
5564 #include <ac_nonexistent.h>
5565 _ACEOF
5566 if { (ac_try="$ac_cpp conftest.$ac_ext"
5567 case "(($ac_try" in
5568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569   *) ac_try_echo=$ac_try;;
5570 esac
5571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5573   ac_status=$?
5574   grep -v '^ *+' conftest.er1 >conftest.err
5575   rm -f conftest.er1
5576   cat conftest.err >&5
5577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578   (exit $ac_status); } >/dev/null; then
5579   if test -s conftest.err; then
5580     ac_cpp_err=$ac_cxx_preproc_warn_flag
5581     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5582   else
5583     ac_cpp_err=
5584   fi
5585 else
5586   ac_cpp_err=yes
5587 fi
5588 if test -z "$ac_cpp_err"; then
5589   # Broken: success on invalid input.
5590 continue
5591 else
5592   echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.$ac_ext >&5
5594
5595   # Passes both tests.
5596 ac_preproc_ok=:
5597 break
5598 fi
5599
5600 rm -f conftest.err conftest.$ac_ext
5601
5602 done
5603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5604 rm -f conftest.err conftest.$ac_ext
5605 if $ac_preproc_ok; then
5606   :
5607 else
5608   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5609 See \`config.log' for more details." >&5
5610 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5611 See \`config.log' for more details." >&2;}
5612    { (exit 1); exit 1; }; }
5613 fi
5614
5615 ac_ext=c
5616 ac_cpp='$CPP $CPPFLAGS'
5617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5620
5621
5622
5623
5624
5625
5626
5627   ac_ext=cpp
5628 ac_cpp='$CXXCPP $CPPFLAGS'
5629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5632
5633
5634     { echo "$as_me:$LINENO: checking whether C++ has bool" >&5
5635 echo $ECHO_N "checking whether C++ has bool... $ECHO_C" >&6; }
5636   if test "$cross_compiling" = yes; then
5637    { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5
5638 echo "$as_me: WARNING: Don't cross-compile" >&2;}
5639
5640 else
5641   cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h.  */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h.  */
5647 main() { bool b1=true; bool b2=false; }
5648 _ACEOF
5649 rm -f conftest$ac_exeext
5650 if { (ac_try="$ac_link"
5651 case "(($ac_try" in
5652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653   *) ac_try_echo=$ac_try;;
5654 esac
5655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656   (eval "$ac_link") 2>&5
5657   ac_status=$?
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5660   { (case "(($ac_try" in
5661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662   *) ac_try_echo=$ac_try;;
5663 esac
5664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5665   (eval "$ac_try") 2>&5
5666   ac_status=$?
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); }; }; then
5669    { echo "$as_me:$LINENO: result: yes" >&5
5670 echo "${ECHO_T}yes" >&6; }
5671 else
5672   echo "$as_me: program exited with status $ac_status" >&5
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5675
5676 ( exit $ac_status )
5677  { echo "$as_me:$LINENO: result: no" >&5
5678 echo "${ECHO_T}no" >&6; }
5679
5680 cat >>confdefs.h <<\_ACEOF
5681 #define CXX_HAS_NO_BOOL
5682 _ACEOF
5683
5684 fi
5685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5686 fi
5687
5688
5689
5690     { echo "$as_me:$LINENO: checking whether C++ has buggy scoping in for-loops" >&5
5691 echo $ECHO_N "checking whether C++ has buggy scoping in for-loops... $ECHO_C" >&6; }
5692   cat >conftest.$ac_ext <<_ACEOF
5693 /* confdefs.h.  */
5694 _ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h.  */
5698 #include <iostream.h>
5699 int
5700 main ()
5701 {
5702
5703    for (int i=0;i<10;i++) { }
5704    for (int i=0;i<10;i++) { }
5705
5706   ;
5707   return 0;
5708 }
5709 _ACEOF
5710 rm -f conftest.$ac_objext
5711 if { (ac_try="$ac_compile"
5712 case "(($ac_try" in
5713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714   *) ac_try_echo=$ac_try;;
5715 esac
5716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717   (eval "$ac_compile") 2>conftest.er1
5718   ac_status=$?
5719   grep -v '^ *+' conftest.er1 >conftest.err
5720   rm -f conftest.er1
5721   cat conftest.err >&5
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); } &&
5724          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5725   { (case "(($ac_try" in
5726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727   *) ac_try_echo=$ac_try;;
5728 esac
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730   (eval "$ac_try") 2>&5
5731   ac_status=$?
5732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733   (exit $ac_status); }; } &&
5734          { ac_try='test -s conftest.$ac_objext'
5735   { (case "(($ac_try" in
5736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737   *) ac_try_echo=$ac_try;;
5738 esac
5739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740   (eval "$ac_try") 2>&5
5741   ac_status=$?
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); }; }; then
5744    { echo "$as_me:$LINENO: result: no" >&5
5745 echo "${ECHO_T}no" >&6; }
5746 else
5747   echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5749
5750          { echo "$as_me:$LINENO: result: yes" >&5
5751 echo "${ECHO_T}yes" >&6; }
5752
5753 cat >>confdefs.h <<\_ACEOF
5754 #define CXX_HAS_BUGGY_FOR_LOOPS
5755 _ACEOF
5756
5757 fi
5758
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760
5761     { echo "$as_me:$LINENO: checking whether user wants assertions" >&5
5762 echo $ECHO_N "checking whether user wants assertions... $ECHO_C" >&6; }
5763   # Check whether --enable-assert was given.
5764 if test "${enable_assert+set}" = set; then
5765   enableval=$enable_assert;
5766 cat >>confdefs.h <<\_ACEOF
5767 #define NDEBUG
5768 _ACEOF
5769
5770                   { echo "$as_me:$LINENO: result: no" >&5
5771 echo "${ECHO_T}no" >&6; }
5772 else
5773    { echo "$as_me:$LINENO: result: yes" >&5
5774 echo "${ECHO_T}yes" >&6; }
5775 fi
5776
5777
5778     { echo "$as_me:$LINENO: checking whether C++ has std::isnan" >&5
5779 echo $ECHO_N "checking whether C++ has std::isnan... $ECHO_C" >&6; }
5780   cat >conftest.$ac_ext <<_ACEOF
5781 /* confdefs.h.  */
5782 _ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h.  */
5786 #include <math.h>
5787 int
5788 main ()
5789 {
5790
5791    std::isnan(0);
5792
5793   ;
5794   return 0;
5795 }
5796 _ACEOF
5797 rm -f conftest.$ac_objext
5798 if { (ac_try="$ac_compile"
5799 case "(($ac_try" in
5800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801   *) ac_try_echo=$ac_try;;
5802 esac
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804   (eval "$ac_compile") 2>conftest.er1
5805   ac_status=$?
5806   grep -v '^ *+' conftest.er1 >conftest.err
5807   rm -f conftest.er1
5808   cat conftest.err >&5
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); } &&
5811          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5812   { (case "(($ac_try" in
5813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814   *) ac_try_echo=$ac_try;;
5815 esac
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817   (eval "$ac_try") 2>&5
5818   ac_status=$?
5819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820   (exit $ac_status); }; } &&
5821          { ac_try='test -s conftest.$ac_objext'
5822   { (case "(($ac_try" in
5823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824   *) ac_try_echo=$ac_try;;
5825 esac
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827   (eval "$ac_try") 2>&5
5828   ac_status=$?
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); }; }; then
5831    { echo "$as_me:$LINENO: result: yes" >&5
5832 echo "${ECHO_T}yes" >&6; }
5833
5834 cat >>confdefs.h <<\_ACEOF
5835 #define CXX_HAS_STD_ISNAN
5836 _ACEOF
5837
5838 else
5839   echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842          { echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6; }
5844 fi
5845
5846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5847
5848       ac_ext=c
5849 ac_cpp='$CPP $CPPFLAGS'
5850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5853
5854
5855
5856
5857     { echo "$as_me:$LINENO: checking whether user wants warnings" >&5
5858 echo $ECHO_N "checking whether user wants warnings... $ECHO_C" >&6; }
5859
5860 # Check whether --with-warnings was given.
5861 if test "${with_warnings+set}" = set; then
5862   withval=$with_warnings;  lf_warnings=yes
5863 else
5864    lf_warnings=no
5865 fi
5866
5867   lf_warnings=yes # hard code for now -eb
5868   { echo "$as_me:$LINENO: result: $lf_warnings" >&5
5869 echo "${ECHO_T}$lf_warnings" >&6; }
5870
5871     cc_warning_flags="-Wall"
5872   cxx_warning_flags="-Wall -Woverloaded-virtual"
5873   if test $lf_warnings = yes
5874   then
5875     if test -n "${CC}"
5876     then
5877
5878   echo 'void f(){}' > conftest.c
5879   for i in $cc_warning_flags
5880   do
5881     { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
5882 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
5883     if test -z "`${CC} $i -c conftest.c 2>&1`"
5884     then
5885       CFLAGS="${CFLAGS} $i"
5886       { echo "$as_me:$LINENO: result: yes" >&5
5887 echo "${ECHO_T}yes" >&6; }
5888     else
5889       { echo "$as_me:$LINENO: result: no" >&5
5890 echo "${ECHO_T}no" >&6; }
5891     fi
5892   done
5893   rm -f conftest.c conftest.o
5894
5895     fi
5896     if test -n "${CXX}"
5897     then
5898
5899   echo 'void f(){}' > conftest.cc
5900   for i in $cxx_warning_flags
5901   do
5902     { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
5903 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
5904     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
5905     then
5906       CXXFLAGS="${CXXFLAGS} $i"
5907       { echo "$as_me:$LINENO: result: yes" >&5
5908 echo "${ECHO_T}yes" >&6; }
5909     else
5910       { echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6; }
5912     fi
5913   done
5914   rm -f conftest.cc conftest.o
5915
5916     fi
5917   fi
5918
5919
5920     { echo "$as_me:$LINENO: checking whether user wants gprof" >&5
5921 echo $ECHO_N "checking whether user wants gprof... $ECHO_C" >&6; }
5922
5923 # Check whether --with-gprof was given.
5924 if test "${with_gprof+set}" = set; then
5925   withval=$with_gprof;
5926 else
5927    with_gprof=no
5928 fi
5929
5930   { echo "$as_me:$LINENO: result: $with_gprof" >&5
5931 echo "${ECHO_T}$with_gprof" >&6; }
5932
5933     cc_profiling_flags="-pg"
5934   cxx_profiling_flags="-pg"
5935   ld_profiling_flags="-pg"
5936   if test $with_gprof = yes
5937   then
5938     if test -n "${CC}"
5939     then
5940
5941   echo 'void f(){}' > conftest.c
5942   for i in $cc_profiling_flags
5943   do
5944     { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
5945 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
5946     if test -z "`${CC} $i -c conftest.c 2>&1`"
5947     then
5948       CFLAGS="${CFLAGS} $i"
5949       { echo "$as_me:$LINENO: result: yes" >&5
5950 echo "${ECHO_T}yes" >&6; }
5951     else
5952       { echo "$as_me:$LINENO: result: no" >&5
5953 echo "${ECHO_T}no" >&6; }
5954     fi
5955   done
5956   rm -f conftest.c conftest.o
5957
5958     fi
5959     if test -n "${CXX}"
5960     then
5961
5962   echo 'void f(){}' > conftest.cc
5963   for i in $cxx_profiling_flags
5964   do
5965     { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
5966 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
5967     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
5968     then
5969       CXXFLAGS="${CXXFLAGS} $i"
5970       { echo "$as_me:$LINENO: result: yes" >&5
5971 echo "${ECHO_T}yes" >&6; }
5972     else
5973       { echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6; }
5975     fi
5976   done
5977   rm -f conftest.cc conftest.o
5978
5979     fi
5980   fi
5981
5982
5983     { echo "$as_me:$LINENO: checking whether user wants prof" >&5
5984 echo $ECHO_N "checking whether user wants prof... $ECHO_C" >&6; }
5985
5986 # Check whether --with-prof was given.
5987 if test "${with_prof+set}" = set; then
5988   withval=$with_prof;
5989 else
5990    with_prof=no
5991 fi
5992
5993   { echo "$as_me:$LINENO: result: $with_prof" >&5
5994 echo "${ECHO_T}$with_prof" >&6; }
5995
5996     cc_profiling_flags="-p"
5997   cxx_profiling_flags="-p"
5998   ld_profiling_flags="-p"
5999   if test $with_prof = yes
6000   then
6001     if test -n "${CC}"
6002     then
6003
6004   echo 'void f(){}' > conftest.c
6005   for i in $cc_profiling_flags
6006   do
6007     { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
6008 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
6009     if test -z "`${CC} $i -c conftest.c 2>&1`"
6010     then
6011       CFLAGS="${CFLAGS} $i"
6012       { echo "$as_me:$LINENO: result: yes" >&5
6013 echo "${ECHO_T}yes" >&6; }
6014     else
6015       { echo "$as_me:$LINENO: result: no" >&5
6016 echo "${ECHO_T}no" >&6; }
6017     fi
6018   done
6019   rm -f conftest.c conftest.o
6020
6021     fi
6022     if test -n "${CXX}"
6023     then
6024
6025   echo 'void f(){}' > conftest.cc
6026   for i in $cxx_profiling_flags
6027   do
6028     { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
6029 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
6030     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
6031     then
6032       CXXFLAGS="${CXXFLAGS} $i"
6033       { echo "$as_me:$LINENO: result: yes" >&5
6034 echo "${ECHO_T}yes" >&6; }
6035     else
6036       { echo "$as_me:$LINENO: result: no" >&5
6037 echo "${ECHO_T}no" >&6; }
6038     fi
6039   done
6040   rm -f conftest.cc conftest.o
6041
6042     fi
6043   fi
6044
6045 # By default we simply use the C compiler to build assembly code.
6046
6047 : ${CCAS='$(CC)'}
6048 # Set ASFLAGS if not already set.
6049 : ${CCASFLAGS='$(CFLAGS)'}
6050
6051
6052 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6053 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6054 LN_S=$as_ln_s
6055 if test "$LN_S" = "ln -s"; then
6056   { echo "$as_me:$LINENO: result: yes" >&5
6057 echo "${ECHO_T}yes" >&6; }
6058 else
6059   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6060 echo "${ECHO_T}no, using $LN_S" >&6; }
6061 fi
6062
6063 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6064 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
6065 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6066 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6067   echo $ECHO_N "(cached) $ECHO_C" >&6
6068 else
6069   cat >conftest.make <<\_ACEOF
6070 SHELL = /bin/sh
6071 all:
6072         @echo '@@@%%%=$(MAKE)=@@@%%%'
6073 _ACEOF
6074 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6075 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6076   *@@@%%%=?*=@@@%%%*)
6077     eval ac_cv_prog_make_${ac_make}_set=yes;;
6078   *)
6079     eval ac_cv_prog_make_${ac_make}_set=no;;
6080 esac
6081 rm -f conftest.make
6082 fi
6083 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6084   { echo "$as_me:$LINENO: result: yes" >&5
6085 echo "${ECHO_T}yes" >&6; }
6086   SET_MAKE=
6087 else
6088   { echo "$as_me:$LINENO: result: no" >&5
6089 echo "${ECHO_T}no" >&6; }
6090   SET_MAKE="MAKE=${MAKE-make}"
6091 fi
6092
6093 # Find a good install program.  We prefer a C program (faster),
6094 # so one script is as good as another.  But avoid the broken or
6095 # incompatible versions:
6096 # SysV /etc/install, /usr/sbin/install
6097 # SunOS /usr/etc/install
6098 # IRIX /sbin/install
6099 # AIX /bin/install
6100 # AmigaOS /C/install, which installs bootblocks on floppy discs
6101 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6102 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6103 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6104 # OS/2's system install, which has a completely different semantic
6105 # ./install, which can be erroneously created by make from ./install.sh.
6106 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6107 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6108 if test -z "$INSTALL"; then
6109 if test "${ac_cv_path_install+set}" = set; then
6110   echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6114 do
6115   IFS=$as_save_IFS
6116   test -z "$as_dir" && as_dir=.
6117   # Account for people who put trailing slashes in PATH elements.
6118 case $as_dir/ in
6119   ./ | .// | /cC/* | \
6120   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6121   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6122   /usr/ucb/* ) ;;
6123   *)
6124     # OSF1 and SCO ODT 3.0 have their own names for install.
6125     # Don't use installbsd from OSF since it installs stuff as root
6126     # by default.
6127     for ac_prog in ginstall scoinst install; do
6128       for ac_exec_ext in '' $ac_executable_extensions; do
6129         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6130           if test $ac_prog = install &&
6131             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6132             # AIX install.  It has an incompatible calling convention.
6133             :
6134           elif test $ac_prog = install &&
6135             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6136             # program-specific install script used by HP pwplus--don't use.
6137             :
6138           else
6139             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6140             break 3
6141           fi
6142         fi
6143       done
6144     done
6145     ;;
6146 esac
6147 done
6148 IFS=$as_save_IFS
6149
6150
6151 fi
6152   if test "${ac_cv_path_install+set}" = set; then
6153     INSTALL=$ac_cv_path_install
6154   else
6155     # As a last resort, use the slow shell script.  Don't cache a
6156     # value for INSTALL within a source directory, because that will
6157     # break other packages using the cache if that directory is
6158     # removed, or if the value is a relative name.
6159     INSTALL=$ac_install_sh
6160   fi
6161 fi
6162 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6163 echo "${ECHO_T}$INSTALL" >&6; }
6164
6165 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6166 # It thinks the first close brace ends the variable substitution.
6167 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6168
6169 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6170
6171 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6172
6173 # Extract the first word of "rm", so it can be a program name with args.
6174 set dummy rm; ac_word=$2
6175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6177 if test "${ac_cv_path_RM_PROG+set}" = set; then
6178   echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180   case $RM_PROG in
6181   [\\/]* | ?:[\\/]*)
6182   ac_cv_path_RM_PROG="$RM_PROG" # Let the user override the test with a path.
6183   ;;
6184   *)
6185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH
6187 do
6188   IFS=$as_save_IFS
6189   test -z "$as_dir" && as_dir=.
6190   for ac_exec_ext in '' $ac_executable_extensions; do
6191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6192     ac_cv_path_RM_PROG="$as_dir/$ac_word$ac_exec_ext"
6193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194     break 2
6195   fi
6196 done
6197 done
6198 IFS=$as_save_IFS
6199
6200   ;;
6201 esac
6202 fi
6203 RM_PROG=$ac_cv_path_RM_PROG
6204 if test -n "$RM_PROG"; then
6205   { echo "$as_me:$LINENO: result: $RM_PROG" >&5
6206 echo "${ECHO_T}$RM_PROG" >&6; }
6207 else
6208   { echo "$as_me:$LINENO: result: no" >&5
6209 echo "${ECHO_T}no" >&6; }
6210 fi
6211
6212
6213
6214
6215
6216 # Check whether --enable-shared was given.
6217 if test "${enable_shared+set}" = set; then
6218   enableval=$enable_shared; p=${PACKAGE-default}
6219     case $enableval in
6220     yes) enable_shared=yes ;;
6221     no) enable_shared=no ;;
6222     *)
6223       enable_shared=no
6224       # Look at the argument we got.  We use all the common list separators.
6225       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6226       for pkg in $enableval; do
6227         IFS="$lt_save_ifs"
6228         if test "X$pkg" = "X$p"; then
6229           enable_shared=yes
6230         fi
6231       done
6232       IFS="$lt_save_ifs"
6233       ;;
6234     esac
6235 else
6236   enable_shared=yes
6237 fi
6238
6239         # Check whether --enable-static was given.
6240 if test "${enable_static+set}" = set; then
6241   enableval=$enable_static; p=${PACKAGE-default}
6242     case $enableval in
6243     yes) enable_static=yes ;;
6244     no) enable_static=no ;;
6245     *)
6246      enable_static=no
6247       # Look at the argument we got.  We use all the common list separators.
6248       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6249       for pkg in $enableval; do
6250         IFS="$lt_save_ifs"
6251         if test "X$pkg" = "X$p"; then
6252           enable_static=yes
6253         fi
6254       done
6255       IFS="$lt_save_ifs"
6256       ;;
6257     esac
6258 else
6259   enable_static=no
6260 fi
6261
6262
6263         # Check whether --enable-fast-install was given.
6264 if test "${enable_fast_install+set}" = set; then
6265   enableval=$enable_fast_install; p=${PACKAGE-default}
6266     case $enableval in
6267     yes) enable_fast_install=yes ;;
6268     no) enable_fast_install=no ;;
6269     *)
6270       enable_fast_install=no
6271       # Look at the argument we got.  We use all the common list separators.
6272       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6273       for pkg in $enableval; do
6274         IFS="$lt_save_ifs"
6275         if test "X$pkg" = "X$p"; then
6276           enable_fast_install=yes
6277         fi
6278       done
6279       IFS="$lt_save_ifs"
6280       ;;
6281     esac
6282 else
6283   enable_fast_install=yes
6284 fi
6285
6286
6287 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6288 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6289 if test "${lt_cv_path_SED+set}" = set; then
6290   echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292   # Loop through the user's path and test for sed and gsed.
6293 # Then use that list of sed's as ones to test for truncation.
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH
6296 do
6297   IFS=$as_save_IFS
6298   test -z "$as_dir" && as_dir=.
6299   for lt_ac_prog in sed gsed; do
6300     for ac_exec_ext in '' $ac_executable_extensions; do
6301       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6302         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6303       fi
6304     done
6305   done
6306 done
6307 lt_ac_max=0
6308 lt_ac_count=0
6309 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6310 # along with /bin/sed that truncates output.
6311 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6312   test ! -f $lt_ac_sed && continue
6313   cat /dev/null > conftest.in
6314   lt_ac_count=0
6315   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6316   # Check for GNU sed and select it if it is found.
6317   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6318     lt_cv_path_SED=$lt_ac_sed
6319     break
6320   fi
6321   while true; do
6322     cat conftest.in conftest.in >conftest.tmp
6323     mv conftest.tmp conftest.in
6324     cp conftest.in conftest.nl
6325     echo >>conftest.nl
6326     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6327     cmp -s conftest.out conftest.nl || break
6328     # 10000 chars as input seems more than enough
6329     test $lt_ac_count -gt 10 && break
6330     lt_ac_count=`expr $lt_ac_count + 1`
6331     if test $lt_ac_count -gt $lt_ac_max; then
6332       lt_ac_max=$lt_ac_count
6333       lt_cv_path_SED=$lt_ac_sed
6334     fi
6335   done
6336 done
6337
6338 fi
6339
6340 SED=$lt_cv_path_SED
6341 { echo "$as_me:$LINENO: result: $SED" >&5
6342 echo "${ECHO_T}$SED" >&6; }
6343
6344
6345 # Check whether --with-gnu-ld was given.
6346 if test "${with_gnu_ld+set}" = set; then
6347   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6348 else
6349   with_gnu_ld=no
6350 fi
6351
6352 ac_prog=ld
6353 if test "$GCC" = yes; then
6354   # Check if gcc -print-prog-name=ld gives a path.
6355   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6356 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6357   case $host in
6358   *-*-mingw*)
6359     # gcc leaves a trailing carriage return which upsets mingw
6360     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6361   *)
6362     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6363   esac
6364   case $ac_prog in
6365     # Accept absolute paths.
6366     [\\/]* | ?:[\\/]*)
6367       re_direlt='/[^/][^/]*/\.\./'
6368       # Canonicalize the pathname of ld
6369       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6370       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6371         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6372       done
6373       test -z "$LD" && LD="$ac_prog"
6374       ;;
6375   "")
6376     # If it fails, then pretend we aren't using GCC.
6377     ac_prog=ld
6378     ;;
6379   *)
6380     # If it is relative, then search for the first ld in PATH.
6381     with_gnu_ld=unknown
6382     ;;
6383   esac
6384 elif test "$with_gnu_ld" = yes; then
6385   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6386 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6387 else
6388   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6389 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6390 fi
6391 if test "${lt_cv_path_LD+set}" = set; then
6392   echo $ECHO_N "(cached) $ECHO_C" >&6
6393 else
6394   if test -z "$LD"; then
6395   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6396   for ac_dir in $PATH; do
6397     IFS="$lt_save_ifs"
6398     test -z "$ac_dir" && ac_dir=.
6399     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6400       lt_cv_path_LD="$ac_dir/$ac_prog"
6401       # Check to see if the program is GNU ld.  I'd rather use --version,
6402       # but apparently some variants of GNU ld only accept -v.
6403       # Break only if it was the GNU/non-GNU ld that we prefer.
6404       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6405       *GNU* | *'with BFD'*)
6406         test "$with_gnu_ld" != no && break
6407         ;;
6408       *)
6409         test "$with_gnu_ld" != yes && break
6410         ;;
6411       esac
6412     fi
6413   done
6414   IFS="$lt_save_ifs"
6415 else
6416   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6417 fi
6418 fi
6419
6420 LD="$lt_cv_path_LD"
6421 if test -n "$LD"; then
6422   { echo "$as_me:$LINENO: result: $LD" >&5
6423 echo "${ECHO_T}$LD" >&6; }
6424 else
6425   { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6427 fi
6428 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6429 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6430    { (exit 1); exit 1; }; }
6431 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6432 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6433 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6434   echo $ECHO_N "(cached) $ECHO_C" >&6
6435 else
6436   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6437 case `$LD -v 2>&1 </dev/null` in
6438 *GNU* | *'with BFD'*)
6439   lt_cv_prog_gnu_ld=yes
6440   ;;
6441 *)
6442   lt_cv_prog_gnu_ld=no
6443   ;;
6444 esac
6445 fi
6446 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6447 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6448 with_gnu_ld=$lt_cv_prog_gnu_ld
6449
6450
6451 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6452 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6453 if test "${lt_cv_ld_reload_flag+set}" = set; then
6454   echo $ECHO_N "(cached) $ECHO_C" >&6
6455 else
6456   lt_cv_ld_reload_flag='-r'
6457 fi
6458 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6459 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6460 reload_flag=$lt_cv_ld_reload_flag
6461 case $reload_flag in
6462 "" | " "*) ;;
6463 *) reload_flag=" $reload_flag" ;;
6464 esac
6465 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6466 case $host_os in
6467   darwin*)
6468     if test "$GCC" = yes; then
6469       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6470     else
6471       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6472     fi
6473     ;;
6474 esac
6475
6476 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6477 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6478 if test "${lt_cv_path_NM+set}" = set; then
6479   echo $ECHO_N "(cached) $ECHO_C" >&6
6480 else
6481   if test -n "$NM"; then
6482   # Let the user override the test.
6483   lt_cv_path_NM="$NM"
6484 else
6485   lt_nm_to_check="${ac_tool_prefix}nm"
6486   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6487     lt_nm_to_check="$lt_nm_to_check nm"
6488   fi
6489   for lt_tmp_nm in $lt_nm_to_check; do
6490     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6491     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6492       IFS="$lt_save_ifs"
6493       test -z "$ac_dir" && ac_dir=.
6494       tmp_nm="$ac_dir/$lt_tmp_nm"
6495       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6496         # Check to see if the nm accepts a BSD-compat flag.
6497         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6498         #   nm: unknown option "B" ignored
6499         # Tru64's nm complains that /dev/null is an invalid object file
6500         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6501         */dev/null* | *'Invalid file or object type'*)
6502           lt_cv_path_NM="$tmp_nm -B"
6503           break
6504           ;;
6505         *)
6506           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6507           */dev/null*)
6508             lt_cv_path_NM="$tmp_nm -p"
6509             break
6510             ;;
6511           *)
6512             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6513             continue # so that we can try to find one that supports BSD flags
6514             ;;
6515           esac
6516           ;;
6517         esac
6518       fi
6519     done
6520     IFS="$lt_save_ifs"
6521   done
6522   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6523 fi
6524 fi
6525 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6526 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6527 NM="$lt_cv_path_NM"
6528
6529 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6530 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6531 if test "${lt_cv_deplibs_check_method+set}" = set; then
6532   echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534   lt_cv_file_magic_cmd='$MAGIC_CMD'
6535 lt_cv_file_magic_test_file=
6536 lt_cv_deplibs_check_method='unknown'
6537 # Need to set the preceding variable on all platforms that support
6538 # interlibrary dependencies.
6539 # 'none' -- dependencies not supported.
6540 # `unknown' -- same as none, but documents that we really don't know.
6541 # 'pass_all' -- all dependencies passed with no checks.
6542 # 'test_compile' -- check by making test program.
6543 # 'file_magic [[regex]]' -- check by looking for files in library path
6544 # which responds to the $file_magic_cmd with a given extended regex.
6545 # If you have `file' or equivalent on your system and you're not sure
6546 # whether `pass_all' will *always* work, you probably want this one.
6547
6548 case $host_os in
6549 aix4* | aix5*)
6550   lt_cv_deplibs_check_method=pass_all
6551   ;;
6552
6553 beos*)
6554   lt_cv_deplibs_check_method=pass_all
6555   ;;
6556
6557 bsdi[45]*)
6558   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6559   lt_cv_file_magic_cmd='/usr/bin/file -L'
6560   lt_cv_file_magic_test_file=/shlib/libc.so
6561   ;;
6562
6563 cygwin*)
6564   # func_win32_libid is a shell function defined in ltmain.sh
6565   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6566   lt_cv_file_magic_cmd='func_win32_libid'
6567   ;;
6568
6569 mingw* | pw32*)
6570   # Base MSYS/MinGW do not provide the 'file' command needed by
6571   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6572   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6573   lt_cv_file_magic_cmd='$OBJDUMP -f'
6574   ;;
6575
6576 darwin* | rhapsody*)
6577   lt_cv_deplibs_check_method=pass_all
6578   ;;
6579
6580 freebsd* | dragonfly*)
6581   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6582     case $host_cpu in
6583     i*86 )
6584       # Not sure whether the presence of OpenBSD here was a mistake.
6585       # Let's accept both of them until this is cleared up.
6586       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6587       lt_cv_file_magic_cmd=/usr/bin/file
6588       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6589       ;;
6590     esac
6591   else
6592     lt_cv_deplibs_check_method=pass_all
6593   fi
6594   ;;
6595
6596 gnu*)
6597   lt_cv_deplibs_check_method=pass_all
6598   ;;
6599
6600 hpux10.20* | hpux11*)
6601   lt_cv_file_magic_cmd=/usr/bin/file
6602   case $host_cpu in
6603   ia64*)
6604     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6605     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6606     ;;
6607   hppa*64*)
6608     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]'
6609     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6610     ;;
6611   *)
6612     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6613     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6614     ;;
6615   esac
6616   ;;
6617
6618 interix3*)
6619   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6620   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6621   ;;
6622
6623 irix5* | irix6* | nonstopux*)
6624   case $LD in
6625   *-32|*"-32 ") libmagic=32-bit;;
6626   *-n32|*"-n32 ") libmagic=N32;;
6627   *-64|*"-64 ") libmagic=64-bit;;
6628   *) libmagic=never-match;;
6629   esac
6630   lt_cv_deplibs_check_method=pass_all
6631   ;;
6632
6633 # This must be Linux ELF.
6634 linux* | k*bsd*-gnu)
6635   lt_cv_deplibs_check_method=pass_all
6636   ;;
6637
6638 netbsd* | netbsdelf*-gnu)
6639   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6640     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6641   else
6642     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6643   fi
6644   ;;
6645
6646 newos6*)
6647   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6648   lt_cv_file_magic_cmd=/usr/bin/file
6649   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6650   ;;
6651
6652 nto-qnx*)
6653   lt_cv_deplibs_check_method=unknown
6654   ;;
6655
6656 openbsd*)
6657   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6658     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6659   else
6660     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6661   fi
6662   ;;
6663
6664 osf3* | osf4* | osf5*)
6665   lt_cv_deplibs_check_method=pass_all
6666   ;;
6667
6668 solaris*)
6669   lt_cv_deplibs_check_method=pass_all
6670   ;;
6671
6672 sysv4 | sysv4.3*)
6673   case $host_vendor in
6674   motorola)
6675     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]'
6676     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6677     ;;
6678   ncr)
6679     lt_cv_deplibs_check_method=pass_all
6680     ;;
6681   sequent)
6682     lt_cv_file_magic_cmd='/bin/file'
6683     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6684     ;;
6685   sni)
6686     lt_cv_file_magic_cmd='/bin/file'
6687     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6688     lt_cv_file_magic_test_file=/lib/libc.so
6689     ;;
6690   siemens)
6691     lt_cv_deplibs_check_method=pass_all
6692     ;;
6693   pc)
6694     lt_cv_deplibs_check_method=pass_all
6695     ;;
6696   esac
6697   ;;
6698
6699 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6700   lt_cv_deplibs_check_method=pass_all
6701   ;;
6702 esac
6703
6704 fi
6705 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6706 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6707 file_magic_cmd=$lt_cv_file_magic_cmd
6708 deplibs_check_method=$lt_cv_deplibs_check_method
6709 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6710
6711
6712
6713
6714 # If no C compiler was specified, use CC.
6715 LTCC=${LTCC-"$CC"}
6716
6717 # If no C compiler flags were specified, use CFLAGS.
6718 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6719
6720 # Allow CC to be a program name with arguments.
6721 compiler=$CC
6722
6723 # Check whether --enable-libtool-lock was given.
6724 if test "${enable_libtool_lock+set}" = set; then
6725   enableval=$enable_libtool_lock;
6726 fi
6727
6728 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6729
6730 # Some flags need to be propagated to the compiler or linker for good
6731 # libtool support.
6732 case $host in
6733 ia64-*-hpux*)
6734   # Find out which ABI we are using.
6735   echo 'int i;' > conftest.$ac_ext
6736   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6737   (eval $ac_compile) 2>&5
6738   ac_status=$?
6739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740   (exit $ac_status); }; then
6741     case `/usr/bin/file conftest.$ac_objext` in
6742     *ELF-32*)
6743       HPUX_IA64_MODE="32"
6744       ;;
6745     *ELF-64*)
6746       HPUX_IA64_MODE="64"
6747       ;;
6748     esac
6749   fi
6750   rm -rf conftest*
6751   ;;
6752 *-*-irix6*)
6753   # Find out which ABI we are using.
6754   echo '#line 6754 "configure"' > conftest.$ac_ext
6755   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6756   (eval $ac_compile) 2>&5
6757   ac_status=$?
6758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759   (exit $ac_status); }; then
6760    if test "$lt_cv_prog_gnu_ld" = yes; then
6761     case `/usr/bin/file conftest.$ac_objext` in
6762     *32-bit*)
6763       LD="${LD-ld} -melf32bsmip"
6764       ;;
6765     *N32*)
6766       LD="${LD-ld} -melf32bmipn32"
6767       ;;
6768     *64-bit*)
6769       LD="${LD-ld} -melf64bmip"
6770       ;;
6771     esac
6772    else
6773     case `/usr/bin/file conftest.$ac_objext` in
6774     *32-bit*)
6775       LD="${LD-ld} -32"
6776       ;;
6777     *N32*)
6778       LD="${LD-ld} -n32"
6779       ;;
6780     *64-bit*)
6781       LD="${LD-ld} -64"
6782       ;;
6783     esac
6784    fi
6785   fi
6786   rm -rf conftest*
6787   ;;
6788
6789 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6790   # Find out which ABI we are using.
6791   echo 'int i;' > conftest.$ac_ext
6792   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6793   (eval $ac_compile) 2>&5
6794   ac_status=$?
6795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796   (exit $ac_status); }; then
6797     case `/usr/bin/file conftest.o` in
6798     *32-bit*)
6799       case $host in
6800         x86_64-*linux*)
6801           LD="${LD-ld} -m elf_i386"
6802           ;;
6803         ppc64-*linux*|powerpc64-*linux*)
6804           LD="${LD-ld} -m elf32ppclinux"
6805           ;;
6806         s390x-*linux*)
6807           LD="${LD-ld} -m elf_s390"
6808           ;;
6809         sparc64-*linux*)
6810           LD="${LD-ld} -m elf32_sparc"
6811           ;;
6812       esac
6813       ;;
6814     *64-bit*)
6815       case $host in
6816         x86_64-*linux*)
6817           LD="${LD-ld} -m elf_x86_64"
6818           ;;
6819         ppc*-*linux*|powerpc*-*linux*)
6820           LD="${LD-ld} -m elf64ppc"
6821           ;;
6822         s390*-*linux*)
6823           LD="${LD-ld} -m elf64_s390"
6824           ;;
6825         sparc*-*linux*)
6826           LD="${LD-ld} -m elf64_sparc"
6827           ;;
6828       esac
6829       ;;
6830     esac
6831   fi
6832   rm -rf conftest*
6833   ;;
6834
6835 *-*-sco3.2v5*)
6836   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6837   SAVE_CFLAGS="$CFLAGS"
6838   CFLAGS="$CFLAGS -belf"
6839   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6840 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6841 if test "${lt_cv_cc_needs_belf+set}" = set; then
6842   echo $ECHO_N "(cached) $ECHO_C" >&6
6843 else
6844   ac_ext=c
6845 ac_cpp='$CPP $CPPFLAGS'
6846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6849
6850      cat >conftest.$ac_ext <<_ACEOF
6851 /* confdefs.h.  */
6852 _ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h.  */
6856
6857 int
6858 main ()
6859 {
6860
6861   ;
6862   return 0;
6863 }
6864 _ACEOF
6865 rm -f conftest.$ac_objext conftest$ac_exeext
6866 if { (ac_try="$ac_link"
6867 case "(($ac_try" in
6868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6869   *) ac_try_echo=$ac_try;;
6870 esac
6871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6872   (eval "$ac_link") 2>conftest.er1
6873   ac_status=$?
6874   grep -v '^ *+' conftest.er1 >conftest.err
6875   rm -f conftest.er1
6876   cat conftest.err >&5
6877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878   (exit $ac_status); } &&
6879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6880   { (case "(($ac_try" in
6881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6882   *) ac_try_echo=$ac_try;;
6883 esac
6884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6885   (eval "$ac_try") 2>&5
6886   ac_status=$?
6887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888   (exit $ac_status); }; } &&
6889          { ac_try='test -s conftest$ac_exeext'
6890   { (case "(($ac_try" in
6891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892   *) ac_try_echo=$ac_try;;
6893 esac
6894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6895   (eval "$ac_try") 2>&5
6896   ac_status=$?
6897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898   (exit $ac_status); }; }; then
6899   lt_cv_cc_needs_belf=yes
6900 else
6901   echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6903
6904         lt_cv_cc_needs_belf=no
6905 fi
6906
6907 rm -f core conftest.err conftest.$ac_objext \
6908       conftest$ac_exeext conftest.$ac_ext
6909      ac_ext=c
6910 ac_cpp='$CPP $CPPFLAGS'
6911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6914
6915 fi
6916 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6917 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6918   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6919     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6920     CFLAGS="$SAVE_CFLAGS"
6921   fi
6922   ;;
6923 sparc*-*solaris*)
6924   # Find out which ABI we are using.
6925   echo 'int i;' > conftest.$ac_ext
6926   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6927   (eval $ac_compile) 2>&5
6928   ac_status=$?
6929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930   (exit $ac_status); }; then
6931     case `/usr/bin/file conftest.o` in
6932     *64-bit*)
6933       case $lt_cv_prog_gnu_ld in
6934       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6935       *)    LD="${LD-ld} -64" ;;
6936       esac
6937       ;;
6938     esac
6939   fi
6940   rm -rf conftest*
6941   ;;
6942
6943 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6944   if test -n "$ac_tool_prefix"; then
6945   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6946 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6950   echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952   if test -n "$DLLTOOL"; then
6953   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6954 else
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $PATH
6957 do
6958   IFS=$as_save_IFS
6959   test -z "$as_dir" && as_dir=.
6960   for ac_exec_ext in '' $ac_executable_extensions; do
6961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6962     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964     break 2
6965   fi
6966 done
6967 done
6968 IFS=$as_save_IFS
6969
6970 fi
6971 fi
6972 DLLTOOL=$ac_cv_prog_DLLTOOL
6973 if test -n "$DLLTOOL"; then
6974   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6975 echo "${ECHO_T}$DLLTOOL" >&6; }
6976 else
6977   { echo "$as_me:$LINENO: result: no" >&5
6978 echo "${ECHO_T}no" >&6; }
6979 fi
6980
6981
6982 fi
6983 if test -z "$ac_cv_prog_DLLTOOL"; then
6984   ac_ct_DLLTOOL=$DLLTOOL
6985   # Extract the first word of "dlltool", so it can be a program name with args.
6986 set dummy dlltool; ac_word=$2
6987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6989 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6990   echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992   if test -n "$ac_ct_DLLTOOL"; then
6993   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6994 else
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998   IFS=$as_save_IFS
6999   test -z "$as_dir" && as_dir=.
7000   for ac_exec_ext in '' $ac_executable_extensions; do
7001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7002     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004     break 2
7005   fi
7006 done
7007 done
7008 IFS=$as_save_IFS
7009
7010 fi
7011 fi
7012 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7013 if test -n "$ac_ct_DLLTOOL"; then
7014   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7015 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
7016 else
7017   { echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6; }
7019 fi
7020
7021   if test "x$ac_ct_DLLTOOL" = x; then
7022     DLLTOOL="false"
7023   else
7024     case $cross_compiling:$ac_tool_warned in
7025 yes:)
7026 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7027 whose name does not start with the host triplet.  If you think this
7028 configuration is useful to you, please write to autoconf@gnu.org." >&5
7029 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7030 whose name does not start with the host triplet.  If you think this
7031 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7032 ac_tool_warned=yes ;;
7033 esac
7034     DLLTOOL=$ac_ct_DLLTOOL
7035   fi
7036 else
7037   DLLTOOL="$ac_cv_prog_DLLTOOL"
7038 fi
7039
7040   if test -n "$ac_tool_prefix"; then
7041   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7042 set dummy ${ac_tool_prefix}as; ac_word=$2
7043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045 if test "${ac_cv_prog_AS+set}" = set; then
7046   echo $ECHO_N "(cached) $ECHO_C" >&6
7047 else
7048   if test -n "$AS"; then
7049   ac_cv_prog_AS="$AS" # Let the user override the test.
7050 else
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 for as_dir in $PATH
7053 do
7054   IFS=$as_save_IFS
7055   test -z "$as_dir" && as_dir=.
7056   for ac_exec_ext in '' $ac_executable_extensions; do
7057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7058     ac_cv_prog_AS="${ac_tool_prefix}as"
7059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7060     break 2
7061   fi
7062 done
7063 done
7064 IFS=$as_save_IFS
7065
7066 fi
7067 fi
7068 AS=$ac_cv_prog_AS
7069 if test -n "$AS"; then
7070   { echo "$as_me:$LINENO: result: $AS" >&5
7071 echo "${ECHO_T}$AS" >&6; }
7072 else
7073   { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7075 fi
7076
7077
7078 fi
7079 if test -z "$ac_cv_prog_AS"; then
7080   ac_ct_AS=$AS
7081   # Extract the first word of "as", so it can be a program name with args.
7082 set dummy as; ac_word=$2
7083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7085 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7086   echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
7088   if test -n "$ac_ct_AS"; then
7089   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7090 else
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7093 do
7094   IFS=$as_save_IFS
7095   test -z "$as_dir" && as_dir=.
7096   for ac_exec_ext in '' $ac_executable_extensions; do
7097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7098     ac_cv_prog_ac_ct_AS="as"
7099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7100     break 2
7101   fi
7102 done
7103 done
7104 IFS=$as_save_IFS
7105
7106 fi
7107 fi
7108 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7109 if test -n "$ac_ct_AS"; then
7110   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7111 echo "${ECHO_T}$ac_ct_AS" >&6; }
7112 else
7113   { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7115 fi
7116
7117   if test "x$ac_ct_AS" = x; then
7118     AS="false"
7119   else
7120     case $cross_compiling:$ac_tool_warned in
7121 yes:)
7122 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7123 whose name does not start with the host triplet.  If you think this
7124 configuration is useful to you, please write to autoconf@gnu.org." >&5
7125 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7126 whose name does not start with the host triplet.  If you think this
7127 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7128 ac_tool_warned=yes ;;
7129 esac
7130     AS=$ac_ct_AS
7131   fi
7132 else
7133   AS="$ac_cv_prog_AS"
7134 fi
7135
7136   if test -n "$ac_tool_prefix"; then
7137   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7138 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7142   echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144   if test -n "$OBJDUMP"; then
7145   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7149 do
7150   IFS=$as_save_IFS
7151   test -z "$as_dir" && as_dir=.
7152   for ac_exec_ext in '' $ac_executable_extensions; do
7153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7154     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7156     break 2
7157   fi
7158 done
7159 done
7160 IFS=$as_save_IFS
7161
7162 fi
7163 fi
7164 OBJDUMP=$ac_cv_prog_OBJDUMP
7165 if test -n "$OBJDUMP"; then
7166   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7167 echo "${ECHO_T}$OBJDUMP" >&6; }
7168 else
7169   { echo "$as_me:$LINENO: result: no" >&5
7170 echo "${ECHO_T}no" >&6; }
7171 fi
7172
7173
7174 fi
7175 if test -z "$ac_cv_prog_OBJDUMP"; then
7176   ac_ct_OBJDUMP=$OBJDUMP
7177   # Extract the first word of "objdump", so it can be a program name with args.
7178 set dummy objdump; ac_word=$2
7179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7182   echo $ECHO_N "(cached) $ECHO_C" >&6
7183 else
7184   if test -n "$ac_ct_OBJDUMP"; then
7185   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7186 else
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 for as_dir in $PATH
7189 do
7190   IFS=$as_save_IFS
7191   test -z "$as_dir" && as_dir=.
7192   for ac_exec_ext in '' $ac_executable_extensions; do
7193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7194     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196     break 2
7197   fi
7198 done
7199 done
7200 IFS=$as_save_IFS
7201
7202 fi
7203 fi
7204 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7205 if test -n "$ac_ct_OBJDUMP"; then
7206   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7207 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
7208 else
7209   { echo "$as_me:$LINENO: result: no" >&5
7210 echo "${ECHO_T}no" >&6; }
7211 fi
7212
7213   if test "x$ac_ct_OBJDUMP" = x; then
7214     OBJDUMP="false"
7215   else
7216     case $cross_compiling:$ac_tool_warned in
7217 yes:)
7218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7219 whose name does not start with the host triplet.  If you think this
7220 configuration is useful to you, please write to autoconf@gnu.org." >&5
7221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7222 whose name does not start with the host triplet.  If you think this
7223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7224 ac_tool_warned=yes ;;
7225 esac
7226     OBJDUMP=$ac_ct_OBJDUMP
7227   fi
7228 else
7229   OBJDUMP="$ac_cv_prog_OBJDUMP"
7230 fi
7231
7232   ;;
7233
7234 esac
7235
7236 need_locks="$enable_libtool_lock"
7237
7238
7239
7240 for ac_header in dlfcn.h
7241 do
7242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7244   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7247   echo $ECHO_N "(cached) $ECHO_C" >&6
7248 fi
7249 ac_res=`eval echo '${'$as_ac_Header'}'`
7250                { echo "$as_me:$LINENO: result: $ac_res" >&5
7251 echo "${ECHO_T}$ac_res" >&6; }
7252 else
7253   # Is the header compilable?
7254 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7256 cat >conftest.$ac_ext <<_ACEOF
7257 /* confdefs.h.  */
7258 _ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h.  */
7262 $ac_includes_default
7263 #include <$ac_header>
7264 _ACEOF
7265 rm -f conftest.$ac_objext
7266 if { (ac_try="$ac_compile"
7267 case "(($ac_try" in
7268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269   *) ac_try_echo=$ac_try;;
7270 esac
7271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7272   (eval "$ac_compile") 2>conftest.er1
7273   ac_status=$?
7274   grep -v '^ *+' conftest.er1 >conftest.err
7275   rm -f conftest.er1
7276   cat conftest.err >&5
7277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278   (exit $ac_status); } &&
7279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7280   { (case "(($ac_try" in
7281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282   *) ac_try_echo=$ac_try;;
7283 esac
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285   (eval "$ac_try") 2>&5
7286   ac_status=$?
7287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288   (exit $ac_status); }; } &&
7289          { ac_try='test -s conftest.$ac_objext'
7290   { (case "(($ac_try" in
7291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7292   *) ac_try_echo=$ac_try;;
7293 esac
7294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7295   (eval "$ac_try") 2>&5
7296   ac_status=$?
7297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298   (exit $ac_status); }; }; then
7299   ac_header_compiler=yes
7300 else
7301   echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7303
7304         ac_header_compiler=no
7305 fi
7306
7307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7309 echo "${ECHO_T}$ac_header_compiler" >&6; }
7310
7311 # Is the header present?
7312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7314 cat >conftest.$ac_ext <<_ACEOF
7315 /* confdefs.h.  */
7316 _ACEOF
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h.  */
7320 #include <$ac_header>
7321 _ACEOF
7322 if { (ac_try="$ac_cpp conftest.$ac_ext"
7323 case "(($ac_try" in
7324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7325   *) ac_try_echo=$ac_try;;
7326 esac
7327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7328   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7329   ac_status=$?
7330   grep -v '^ *+' conftest.er1 >conftest.err
7331   rm -f conftest.er1
7332   cat conftest.err >&5
7333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334   (exit $ac_status); } >/dev/null; then
7335   if test -s conftest.err; then
7336     ac_cpp_err=$ac_c_preproc_warn_flag
7337     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7338   else
7339     ac_cpp_err=
7340   fi
7341 else
7342   ac_cpp_err=yes
7343 fi
7344 if test -z "$ac_cpp_err"; then
7345   ac_header_preproc=yes
7346 else
7347   echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7349
7350   ac_header_preproc=no
7351 fi
7352
7353 rm -f conftest.err conftest.$ac_ext
7354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7355 echo "${ECHO_T}$ac_header_preproc" >&6; }
7356
7357 # So?  What about this header?
7358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7359   yes:no: )
7360     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7362     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7364     ac_header_preproc=yes
7365     ;;
7366   no:yes:* )
7367     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7369     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7370 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7371     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7373     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7374 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7377     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7379
7380     ;;
7381 esac
7382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7385   echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387   eval "$as_ac_Header=\$ac_header_preproc"
7388 fi
7389 ac_res=`eval echo '${'$as_ac_Header'}'`
7390                { echo "$as_me:$LINENO: result: $ac_res" >&5
7391 echo "${ECHO_T}$ac_res" >&6; }
7392
7393 fi
7394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7395   cat >>confdefs.h <<_ACEOF
7396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7397 _ACEOF
7398
7399 fi
7400
7401 done
7402
7403
7404
7405 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7406     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7407     (test "X$CXX" != "Xg++"))) ; then
7408   ac_ext=cpp
7409 ac_cpp='$CXXCPP $CPPFLAGS'
7410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7413 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7414 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7415 if test -z "$CXXCPP"; then
7416   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419       # Double quotes because CXXCPP needs to be expanded
7420     for CXXCPP in "$CXX -E" "/lib/cpp"
7421     do
7422       ac_preproc_ok=false
7423 for ac_cxx_preproc_warn_flag in '' yes
7424 do
7425   # Use a header file that comes with gcc, so configuring glibc
7426   # with a fresh cross-compiler works.
7427   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7428   # <limits.h> exists even on freestanding compilers.
7429   # On the NeXT, cc -E runs the code through the compiler's parser,
7430   # not just through cpp. "Syntax error" is here to catch this case.
7431   cat >conftest.$ac_ext <<_ACEOF
7432 /* confdefs.h.  */
7433 _ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h.  */
7437 #ifdef __STDC__
7438 # include <limits.h>
7439 #else
7440 # include <assert.h>
7441 #endif
7442                      Syntax error
7443 _ACEOF
7444 if { (ac_try="$ac_cpp conftest.$ac_ext"
7445 case "(($ac_try" in
7446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7447   *) ac_try_echo=$ac_try;;
7448 esac
7449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7450   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7451   ac_status=$?
7452   grep -v '^ *+' conftest.er1 >conftest.err
7453   rm -f conftest.er1
7454   cat conftest.err >&5
7455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456   (exit $ac_status); } >/dev/null; then
7457   if test -s conftest.err; then
7458     ac_cpp_err=$ac_cxx_preproc_warn_flag
7459     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7460   else
7461     ac_cpp_err=
7462   fi
7463 else
7464   ac_cpp_err=yes
7465 fi
7466 if test -z "$ac_cpp_err"; then
7467   :
7468 else
7469   echo "$as_me: failed program was:" >&5
7470 sed 's/^/| /' conftest.$ac_ext >&5
7471
7472   # Broken: fails on valid input.
7473 continue
7474 fi
7475
7476 rm -f conftest.err conftest.$ac_ext
7477
7478   # OK, works on sane cases.  Now check whether nonexistent headers
7479   # can be detected and how.
7480   cat >conftest.$ac_ext <<_ACEOF
7481 /* confdefs.h.  */
7482 _ACEOF
7483 cat confdefs.h >>conftest.$ac_ext
7484 cat >>conftest.$ac_ext <<_ACEOF
7485 /* end confdefs.h.  */
7486 #include <ac_nonexistent.h>
7487 _ACEOF
7488 if { (ac_try="$ac_cpp conftest.$ac_ext"
7489 case "(($ac_try" in
7490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491   *) ac_try_echo=$ac_try;;
7492 esac
7493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7494   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7495   ac_status=$?
7496   grep -v '^ *+' conftest.er1 >conftest.err
7497   rm -f conftest.er1
7498   cat conftest.err >&5
7499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500   (exit $ac_status); } >/dev/null; then
7501   if test -s conftest.err; then
7502     ac_cpp_err=$ac_cxx_preproc_warn_flag
7503     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7504   else
7505     ac_cpp_err=
7506   fi
7507 else
7508   ac_cpp_err=yes
7509 fi
7510 if test -z "$ac_cpp_err"; then
7511   # Broken: success on invalid input.
7512 continue
7513 else
7514   echo "$as_me: failed program was:" >&5
7515 sed 's/^/| /' conftest.$ac_ext >&5
7516
7517   # Passes both tests.
7518 ac_preproc_ok=:
7519 break
7520 fi
7521
7522 rm -f conftest.err conftest.$ac_ext
7523
7524 done
7525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7526 rm -f conftest.err conftest.$ac_ext
7527 if $ac_preproc_ok; then
7528   break
7529 fi
7530
7531     done
7532     ac_cv_prog_CXXCPP=$CXXCPP
7533
7534 fi
7535   CXXCPP=$ac_cv_prog_CXXCPP
7536 else
7537   ac_cv_prog_CXXCPP=$CXXCPP
7538 fi
7539 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7540 echo "${ECHO_T}$CXXCPP" >&6; }
7541 ac_preproc_ok=false
7542 for ac_cxx_preproc_warn_flag in '' yes
7543 do
7544   # Use a header file that comes with gcc, so configuring glibc
7545   # with a fresh cross-compiler works.
7546   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7547   # <limits.h> exists even on freestanding compilers.
7548   # On the NeXT, cc -E runs the code through the compiler's parser,
7549   # not just through cpp. "Syntax error" is here to catch this case.
7550   cat >conftest.$ac_ext <<_ACEOF
7551 /* confdefs.h.  */
7552 _ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h.  */
7556 #ifdef __STDC__
7557 # include <limits.h>
7558 #else
7559 # include <assert.h>
7560 #endif
7561                      Syntax error
7562 _ACEOF
7563 if { (ac_try="$ac_cpp conftest.$ac_ext"
7564 case "(($ac_try" in
7565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566   *) ac_try_echo=$ac_try;;
7567 esac
7568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7569   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7570   ac_status=$?
7571   grep -v '^ *+' conftest.er1 >conftest.err
7572   rm -f conftest.er1
7573   cat conftest.err >&5
7574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575   (exit $ac_status); } >/dev/null; then
7576   if test -s conftest.err; then
7577     ac_cpp_err=$ac_cxx_preproc_warn_flag
7578     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7579   else
7580     ac_cpp_err=
7581   fi
7582 else
7583   ac_cpp_err=yes
7584 fi
7585 if test -z "$ac_cpp_err"; then
7586   :
7587 else
7588   echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7590
7591   # Broken: fails on valid input.
7592 continue
7593 fi
7594
7595 rm -f conftest.err conftest.$ac_ext
7596
7597   # OK, works on sane cases.  Now check whether nonexistent headers
7598   # can be detected and how.
7599   cat >conftest.$ac_ext <<_ACEOF
7600 /* confdefs.h.  */
7601 _ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h.  */
7605 #include <ac_nonexistent.h>
7606 _ACEOF
7607 if { (ac_try="$ac_cpp conftest.$ac_ext"
7608 case "(($ac_try" in
7609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610   *) ac_try_echo=$ac_try;;
7611 esac
7612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7614   ac_status=$?
7615   grep -v '^ *+' conftest.er1 >conftest.err
7616   rm -f conftest.er1
7617   cat conftest.err >&5
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); } >/dev/null; then
7620   if test -s conftest.err; then
7621     ac_cpp_err=$ac_cxx_preproc_warn_flag
7622     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7623   else
7624     ac_cpp_err=
7625   fi
7626 else
7627   ac_cpp_err=yes
7628 fi
7629 if test -z "$ac_cpp_err"; then
7630   # Broken: success on invalid input.
7631 continue
7632 else
7633   echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7635
7636   # Passes both tests.
7637 ac_preproc_ok=:
7638 break
7639 fi
7640
7641 rm -f conftest.err conftest.$ac_ext
7642
7643 done
7644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7645 rm -f conftest.err conftest.$ac_ext
7646 if $ac_preproc_ok; then
7647   :
7648 else
7649   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7650 See \`config.log' for more details." >&5
7651 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7652 See \`config.log' for more details." >&2;}
7653    { (exit 1); exit 1; }; }
7654 fi
7655
7656 ac_ext=cpp
7657 ac_cpp='$CXXCPP $CPPFLAGS'
7658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7661
7662 fi
7663
7664 ac_ext=f
7665 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7666 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7667 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7668 if test -n "$ac_tool_prefix"; then
7669   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
7670   do
7671     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7672 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7675 if test "${ac_cv_prog_F77+set}" = set; then
7676   echo $ECHO_N "(cached) $ECHO_C" >&6
7677 else
7678   if test -n "$F77"; then
7679   ac_cv_prog_F77="$F77" # Let the user override the test.
7680 else
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7683 do
7684   IFS=$as_save_IFS
7685   test -z "$as_dir" && as_dir=.
7686   for ac_exec_ext in '' $ac_executable_extensions; do
7687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7688     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7690     break 2
7691   fi
7692 done
7693 done
7694 IFS=$as_save_IFS
7695
7696 fi
7697 fi
7698 F77=$ac_cv_prog_F77
7699 if test -n "$F77"; then
7700   { echo "$as_me:$LINENO: result: $F77" >&5
7701 echo "${ECHO_T}$F77" >&6; }
7702 else
7703   { echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6; }
7705 fi
7706
7707
7708     test -n "$F77" && break
7709   done
7710 fi
7711 if test -z "$F77"; then
7712   ac_ct_F77=$F77
7713   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
7714 do
7715   # Extract the first word of "$ac_prog", so it can be a program name with args.
7716 set dummy $ac_prog; ac_word=$2
7717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7719 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7720   echo $ECHO_N "(cached) $ECHO_C" >&6
7721 else
7722   if test -n "$ac_ct_F77"; then
7723   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7724 else
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7727 do
7728   IFS=$as_save_IFS
7729   test -z "$as_dir" && as_dir=.
7730   for ac_exec_ext in '' $ac_executable_extensions; do
7731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7732     ac_cv_prog_ac_ct_F77="$ac_prog"
7733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7734     break 2
7735   fi
7736 done
7737 done
7738 IFS=$as_save_IFS
7739
7740 fi
7741 fi
7742 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7743 if test -n "$ac_ct_F77"; then
7744   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7745 echo "${ECHO_T}$ac_ct_F77" >&6; }
7746 else
7747   { echo "$as_me:$LINENO: result: no" >&5
7748 echo "${ECHO_T}no" >&6; }
7749 fi
7750
7751
7752   test -n "$ac_ct_F77" && break
7753 done
7754
7755   if test "x$ac_ct_F77" = x; then
7756     F77=""
7757   else
7758     case $cross_compiling:$ac_tool_warned in
7759 yes:)
7760 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7761 whose name does not start with the host triplet.  If you think this
7762 configuration is useful to you, please write to autoconf@gnu.org." >&5
7763 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7764 whose name does not start with the host triplet.  If you think this
7765 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7766 ac_tool_warned=yes ;;
7767 esac
7768     F77=$ac_ct_F77
7769   fi
7770 fi
7771
7772
7773 # Provide some information about the compiler.
7774 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7775 ac_compiler=`set X $ac_compile; echo $2`
7776 { (ac_try="$ac_compiler --version >&5"
7777 case "(($ac_try" in
7778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7779   *) ac_try_echo=$ac_try;;
7780 esac
7781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7782   (eval "$ac_compiler --version >&5") 2>&5
7783   ac_status=$?
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); }
7786 { (ac_try="$ac_compiler -v >&5"
7787 case "(($ac_try" in
7788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7789   *) ac_try_echo=$ac_try;;
7790 esac
7791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7792   (eval "$ac_compiler -v >&5") 2>&5
7793   ac_status=$?
7794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795   (exit $ac_status); }
7796 { (ac_try="$ac_compiler -V >&5"
7797 case "(($ac_try" in
7798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799   *) ac_try_echo=$ac_try;;
7800 esac
7801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7802   (eval "$ac_compiler -V >&5") 2>&5
7803   ac_status=$?
7804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805   (exit $ac_status); }
7806 rm -f a.out
7807
7808 # If we don't use `.F' as extension, the preprocessor is not run on the
7809 # input file.  (Note that this only needs to work for GNU compilers.)
7810 ac_save_ext=$ac_ext
7811 ac_ext=F
7812 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7813 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7814 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7815   echo $ECHO_N "(cached) $ECHO_C" >&6
7816 else
7817   cat >conftest.$ac_ext <<_ACEOF
7818       program main
7819 #ifndef __GNUC__
7820        choke me
7821 #endif
7822
7823       end
7824 _ACEOF
7825 rm -f conftest.$ac_objext
7826 if { (ac_try="$ac_compile"
7827 case "(($ac_try" in
7828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829   *) ac_try_echo=$ac_try;;
7830 esac
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832   (eval "$ac_compile") 2>conftest.er1
7833   ac_status=$?
7834   grep -v '^ *+' conftest.er1 >conftest.err
7835   rm -f conftest.er1
7836   cat conftest.err >&5
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); } &&
7839          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7840   { (case "(($ac_try" in
7841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842   *) ac_try_echo=$ac_try;;
7843 esac
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845   (eval "$ac_try") 2>&5
7846   ac_status=$?
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); }; } &&
7849          { ac_try='test -s conftest.$ac_objext'
7850   { (case "(($ac_try" in
7851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852   *) ac_try_echo=$ac_try;;
7853 esac
7854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7855   (eval "$ac_try") 2>&5
7856   ac_status=$?
7857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); }; }; then
7859   ac_compiler_gnu=yes
7860 else
7861   echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7863
7864         ac_compiler_gnu=no
7865 fi
7866
7867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7869
7870 fi
7871 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7872 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7873 ac_ext=$ac_save_ext
7874 ac_test_FFLAGS=${FFLAGS+set}
7875 ac_save_FFLAGS=$FFLAGS
7876 FFLAGS=
7877 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7878 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7879 if test "${ac_cv_prog_f77_g+set}" = set; then
7880   echo $ECHO_N "(cached) $ECHO_C" >&6
7881 else
7882   FFLAGS=-g
7883 cat >conftest.$ac_ext <<_ACEOF
7884       program main
7885
7886       end
7887 _ACEOF
7888 rm -f conftest.$ac_objext
7889 if { (ac_try="$ac_compile"
7890 case "(($ac_try" in
7891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7892   *) ac_try_echo=$ac_try;;
7893 esac
7894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7895   (eval "$ac_compile") 2>conftest.er1
7896   ac_status=$?
7897   grep -v '^ *+' conftest.er1 >conftest.err
7898   rm -f conftest.er1
7899   cat conftest.err >&5
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); } &&
7902          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7903   { (case "(($ac_try" in
7904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7905   *) ac_try_echo=$ac_try;;
7906 esac
7907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7908   (eval "$ac_try") 2>&5
7909   ac_status=$?
7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); }; } &&
7912          { ac_try='test -s conftest.$ac_objext'
7913   { (case "(($ac_try" in
7914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915   *) ac_try_echo=$ac_try;;
7916 esac
7917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7918   (eval "$ac_try") 2>&5
7919   ac_status=$?
7920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921   (exit $ac_status); }; }; then
7922   ac_cv_prog_f77_g=yes
7923 else
7924   echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7926
7927         ac_cv_prog_f77_g=no
7928 fi
7929
7930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7931
7932 fi
7933 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7934 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7935 if test "$ac_test_FFLAGS" = set; then
7936   FFLAGS=$ac_save_FFLAGS
7937 elif test $ac_cv_prog_f77_g = yes; then
7938   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7939     FFLAGS="-g -O2"
7940   else
7941     FFLAGS="-g"
7942   fi
7943 else
7944   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7945     FFLAGS="-O2"
7946   else
7947     FFLAGS=
7948   fi
7949 fi
7950
7951 G77=`test $ac_compiler_gnu = yes && echo yes`
7952 ac_ext=c
7953 ac_cpp='$CPP $CPPFLAGS'
7954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7957
7958
7959
7960 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7961
7962 # find the maximum length of command line arguments
7963 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7964 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7965 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7966   echo $ECHO_N "(cached) $ECHO_C" >&6
7967 else
7968     i=0
7969   teststring="ABCD"
7970
7971   case $build_os in
7972   msdosdjgpp*)
7973     # On DJGPP, this test can blow up pretty badly due to problems in libc
7974     # (any single argument exceeding 2000 bytes causes a buffer overrun
7975     # during glob expansion).  Even if it were fixed, the result of this
7976     # check would be larger than it should be.
7977     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7978     ;;
7979
7980   gnu*)
7981     # Under GNU Hurd, this test is not required because there is
7982     # no limit to the length of command line arguments.
7983     # Libtool will interpret -1 as no limit whatsoever
7984     lt_cv_sys_max_cmd_len=-1;
7985     ;;
7986
7987   cygwin* | mingw*)
7988     # On Win9x/ME, this test blows up -- it succeeds, but takes
7989     # about 5 minutes as the teststring grows exponentially.
7990     # Worse, since 9x/ME are not pre-emptively multitasking,
7991     # you end up with a "frozen" computer, even though with patience
7992     # the test eventually succeeds (with a max line length of 256k).
7993     # Instead, let's just punt: use the minimum linelength reported by
7994     # all of the supported platforms: 8192 (on NT/2K/XP).
7995     lt_cv_sys_max_cmd_len=8192;
7996     ;;
7997
7998   amigaos*)
7999     # On AmigaOS with pdksh, this test takes hours, literally.
8000     # So we just punt and use a minimum line length of 8192.
8001     lt_cv_sys_max_cmd_len=8192;
8002     ;;
8003
8004   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8005     # This has been around since 386BSD, at least.  Likely further.
8006     if test -x /sbin/sysctl; then
8007       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8008     elif test -x /usr/sbin/sysctl; then
8009       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8010     else
8011       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8012     fi
8013     # And add a safety zone
8014     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8015     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8016     ;;
8017
8018   interix*)
8019     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8020     lt_cv_sys_max_cmd_len=196608
8021     ;;
8022
8023   osf*)
8024     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8025     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8026     # nice to cause kernel panics so lets avoid the loop below.
8027     # First set a reasonable default.
8028     lt_cv_sys_max_cmd_len=16384
8029     #
8030     if test -x /sbin/sysconfig; then
8031       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8032         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8033       esac
8034     fi
8035     ;;
8036   sco3.2v5*)
8037     lt_cv_sys_max_cmd_len=102400
8038     ;;
8039   sysv5* | sco5v6* | sysv4.2uw2*)
8040     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8041     if test -n "$kargmax"; then
8042       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8043     else
8044       lt_cv_sys_max_cmd_len=32768
8045     fi
8046     ;;
8047   *)
8048     # If test is not a shell built-in, we'll probably end up computing a
8049     # maximum length that is only half of the actual maximum length, but
8050     # we can't tell.
8051     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8052     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8053                = "XX$teststring") >/dev/null 2>&1 &&
8054             new_result=`expr "X$teststring" : ".*" 2>&1` &&
8055             lt_cv_sys_max_cmd_len=$new_result &&
8056             test $i != 17 # 1/2 MB should be enough
8057     do
8058       i=`expr $i + 1`
8059       teststring=$teststring$teststring
8060     done
8061     teststring=
8062     # Add a significant safety factor because C++ compilers can tack on massive
8063     # amounts of additional arguments before passing them to the linker.
8064     # It appears as though 1/2 is a usable value.
8065     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8066     ;;
8067   esac
8068
8069 fi
8070
8071 if test -n $lt_cv_sys_max_cmd_len ; then
8072   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8073 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
8074 else
8075   { echo "$as_me:$LINENO: result: none" >&5
8076 echo "${ECHO_T}none" >&6; }
8077 fi
8078
8079
8080
8081
8082 # Check for command to grab the raw symbol name followed by C symbol from nm.
8083 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8084 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8085 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8086   echo $ECHO_N "(cached) $ECHO_C" >&6
8087 else
8088
8089 # These are sane defaults that work on at least a few old systems.
8090 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8091
8092 # Character class describing NM global symbol codes.
8093 symcode='[BCDEGRST]'
8094
8095 # Regexp to match symbols that can be accessed directly from C.
8096 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8097
8098 # Transform an extracted symbol line into a proper C declaration
8099 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8100
8101 # Transform an extracted symbol line into symbol name and symbol address
8102 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'"
8103
8104 # Define system-specific variables.
8105 case $host_os in
8106 aix*)
8107   symcode='[BCDT]'
8108   ;;
8109 cygwin* | mingw* | pw32*)
8110   symcode='[ABCDGISTW]'
8111   ;;
8112 hpux*) # Its linker distinguishes data from code symbols
8113   if test "$host_cpu" = ia64; then
8114     symcode='[ABCDEGRST]'
8115   fi
8116   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8117   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'"
8118   ;;
8119 linux* | k*bsd*-gnu)
8120   if test "$host_cpu" = ia64; then
8121     symcode='[ABCDGIRSTW]'
8122     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8123     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'"
8124   fi
8125   ;;
8126 irix* | nonstopux*)
8127   symcode='[BCDEGRST]'
8128   ;;
8129 osf*)
8130   symcode='[BCDEGQRST]'
8131   ;;
8132 solaris*)
8133   symcode='[BDRT]'
8134   ;;
8135 sco3.2v5*)
8136   symcode='[DT]'
8137   ;;
8138 sysv4.2uw2*)
8139   symcode='[DT]'
8140   ;;
8141 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8142   symcode='[ABDT]'
8143   ;;
8144 sysv4)
8145   symcode='[DFNSTU]'
8146   ;;
8147 esac
8148
8149 # Handle CRLF in mingw tool chain
8150 opt_cr=
8151 case $build_os in
8152 mingw*)
8153   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8154   ;;
8155 esac
8156
8157 # If we're using GNU nm, then use its standard symbol codes.
8158 case `$NM -V 2>&1` in
8159 *GNU* | *'with BFD'*)
8160   symcode='[ABCDGIRSTW]' ;;
8161 esac
8162
8163 # Try without a prefix undercore, then with it.
8164 for ac_symprfx in "" "_"; do
8165
8166   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8167   symxfrm="\\1 $ac_symprfx\\2 \\2"
8168
8169   # Write the raw and C identifiers.
8170   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8171
8172   # Check to see that the pipe works correctly.
8173   pipe_works=no
8174
8175   rm -f conftest*
8176   cat > conftest.$ac_ext <<EOF
8177 #ifdef __cplusplus
8178 extern "C" {
8179 #endif
8180 char nm_test_var;
8181 void nm_test_func(){}
8182 #ifdef __cplusplus
8183 }
8184 #endif
8185 int main(){nm_test_var='a';nm_test_func();return(0);}
8186 EOF
8187
8188   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8189   (eval $ac_compile) 2>&5
8190   ac_status=$?
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); }; then
8193     # Now try to grab the symbols.
8194     nlist=conftest.nm
8195     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8196   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8197   ac_status=$?
8198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   (exit $ac_status); } && test -s "$nlist"; then
8200       # Try sorting and uniquifying the output.
8201       if sort "$nlist" | uniq > "$nlist"T; then
8202         mv -f "$nlist"T "$nlist"
8203       else
8204         rm -f "$nlist"T
8205       fi
8206
8207       # Make sure that we snagged all the symbols we need.
8208       if grep ' nm_test_var$' "$nlist" >/dev/null; then
8209         if grep ' nm_test_func$' "$nlist" >/dev/null; then
8210           cat <<EOF > conftest.$ac_ext
8211 #ifdef __cplusplus
8212 extern "C" {
8213 #endif
8214
8215 EOF
8216           # Now generate the symbol file.
8217           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8218
8219           cat <<EOF >> conftest.$ac_ext
8220 #if defined (__STDC__) && __STDC__
8221 # define lt_ptr_t void *
8222 #else
8223 # define lt_ptr_t char *
8224 # define const
8225 #endif
8226
8227 /* The mapping between symbol names and symbols. */
8228 const struct {
8229   const char *name;
8230   lt_ptr_t address;
8231 }
8232 lt_preloaded_symbols[] =
8233 {
8234 EOF
8235           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8236           cat <<\EOF >> conftest.$ac_ext
8237   {0, (lt_ptr_t) 0}
8238 };
8239
8240 #ifdef __cplusplus
8241 }
8242 #endif
8243 EOF
8244           # Now try linking the two files.
8245           mv conftest.$ac_objext conftstm.$ac_objext
8246           lt_save_LIBS="$LIBS"
8247           lt_save_CFLAGS="$CFLAGS"
8248           LIBS="conftstm.$ac_objext"
8249           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8250           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8251   (eval $ac_link) 2>&5
8252   ac_status=$?
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8255             pipe_works=yes
8256           fi
8257           LIBS="$lt_save_LIBS"
8258           CFLAGS="$lt_save_CFLAGS"
8259         else
8260           echo "cannot find nm_test_func in $nlist" >&5
8261         fi
8262       else
8263         echo "cannot find nm_test_var in $nlist" >&5
8264       fi
8265     else
8266       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8267     fi
8268   else
8269     echo "$progname: failed program was:" >&5
8270     cat conftest.$ac_ext >&5
8271   fi
8272   rm -f conftest* conftst*
8273
8274   # Do not use the global_symbol_pipe unless it works.
8275   if test "$pipe_works" = yes; then
8276     break
8277   else
8278     lt_cv_sys_global_symbol_pipe=
8279   fi
8280 done
8281
8282 fi
8283
8284 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8285   lt_cv_sys_global_symbol_to_cdecl=
8286 fi
8287 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8288   { echo "$as_me:$LINENO: result: failed" >&5
8289 echo "${ECHO_T}failed" >&6; }
8290 else
8291   { echo "$as_me:$LINENO: result: ok" >&5
8292 echo "${ECHO_T}ok" >&6; }
8293 fi
8294
8295 { echo "$as_me:$LINENO: checking for objdir" >&5
8296 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8297 if test "${lt_cv_objdir+set}" = set; then
8298   echo $ECHO_N "(cached) $ECHO_C" >&6
8299 else
8300   rm -f .libs 2>/dev/null
8301 mkdir .libs 2>/dev/null
8302 if test -d .libs; then
8303   lt_cv_objdir=.libs
8304 else
8305   # MS-DOS does not allow filenames that begin with a dot.
8306   lt_cv_objdir=_libs
8307 fi
8308 rmdir .libs 2>/dev/null
8309 fi
8310 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8311 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8312 objdir=$lt_cv_objdir
8313
8314
8315
8316
8317
8318 case $host_os in
8319 aix3*)
8320   # AIX sometimes has problems with the GCC collect2 program.  For some
8321   # reason, if we set the COLLECT_NAMES environment variable, the problems
8322   # vanish in a puff of smoke.
8323   if test "X${COLLECT_NAMES+set}" != Xset; then
8324     COLLECT_NAMES=
8325     export COLLECT_NAMES
8326   fi
8327   ;;
8328 esac
8329
8330 # Sed substitution that helps us do robust quoting.  It backslashifies
8331 # metacharacters that are still active within double-quoted strings.
8332 Xsed='sed -e 1s/^X//'
8333 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8334
8335 # Same as above, but do not quote variable references.
8336 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8337
8338 # Sed substitution to delay expansion of an escaped shell variable in a
8339 # double_quote_subst'ed string.
8340 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8341
8342 # Sed substitution to avoid accidental globbing in evaled expressions
8343 no_glob_subst='s/\*/\\\*/g'
8344
8345 # Constants:
8346 rm="rm -f"
8347
8348 # Global variables:
8349 default_ofile=libtool
8350 can_build_shared=yes
8351
8352 # All known linkers require a `.a' archive for static linking (except MSVC,
8353 # which needs '.lib').
8354 libext=a
8355 ltmain="$ac_aux_dir/ltmain.sh"
8356 ofile="$default_ofile"
8357 with_gnu_ld="$lt_cv_prog_gnu_ld"
8358
8359 if test -n "$ac_tool_prefix"; then
8360   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8361 set dummy ${ac_tool_prefix}ar; ac_word=$2
8362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8364 if test "${ac_cv_prog_AR+set}" = set; then
8365   echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367   if test -n "$AR"; then
8368   ac_cv_prog_AR="$AR" # Let the user override the test.
8369 else
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 for as_dir in $PATH
8372 do
8373   IFS=$as_save_IFS
8374   test -z "$as_dir" && as_dir=.
8375   for ac_exec_ext in '' $ac_executable_extensions; do
8376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8377     ac_cv_prog_AR="${ac_tool_prefix}ar"
8378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8379     break 2
8380   fi
8381 done
8382 done
8383 IFS=$as_save_IFS
8384
8385 fi
8386 fi
8387 AR=$ac_cv_prog_AR
8388 if test -n "$AR"; then
8389   { echo "$as_me:$LINENO: result: $AR" >&5
8390 echo "${ECHO_T}$AR" >&6; }
8391 else
8392   { echo "$as_me:$LINENO: result: no" >&5
8393 echo "${ECHO_T}no" >&6; }
8394 fi
8395
8396
8397 fi
8398 if test -z "$ac_cv_prog_AR"; then
8399   ac_ct_AR=$AR
8400   # Extract the first word of "ar", so it can be a program name with args.
8401 set dummy ar; ac_word=$2
8402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8404 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8405   echo $ECHO_N "(cached) $ECHO_C" >&6
8406 else
8407   if test -n "$ac_ct_AR"; then
8408   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8409 else
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8412 do
8413   IFS=$as_save_IFS
8414   test -z "$as_dir" && as_dir=.
8415   for ac_exec_ext in '' $ac_executable_extensions; do
8416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8417     ac_cv_prog_ac_ct_AR="ar"
8418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8419     break 2
8420   fi
8421 done
8422 done
8423 IFS=$as_save_IFS
8424
8425 fi
8426 fi
8427 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8428 if test -n "$ac_ct_AR"; then
8429   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8430 echo "${ECHO_T}$ac_ct_AR" >&6; }
8431 else
8432   { echo "$as_me:$LINENO: result: no" >&5
8433 echo "${ECHO_T}no" >&6; }
8434 fi
8435
8436   if test "x$ac_ct_AR" = x; then
8437     AR="false"
8438   else
8439     case $cross_compiling:$ac_tool_warned in
8440 yes:)
8441 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8442 whose name does not start with the host triplet.  If you think this
8443 configuration is useful to you, please write to autoconf@gnu.org." >&5
8444 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8445 whose name does not start with the host triplet.  If you think this
8446 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8447 ac_tool_warned=yes ;;
8448 esac
8449     AR=$ac_ct_AR
8450   fi
8451 else
8452   AR="$ac_cv_prog_AR"
8453 fi
8454
8455 if test -n "$ac_tool_prefix"; then
8456   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8457 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8460 if test "${ac_cv_prog_RANLIB+set}" = set; then
8461   echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
8463   if test -n "$RANLIB"; then
8464   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8465 else
8466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467 for as_dir in $PATH
8468 do
8469   IFS=$as_save_IFS
8470   test -z "$as_dir" && as_dir=.
8471   for ac_exec_ext in '' $ac_executable_extensions; do
8472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8473     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8475     break 2
8476   fi
8477 done
8478 done
8479 IFS=$as_save_IFS
8480
8481 fi
8482 fi
8483 RANLIB=$ac_cv_prog_RANLIB
8484 if test -n "$RANLIB"; then
8485   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8486 echo "${ECHO_T}$RANLIB" >&6; }
8487 else
8488   { echo "$as_me:$LINENO: result: no" >&5
8489 echo "${ECHO_T}no" >&6; }
8490 fi
8491
8492
8493 fi
8494 if test -z "$ac_cv_prog_RANLIB"; then
8495   ac_ct_RANLIB=$RANLIB
8496   # Extract the first word of "ranlib", so it can be a program name with args.
8497 set dummy ranlib; ac_word=$2
8498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8500 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8501   echo $ECHO_N "(cached) $ECHO_C" >&6
8502 else
8503   if test -n "$ac_ct_RANLIB"; then
8504   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8505 else
8506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507 for as_dir in $PATH
8508 do
8509   IFS=$as_save_IFS
8510   test -z "$as_dir" && as_dir=.
8511   for ac_exec_ext in '' $ac_executable_extensions; do
8512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8513     ac_cv_prog_ac_ct_RANLIB="ranlib"
8514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8515     break 2
8516   fi
8517 done
8518 done
8519 IFS=$as_save_IFS
8520
8521 fi
8522 fi
8523 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8524 if test -n "$ac_ct_RANLIB"; then
8525   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8526 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8527 else
8528   { echo "$as_me:$LINENO: result: no" >&5
8529 echo "${ECHO_T}no" >&6; }
8530 fi
8531
8532   if test "x$ac_ct_RANLIB" = x; then
8533     RANLIB=":"
8534   else
8535     case $cross_compiling:$ac_tool_warned in
8536 yes:)
8537 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8538 whose name does not start with the host triplet.  If you think this
8539 configuration is useful to you, please write to autoconf@gnu.org." >&5
8540 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8541 whose name does not start with the host triplet.  If you think this
8542 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8543 ac_tool_warned=yes ;;
8544 esac
8545     RANLIB=$ac_ct_RANLIB
8546   fi
8547 else
8548   RANLIB="$ac_cv_prog_RANLIB"
8549 fi
8550
8551 if test -n "$ac_tool_prefix"; then
8552   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8553 set dummy ${ac_tool_prefix}strip; ac_word=$2
8554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8556 if test "${ac_cv_prog_STRIP+set}" = set; then
8557   echo $ECHO_N "(cached) $ECHO_C" >&6
8558 else
8559   if test -n "$STRIP"; then
8560   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8561 else
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563 for as_dir in $PATH
8564 do
8565   IFS=$as_save_IFS
8566   test -z "$as_dir" && as_dir=.
8567   for ac_exec_ext in '' $ac_executable_extensions; do
8568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8569     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8571     break 2
8572   fi
8573 done
8574 done
8575 IFS=$as_save_IFS
8576
8577 fi
8578 fi
8579 STRIP=$ac_cv_prog_STRIP
8580 if test -n "$STRIP"; then
8581   { echo "$as_me:$LINENO: result: $STRIP" >&5
8582 echo "${ECHO_T}$STRIP" >&6; }
8583 else
8584   { echo "$as_me:$LINENO: result: no" >&5
8585 echo "${ECHO_T}no" >&6; }
8586 fi
8587
8588
8589 fi
8590 if test -z "$ac_cv_prog_STRIP"; then
8591   ac_ct_STRIP=$STRIP
8592   # Extract the first word of "strip", so it can be a program name with args.
8593 set dummy strip; ac_word=$2
8594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8596 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8597   echo $ECHO_N "(cached) $ECHO_C" >&6
8598 else
8599   if test -n "$ac_ct_STRIP"; then
8600   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8601 else
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603 for as_dir in $PATH
8604 do
8605   IFS=$as_save_IFS
8606   test -z "$as_dir" && as_dir=.
8607   for ac_exec_ext in '' $ac_executable_extensions; do
8608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8609     ac_cv_prog_ac_ct_STRIP="strip"
8610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8611     break 2
8612   fi
8613 done
8614 done
8615 IFS=$as_save_IFS
8616
8617 fi
8618 fi
8619 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8620 if test -n "$ac_ct_STRIP"; then
8621   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8622 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8623 else
8624   { echo "$as_me:$LINENO: result: no" >&5
8625 echo "${ECHO_T}no" >&6; }
8626 fi
8627
8628   if test "x$ac_ct_STRIP" = x; then
8629     STRIP=":"
8630   else
8631     case $cross_compiling:$ac_tool_warned in
8632 yes:)
8633 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8634 whose name does not start with the host triplet.  If you think this
8635 configuration is useful to you, please write to autoconf@gnu.org." >&5
8636 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8637 whose name does not start with the host triplet.  If you think this
8638 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8639 ac_tool_warned=yes ;;
8640 esac
8641     STRIP=$ac_ct_STRIP
8642   fi
8643 else
8644   STRIP="$ac_cv_prog_STRIP"
8645 fi
8646
8647
8648 old_CC="$CC"
8649 old_CFLAGS="$CFLAGS"
8650
8651 # Set sane defaults for various variables
8652 test -z "$AR" && AR=ar
8653 test -z "$AR_FLAGS" && AR_FLAGS=cru
8654 test -z "$AS" && AS=as
8655 test -z "$CC" && CC=cc
8656 test -z "$LTCC" && LTCC=$CC
8657 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8658 test -z "$DLLTOOL" && DLLTOOL=dlltool
8659 test -z "$LD" && LD=ld
8660 test -z "$LN_S" && LN_S="ln -s"
8661 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8662 test -z "$NM" && NM=nm
8663 test -z "$SED" && SED=sed
8664 test -z "$OBJDUMP" && OBJDUMP=objdump
8665 test -z "$RANLIB" && RANLIB=:
8666 test -z "$STRIP" && STRIP=:
8667 test -z "$ac_objext" && ac_objext=o
8668
8669 # Determine commands to create old-style static archives.
8670 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8671 old_postinstall_cmds='chmod 644 $oldlib'
8672 old_postuninstall_cmds=
8673
8674 if test -n "$RANLIB"; then
8675   case $host_os in
8676   openbsd*)
8677     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8678     ;;
8679   *)
8680     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8681     ;;
8682   esac
8683   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8684 fi
8685
8686 for cc_temp in $compiler""; do
8687   case $cc_temp in
8688     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8689     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8690     \-*) ;;
8691     *) break;;
8692   esac
8693 done
8694 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8695
8696
8697 # Only perform the check for file, if the check method requires it
8698 case $deplibs_check_method in
8699 file_magic*)
8700   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8701     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8702 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8703 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8704   echo $ECHO_N "(cached) $ECHO_C" >&6
8705 else
8706   case $MAGIC_CMD in
8707 [\\/*] |  ?:[\\/]*)
8708   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8709   ;;
8710 *)
8711   lt_save_MAGIC_CMD="$MAGIC_CMD"
8712   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8713   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8714   for ac_dir in $ac_dummy; do
8715     IFS="$lt_save_ifs"
8716     test -z "$ac_dir" && ac_dir=.
8717     if test -f $ac_dir/${ac_tool_prefix}file; then
8718       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8719       if test -n "$file_magic_test_file"; then
8720         case $deplibs_check_method in
8721         "file_magic "*)
8722           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8723           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8724           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8725             $EGREP "$file_magic_regex" > /dev/null; then
8726             :
8727           else
8728             cat <<EOF 1>&2
8729
8730 *** Warning: the command libtool uses to detect shared libraries,
8731 *** $file_magic_cmd, produces output that libtool cannot recognize.
8732 *** The result is that libtool may fail to recognize shared libraries
8733 *** as such.  This will affect the creation of libtool libraries that
8734 *** depend on shared libraries, but programs linked with such libtool
8735 *** libraries will work regardless of this problem.  Nevertheless, you
8736 *** may want to report the problem to your system manager and/or to
8737 *** bug-libtool@gnu.org
8738
8739 EOF
8740           fi ;;
8741         esac
8742       fi
8743       break
8744     fi
8745   done
8746   IFS="$lt_save_ifs"
8747   MAGIC_CMD="$lt_save_MAGIC_CMD"
8748   ;;
8749 esac
8750 fi
8751
8752 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8753 if test -n "$MAGIC_CMD"; then
8754   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8755 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8756 else
8757   { echo "$as_me:$LINENO: result: no" >&5
8758 echo "${ECHO_T}no" >&6; }
8759 fi
8760
8761 if test -z "$lt_cv_path_MAGIC_CMD"; then
8762   if test -n "$ac_tool_prefix"; then
8763     { echo "$as_me:$LINENO: checking for file" >&5
8764 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8765 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8766   echo $ECHO_N "(cached) $ECHO_C" >&6
8767 else
8768   case $MAGIC_CMD in
8769 [\\/*] |  ?:[\\/]*)
8770   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8771   ;;
8772 *)
8773   lt_save_MAGIC_CMD="$MAGIC_CMD"
8774   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8775   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8776   for ac_dir in $ac_dummy; do
8777     IFS="$lt_save_ifs"
8778     test -z "$ac_dir" && ac_dir=.
8779     if test -f $ac_dir/file; then
8780       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8781       if test -n "$file_magic_test_file"; then
8782         case $deplibs_check_method in
8783         "file_magic "*)
8784           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8785           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8786           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8787             $EGREP "$file_magic_regex" > /dev/null; then
8788             :
8789           else
8790             cat <<EOF 1>&2
8791
8792 *** Warning: the command libtool uses to detect shared libraries,
8793 *** $file_magic_cmd, produces output that libtool cannot recognize.
8794 *** The result is that libtool may fail to recognize shared libraries
8795 *** as such.  This will affect the creation of libtool libraries that
8796 *** depend on shared libraries, but programs linked with such libtool
8797 *** libraries will work regardless of this problem.  Nevertheless, you
8798 *** may want to report the problem to your system manager and/or to
8799 *** bug-libtool@gnu.org
8800
8801 EOF
8802           fi ;;
8803         esac
8804       fi
8805       break
8806     fi
8807   done
8808   IFS="$lt_save_ifs"
8809   MAGIC_CMD="$lt_save_MAGIC_CMD"
8810   ;;
8811 esac
8812 fi
8813
8814 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8815 if test -n "$MAGIC_CMD"; then
8816   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8817 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8818 else
8819   { echo "$as_me:$LINENO: result: no" >&5
8820 echo "${ECHO_T}no" >&6; }
8821 fi
8822
8823   else
8824     MAGIC_CMD=:
8825   fi
8826 fi
8827
8828   fi
8829   ;;
8830 esac
8831
8832 enable_dlopen=no
8833 enable_win32_dll=yes
8834
8835 # Check whether --enable-libtool-lock was given.
8836 if test "${enable_libtool_lock+set}" = set; then
8837   enableval=$enable_libtool_lock;
8838 fi
8839
8840 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8841
8842
8843 # Check whether --with-pic was given.
8844 if test "${with_pic+set}" = set; then
8845   withval=$with_pic; pic_mode="$withval"
8846 else
8847   pic_mode=default
8848 fi
8849
8850 test -z "$pic_mode" && pic_mode=default
8851
8852 # Use C for the default configuration in the libtool script
8853 tagname=
8854 lt_save_CC="$CC"
8855 ac_ext=c
8856 ac_cpp='$CPP $CPPFLAGS'
8857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8860
8861
8862 # Source file extension for C test sources.
8863 ac_ext=c
8864
8865 # Object file extension for compiled C test sources.
8866 objext=o
8867 objext=$objext
8868
8869 # Code to be used in simple compile tests
8870 lt_simple_compile_test_code="int some_variable = 0;\n"
8871
8872 # Code to be used in simple link tests
8873 lt_simple_link_test_code='int main(){return(0);}\n'
8874
8875
8876 # If no C compiler was specified, use CC.
8877 LTCC=${LTCC-"$CC"}
8878
8879 # If no C compiler flags were specified, use CFLAGS.
8880 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8881
8882 # Allow CC to be a program name with arguments.
8883 compiler=$CC
8884
8885
8886 # save warnings/boilerplate of simple test code
8887 ac_outfile=conftest.$ac_objext
8888 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8889 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8890 _lt_compiler_boilerplate=`cat conftest.err`
8891 $rm conftest*
8892
8893 ac_outfile=conftest.$ac_objext
8894 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8895 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8896 _lt_linker_boilerplate=`cat conftest.err`
8897 $rm conftest*
8898
8899
8900
8901 lt_prog_compiler_no_builtin_flag=
8902
8903 if test "$GCC" = yes; then
8904   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8905
8906
8907 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8908 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8909 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8910   echo $ECHO_N "(cached) $ECHO_C" >&6
8911 else
8912   lt_cv_prog_compiler_rtti_exceptions=no
8913   ac_outfile=conftest.$ac_objext
8914    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8915    lt_compiler_flag="-fno-rtti -fno-exceptions"
8916    # Insert the option either (1) after the last *FLAGS variable, or
8917    # (2) before a word containing "conftest.", or (3) at the end.
8918    # Note that $ac_compile itself does not contain backslashes and begins
8919    # with a dollar sign (not a hyphen), so the echo should work correctly.
8920    # The option is referenced via a variable to avoid confusing sed.
8921    lt_compile=`echo "$ac_compile" | $SED \
8922    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8923    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8924    -e 's:$: $lt_compiler_flag:'`
8925    (eval echo "\"\$as_me:8925: $lt_compile\"" >&5)
8926    (eval "$lt_compile" 2>conftest.err)
8927    ac_status=$?
8928    cat conftest.err >&5
8929    echo "$as_me:8929: \$? = $ac_status" >&5
8930    if (exit $ac_status) && test -s "$ac_outfile"; then
8931      # The compiler can only warn and ignore the option if not recognized
8932      # So say no if there are warnings other than the usual output.
8933      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8934      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8935      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8936        lt_cv_prog_compiler_rtti_exceptions=yes
8937      fi
8938    fi
8939    $rm conftest*
8940
8941 fi
8942 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8943 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8944
8945 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8946     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8947 else
8948     :
8949 fi
8950
8951 fi
8952
8953 lt_prog_compiler_wl=
8954 lt_prog_compiler_pic=
8955 lt_prog_compiler_static=
8956
8957 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8958 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8959
8960   if test "$GCC" = yes; then
8961     lt_prog_compiler_wl='-Wl,'
8962     lt_prog_compiler_static='-static'
8963
8964     case $host_os in
8965       aix*)
8966       # All AIX code is PIC.
8967       if test "$host_cpu" = ia64; then
8968         # AIX 5 now supports IA64 processor
8969         lt_prog_compiler_static='-Bstatic'
8970       fi
8971       ;;
8972
8973     amigaos*)
8974       # FIXME: we need at least 68020 code to build shared libraries, but
8975       # adding the `-m68020' flag to GCC prevents building anything better,
8976       # like `-m68040'.
8977       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8978       ;;
8979
8980     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8981       # PIC is the default for these OSes.
8982       ;;
8983
8984     mingw* | pw32* | os2*)
8985       # This hack is so that the source file can tell whether it is being
8986       # built for inclusion in a dll (and should export symbols for example).
8987       lt_prog_compiler_pic='-DDLL_EXPORT'
8988       ;;
8989
8990     darwin* | rhapsody*)
8991       # PIC is the default on this platform
8992       # Common symbols not allowed in MH_DYLIB files
8993       lt_prog_compiler_pic='-fno-common'
8994       ;;
8995
8996     interix3*)
8997       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8998       # Instead, we relocate shared libraries at runtime.
8999       ;;
9000
9001     msdosdjgpp*)
9002       # Just because we use GCC doesn't mean we suddenly get shared libraries
9003       # on systems that don't support them.
9004       lt_prog_compiler_can_build_shared=no
9005       enable_shared=no
9006       ;;
9007
9008     sysv4*MP*)
9009       if test -d /usr/nec; then
9010         lt_prog_compiler_pic=-Kconform_pic
9011       fi
9012       ;;
9013
9014     hpux*)
9015       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9016       # not for PA HP-UX.
9017       case $host_cpu in
9018       hppa*64*|ia64*)
9019         # +Z the default
9020         ;;
9021       *)
9022         lt_prog_compiler_pic='-fPIC'
9023         ;;
9024       esac
9025       ;;
9026
9027     *)
9028       lt_prog_compiler_pic='-fPIC'
9029       ;;
9030     esac
9031   else
9032     # PORTME Check for flag to pass linker flags through the system compiler.
9033     case $host_os in
9034     aix*)
9035       lt_prog_compiler_wl='-Wl,'
9036       if test "$host_cpu" = ia64; then
9037         # AIX 5 now supports IA64 processor
9038         lt_prog_compiler_static='-Bstatic'
9039       else
9040         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9041       fi
9042       ;;
9043       darwin*)
9044         # PIC is the default on this platform
9045         # Common symbols not allowed in MH_DYLIB files
9046        case $cc_basename in
9047          xlc*)
9048          lt_prog_compiler_pic='-qnocommon'
9049          lt_prog_compiler_wl='-Wl,'
9050          ;;
9051        esac
9052        ;;
9053
9054     mingw* | pw32* | os2*)
9055       # This hack is so that the source file can tell whether it is being
9056       # built for inclusion in a dll (and should export symbols for example).
9057       lt_prog_compiler_pic='-DDLL_EXPORT'
9058       ;;
9059
9060     hpux9* | hpux10* | hpux11*)
9061       lt_prog_compiler_wl='-Wl,'
9062       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9063       # not for PA HP-UX.
9064       case $host_cpu in
9065       hppa*64*|ia64*)
9066         # +Z the default
9067         ;;
9068       *)
9069         lt_prog_compiler_pic='+Z'
9070         ;;
9071       esac
9072       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9073       lt_prog_compiler_static='${wl}-a ${wl}archive'
9074       ;;
9075
9076     irix5* | irix6* | nonstopux*)
9077       lt_prog_compiler_wl='-Wl,'
9078       # PIC (with -KPIC) is the default.
9079       lt_prog_compiler_static='-non_shared'
9080       ;;
9081
9082     newsos6)
9083       lt_prog_compiler_pic='-KPIC'
9084       lt_prog_compiler_static='-Bstatic'
9085       ;;
9086
9087     linux* | k*bsd*-gnu)
9088       case $cc_basename in
9089       icc* | ecc*)
9090         lt_prog_compiler_wl='-Wl,'
9091         lt_prog_compiler_pic='-KPIC'
9092         lt_prog_compiler_static='-static'
9093         ;;
9094       pgcc* | pgf77* | pgf90* | pgf95*)
9095         # Portland Group compilers (*not* the Pentium gcc compiler,
9096         # which looks to be a dead project)
9097         lt_prog_compiler_wl='-Wl,'
9098         lt_prog_compiler_pic='-fpic'
9099         lt_prog_compiler_static='-Bstatic'
9100         ;;
9101       ccc*)
9102         lt_prog_compiler_wl='-Wl,'
9103         # All Alpha code is PIC.
9104         lt_prog_compiler_static='-non_shared'
9105         ;;
9106       esac
9107       ;;
9108
9109     osf3* | osf4* | osf5*)
9110       lt_prog_compiler_wl='-Wl,'
9111       # All OSF/1 code is PIC.
9112       lt_prog_compiler_static='-non_shared'
9113       ;;
9114
9115     solaris*)
9116       lt_prog_compiler_pic='-KPIC'
9117       lt_prog_compiler_static='-Bstatic'
9118       case $cc_basename in
9119       f77* | f90* | f95*)
9120         lt_prog_compiler_wl='-Qoption ld ';;
9121       *)
9122         lt_prog_compiler_wl='-Wl,';;
9123       esac
9124       ;;
9125
9126     sunos4*)
9127       lt_prog_compiler_wl='-Qoption ld '
9128       lt_prog_compiler_pic='-PIC'
9129       lt_prog_compiler_static='-Bstatic'
9130       ;;
9131
9132     sysv4 | sysv4.2uw2* | sysv4.3*)
9133       lt_prog_compiler_wl='-Wl,'
9134       lt_prog_compiler_pic='-KPIC'
9135       lt_prog_compiler_static='-Bstatic'
9136       ;;
9137
9138     sysv4*MP*)
9139       if test -d /usr/nec ;then
9140         lt_prog_compiler_pic='-Kconform_pic'
9141         lt_prog_compiler_static='-Bstatic'
9142       fi
9143       ;;
9144
9145     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9146       lt_prog_compiler_wl='-Wl,'
9147       lt_prog_compiler_pic='-KPIC'
9148       lt_prog_compiler_static='-Bstatic'
9149       ;;
9150
9151     unicos*)
9152       lt_prog_compiler_wl='-Wl,'
9153       lt_prog_compiler_can_build_shared=no
9154       ;;
9155
9156     uts4*)
9157       lt_prog_compiler_pic='-pic'
9158       lt_prog_compiler_static='-Bstatic'
9159       ;;
9160
9161     *)
9162       lt_prog_compiler_can_build_shared=no
9163       ;;
9164     esac
9165   fi
9166
9167 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9168 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9169
9170 #
9171 # Check to make sure the PIC flag actually works.
9172 #
9173 if test -n "$lt_prog_compiler_pic"; then
9174
9175 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9176 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9177 if test "${lt_prog_compiler_pic_works+set}" = set; then
9178   echo $ECHO_N "(cached) $ECHO_C" >&6
9179 else
9180   lt_prog_compiler_pic_works=no
9181   ac_outfile=conftest.$ac_objext
9182    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9183    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9184    # Insert the option either (1) after the last *FLAGS variable, or
9185    # (2) before a word containing "conftest.", or (3) at the end.
9186    # Note that $ac_compile itself does not contain backslashes and begins
9187    # with a dollar sign (not a hyphen), so the echo should work correctly.
9188    # The option is referenced via a variable to avoid confusing sed.
9189    lt_compile=`echo "$ac_compile" | $SED \
9190    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9191    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9192    -e 's:$: $lt_compiler_flag:'`
9193    (eval echo "\"\$as_me:9193: $lt_compile\"" >&5)
9194    (eval "$lt_compile" 2>conftest.err)
9195    ac_status=$?
9196    cat conftest.err >&5
9197    echo "$as_me:9197: \$? = $ac_status" >&5
9198    if (exit $ac_status) && test -s "$ac_outfile"; then
9199      # The compiler can only warn and ignore the option if not recognized
9200      # So say no if there are warnings other than the usual output.
9201      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9202      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9203      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9204        lt_prog_compiler_pic_works=yes
9205      fi
9206    fi
9207    $rm conftest*
9208
9209 fi
9210 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9211 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9212
9213 if test x"$lt_prog_compiler_pic_works" = xyes; then
9214     case $lt_prog_compiler_pic in
9215      "" | " "*) ;;
9216      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9217      esac
9218 else
9219     lt_prog_compiler_pic=
9220      lt_prog_compiler_can_build_shared=no
9221 fi
9222
9223 fi
9224 case $host_os in
9225   # For platforms which do not support PIC, -DPIC is meaningless:
9226   *djgpp*)
9227     lt_prog_compiler_pic=
9228     ;;
9229   *)
9230     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9231     ;;
9232 esac
9233
9234 #
9235 # Check to make sure the static flag actually works.
9236 #
9237 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9238 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9239 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9240 if test "${lt_prog_compiler_static_works+set}" = set; then
9241   echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
9243   lt_prog_compiler_static_works=no
9244    save_LDFLAGS="$LDFLAGS"
9245    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9246    printf "$lt_simple_link_test_code" > conftest.$ac_ext
9247    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9248      # The linker can only warn and ignore the option if not recognized
9249      # So say no if there are warnings
9250      if test -s conftest.err; then
9251        # Append any errors to the config.log.
9252        cat conftest.err 1>&5
9253        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9254        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9255        if diff conftest.exp conftest.er2 >/dev/null; then
9256          lt_prog_compiler_static_works=yes
9257        fi
9258      else
9259        lt_prog_compiler_static_works=yes
9260      fi
9261    fi
9262    $rm conftest*
9263    LDFLAGS="$save_LDFLAGS"
9264
9265 fi
9266 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9267 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9268
9269 if test x"$lt_prog_compiler_static_works" = xyes; then
9270     :
9271 else
9272     lt_prog_compiler_static=
9273 fi
9274
9275
9276 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9277 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9278 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9279   echo $ECHO_N "(cached) $ECHO_C" >&6
9280 else
9281   lt_cv_prog_compiler_c_o=no
9282    $rm -r conftest 2>/dev/null
9283    mkdir conftest
9284    cd conftest
9285    mkdir out
9286    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9287
9288    lt_compiler_flag="-o out/conftest2.$ac_objext"
9289    # Insert the option either (1) after the last *FLAGS variable, or
9290    # (2) before a word containing "conftest.", or (3) at the end.
9291    # Note that $ac_compile itself does not contain backslashes and begins
9292    # with a dollar sign (not a hyphen), so the echo should work correctly.
9293    lt_compile=`echo "$ac_compile" | $SED \
9294    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9295    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9296    -e 's:$: $lt_compiler_flag:'`
9297    (eval echo "\"\$as_me:9297: $lt_compile\"" >&5)
9298    (eval "$lt_compile" 2>out/conftest.err)
9299    ac_status=$?
9300    cat out/conftest.err >&5
9301    echo "$as_me:9301: \$? = $ac_status" >&5
9302    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9303    then
9304      # The compiler can only warn and ignore the option if not recognized
9305      # So say no if there are warnings
9306      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9307      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9308      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9309        lt_cv_prog_compiler_c_o=yes
9310      fi
9311    fi
9312    chmod u+w . 2>&5
9313    $rm conftest*
9314    # SGI C++ compiler will create directory out/ii_files/ for
9315    # template instantiation
9316    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9317    $rm out/* && rmdir out
9318    cd ..
9319    rmdir conftest
9320    $rm conftest*
9321
9322 fi
9323 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9324 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9325
9326
9327 hard_links="nottested"
9328 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9329   # do not overwrite the value of need_locks provided by the user
9330   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9331 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9332   hard_links=yes
9333   $rm conftest*
9334   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9335   touch conftest.a
9336   ln conftest.a conftest.b 2>&5 || hard_links=no
9337   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9338   { echo "$as_me:$LINENO: result: $hard_links" >&5
9339 echo "${ECHO_T}$hard_links" >&6; }
9340   if test "$hard_links" = no; then
9341     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9342 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9343     need_locks=warn
9344   fi
9345 else
9346   need_locks=no
9347 fi
9348
9349 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9350 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9351
9352   runpath_var=
9353   allow_undefined_flag=
9354   enable_shared_with_static_runtimes=no
9355   archive_cmds=
9356   archive_expsym_cmds=
9357   old_archive_From_new_cmds=
9358   old_archive_from_expsyms_cmds=
9359   export_dynamic_flag_spec=
9360   whole_archive_flag_spec=
9361   thread_safe_flag_spec=
9362   hardcode_libdir_flag_spec=
9363   hardcode_libdir_flag_spec_ld=
9364   hardcode_libdir_separator=
9365   hardcode_direct=no
9366   hardcode_minus_L=no
9367   hardcode_shlibpath_var=unsupported
9368   link_all_deplibs=unknown
9369   hardcode_automatic=no
9370   module_cmds=
9371   module_expsym_cmds=
9372   always_export_symbols=no
9373   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9374   # include_expsyms should be a list of space-separated symbols to be *always*
9375   # included in the symbol list
9376   include_expsyms=
9377   # exclude_expsyms can be an extended regexp of symbols to exclude
9378   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9379   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9380   # as well as any symbol that contains `d'.
9381   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9382   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9383   # platforms (ab)use it in PIC code, but their linkers get confused if
9384   # the symbol is explicitly referenced.  Since portable code cannot
9385   # rely on this symbol name, it's probably fine to never include it in
9386   # preloaded symbol tables.
9387   extract_expsyms_cmds=
9388   # Just being paranoid about ensuring that cc_basename is set.
9389   for cc_temp in $compiler""; do
9390   case $cc_temp in
9391     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9392     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9393     \-*) ;;
9394     *) break;;
9395   esac
9396 done
9397 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9398
9399   case $host_os in
9400   cygwin* | mingw* | pw32*)
9401     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9402     # When not using gcc, we currently assume that we are using
9403     # Microsoft Visual C++.
9404     if test "$GCC" != yes; then
9405       with_gnu_ld=no
9406     fi
9407     ;;
9408   interix*)
9409     # we just hope/assume this is gcc and not c89 (= MSVC++)
9410     with_gnu_ld=yes
9411     ;;
9412   openbsd*)
9413     with_gnu_ld=no
9414     ;;
9415   esac
9416
9417   ld_shlibs=yes
9418   if test "$with_gnu_ld" = yes; then
9419     # If archive_cmds runs LD, not CC, wlarc should be empty
9420     wlarc='${wl}'
9421
9422     # Set some defaults for GNU ld with shared library support. These
9423     # are reset later if shared libraries are not supported. Putting them
9424     # here allows them to be overridden if necessary.
9425     runpath_var=LD_RUN_PATH
9426     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9427     export_dynamic_flag_spec='${wl}--export-dynamic'
9428     # ancient GNU ld didn't support --whole-archive et. al.
9429     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9430         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9431       else
9432         whole_archive_flag_spec=
9433     fi
9434     supports_anon_versioning=no
9435     case `$LD -v 2>/dev/null` in
9436       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9437       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9438       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9439       *\ 2.11.*) ;; # other 2.11 versions
9440       *) supports_anon_versioning=yes ;;
9441     esac
9442
9443     # See if GNU ld supports shared libraries.
9444     case $host_os in
9445     aix3* | aix4* | aix5*)
9446       # On AIX/PPC, the GNU linker is very broken
9447       if test "$host_cpu" != ia64; then
9448         ld_shlibs=no
9449         cat <<EOF 1>&2
9450
9451 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9452 *** to be unable to reliably create shared libraries on AIX.
9453 *** Therefore, libtool is disabling shared libraries support.  If you
9454 *** really care for shared libraries, you may want to modify your PATH
9455 *** so that a non-GNU linker is found, and then restart.
9456
9457 EOF
9458       fi
9459       ;;
9460
9461     amigaos*)
9462       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)'
9463       hardcode_libdir_flag_spec='-L$libdir'
9464       hardcode_minus_L=yes
9465
9466       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9467       # that the semantics of dynamic libraries on AmigaOS, at least up
9468       # to version 4, is to share data among multiple programs linked
9469       # with the same dynamic library.  Since this doesn't match the
9470       # behavior of shared libraries on other platforms, we can't use
9471       # them.
9472       ld_shlibs=no
9473       ;;
9474
9475     beos*)
9476       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9477         allow_undefined_flag=unsupported
9478         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9479         # support --undefined.  This deserves some investigation.  FIXME
9480         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9481       else
9482         ld_shlibs=no
9483       fi
9484       ;;
9485
9486     cygwin* | mingw* | pw32*)
9487       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9488       # as there is no search path for DLLs.
9489       hardcode_libdir_flag_spec='-L$libdir'
9490       allow_undefined_flag=unsupported
9491       always_export_symbols=no
9492       enable_shared_with_static_runtimes=yes
9493       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9494
9495       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9496         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9497         # If the export-symbols file already is a .def file (1st line
9498         # is EXPORTS), use it as is; otherwise, prepend...
9499         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9500           cp $export_symbols $output_objdir/$soname.def;
9501         else
9502           echo EXPORTS > $output_objdir/$soname.def;
9503           cat $export_symbols >> $output_objdir/$soname.def;
9504         fi~
9505         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9506       else
9507         ld_shlibs=no
9508       fi
9509       ;;
9510
9511     interix3*)
9512       hardcode_direct=no
9513       hardcode_shlibpath_var=no
9514       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9515       export_dynamic_flag_spec='${wl}-E'
9516       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9517       # Instead, shared libraries are loaded at an image base (0x10000000 by
9518       # default) and relocated if they conflict, which is a slow very memory
9519       # consuming and fragmenting process.  To avoid this, we pick a random,
9520       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9521       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9522       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9523       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'
9524       ;;
9525
9526     linux* | k*bsd*-gnu)
9527       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9528         tmp_addflag=
9529         case $cc_basename,$host_cpu in
9530         pgcc*)                          # Portland Group C compiler
9531           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'
9532           tmp_addflag=' $pic_flag'
9533           ;;
9534         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9535           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'
9536           tmp_addflag=' $pic_flag -Mnomain' ;;
9537         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9538           tmp_addflag=' -i_dynamic' ;;
9539         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9540           tmp_addflag=' -i_dynamic -nofor_main' ;;
9541         ifc* | ifort*)                  # Intel Fortran compiler
9542           tmp_addflag=' -nofor_main' ;;
9543         esac
9544         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9545
9546         if test $supports_anon_versioning = yes; then
9547           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9548   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9549   $echo "local: *; };" >> $output_objdir/$libname.ver~
9550           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9551         fi
9552         link_all_deplibs=no
9553       else
9554         ld_shlibs=no
9555       fi
9556       ;;
9557
9558     netbsd* | netbsdelf*-gnu)
9559       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9560         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9561         wlarc=
9562       else
9563         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9564         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9565       fi
9566       ;;
9567
9568     solaris*)
9569       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9570         ld_shlibs=no
9571         cat <<EOF 1>&2
9572
9573 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9574 *** create shared libraries on Solaris systems.  Therefore, libtool
9575 *** is disabling shared libraries support.  We urge you to upgrade GNU
9576 *** binutils to release 2.9.1 or newer.  Another option is to modify
9577 *** your PATH or compiler configuration so that the native linker is
9578 *** used, and then restart.
9579
9580 EOF
9581       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9582         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9583         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9584       else
9585         ld_shlibs=no
9586       fi
9587       ;;
9588
9589     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9590       case `$LD -v 2>&1` in
9591         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9592         ld_shlibs=no
9593         cat <<_LT_EOF 1>&2
9594
9595 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9596 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9597 *** is disabling shared libraries support.  We urge you to upgrade GNU
9598 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9599 *** your PATH or compiler configuration so that the native linker is
9600 *** used, and then restart.
9601
9602 _LT_EOF
9603         ;;
9604         *)
9605           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9606             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9607             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9608             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9609           else
9610             ld_shlibs=no
9611           fi
9612         ;;
9613       esac
9614       ;;
9615
9616     sunos4*)
9617       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9618       wlarc=
9619       hardcode_direct=yes
9620       hardcode_shlibpath_var=no
9621       ;;
9622
9623     *)
9624       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9625         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9626         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9627       else
9628         ld_shlibs=no
9629       fi
9630       ;;
9631     esac
9632
9633     if test "$ld_shlibs" = no; then
9634       runpath_var=
9635       hardcode_libdir_flag_spec=
9636       export_dynamic_flag_spec=
9637       whole_archive_flag_spec=
9638     fi
9639   else
9640     # PORTME fill in a description of your system's linker (not GNU ld)
9641     case $host_os in
9642     aix3*)
9643       allow_undefined_flag=unsupported
9644       always_export_symbols=yes
9645       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'
9646       # Note: this linker hardcodes the directories in LIBPATH if there
9647       # are no directories specified by -L.
9648       hardcode_minus_L=yes
9649       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9650         # Neither direct hardcoding nor static linking is supported with a
9651         # broken collect2.
9652         hardcode_direct=unsupported
9653       fi
9654       ;;
9655
9656     aix4* | aix5*)
9657       if test "$host_cpu" = ia64; then
9658         # On IA64, the linker does run time linking by default, so we don't
9659         # have to do anything special.
9660         aix_use_runtimelinking=no
9661         exp_sym_flag='-Bexport'
9662         no_entry_flag=""
9663       else
9664         # If we're using GNU nm, then we don't want the "-C" option.
9665         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9666         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9667           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'
9668         else
9669           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'
9670         fi
9671         aix_use_runtimelinking=no
9672
9673         # Test if we are trying to use run time linking or normal
9674         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9675         # need to do runtime linking.
9676         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9677           for ld_flag in $LDFLAGS; do
9678           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9679             aix_use_runtimelinking=yes
9680             break
9681           fi
9682           done
9683           ;;
9684         esac
9685
9686         exp_sym_flag='-bexport'
9687         no_entry_flag='-bnoentry'
9688       fi
9689
9690       # When large executables or shared objects are built, AIX ld can
9691       # have problems creating the table of contents.  If linking a library
9692       # or program results in "error TOC overflow" add -mminimal-toc to
9693       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9694       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9695
9696       archive_cmds=''
9697       hardcode_direct=yes
9698       hardcode_libdir_separator=':'
9699       link_all_deplibs=yes
9700
9701       if test "$GCC" = yes; then
9702         case $host_os in aix4.[012]|aix4.[012].*)
9703         # We only want to do this on AIX 4.2 and lower, the check
9704         # below for broken collect2 doesn't work under 4.3+
9705           collect2name=`${CC} -print-prog-name=collect2`
9706           if test -f "$collect2name" && \
9707            strings "$collect2name" | grep resolve_lib_name >/dev/null
9708           then
9709           # We have reworked collect2
9710           hardcode_direct=yes
9711           else
9712           # We have old collect2
9713           hardcode_direct=unsupported
9714           # It fails to find uninstalled libraries when the uninstalled
9715           # path is not listed in the libpath.  Setting hardcode_minus_L
9716           # to unsupported forces relinking
9717           hardcode_minus_L=yes
9718           hardcode_libdir_flag_spec='-L$libdir'
9719           hardcode_libdir_separator=
9720           fi
9721           ;;
9722         esac
9723         shared_flag='-shared'
9724         if test "$aix_use_runtimelinking" = yes; then
9725           shared_flag="$shared_flag "'${wl}-G'
9726         fi
9727       else
9728         # not using gcc
9729         if test "$host_cpu" = ia64; then
9730         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9731         # chokes on -Wl,-G. The following line is correct:
9732           shared_flag='-G'
9733         else
9734           if test "$aix_use_runtimelinking" = yes; then
9735             shared_flag='${wl}-G'
9736           else
9737             shared_flag='${wl}-bM:SRE'
9738           fi
9739         fi
9740       fi
9741
9742       # It seems that -bexpall does not export symbols beginning with
9743       # underscore (_), so it is better to generate a list of symbols to export.
9744       always_export_symbols=yes
9745       if test "$aix_use_runtimelinking" = yes; then
9746         # Warning - without using the other runtime loading flags (-brtl),
9747         # -berok will link without error, but may produce a broken library.
9748         allow_undefined_flag='-berok'
9749        # Determine the default libpath from the value encoded in an empty executable.
9750        cat >conftest.$ac_ext <<_ACEOF
9751 /* confdefs.h.  */
9752 _ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h.  */
9756
9757 int
9758 main ()
9759 {
9760
9761   ;
9762   return 0;
9763 }
9764 _ACEOF
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (ac_try="$ac_link"
9767 case "(($ac_try" in
9768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769   *) ac_try_echo=$ac_try;;
9770 esac
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772   (eval "$ac_link") 2>conftest.er1
9773   ac_status=$?
9774   grep -v '^ *+' conftest.er1 >conftest.err
9775   rm -f conftest.er1
9776   cat conftest.err >&5
9777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778   (exit $ac_status); } &&
9779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9780   { (case "(($ac_try" in
9781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782   *) ac_try_echo=$ac_try;;
9783 esac
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785   (eval "$ac_try") 2>&5
9786   ac_status=$?
9787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788   (exit $ac_status); }; } &&
9789          { ac_try='test -s conftest$ac_exeext'
9790   { (case "(($ac_try" in
9791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792   *) ac_try_echo=$ac_try;;
9793 esac
9794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9795   (eval "$ac_try") 2>&5
9796   ac_status=$?
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); }; }; then
9799
9800 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9801 }'`
9802 # Check for a 64-bit object if we didn't find anything.
9803 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; }
9804 }'`; fi
9805 else
9806   echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9808
9809
9810 fi
9811
9812 rm -f core conftest.err conftest.$ac_objext \
9813       conftest$ac_exeext conftest.$ac_ext
9814 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9815
9816        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9817         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"
9818        else
9819         if test "$host_cpu" = ia64; then
9820           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9821           allow_undefined_flag="-z nodefs"
9822           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"
9823         else
9824          # Determine the default libpath from the value encoded in an empty executable.
9825          cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h.  */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h.  */
9831
9832 int
9833 main ()
9834 {
9835
9836   ;
9837   return 0;
9838 }
9839 _ACEOF
9840 rm -f conftest.$ac_objext conftest$ac_exeext
9841 if { (ac_try="$ac_link"
9842 case "(($ac_try" in
9843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844   *) ac_try_echo=$ac_try;;
9845 esac
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847   (eval "$ac_link") 2>conftest.er1
9848   ac_status=$?
9849   grep -v '^ *+' conftest.er1 >conftest.err
9850   rm -f conftest.er1
9851   cat conftest.err >&5
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); } &&
9854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9855   { (case "(($ac_try" in
9856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857   *) ac_try_echo=$ac_try;;
9858 esac
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860   (eval "$ac_try") 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; } &&
9864          { ac_try='test -s conftest$ac_exeext'
9865   { (case "(($ac_try" in
9866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867   *) ac_try_echo=$ac_try;;
9868 esac
9869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870   (eval "$ac_try") 2>&5
9871   ac_status=$?
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); }; }; then
9874
9875 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9876 }'`
9877 # Check for a 64-bit object if we didn't find anything.
9878 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; }
9879 }'`; fi
9880 else
9881   echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9883
9884
9885 fi
9886
9887 rm -f core conftest.err conftest.$ac_objext \
9888       conftest$ac_exeext conftest.$ac_ext
9889 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9890
9891          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9892           # Warning - without using the other run time loading flags,
9893           # -berok will link without error, but may produce a broken library.
9894           no_undefined_flag=' ${wl}-bernotok'
9895           allow_undefined_flag=' ${wl}-berok'
9896           # Exported symbols can be pulled into shared objects from archives
9897           whole_archive_flag_spec='$convenience'
9898           archive_cmds_need_lc=yes
9899           # This is similar to how AIX traditionally builds its shared libraries.
9900           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'
9901         fi
9902       fi
9903       ;;
9904
9905     amigaos*)
9906       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)'
9907       hardcode_libdir_flag_spec='-L$libdir'
9908       hardcode_minus_L=yes
9909       # see comment about different semantics on the GNU ld section
9910       ld_shlibs=no
9911       ;;
9912
9913     bsdi[45]*)
9914       export_dynamic_flag_spec=-rdynamic
9915       ;;
9916
9917     cygwin* | mingw* | pw32*)
9918       # When not using gcc, we currently assume that we are using
9919       # Microsoft Visual C++.
9920       # hardcode_libdir_flag_spec is actually meaningless, as there is
9921       # no search path for DLLs.
9922       hardcode_libdir_flag_spec=' '
9923       allow_undefined_flag=unsupported
9924       # Tell ltmain to make .lib files, not .a files.
9925       libext=lib
9926       # Tell ltmain to make .dll files, not .so files.
9927       shrext_cmds=".dll"
9928       # FIXME: Setting linknames here is a bad hack.
9929       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9930       # The linker will automatically build a .lib file if we build a DLL.
9931       old_archive_From_new_cmds='true'
9932       # FIXME: Should let the user specify the lib program.
9933       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9934       fix_srcfile_path='`cygpath -w "$srcfile"`'
9935       enable_shared_with_static_runtimes=yes
9936       ;;
9937
9938     darwin* | rhapsody*)
9939       case $host_os in
9940         rhapsody* | darwin1.[012])
9941          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9942          ;;
9943        *) # Darwin 1.3 on
9944          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9945            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9946          else
9947            case ${MACOSX_DEPLOYMENT_TARGET} in
9948              10.[012])
9949                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9950                ;;
9951              10.*)
9952                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9953                ;;
9954            esac
9955          fi
9956          ;;
9957       esac
9958       archive_cmds_need_lc=no
9959       hardcode_direct=no
9960       hardcode_automatic=yes
9961       hardcode_shlibpath_var=unsupported
9962       whole_archive_flag_spec=''
9963       link_all_deplibs=yes
9964     if test "$GCC" = yes ; then
9965         output_verbose_link_cmd='echo'
9966         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9967       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9968       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9969       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}'
9970       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}'
9971     else
9972       case $cc_basename in
9973         xlc*)
9974          output_verbose_link_cmd='echo'
9975          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9976          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9977           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9978          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}'
9979           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}'
9980           ;;
9981        *)
9982          ld_shlibs=no
9983           ;;
9984       esac
9985     fi
9986       ;;
9987
9988     dgux*)
9989       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9990       hardcode_libdir_flag_spec='-L$libdir'
9991       hardcode_shlibpath_var=no
9992       ;;
9993
9994     freebsd1*)
9995       ld_shlibs=no
9996       ;;
9997
9998     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9999     # support.  Future versions do this automatically, but an explicit c++rt0.o
10000     # does not break anything, and helps significantly (at the cost of a little
10001     # extra space).
10002     freebsd2.2*)
10003       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10004       hardcode_libdir_flag_spec='-R$libdir'
10005       hardcode_direct=yes
10006       hardcode_shlibpath_var=no
10007       ;;
10008
10009     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10010     freebsd2*)
10011       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10012       hardcode_direct=yes
10013       hardcode_minus_L=yes
10014       hardcode_shlibpath_var=no
10015       ;;
10016
10017     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10018     freebsd* | dragonfly*)
10019       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10020       hardcode_libdir_flag_spec='-R$libdir'
10021       hardcode_direct=yes
10022       hardcode_shlibpath_var=no
10023       ;;
10024
10025     hpux9*)
10026       if test "$GCC" = yes; then
10027         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'
10028       else
10029         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'
10030       fi
10031       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10032       hardcode_libdir_separator=:
10033       hardcode_direct=yes
10034
10035       # hardcode_minus_L: Not really in the search PATH,
10036       # but as the default location of the library.
10037       hardcode_minus_L=yes
10038       export_dynamic_flag_spec='${wl}-E'
10039       ;;
10040
10041     hpux10*)
10042       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10043         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10044       else
10045         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10046       fi
10047       if test "$with_gnu_ld" = no; then
10048         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10049         hardcode_libdir_separator=:
10050
10051         hardcode_direct=yes
10052         export_dynamic_flag_spec='${wl}-E'
10053
10054         # hardcode_minus_L: Not really in the search PATH,
10055         # but as the default location of the library.
10056         hardcode_minus_L=yes
10057       fi
10058       ;;
10059
10060     hpux11*)
10061       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10062         case $host_cpu in
10063         hppa*64*)
10064           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10065           ;;
10066         ia64*)
10067           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10068           ;;
10069         *)
10070           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10071           ;;
10072         esac
10073       else
10074         case $host_cpu in
10075         hppa*64*)
10076           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10077           ;;
10078         ia64*)
10079           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10080           ;;
10081         *)
10082           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10083           ;;
10084         esac
10085       fi
10086       if test "$with_gnu_ld" = no; then
10087         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10088         hardcode_libdir_separator=:
10089
10090         case $host_cpu in
10091         hppa*64*|ia64*)
10092           hardcode_libdir_flag_spec_ld='+b $libdir'
10093           hardcode_direct=no
10094           hardcode_shlibpath_var=no
10095           ;;
10096         *)
10097           hardcode_direct=yes
10098           export_dynamic_flag_spec='${wl}-E'
10099
10100           # hardcode_minus_L: Not really in the search PATH,
10101           # but as the default location of the library.
10102           hardcode_minus_L=yes
10103           ;;
10104         esac
10105       fi
10106       ;;
10107
10108     irix5* | irix6* | nonstopux*)
10109       if test "$GCC" = yes; then
10110         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'
10111       else
10112         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'
10113         hardcode_libdir_flag_spec_ld='-rpath $libdir'
10114       fi
10115       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10116       hardcode_libdir_separator=:
10117       link_all_deplibs=yes
10118       ;;
10119
10120     netbsd* | netbsdelf*-gnu)
10121       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10122         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10123       else
10124         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10125       fi
10126       hardcode_libdir_flag_spec='-R$libdir'
10127       hardcode_direct=yes
10128       hardcode_shlibpath_var=no
10129       ;;
10130
10131     newsos6)
10132       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10133       hardcode_direct=yes
10134       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10135       hardcode_libdir_separator=:
10136       hardcode_shlibpath_var=no
10137       ;;
10138
10139     openbsd*)
10140       hardcode_direct=yes
10141       hardcode_shlibpath_var=no
10142       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10143         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10144         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10145         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10146         export_dynamic_flag_spec='${wl}-E'
10147       else
10148        case $host_os in
10149          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10150            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10151            hardcode_libdir_flag_spec='-R$libdir'
10152            ;;
10153          *)
10154            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10155            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10156            ;;
10157        esac
10158       fi
10159       ;;
10160
10161     os2*)
10162       hardcode_libdir_flag_spec='-L$libdir'
10163       hardcode_minus_L=yes
10164       allow_undefined_flag=unsupported
10165       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'
10166       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10167       ;;
10168
10169     osf3*)
10170       if test "$GCC" = yes; then
10171         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10172         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'
10173       else
10174         allow_undefined_flag=' -expect_unresolved \*'
10175         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'
10176       fi
10177       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10178       hardcode_libdir_separator=:
10179       ;;
10180
10181     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10182       if test "$GCC" = yes; then
10183         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10184         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'
10185         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10186       else
10187         allow_undefined_flag=' -expect_unresolved \*'
10188         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'
10189         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10190         $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'
10191
10192         # Both c and cxx compiler support -rpath directly
10193         hardcode_libdir_flag_spec='-rpath $libdir'
10194       fi
10195       hardcode_libdir_separator=:
10196       ;;
10197
10198     solaris*)
10199       no_undefined_flag=' -z text'
10200       if test "$GCC" = yes; then
10201         wlarc='${wl}'
10202         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10203         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10204           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10205       else
10206         wlarc=''
10207         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10209         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10210       fi
10211       hardcode_libdir_flag_spec='-R$libdir'
10212       hardcode_shlibpath_var=no
10213       case $host_os in
10214       solaris2.[0-5] | solaris2.[0-5].*) ;;
10215       *)
10216         # The compiler driver will combine linker options so we
10217         # cannot just pass the convience library names through
10218         # without $wl, iff we do not link with $LD.
10219         # Luckily, gcc supports the same syntax we need for Sun Studio.
10220         # Supported since Solaris 2.6 (maybe 2.5.1?)
10221         case $wlarc in
10222         '')
10223           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10224         *)
10225           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' ;;
10226         esac ;;
10227       esac
10228       link_all_deplibs=yes
10229       ;;
10230
10231     sunos4*)
10232       if test "x$host_vendor" = xsequent; then
10233         # Use $CC to link under sequent, because it throws in some extra .o
10234         # files that make .init and .fini sections work.
10235         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10236       else
10237         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10238       fi
10239       hardcode_libdir_flag_spec='-L$libdir'
10240       hardcode_direct=yes
10241       hardcode_minus_L=yes
10242       hardcode_shlibpath_var=no
10243       ;;
10244
10245     sysv4)
10246       case $host_vendor in
10247         sni)
10248           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10249           hardcode_direct=yes # is this really true???
10250         ;;
10251         siemens)
10252           ## LD is ld it makes a PLAMLIB
10253           ## CC just makes a GrossModule.
10254           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10255           reload_cmds='$CC -r -o $output$reload_objs'
10256           hardcode_direct=no
10257         ;;
10258         motorola)
10259           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10260           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10261         ;;
10262       esac
10263       runpath_var='LD_RUN_PATH'
10264       hardcode_shlibpath_var=no
10265       ;;
10266
10267     sysv4.3*)
10268       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10269       hardcode_shlibpath_var=no
10270       export_dynamic_flag_spec='-Bexport'
10271       ;;
10272
10273     sysv4*MP*)
10274       if test -d /usr/nec; then
10275         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10276         hardcode_shlibpath_var=no
10277         runpath_var=LD_RUN_PATH
10278         hardcode_runpath_var=yes
10279         ld_shlibs=yes
10280       fi
10281       ;;
10282
10283     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10284       no_undefined_flag='${wl}-z,text'
10285       archive_cmds_need_lc=no
10286       hardcode_shlibpath_var=no
10287       runpath_var='LD_RUN_PATH'
10288
10289       if test "$GCC" = yes; then
10290         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10291         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10292       else
10293         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10294         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10295       fi
10296       ;;
10297
10298     sysv5* | sco3.2v5* | sco5v6*)
10299       # Note: We can NOT use -z defs as we might desire, because we do not
10300       # link with -lc, and that would cause any symbols used from libc to
10301       # always be unresolved, which means just about no library would
10302       # ever link correctly.  If we're not using GNU ld we use -z text
10303       # though, which does catch some bad symbols but isn't as heavy-handed
10304       # as -z defs.
10305       no_undefined_flag='${wl}-z,text'
10306       allow_undefined_flag='${wl}-z,nodefs'
10307       archive_cmds_need_lc=no
10308       hardcode_shlibpath_var=no
10309       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10310       hardcode_libdir_separator=':'
10311       link_all_deplibs=yes
10312       export_dynamic_flag_spec='${wl}-Bexport'
10313       runpath_var='LD_RUN_PATH'
10314
10315       if test "$GCC" = yes; then
10316         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10317         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10318       else
10319         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10320         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10321       fi
10322       ;;
10323
10324     uts4*)
10325       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10326       hardcode_libdir_flag_spec='-L$libdir'
10327       hardcode_shlibpath_var=no
10328       ;;
10329
10330     *)
10331       ld_shlibs=no
10332       ;;
10333     esac
10334   fi
10335
10336 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10337 echo "${ECHO_T}$ld_shlibs" >&6; }
10338 test "$ld_shlibs" = no && can_build_shared=no
10339
10340 #
10341 # Do we need to explicitly link libc?
10342 #
10343 case "x$archive_cmds_need_lc" in
10344 x|xyes)
10345   # Assume -lc should be added
10346   archive_cmds_need_lc=yes
10347
10348   if test "$enable_shared" = yes && test "$GCC" = yes; then
10349     case $archive_cmds in
10350     *'~'*)
10351       # FIXME: we may have to deal with multi-command sequences.
10352       ;;
10353     '$CC '*)
10354       # Test whether the compiler implicitly links with -lc since on some
10355       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10356       # to ld, don't add -lc before -lgcc.
10357       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10358 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10359       $rm conftest*
10360       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10361
10362       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10363   (eval $ac_compile) 2>&5
10364   ac_status=$?
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); } 2>conftest.err; then
10367         soname=conftest
10368         lib=conftest
10369         libobjs=conftest.$ac_objext
10370         deplibs=
10371         wl=$lt_prog_compiler_wl
10372         pic_flag=$lt_prog_compiler_pic
10373         compiler_flags=-v
10374         linker_flags=-v
10375         verstring=
10376         output_objdir=.
10377         libname=conftest
10378         lt_save_allow_undefined_flag=$allow_undefined_flag
10379         allow_undefined_flag=
10380         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10381   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10382   ac_status=$?
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); }
10385         then
10386           archive_cmds_need_lc=no
10387         else
10388           archive_cmds_need_lc=yes
10389         fi
10390         allow_undefined_flag=$lt_save_allow_undefined_flag
10391       else
10392         cat conftest.err 1>&5
10393       fi
10394       $rm conftest*
10395       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10396 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10397       ;;
10398     esac
10399   fi
10400   ;;
10401 esac
10402
10403 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10404 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10405 library_names_spec=
10406 libname_spec='lib$name'
10407 soname_spec=
10408 shrext_cmds=".so"
10409 postinstall_cmds=
10410 postuninstall_cmds=
10411 finish_cmds=
10412 finish_eval=
10413 shlibpath_var=
10414 shlibpath_overrides_runpath=unknown
10415 version_type=none
10416 dynamic_linker="$host_os ld.so"
10417 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10418 if test "$GCC" = yes; then
10419   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10420   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10421     # if the path contains ";" then we assume it to be the separator
10422     # otherwise default to the standard path separator (i.e. ":") - it is
10423     # assumed that no part of a normal pathname contains ";" but that should
10424     # okay in the real world where ";" in dirpaths is itself problematic.
10425     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10426   else
10427     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10428   fi
10429 else
10430   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10431 fi
10432 need_lib_prefix=unknown
10433 hardcode_into_libs=no
10434
10435 # when you set need_version to no, make sure it does not cause -set_version
10436 # flags to be left without arguments
10437 need_version=unknown
10438
10439 case $host_os in
10440 aix3*)
10441   version_type=linux
10442   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10443   shlibpath_var=LIBPATH
10444
10445   # AIX 3 has no versioning support, so we append a major version to the name.
10446   soname_spec='${libname}${release}${shared_ext}$major'
10447   ;;
10448
10449 aix4* | aix5*)
10450   version_type=linux
10451   need_lib_prefix=no
10452   need_version=no
10453   hardcode_into_libs=yes
10454   if test "$host_cpu" = ia64; then
10455     # AIX 5 supports IA64
10456     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10457     shlibpath_var=LD_LIBRARY_PATH
10458   else
10459     # With GCC up to 2.95.x, collect2 would create an import file
10460     # for dependence libraries.  The import file would start with
10461     # the line `#! .'.  This would cause the generated library to
10462     # depend on `.', always an invalid library.  This was fixed in
10463     # development snapshots of GCC prior to 3.0.
10464     case $host_os in
10465       aix4 | aix4.[01] | aix4.[01].*)
10466       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10467            echo ' yes '
10468            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10469         :
10470       else
10471         can_build_shared=no
10472       fi
10473       ;;
10474     esac
10475     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10476     # soname into executable. Probably we can add versioning support to
10477     # collect2, so additional links can be useful in future.
10478     if test "$aix_use_runtimelinking" = yes; then
10479       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10480       # instead of lib<name>.a to let people know that these are not
10481       # typical AIX shared libraries.
10482       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10483     else
10484       # We preserve .a as extension for shared libraries through AIX4.2
10485       # and later when we are not doing run time linking.
10486       library_names_spec='${libname}${release}.a $libname.a'
10487       soname_spec='${libname}${release}${shared_ext}$major'
10488     fi
10489     shlibpath_var=LIBPATH
10490   fi
10491   ;;
10492
10493 amigaos*)
10494   library_names_spec='$libname.ixlibrary $libname.a'
10495   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10496   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'
10497   ;;
10498
10499 beos*)
10500   library_names_spec='${libname}${shared_ext}'
10501   dynamic_linker="$host_os ld.so"
10502   shlibpath_var=LIBRARY_PATH
10503   ;;
10504
10505 bsdi[45]*)
10506   version_type=linux
10507   need_version=no
10508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509   soname_spec='${libname}${release}${shared_ext}$major'
10510   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10511   shlibpath_var=LD_LIBRARY_PATH
10512   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10513   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10514   # the default ld.so.conf also contains /usr/contrib/lib and
10515   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10516   # libtool to hard-code these into programs
10517   ;;
10518
10519 cygwin* | mingw* | pw32*)
10520   version_type=windows
10521   shrext_cmds=".dll"
10522   need_version=no
10523   need_lib_prefix=no
10524
10525   case $GCC,$host_os in
10526   yes,cygwin* | yes,mingw* | yes,pw32*)
10527     library_names_spec='$libname.dll.a'
10528     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10529     postinstall_cmds='base_file=`basename \${file}`~
10530       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10531       dldir=$destdir/`dirname \$dlpath`~
10532       test -d \$dldir || mkdir -p \$dldir~
10533       $install_prog $dir/$dlname \$dldir/$dlname~
10534       chmod a+x \$dldir/$dlname'
10535     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10536       dlpath=$dir/\$dldll~
10537        $rm \$dlpath'
10538     shlibpath_overrides_runpath=yes
10539
10540     case $host_os in
10541     cygwin*)
10542       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10543       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10544       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10545       ;;
10546     mingw*)
10547       # MinGW DLLs use traditional 'lib' prefix
10548       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10549       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10550       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10551         # It is most probably a Windows format PATH printed by
10552         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10553         # path with ; separators, and with drive letters. We can handle the
10554         # drive letters (cygwin fileutils understands them), so leave them,
10555         # especially as we might pass files found there to a mingw objdump,
10556         # which wouldn't understand a cygwinified path. Ahh.
10557         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10558       else
10559         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10560       fi
10561       ;;
10562     pw32*)
10563       # pw32 DLLs use 'pw' prefix rather than 'lib'
10564       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10565       ;;
10566     esac
10567     ;;
10568
10569   *)
10570     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10571     ;;
10572   esac
10573   dynamic_linker='Win32 ld.exe'
10574   # FIXME: first we should search . and the directory the executable is in
10575   shlibpath_var=PATH
10576   ;;
10577
10578 darwin* | rhapsody*)
10579   dynamic_linker="$host_os dyld"
10580   version_type=darwin
10581   need_lib_prefix=no
10582   need_version=no
10583   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10584   soname_spec='${libname}${release}${major}$shared_ext'
10585   shlibpath_overrides_runpath=yes
10586   shlibpath_var=DYLD_LIBRARY_PATH
10587   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10588   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10589   if test "$GCC" = yes; then
10590     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"`
10591   else
10592     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10593   fi
10594   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10595   ;;
10596
10597 dgux*)
10598   version_type=linux
10599   need_lib_prefix=no
10600   need_version=no
10601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10602   soname_spec='${libname}${release}${shared_ext}$major'
10603   shlibpath_var=LD_LIBRARY_PATH
10604   ;;
10605
10606 freebsd1*)
10607   dynamic_linker=no
10608   ;;
10609
10610 freebsd* | dragonfly*)
10611   # DragonFly does not have aout.  When/if they implement a new
10612   # versioning mechanism, adjust this.
10613   if test -x /usr/bin/objformat; then
10614     objformat=`/usr/bin/objformat`
10615   else
10616     case $host_os in
10617     freebsd[123]*) objformat=aout ;;
10618     *) objformat=elf ;;
10619     esac
10620   fi
10621   version_type=freebsd-$objformat
10622   case $version_type in
10623     freebsd-elf*)
10624       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10625       need_version=no
10626       need_lib_prefix=no
10627       ;;
10628     freebsd-*)
10629       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10630       need_version=yes
10631       ;;
10632   esac
10633   shlibpath_var=LD_LIBRARY_PATH
10634   case $host_os in
10635   freebsd2*)
10636     shlibpath_overrides_runpath=yes
10637     ;;
10638   freebsd3.[01]* | freebsdelf3.[01]*)
10639     shlibpath_overrides_runpath=yes
10640     hardcode_into_libs=yes
10641     ;;
10642   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10643   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10644     shlibpath_overrides_runpath=no
10645     hardcode_into_libs=yes
10646     ;;
10647   freebsd*) # from 4.6 on
10648     shlibpath_overrides_runpath=yes
10649     hardcode_into_libs=yes
10650     ;;
10651   esac
10652   ;;
10653
10654 gnu*)
10655   version_type=linux
10656   need_lib_prefix=no
10657   need_version=no
10658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10659   soname_spec='${libname}${release}${shared_ext}$major'
10660   shlibpath_var=LD_LIBRARY_PATH
10661   hardcode_into_libs=yes
10662   ;;
10663
10664 hpux9* | hpux10* | hpux11*)
10665   # Give a soname corresponding to the major version so that dld.sl refuses to
10666   # link against other versions.
10667   version_type=sunos
10668   need_lib_prefix=no
10669   need_version=no
10670   case $host_cpu in
10671   ia64*)
10672     shrext_cmds='.so'
10673     hardcode_into_libs=yes
10674     dynamic_linker="$host_os dld.so"
10675     shlibpath_var=LD_LIBRARY_PATH
10676     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10677     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10678     soname_spec='${libname}${release}${shared_ext}$major'
10679     if test "X$HPUX_IA64_MODE" = X32; then
10680       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10681     else
10682       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10683     fi
10684     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10685     ;;
10686    hppa*64*)
10687      shrext_cmds='.sl'
10688      hardcode_into_libs=yes
10689      dynamic_linker="$host_os dld.sl"
10690      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10691      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10692      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693      soname_spec='${libname}${release}${shared_ext}$major'
10694      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10695      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10696      ;;
10697    *)
10698     shrext_cmds='.sl'
10699     dynamic_linker="$host_os dld.sl"
10700     shlibpath_var=SHLIB_PATH
10701     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10702     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703     soname_spec='${libname}${release}${shared_ext}$major'
10704     ;;
10705   esac
10706   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10707   postinstall_cmds='chmod 555 $lib'
10708   ;;
10709
10710 interix3*)
10711   version_type=linux
10712   need_lib_prefix=no
10713   need_version=no
10714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10715   soname_spec='${libname}${release}${shared_ext}$major'
10716   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10717   shlibpath_var=LD_LIBRARY_PATH
10718   shlibpath_overrides_runpath=no
10719   hardcode_into_libs=yes
10720   ;;
10721
10722 irix5* | irix6* | nonstopux*)
10723   case $host_os in
10724     nonstopux*) version_type=nonstopux ;;
10725     *)
10726         if test "$lt_cv_prog_gnu_ld" = yes; then
10727                 version_type=linux
10728         else
10729                 version_type=irix
10730         fi ;;
10731   esac
10732   need_lib_prefix=no
10733   need_version=no
10734   soname_spec='${libname}${release}${shared_ext}$major'
10735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10736   case $host_os in
10737   irix5* | nonstopux*)
10738     libsuff= shlibsuff=
10739     ;;
10740   *)
10741     case $LD in # libtool.m4 will add one of these switches to LD
10742     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10743       libsuff= shlibsuff= libmagic=32-bit;;
10744     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10745       libsuff=32 shlibsuff=N32 libmagic=N32;;
10746     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10747       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10748     *) libsuff= shlibsuff= libmagic=never-match;;
10749     esac
10750     ;;
10751   esac
10752   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10753   shlibpath_overrides_runpath=no
10754   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10755   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10756   hardcode_into_libs=yes
10757   ;;
10758
10759 # No shared lib support for Linux oldld, aout, or coff.
10760 linux*oldld* | linux*aout* | linux*coff*)
10761   dynamic_linker=no
10762   ;;
10763
10764 # This must be Linux ELF.
10765 linux* | k*bsd*-gnu)
10766   version_type=linux
10767   need_lib_prefix=no
10768   need_version=no
10769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10770   soname_spec='${libname}${release}${shared_ext}$major'
10771   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10772   shlibpath_var=LD_LIBRARY_PATH
10773   shlibpath_overrides_runpath=no
10774   # This implies no fast_install, which is unacceptable.
10775   # Some rework will be needed to allow for fast_install
10776   # before this can be enabled.
10777   hardcode_into_libs=yes
10778
10779   # Append ld.so.conf contents to the search path
10780   if test -f /etc/ld.so.conf; then
10781     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' ' '`
10782     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10783   fi
10784
10785   # We used to test for /lib/ld.so.1 and disable shared libraries on
10786   # powerpc, because MkLinux only supported shared libraries with the
10787   # GNU dynamic linker.  Since this was broken with cross compilers,
10788   # most powerpc-linux boxes support dynamic linking these days and
10789   # people can always --disable-shared, the test was removed, and we
10790   # assume the GNU/Linux dynamic linker is in use.
10791   dynamic_linker='GNU/Linux ld.so'
10792   ;;
10793
10794 netbsdelf*-gnu)
10795   version_type=linux
10796   need_lib_prefix=no
10797   need_version=no
10798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10799   soname_spec='${libname}${release}${shared_ext}$major'
10800   shlibpath_var=LD_LIBRARY_PATH
10801   shlibpath_overrides_runpath=no
10802   hardcode_into_libs=yes
10803   dynamic_linker='NetBSD ld.elf_so'
10804   ;;
10805
10806 netbsd*)
10807   version_type=sunos
10808   need_lib_prefix=no
10809   need_version=no
10810   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10811     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10812     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10813     dynamic_linker='NetBSD (a.out) ld.so'
10814   else
10815     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10816     soname_spec='${libname}${release}${shared_ext}$major'
10817     dynamic_linker='NetBSD ld.elf_so'
10818   fi
10819   shlibpath_var=LD_LIBRARY_PATH
10820   shlibpath_overrides_runpath=yes
10821   hardcode_into_libs=yes
10822   ;;
10823
10824 newsos6)
10825   version_type=linux
10826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10827   shlibpath_var=LD_LIBRARY_PATH
10828   shlibpath_overrides_runpath=yes
10829   ;;
10830
10831 nto-qnx*)
10832   version_type=linux
10833   need_lib_prefix=no
10834   need_version=no
10835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10836   soname_spec='${libname}${release}${shared_ext}$major'
10837   shlibpath_var=LD_LIBRARY_PATH
10838   shlibpath_overrides_runpath=yes
10839   ;;
10840
10841 openbsd*)
10842   version_type=sunos
10843   sys_lib_dlsearch_path_spec="/usr/lib"
10844   need_lib_prefix=no
10845   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10846   case $host_os in
10847     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10848     *)                         need_version=no  ;;
10849   esac
10850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10851   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10852   shlibpath_var=LD_LIBRARY_PATH
10853   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10854     case $host_os in
10855       openbsd2.[89] | openbsd2.[89].*)
10856         shlibpath_overrides_runpath=no
10857         ;;
10858       *)
10859         shlibpath_overrides_runpath=yes
10860         ;;
10861       esac
10862   else
10863     shlibpath_overrides_runpath=yes
10864   fi
10865   ;;
10866
10867 os2*)
10868   libname_spec='$name'
10869   shrext_cmds=".dll"
10870   need_lib_prefix=no
10871   library_names_spec='$libname${shared_ext} $libname.a'
10872   dynamic_linker='OS/2 ld.exe'
10873   shlibpath_var=LIBPATH
10874   ;;
10875
10876 osf3* | osf4* | osf5*)
10877   version_type=osf
10878   need_lib_prefix=no
10879   need_version=no
10880   soname_spec='${libname}${release}${shared_ext}$major'
10881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10882   shlibpath_var=LD_LIBRARY_PATH
10883   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10884   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10885   ;;
10886
10887 solaris*)
10888   version_type=linux
10889   need_lib_prefix=no
10890   need_version=no
10891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892   soname_spec='${libname}${release}${shared_ext}$major'
10893   shlibpath_var=LD_LIBRARY_PATH
10894   shlibpath_overrides_runpath=yes
10895   hardcode_into_libs=yes
10896   # ldd complains unless libraries are executable
10897   postinstall_cmds='chmod +x $lib'
10898   ;;
10899
10900 sunos4*)
10901   version_type=sunos
10902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10903   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10904   shlibpath_var=LD_LIBRARY_PATH
10905   shlibpath_overrides_runpath=yes
10906   if test "$with_gnu_ld" = yes; then
10907     need_lib_prefix=no
10908   fi
10909   need_version=yes
10910   ;;
10911
10912 sysv4 | sysv4.3*)
10913   version_type=linux
10914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10915   soname_spec='${libname}${release}${shared_ext}$major'
10916   shlibpath_var=LD_LIBRARY_PATH
10917   case $host_vendor in
10918     sni)
10919       shlibpath_overrides_runpath=no
10920       need_lib_prefix=no
10921       export_dynamic_flag_spec='${wl}-Blargedynsym'
10922       runpath_var=LD_RUN_PATH
10923       ;;
10924     siemens)
10925       need_lib_prefix=no
10926       ;;
10927     motorola)
10928       need_lib_prefix=no
10929       need_version=no
10930       shlibpath_overrides_runpath=no
10931       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10932       ;;
10933   esac
10934   ;;
10935
10936 sysv4*MP*)
10937   if test -d /usr/nec ;then
10938     version_type=linux
10939     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10940     soname_spec='$libname${shared_ext}.$major'
10941     shlibpath_var=LD_LIBRARY_PATH
10942   fi
10943   ;;
10944
10945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10946   version_type=freebsd-elf
10947   need_lib_prefix=no
10948   need_version=no
10949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10950   soname_spec='${libname}${release}${shared_ext}$major'
10951   shlibpath_var=LD_LIBRARY_PATH
10952   hardcode_into_libs=yes
10953   if test "$with_gnu_ld" = yes; then
10954     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10955     shlibpath_overrides_runpath=no
10956   else
10957     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10958     shlibpath_overrides_runpath=yes
10959     case $host_os in
10960       sco3.2v5*)
10961         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10962         ;;
10963     esac
10964   fi
10965   sys_lib_dlsearch_path_spec='/usr/lib'
10966   ;;
10967
10968 uts4*)
10969   version_type=linux
10970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971   soname_spec='${libname}${release}${shared_ext}$major'
10972   shlibpath_var=LD_LIBRARY_PATH
10973   ;;
10974
10975 *)
10976   dynamic_linker=no
10977   ;;
10978 esac
10979 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10980 echo "${ECHO_T}$dynamic_linker" >&6; }
10981 test "$dynamic_linker" = no && can_build_shared=no
10982
10983 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10984 if test "$GCC" = yes; then
10985   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10986 fi
10987
10988 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10989 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10990 hardcode_action=
10991 if test -n "$hardcode_libdir_flag_spec" || \
10992    test -n "$runpath_var" || \
10993    test "X$hardcode_automatic" = "Xyes" ; then
10994
10995   # We can hardcode non-existant directories.
10996   if test "$hardcode_direct" != no &&
10997      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10998      # have to relink, otherwise we might link with an installed library
10999      # when we should be linking with a yet-to-be-installed one
11000      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11001      test "$hardcode_minus_L" != no; then
11002     # Linking always hardcodes the temporary library directory.
11003     hardcode_action=relink
11004   else
11005     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11006     hardcode_action=immediate
11007   fi
11008 else
11009   # We cannot hardcode anything, or else we can only hardcode existing
11010   # directories.
11011   hardcode_action=unsupported
11012 fi
11013 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11014 echo "${ECHO_T}$hardcode_action" >&6; }
11015
11016 if test "$hardcode_action" = relink; then
11017   # Fast installation is not supported
11018   enable_fast_install=no
11019 elif test "$shlibpath_overrides_runpath" = yes ||
11020      test "$enable_shared" = no; then
11021   # Fast installation is not necessary
11022   enable_fast_install=needless
11023 fi
11024
11025 striplib=
11026 old_striplib=
11027 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11028 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11029 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11030   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11031   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11032   { echo "$as_me:$LINENO: result: yes" >&5
11033 echo "${ECHO_T}yes" >&6; }
11034 else
11035 # FIXME - insert some real tests, host_os isn't really good enough
11036   case $host_os in
11037    darwin*)
11038        if test -n "$STRIP" ; then
11039          striplib="$STRIP -x"
11040          { echo "$as_me:$LINENO: result: yes" >&5
11041 echo "${ECHO_T}yes" >&6; }
11042        else
11043   { echo "$as_me:$LINENO: result: no" >&5
11044 echo "${ECHO_T}no" >&6; }
11045 fi
11046        ;;
11047    *)
11048   { echo "$as_me:$LINENO: result: no" >&5
11049 echo "${ECHO_T}no" >&6; }
11050     ;;
11051   esac
11052 fi
11053
11054 if test "x$enable_dlopen" != xyes; then
11055   enable_dlopen=unknown
11056   enable_dlopen_self=unknown
11057   enable_dlopen_self_static=unknown
11058 else
11059   lt_cv_dlopen=no
11060   lt_cv_dlopen_libs=
11061
11062   case $host_os in
11063   beos*)
11064     lt_cv_dlopen="load_add_on"
11065     lt_cv_dlopen_libs=
11066     lt_cv_dlopen_self=yes
11067     ;;
11068
11069   mingw* | pw32*)
11070     lt_cv_dlopen="LoadLibrary"
11071     lt_cv_dlopen_libs=
11072    ;;
11073
11074   cygwin*)
11075     lt_cv_dlopen="dlopen"
11076     lt_cv_dlopen_libs=
11077    ;;
11078
11079   darwin*)
11080   # if libdl is installed we need to link against it
11081     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11082 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11083 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11084   echo $ECHO_N "(cached) $ECHO_C" >&6
11085 else
11086   ac_check_lib_save_LIBS=$LIBS
11087 LIBS="-ldl  $LIBS"
11088 cat >conftest.$ac_ext <<_ACEOF
11089 /* confdefs.h.  */
11090 _ACEOF
11091 cat confdefs.h >>conftest.$ac_ext
11092 cat >>conftest.$ac_ext <<_ACEOF
11093 /* end confdefs.h.  */
11094
11095 /* Override any GCC internal prototype to avoid an error.
11096    Use char because int might match the return type of a GCC
11097    builtin and then its argument prototype would still apply.  */
11098 #ifdef __cplusplus
11099 extern "C"
11100 #endif
11101 char dlopen ();
11102 int
11103 main ()
11104 {
11105 return dlopen ();
11106   ;
11107   return 0;
11108 }
11109 _ACEOF
11110 rm -f conftest.$ac_objext conftest$ac_exeext
11111 if { (ac_try="$ac_link"
11112 case "(($ac_try" in
11113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114   *) ac_try_echo=$ac_try;;
11115 esac
11116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117   (eval "$ac_link") 2>conftest.er1
11118   ac_status=$?
11119   grep -v '^ *+' conftest.er1 >conftest.err
11120   rm -f conftest.er1
11121   cat conftest.err >&5
11122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123   (exit $ac_status); } &&
11124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11125   { (case "(($ac_try" in
11126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127   *) ac_try_echo=$ac_try;;
11128 esac
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130   (eval "$ac_try") 2>&5
11131   ac_status=$?
11132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133   (exit $ac_status); }; } &&
11134          { ac_try='test -s conftest$ac_exeext'
11135   { (case "(($ac_try" in
11136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137   *) ac_try_echo=$ac_try;;
11138 esac
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140   (eval "$ac_try") 2>&5
11141   ac_status=$?
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); }; }; then
11144   ac_cv_lib_dl_dlopen=yes
11145 else
11146   echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11148
11149         ac_cv_lib_dl_dlopen=no
11150 fi
11151
11152 rm -f core conftest.err conftest.$ac_objext \
11153       conftest$ac_exeext conftest.$ac_ext
11154 LIBS=$ac_check_lib_save_LIBS
11155 fi
11156 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11157 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11158 if test $ac_cv_lib_dl_dlopen = yes; then
11159   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11160 else
11161
11162     lt_cv_dlopen="dyld"
11163     lt_cv_dlopen_libs=
11164     lt_cv_dlopen_self=yes
11165
11166 fi
11167
11168    ;;
11169
11170   *)
11171     { echo "$as_me:$LINENO: checking for shl_load" >&5
11172 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11173 if test "${ac_cv_func_shl_load+set}" = set; then
11174   echo $ECHO_N "(cached) $ECHO_C" >&6
11175 else
11176   cat >conftest.$ac_ext <<_ACEOF
11177 /* confdefs.h.  */
11178 _ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h.  */
11182 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11183    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11184 #define shl_load innocuous_shl_load
11185
11186 /* System header to define __stub macros and hopefully few prototypes,
11187     which can conflict with char shl_load (); below.
11188     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11189     <limits.h> exists even on freestanding compilers.  */
11190
11191 #ifdef __STDC__
11192 # include <limits.h>
11193 #else
11194 # include <assert.h>
11195 #endif
11196
11197 #undef shl_load
11198
11199 /* Override any GCC internal prototype to avoid an error.
11200    Use char because int might match the return type of a GCC
11201    builtin and then its argument prototype would still apply.  */
11202 #ifdef __cplusplus
11203 extern "C"
11204 #endif
11205 char shl_load ();
11206 /* The GNU C library defines this for functions which it implements
11207     to always fail with ENOSYS.  Some functions are actually named
11208     something starting with __ and the normal name is an alias.  */
11209 #if defined __stub_shl_load || defined __stub___shl_load
11210 choke me
11211 #endif
11212
11213 int
11214 main ()
11215 {
11216 return shl_load ();
11217   ;
11218   return 0;
11219 }
11220 _ACEOF
11221 rm -f conftest.$ac_objext conftest$ac_exeext
11222 if { (ac_try="$ac_link"
11223 case "(($ac_try" in
11224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11225   *) ac_try_echo=$ac_try;;
11226 esac
11227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11228   (eval "$ac_link") 2>conftest.er1
11229   ac_status=$?
11230   grep -v '^ *+' conftest.er1 >conftest.err
11231   rm -f conftest.er1
11232   cat conftest.err >&5
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); } &&
11235          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11236   { (case "(($ac_try" in
11237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11238   *) ac_try_echo=$ac_try;;
11239 esac
11240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11241   (eval "$ac_try") 2>&5
11242   ac_status=$?
11243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244   (exit $ac_status); }; } &&
11245          { ac_try='test -s conftest$ac_exeext'
11246   { (case "(($ac_try" in
11247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11248   *) ac_try_echo=$ac_try;;
11249 esac
11250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11251   (eval "$ac_try") 2>&5
11252   ac_status=$?
11253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254   (exit $ac_status); }; }; then
11255   ac_cv_func_shl_load=yes
11256 else
11257   echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11259
11260         ac_cv_func_shl_load=no
11261 fi
11262
11263 rm -f core conftest.err conftest.$ac_objext \
11264       conftest$ac_exeext conftest.$ac_ext
11265 fi
11266 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11267 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11268 if test $ac_cv_func_shl_load = yes; then
11269   lt_cv_dlopen="shl_load"
11270 else
11271   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11272 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11273 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11274   echo $ECHO_N "(cached) $ECHO_C" >&6
11275 else
11276   ac_check_lib_save_LIBS=$LIBS
11277 LIBS="-ldld  $LIBS"
11278 cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h.  */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h.  */
11284
11285 /* Override any GCC internal prototype to avoid an error.
11286    Use char because int might match the return type of a GCC
11287    builtin and then its argument prototype would still apply.  */
11288 #ifdef __cplusplus
11289 extern "C"
11290 #endif
11291 char shl_load ();
11292 int
11293 main ()
11294 {
11295 return shl_load ();
11296   ;
11297   return 0;
11298 }
11299 _ACEOF
11300 rm -f conftest.$ac_objext conftest$ac_exeext
11301 if { (ac_try="$ac_link"
11302 case "(($ac_try" in
11303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11304   *) ac_try_echo=$ac_try;;
11305 esac
11306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11307   (eval "$ac_link") 2>conftest.er1
11308   ac_status=$?
11309   grep -v '^ *+' conftest.er1 >conftest.err
11310   rm -f conftest.er1
11311   cat conftest.err >&5
11312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313   (exit $ac_status); } &&
11314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11315   { (case "(($ac_try" in
11316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317   *) ac_try_echo=$ac_try;;
11318 esac
11319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320   (eval "$ac_try") 2>&5
11321   ac_status=$?
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); }; } &&
11324          { ac_try='test -s conftest$ac_exeext'
11325   { (case "(($ac_try" in
11326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327   *) ac_try_echo=$ac_try;;
11328 esac
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330   (eval "$ac_try") 2>&5
11331   ac_status=$?
11332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333   (exit $ac_status); }; }; then
11334   ac_cv_lib_dld_shl_load=yes
11335 else
11336   echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11338
11339         ac_cv_lib_dld_shl_load=no
11340 fi
11341
11342 rm -f core conftest.err conftest.$ac_objext \
11343       conftest$ac_exeext conftest.$ac_ext
11344 LIBS=$ac_check_lib_save_LIBS
11345 fi
11346 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11347 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11348 if test $ac_cv_lib_dld_shl_load = yes; then
11349   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11350 else
11351   { echo "$as_me:$LINENO: checking for dlopen" >&5
11352 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11353 if test "${ac_cv_func_dlopen+set}" = set; then
11354   echo $ECHO_N "(cached) $ECHO_C" >&6
11355 else
11356   cat >conftest.$ac_ext <<_ACEOF
11357 /* confdefs.h.  */
11358 _ACEOF
11359 cat confdefs.h >>conftest.$ac_ext
11360 cat >>conftest.$ac_ext <<_ACEOF
11361 /* end confdefs.h.  */
11362 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11363    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11364 #define dlopen innocuous_dlopen
11365
11366 /* System header to define __stub macros and hopefully few prototypes,
11367     which can conflict with char dlopen (); below.
11368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11369     <limits.h> exists even on freestanding compilers.  */
11370
11371 #ifdef __STDC__
11372 # include <limits.h>
11373 #else
11374 # include <assert.h>
11375 #endif
11376
11377 #undef dlopen
11378
11379 /* Override any GCC internal prototype to avoid an error.
11380    Use char because int might match the return type of a GCC
11381    builtin and then its argument prototype would still apply.  */
11382 #ifdef __cplusplus
11383 extern "C"
11384 #endif
11385 char dlopen ();
11386 /* The GNU C library defines this for functions which it implements
11387     to always fail with ENOSYS.  Some functions are actually named
11388     something starting with __ and the normal name is an alias.  */
11389 #if defined __stub_dlopen || defined __stub___dlopen
11390 choke me
11391 #endif
11392
11393 int
11394 main ()
11395 {
11396 return dlopen ();
11397   ;
11398   return 0;
11399 }
11400 _ACEOF
11401 rm -f conftest.$ac_objext conftest$ac_exeext
11402 if { (ac_try="$ac_link"
11403 case "(($ac_try" in
11404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405   *) ac_try_echo=$ac_try;;
11406 esac
11407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408   (eval "$ac_link") 2>conftest.er1
11409   ac_status=$?
11410   grep -v '^ *+' conftest.er1 >conftest.err
11411   rm -f conftest.er1
11412   cat conftest.err >&5
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); } &&
11415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11416   { (case "(($ac_try" in
11417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418   *) ac_try_echo=$ac_try;;
11419 esac
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421   (eval "$ac_try") 2>&5
11422   ac_status=$?
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); }; } &&
11425          { ac_try='test -s conftest$ac_exeext'
11426   { (case "(($ac_try" in
11427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428   *) ac_try_echo=$ac_try;;
11429 esac
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431   (eval "$ac_try") 2>&5
11432   ac_status=$?
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); }; }; then
11435   ac_cv_func_dlopen=yes
11436 else
11437   echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11439
11440         ac_cv_func_dlopen=no
11441 fi
11442
11443 rm -f core conftest.err conftest.$ac_objext \
11444       conftest$ac_exeext conftest.$ac_ext
11445 fi
11446 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11447 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11448 if test $ac_cv_func_dlopen = yes; then
11449   lt_cv_dlopen="dlopen"
11450 else
11451   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11452 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11453 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11454   echo $ECHO_N "(cached) $ECHO_C" >&6
11455 else
11456   ac_check_lib_save_LIBS=$LIBS
11457 LIBS="-ldl  $LIBS"
11458 cat >conftest.$ac_ext <<_ACEOF
11459 /* confdefs.h.  */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h.  */
11464
11465 /* Override any GCC internal prototype to avoid an error.
11466    Use char because int might match the return type of a GCC
11467    builtin and then its argument prototype would still apply.  */
11468 #ifdef __cplusplus
11469 extern "C"
11470 #endif
11471 char dlopen ();
11472 int
11473 main ()
11474 {
11475 return dlopen ();
11476   ;
11477   return 0;
11478 }
11479 _ACEOF
11480 rm -f conftest.$ac_objext conftest$ac_exeext
11481 if { (ac_try="$ac_link"
11482 case "(($ac_try" in
11483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484   *) ac_try_echo=$ac_try;;
11485 esac
11486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487   (eval "$ac_link") 2>conftest.er1
11488   ac_status=$?
11489   grep -v '^ *+' conftest.er1 >conftest.err
11490   rm -f conftest.er1
11491   cat conftest.err >&5
11492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493   (exit $ac_status); } &&
11494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11495   { (case "(($ac_try" in
11496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497   *) ac_try_echo=$ac_try;;
11498 esac
11499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500   (eval "$ac_try") 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); }; } &&
11504          { ac_try='test -s conftest$ac_exeext'
11505   { (case "(($ac_try" in
11506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507   *) ac_try_echo=$ac_try;;
11508 esac
11509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510   (eval "$ac_try") 2>&5
11511   ac_status=$?
11512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513   (exit $ac_status); }; }; then
11514   ac_cv_lib_dl_dlopen=yes
11515 else
11516   echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11518
11519         ac_cv_lib_dl_dlopen=no
11520 fi
11521
11522 rm -f core conftest.err conftest.$ac_objext \
11523       conftest$ac_exeext conftest.$ac_ext
11524 LIBS=$ac_check_lib_save_LIBS
11525 fi
11526 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11527 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11528 if test $ac_cv_lib_dl_dlopen = yes; then
11529   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11530 else
11531   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11532 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11533 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11534   echo $ECHO_N "(cached) $ECHO_C" >&6
11535 else
11536   ac_check_lib_save_LIBS=$LIBS
11537 LIBS="-lsvld  $LIBS"
11538 cat >conftest.$ac_ext <<_ACEOF
11539 /* confdefs.h.  */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h.  */
11544
11545 /* Override any GCC internal prototype to avoid an error.
11546    Use char because int might match the return type of a GCC
11547    builtin and then its argument prototype would still apply.  */
11548 #ifdef __cplusplus
11549 extern "C"
11550 #endif
11551 char dlopen ();
11552 int
11553 main ()
11554 {
11555 return dlopen ();
11556   ;
11557   return 0;
11558 }
11559 _ACEOF
11560 rm -f conftest.$ac_objext conftest$ac_exeext
11561 if { (ac_try="$ac_link"
11562 case "(($ac_try" in
11563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564   *) ac_try_echo=$ac_try;;
11565 esac
11566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567   (eval "$ac_link") 2>conftest.er1
11568   ac_status=$?
11569   grep -v '^ *+' conftest.er1 >conftest.err
11570   rm -f conftest.er1
11571   cat conftest.err >&5
11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573   (exit $ac_status); } &&
11574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11575   { (case "(($ac_try" in
11576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577   *) ac_try_echo=$ac_try;;
11578 esac
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580   (eval "$ac_try") 2>&5
11581   ac_status=$?
11582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583   (exit $ac_status); }; } &&
11584          { ac_try='test -s conftest$ac_exeext'
11585   { (case "(($ac_try" in
11586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587   *) ac_try_echo=$ac_try;;
11588 esac
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590   (eval "$ac_try") 2>&5
11591   ac_status=$?
11592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593   (exit $ac_status); }; }; then
11594   ac_cv_lib_svld_dlopen=yes
11595 else
11596   echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11598
11599         ac_cv_lib_svld_dlopen=no
11600 fi
11601
11602 rm -f core conftest.err conftest.$ac_objext \
11603       conftest$ac_exeext conftest.$ac_ext
11604 LIBS=$ac_check_lib_save_LIBS
11605 fi
11606 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11607 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11608 if test $ac_cv_lib_svld_dlopen = yes; then
11609   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11610 else
11611   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11612 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11613 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11614   echo $ECHO_N "(cached) $ECHO_C" >&6
11615 else
11616   ac_check_lib_save_LIBS=$LIBS
11617 LIBS="-ldld  $LIBS"
11618 cat >conftest.$ac_ext <<_ACEOF
11619 /* confdefs.h.  */
11620 _ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h.  */
11624
11625 /* Override any GCC internal prototype to avoid an error.
11626    Use char because int might match the return type of a GCC
11627    builtin and then its argument prototype would still apply.  */
11628 #ifdef __cplusplus
11629 extern "C"
11630 #endif
11631 char dld_link ();
11632 int
11633 main ()
11634 {
11635 return dld_link ();
11636   ;
11637   return 0;
11638 }
11639 _ACEOF
11640 rm -f conftest.$ac_objext conftest$ac_exeext
11641 if { (ac_try="$ac_link"
11642 case "(($ac_try" in
11643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644   *) ac_try_echo=$ac_try;;
11645 esac
11646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11647   (eval "$ac_link") 2>conftest.er1
11648   ac_status=$?
11649   grep -v '^ *+' conftest.er1 >conftest.err
11650   rm -f conftest.er1
11651   cat conftest.err >&5
11652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653   (exit $ac_status); } &&
11654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11655   { (case "(($ac_try" in
11656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657   *) ac_try_echo=$ac_try;;
11658 esac
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660   (eval "$ac_try") 2>&5
11661   ac_status=$?
11662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663   (exit $ac_status); }; } &&
11664          { ac_try='test -s conftest$ac_exeext'
11665   { (case "(($ac_try" in
11666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667   *) ac_try_echo=$ac_try;;
11668 esac
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670   (eval "$ac_try") 2>&5
11671   ac_status=$?
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); }; }; then
11674   ac_cv_lib_dld_dld_link=yes
11675 else
11676   echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.$ac_ext >&5
11678
11679         ac_cv_lib_dld_dld_link=no
11680 fi
11681
11682 rm -f core conftest.err conftest.$ac_objext \
11683       conftest$ac_exeext conftest.$ac_ext
11684 LIBS=$ac_check_lib_save_LIBS
11685 fi
11686 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11687 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11688 if test $ac_cv_lib_dld_dld_link = yes; then
11689   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11690 fi
11691
11692
11693 fi
11694
11695
11696 fi
11697
11698
11699 fi
11700
11701
11702 fi
11703
11704
11705 fi
11706
11707     ;;
11708   esac
11709
11710   if test "x$lt_cv_dlopen" != xno; then
11711     enable_dlopen=yes
11712   else
11713     enable_dlopen=no
11714   fi
11715
11716   case $lt_cv_dlopen in
11717   dlopen)
11718     save_CPPFLAGS="$CPPFLAGS"
11719     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11720
11721     save_LDFLAGS="$LDFLAGS"
11722     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11723
11724     save_LIBS="$LIBS"
11725     LIBS="$lt_cv_dlopen_libs $LIBS"
11726
11727     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11728 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11729 if test "${lt_cv_dlopen_self+set}" = set; then
11730   echo $ECHO_N "(cached) $ECHO_C" >&6
11731 else
11732           if test "$cross_compiling" = yes; then :
11733   lt_cv_dlopen_self=cross
11734 else
11735   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11736   lt_status=$lt_dlunknown
11737   cat > conftest.$ac_ext <<EOF
11738 #line 11738 "configure"
11739 #include "confdefs.h"
11740
11741 #if HAVE_DLFCN_H
11742 #include <dlfcn.h>
11743 #endif
11744
11745 #include <stdio.h>
11746
11747 #ifdef RTLD_GLOBAL
11748 #  define LT_DLGLOBAL           RTLD_GLOBAL
11749 #else
11750 #  ifdef DL_GLOBAL
11751 #    define LT_DLGLOBAL         DL_GLOBAL
11752 #  else
11753 #    define LT_DLGLOBAL         0
11754 #  endif
11755 #endif
11756
11757 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11758    find out it does not work in some platform. */
11759 #ifndef LT_DLLAZY_OR_NOW
11760 #  ifdef RTLD_LAZY
11761 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11762 #  else
11763 #    ifdef DL_LAZY
11764 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11765 #    else
11766 #      ifdef RTLD_NOW
11767 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11768 #      else
11769 #        ifdef DL_NOW
11770 #          define LT_DLLAZY_OR_NOW      DL_NOW
11771 #        else
11772 #          define LT_DLLAZY_OR_NOW      0
11773 #        endif
11774 #      endif
11775 #    endif
11776 #  endif
11777 #endif
11778
11779 #ifdef __cplusplus
11780 extern "C" void exit (int);
11781 #endif
11782
11783 void fnord() { int i=42;}
11784 int main ()
11785 {
11786   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11787   int status = $lt_dlunknown;
11788
11789   if (self)
11790     {
11791       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11792       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11793       /* dlclose (self); */
11794     }
11795   else
11796     puts (dlerror ());
11797
11798     exit (status);
11799 }
11800 EOF
11801   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11802   (eval $ac_link) 2>&5
11803   ac_status=$?
11804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11806     (./conftest; exit; ) >&5 2>/dev/null
11807     lt_status=$?
11808     case x$lt_status in
11809       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11810       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11811       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11812     esac
11813   else :
11814     # compilation failed
11815     lt_cv_dlopen_self=no
11816   fi
11817 fi
11818 rm -fr conftest*
11819
11820
11821 fi
11822 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11823 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11824
11825     if test "x$lt_cv_dlopen_self" = xyes; then
11826       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11827       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11828 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11829 if test "${lt_cv_dlopen_self_static+set}" = set; then
11830   echo $ECHO_N "(cached) $ECHO_C" >&6
11831 else
11832           if test "$cross_compiling" = yes; then :
11833   lt_cv_dlopen_self_static=cross
11834 else
11835   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11836   lt_status=$lt_dlunknown
11837   cat > conftest.$ac_ext <<EOF
11838 #line 11838 "configure"
11839 #include "confdefs.h"
11840
11841 #if HAVE_DLFCN_H
11842 #include <dlfcn.h>
11843 #endif
11844
11845 #include <stdio.h>
11846
11847 #ifdef RTLD_GLOBAL
11848 #  define LT_DLGLOBAL           RTLD_GLOBAL
11849 #else
11850 #  ifdef DL_GLOBAL
11851 #    define LT_DLGLOBAL         DL_GLOBAL
11852 #  else
11853 #    define LT_DLGLOBAL         0
11854 #  endif
11855 #endif
11856
11857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11858    find out it does not work in some platform. */
11859 #ifndef LT_DLLAZY_OR_NOW
11860 #  ifdef RTLD_LAZY
11861 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11862 #  else
11863 #    ifdef DL_LAZY
11864 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11865 #    else
11866 #      ifdef RTLD_NOW
11867 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11868 #      else
11869 #        ifdef DL_NOW
11870 #          define LT_DLLAZY_OR_NOW      DL_NOW
11871 #        else
11872 #          define LT_DLLAZY_OR_NOW      0
11873 #        endif
11874 #      endif
11875 #    endif
11876 #  endif
11877 #endif
11878
11879 #ifdef __cplusplus
11880 extern "C" void exit (int);
11881 #endif
11882
11883 void fnord() { int i=42;}
11884 int main ()
11885 {
11886   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11887   int status = $lt_dlunknown;
11888
11889   if (self)
11890     {
11891       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11892       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11893       /* dlclose (self); */
11894     }
11895   else
11896     puts (dlerror ());
11897
11898     exit (status);
11899 }
11900 EOF
11901   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11902   (eval $ac_link) 2>&5
11903   ac_status=$?
11904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11906     (./conftest; exit; ) >&5 2>/dev/null
11907     lt_status=$?
11908     case x$lt_status in
11909       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11910       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11911       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11912     esac
11913   else :
11914     # compilation failed
11915     lt_cv_dlopen_self_static=no
11916   fi
11917 fi
11918 rm -fr conftest*
11919
11920
11921 fi
11922 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11923 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11924     fi
11925
11926     CPPFLAGS="$save_CPPFLAGS"
11927     LDFLAGS="$save_LDFLAGS"
11928     LIBS="$save_LIBS"
11929     ;;
11930   esac
11931
11932   case $lt_cv_dlopen_self in
11933   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11934   *) enable_dlopen_self=unknown ;;
11935   esac
11936
11937   case $lt_cv_dlopen_self_static in
11938   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11939   *) enable_dlopen_self_static=unknown ;;
11940   esac
11941 fi
11942
11943
11944 # Report which library types will actually be built
11945 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11946 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11947 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11948 echo "${ECHO_T}$can_build_shared" >&6; }
11949
11950 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11951 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11952 test "$can_build_shared" = "no" && enable_shared=no
11953
11954 # On AIX, shared libraries and static libraries use the same namespace, and
11955 # are all built from PIC.
11956 case $host_os in
11957 aix3*)
11958   test "$enable_shared" = yes && enable_static=no
11959   if test -n "$RANLIB"; then
11960     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11961     postinstall_cmds='$RANLIB $lib'
11962   fi
11963   ;;
11964
11965 aix4* | aix5*)
11966   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11967     test "$enable_shared" = yes && enable_static=no
11968   fi
11969     ;;
11970 esac
11971 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11972 echo "${ECHO_T}$enable_shared" >&6; }
11973
11974 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11975 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11976 # Make sure either enable_shared or enable_static is yes.
11977 test "$enable_shared" = yes || enable_static=yes
11978 { echo "$as_me:$LINENO: result: $enable_static" >&5
11979 echo "${ECHO_T}$enable_static" >&6; }
11980
11981 # The else clause should only fire when bootstrapping the
11982 # libtool distribution, otherwise you forgot to ship ltmain.sh
11983 # with your package, and you will get complaints that there are
11984 # no rules to generate ltmain.sh.
11985 if test -f "$ltmain"; then
11986   # See if we are running on zsh, and set the options which allow our commands through
11987   # without removal of \ escapes.
11988   if test -n "${ZSH_VERSION+set}" ; then
11989     setopt NO_GLOB_SUBST
11990   fi
11991   # Now quote all the things that may contain metacharacters while being
11992   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11993   # variables and quote the copies for generation of the libtool script.
11994   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11995     SED SHELL STRIP \
11996     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11997     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11998     deplibs_check_method reload_flag reload_cmds need_locks \
11999     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12000     lt_cv_sys_global_symbol_to_c_name_address \
12001     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12002     old_postinstall_cmds old_postuninstall_cmds \
12003     compiler \
12004     CC \
12005     LD \
12006     lt_prog_compiler_wl \
12007     lt_prog_compiler_pic \
12008     lt_prog_compiler_static \
12009     lt_prog_compiler_no_builtin_flag \
12010     export_dynamic_flag_spec \
12011     thread_safe_flag_spec \
12012     whole_archive_flag_spec \
12013     enable_shared_with_static_runtimes \
12014     old_archive_cmds \
12015     old_archive_from_new_cmds \
12016     predep_objects \
12017     postdep_objects \
12018     predeps \
12019     postdeps \
12020     compiler_lib_search_path \
12021     archive_cmds \
12022     archive_expsym_cmds \
12023     postinstall_cmds \
12024     postuninstall_cmds \
12025     old_archive_from_expsyms_cmds \
12026     allow_undefined_flag \
12027     no_undefined_flag \
12028     export_symbols_cmds \
12029     hardcode_libdir_flag_spec \
12030     hardcode_libdir_flag_spec_ld \
12031     hardcode_libdir_separator \
12032     hardcode_automatic \
12033     module_cmds \
12034     module_expsym_cmds \
12035     lt_cv_prog_compiler_c_o \
12036     exclude_expsyms \
12037     include_expsyms; do
12038
12039     case $var in
12040     old_archive_cmds | \
12041     old_archive_from_new_cmds | \
12042     archive_cmds | \
12043     archive_expsym_cmds | \
12044     module_cmds | \
12045     module_expsym_cmds | \
12046     old_archive_from_expsyms_cmds | \
12047     export_symbols_cmds | \
12048     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12049     postinstall_cmds | postuninstall_cmds | \
12050     old_postinstall_cmds | old_postuninstall_cmds | \
12051     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12052       # Double-quote double-evaled strings.
12053       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12054       ;;
12055     *)
12056       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12057       ;;
12058     esac
12059   done
12060
12061   case $lt_echo in
12062   *'\$0 --fallback-echo"')
12063     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12064     ;;
12065   esac
12066
12067 cfgfile="${ofile}T"
12068   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12069   $rm -f "$cfgfile"
12070   { echo "$as_me:$LINENO: creating $ofile" >&5
12071 echo "$as_me: creating $ofile" >&6;}
12072
12073   cat <<__EOF__ >> "$cfgfile"
12074 #! $SHELL
12075
12076 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12077 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12078 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12079 #
12080 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12081 # Free Software Foundation, Inc.
12082 #
12083 # This file is part of GNU Libtool:
12084 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12085 #
12086 # This program is free software; you can redistribute it and/or modify
12087 # it under the terms of the GNU General Public License as published by
12088 # the Free Software Foundation; either version 2 of the License, or
12089 # (at your option) any later version.
12090 #
12091 # This program is distributed in the hope that it will be useful, but
12092 # WITHOUT ANY WARRANTY; without even the implied warranty of
12093 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12094 # General Public License for more details.
12095 #
12096 # You should have received a copy of the GNU General Public License
12097 # along with this program; if not, write to the Free Software
12098 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12099 #
12100 # As a special exception to the GNU General Public License, if you
12101 # distribute this file as part of a program that contains a
12102 # configuration script generated by Autoconf, you may include it under
12103 # the same distribution terms that you use for the rest of that program.
12104
12105 # A sed program that does not truncate output.
12106 SED=$lt_SED
12107
12108 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12109 Xsed="$SED -e 1s/^X//"
12110
12111 # The HP-UX ksh and POSIX shell print the target directory to stdout
12112 # if CDPATH is set.
12113 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12114
12115 # The names of the tagged configurations supported by this script.
12116 available_tags=
12117
12118 # ### BEGIN LIBTOOL CONFIG
12119
12120 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12121
12122 # Shell to use when invoking shell scripts.
12123 SHELL=$lt_SHELL
12124
12125 # Whether or not to build shared libraries.
12126 build_libtool_libs=$enable_shared
12127
12128 # Whether or not to build static libraries.
12129 build_old_libs=$enable_static
12130
12131 # Whether or not to add -lc for building shared libraries.
12132 build_libtool_need_lc=$archive_cmds_need_lc
12133
12134 # Whether or not to disallow shared libs when runtime libs are static
12135 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12136
12137 # Whether or not to optimize for fast installation.
12138 fast_install=$enable_fast_install
12139
12140 # The host system.
12141 host_alias=$host_alias
12142 host=$host
12143 host_os=$host_os
12144
12145 # The build system.
12146 build_alias=$build_alias
12147 build=$build
12148 build_os=$build_os
12149
12150 # An echo program that does not interpret backslashes.
12151 echo=$lt_echo
12152
12153 # The archiver.
12154 AR=$lt_AR
12155 AR_FLAGS=$lt_AR_FLAGS
12156
12157 # A C compiler.
12158 LTCC=$lt_LTCC
12159
12160 # LTCC compiler flags.
12161 LTCFLAGS=$lt_LTCFLAGS
12162
12163 # A language-specific compiler.
12164 CC=$lt_compiler
12165
12166 # Is the compiler the GNU C compiler?
12167 with_gcc=$GCC
12168
12169 # An ERE matcher.
12170 EGREP=$lt_EGREP
12171
12172 # The linker used to build libraries.
12173 LD=$lt_LD
12174
12175 # Whether we need hard or soft links.
12176 LN_S=$lt_LN_S
12177
12178 # A BSD-compatible nm program.
12179 NM=$lt_NM
12180
12181 # A symbol stripping program
12182 STRIP=$lt_STRIP
12183
12184 # Used to examine libraries when file_magic_cmd begins "file"
12185 MAGIC_CMD=$MAGIC_CMD
12186
12187 # Used on cygwin: DLL creation program.
12188 DLLTOOL="$DLLTOOL"
12189
12190 # Used on cygwin: object dumper.
12191 OBJDUMP="$OBJDUMP"
12192
12193 # Used on cygwin: assembler.
12194 AS="$AS"
12195
12196 # The name of the directory that contains temporary libtool files.
12197 objdir=$objdir
12198
12199 # How to create reloadable object files.
12200 reload_flag=$lt_reload_flag
12201 reload_cmds=$lt_reload_cmds
12202
12203 # How to pass a linker flag through the compiler.
12204 wl=$lt_lt_prog_compiler_wl
12205
12206 # Object file suffix (normally "o").
12207 objext="$ac_objext"
12208
12209 # Old archive suffix (normally "a").
12210 libext="$libext"
12211
12212 # Shared library suffix (normally ".so").
12213 shrext_cmds='$shrext_cmds'
12214
12215 # Executable file suffix (normally "").
12216 exeext="$exeext"
12217
12218 # Additional compiler flags for building library objects.
12219 pic_flag=$lt_lt_prog_compiler_pic
12220 pic_mode=$pic_mode
12221
12222 # What is the maximum length of a command?
12223 max_cmd_len=$lt_cv_sys_max_cmd_len
12224
12225 # Does compiler simultaneously support -c and -o options?
12226 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12227
12228 # Must we lock files when doing compilation?
12229 need_locks=$lt_need_locks
12230
12231 # Do we need the lib prefix for modules?
12232 need_lib_prefix=$need_lib_prefix
12233
12234 # Do we need a version for libraries?
12235 need_version=$need_version
12236
12237 # Whether dlopen is supported.
12238 dlopen_support=$enable_dlopen
12239
12240 # Whether dlopen of programs is supported.
12241 dlopen_self=$enable_dlopen_self
12242
12243 # Whether dlopen of statically linked programs is supported.
12244 dlopen_self_static=$enable_dlopen_self_static
12245
12246 # Compiler flag to prevent dynamic linking.
12247 link_static_flag=$lt_lt_prog_compiler_static
12248
12249 # Compiler flag to turn off builtin functions.
12250 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12251
12252 # Compiler flag to allow reflexive dlopens.
12253 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12254
12255 # Compiler flag to generate shared objects directly from archives.
12256 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12257
12258 # Compiler flag to generate thread-safe objects.
12259 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12260
12261 # Library versioning type.
12262 version_type=$version_type
12263
12264 # Format of library name prefix.
12265 libname_spec=$lt_libname_spec
12266
12267 # List of archive names.  First name is the real one, the rest are links.
12268 # The last name is the one that the linker finds with -lNAME.
12269 library_names_spec=$lt_library_names_spec
12270
12271 # The coded name of the library, if different from the real name.
12272 soname_spec=$lt_soname_spec
12273
12274 # Commands used to build and install an old-style archive.
12275 RANLIB=$lt_RANLIB
12276 old_archive_cmds=$lt_old_archive_cmds
12277 old_postinstall_cmds=$lt_old_postinstall_cmds
12278 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12279
12280 # Create an old-style archive from a shared archive.
12281 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12282
12283 # Create a temporary old-style archive to link instead of a shared archive.
12284 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12285
12286 # Commands used to build and install a shared archive.
12287 archive_cmds=$lt_archive_cmds
12288 archive_expsym_cmds=$lt_archive_expsym_cmds
12289 postinstall_cmds=$lt_postinstall_cmds
12290 postuninstall_cmds=$lt_postuninstall_cmds
12291
12292 # Commands used to build a loadable module (assumed same as above if empty)
12293 module_cmds=$lt_module_cmds
12294 module_expsym_cmds=$lt_module_expsym_cmds
12295
12296 # Commands to strip libraries.
12297 old_striplib=$lt_old_striplib
12298 striplib=$lt_striplib
12299
12300 # Dependencies to place before the objects being linked to create a
12301 # shared library.
12302 predep_objects=$lt_predep_objects
12303
12304 # Dependencies to place after the objects being linked to create a
12305 # shared library.
12306 postdep_objects=$lt_postdep_objects
12307
12308 # Dependencies to place before the objects being linked to create a
12309 # shared library.
12310 predeps=$lt_predeps
12311
12312 # Dependencies to place after the objects being linked to create a
12313 # shared library.
12314 postdeps=$lt_postdeps
12315
12316 # The library search path used internally by the compiler when linking
12317 # a shared library.
12318 compiler_lib_search_path=$lt_compiler_lib_search_path
12319
12320 # Method to check whether dependent libraries are shared objects.
12321 deplibs_check_method=$lt_deplibs_check_method
12322
12323 # Command to use when deplibs_check_method == file_magic.
12324 file_magic_cmd=$lt_file_magic_cmd
12325
12326 # Flag that allows shared libraries with undefined symbols to be built.
12327 allow_undefined_flag=$lt_allow_undefined_flag
12328
12329 # Flag that forces no undefined symbols.
12330 no_undefined_flag=$lt_no_undefined_flag
12331
12332 # Commands used to finish a libtool library installation in a directory.
12333 finish_cmds=$lt_finish_cmds
12334
12335 # Same as above, but a single script fragment to be evaled but not shown.
12336 finish_eval=$lt_finish_eval
12337
12338 # Take the output of nm and produce a listing of raw symbols and C names.
12339 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12340
12341 # Transform the output of nm in a proper C declaration
12342 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12343
12344 # Transform the output of nm in a C name address pair
12345 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12346
12347 # This is the shared library runtime path variable.
12348 runpath_var=$runpath_var
12349
12350 # This is the shared library path variable.
12351 shlibpath_var=$shlibpath_var
12352
12353 # Is shlibpath searched before the hard-coded library search path?
12354 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12355
12356 # How to hardcode a shared library path into an executable.
12357 hardcode_action=$hardcode_action
12358
12359 # Whether we should hardcode library paths into libraries.
12360 hardcode_into_libs=$hardcode_into_libs
12361
12362 # Flag to hardcode \$libdir into a binary during linking.
12363 # This must work even if \$libdir does not exist.
12364 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12365
12366 # If ld is used when linking, flag to hardcode \$libdir into
12367 # a binary during linking. This must work even if \$libdir does
12368 # not exist.
12369 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12370
12371 # Whether we need a single -rpath flag with a separated argument.
12372 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12373
12374 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12375 # resulting binary.
12376 hardcode_direct=$hardcode_direct
12377
12378 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12379 # resulting binary.
12380 hardcode_minus_L=$hardcode_minus_L
12381
12382 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12383 # the resulting binary.
12384 hardcode_shlibpath_var=$hardcode_shlibpath_var
12385
12386 # Set to yes if building a shared library automatically hardcodes DIR into the library
12387 # and all subsequent libraries and executables linked against it.
12388 hardcode_automatic=$hardcode_automatic
12389
12390 # Variables whose values should be saved in libtool wrapper scripts and
12391 # restored at relink time.
12392 variables_saved_for_relink="$variables_saved_for_relink"
12393
12394 # Whether libtool must link a program against all its dependency libraries.
12395 link_all_deplibs=$link_all_deplibs
12396
12397 # Compile-time system search path for libraries
12398 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12399
12400 # Run-time system search path for libraries
12401 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12402
12403 # Fix the shell variable \$srcfile for the compiler.
12404 fix_srcfile_path="$fix_srcfile_path"
12405
12406 # Set to yes if exported symbols are required.
12407 always_export_symbols=$always_export_symbols
12408
12409 # The commands to list exported symbols.
12410 export_symbols_cmds=$lt_export_symbols_cmds
12411
12412 # The commands to extract the exported symbol list from a shared archive.
12413 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12414
12415 # Symbols that should not be listed in the preloaded symbols.
12416 exclude_expsyms=$lt_exclude_expsyms
12417
12418 # Symbols that must always be exported.
12419 include_expsyms=$lt_include_expsyms
12420
12421 # ### END LIBTOOL CONFIG
12422
12423 __EOF__
12424
12425
12426   case $host_os in
12427   aix3*)
12428     cat <<\EOF >> "$cfgfile"
12429
12430 # AIX sometimes has problems with the GCC collect2 program.  For some
12431 # reason, if we set the COLLECT_NAMES environment variable, the problems
12432 # vanish in a puff of smoke.
12433 if test "X${COLLECT_NAMES+set}" != Xset; then
12434   COLLECT_NAMES=
12435   export COLLECT_NAMES
12436 fi
12437 EOF
12438     ;;
12439   esac
12440
12441   # We use sed instead of cat because bash on DJGPP gets confused if
12442   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12443   # text mode, it properly converts lines to CR/LF.  This bash problem
12444   # is reportedly fixed, but why not run on old versions too?
12445   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12446
12447   mv -f "$cfgfile" "$ofile" || \
12448     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12449   chmod +x "$ofile"
12450
12451 else
12452   # If there is no Makefile yet, we rely on a make rule to execute
12453   # `config.status --recheck' to rerun these tests and create the
12454   # libtool script then.
12455   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12456   if test -f "$ltmain_in"; then
12457     test -f Makefile && make "$ltmain"
12458   fi
12459 fi
12460
12461
12462 ac_ext=c
12463 ac_cpp='$CPP $CPPFLAGS'
12464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12467
12468 CC="$lt_save_CC"
12469
12470
12471 # Check whether --with-tags was given.
12472 if test "${with_tags+set}" = set; then
12473   withval=$with_tags; tagnames="$withval"
12474 fi
12475
12476
12477 if test -f "$ltmain" && test -n "$tagnames"; then
12478   if test ! -f "${ofile}"; then
12479     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12480 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12481   fi
12482
12483   if test -z "$LTCC"; then
12484     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12485     if test -z "$LTCC"; then
12486       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12487 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12488     else
12489       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12490 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12491     fi
12492   fi
12493   if test -z "$LTCFLAGS"; then
12494     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12495   fi
12496
12497   # Extract list of available tagged configurations in $ofile.
12498   # Note that this assumes the entire list is on one line.
12499   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12500
12501   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12502   for tagname in $tagnames; do
12503     IFS="$lt_save_ifs"
12504     # Check whether tagname contains only valid characters
12505     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12506     "") ;;
12507     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12508 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12509    { (exit 1); exit 1; }; }
12510         ;;
12511     esac
12512
12513     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12514     then
12515       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12516 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12517    { (exit 1); exit 1; }; }
12518     fi
12519
12520     # Update the list of available tags.
12521     if test -n "$tagname"; then
12522       echo appending configuration tag \"$tagname\" to $ofile
12523
12524       case $tagname in
12525       CXX)
12526         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12527             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12528             (test "X$CXX" != "Xg++"))) ; then
12529           ac_ext=cpp
12530 ac_cpp='$CXXCPP $CPPFLAGS'
12531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12534
12535
12536
12537
12538 archive_cmds_need_lc_CXX=no
12539 allow_undefined_flag_CXX=
12540 always_export_symbols_CXX=no
12541 archive_expsym_cmds_CXX=
12542 export_dynamic_flag_spec_CXX=
12543 hardcode_direct_CXX=no
12544 hardcode_libdir_flag_spec_CXX=
12545 hardcode_libdir_flag_spec_ld_CXX=
12546 hardcode_libdir_separator_CXX=
12547 hardcode_minus_L_CXX=no
12548 hardcode_shlibpath_var_CXX=unsupported
12549 hardcode_automatic_CXX=no
12550 module_cmds_CXX=
12551 module_expsym_cmds_CXX=
12552 link_all_deplibs_CXX=unknown
12553 old_archive_cmds_CXX=$old_archive_cmds
12554 no_undefined_flag_CXX=
12555 whole_archive_flag_spec_CXX=
12556 enable_shared_with_static_runtimes_CXX=no
12557
12558 # Dependencies to place before and after the object being linked:
12559 predep_objects_CXX=
12560 postdep_objects_CXX=
12561 predeps_CXX=
12562 postdeps_CXX=
12563 compiler_lib_search_path_CXX=
12564
12565 # Source file extension for C++ test sources.
12566 ac_ext=cpp
12567
12568 # Object file extension for compiled C++ test sources.
12569 objext=o
12570 objext_CXX=$objext
12571
12572 # Code to be used in simple compile tests
12573 lt_simple_compile_test_code="int some_variable = 0;\n"
12574
12575 # Code to be used in simple link tests
12576 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12577
12578 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12579
12580 # If no C compiler was specified, use CC.
12581 LTCC=${LTCC-"$CC"}
12582
12583 # If no C compiler flags were specified, use CFLAGS.
12584 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12585
12586 # Allow CC to be a program name with arguments.
12587 compiler=$CC
12588
12589
12590 # save warnings/boilerplate of simple test code
12591 ac_outfile=conftest.$ac_objext
12592 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12593 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12594 _lt_compiler_boilerplate=`cat conftest.err`
12595 $rm conftest*
12596
12597 ac_outfile=conftest.$ac_objext
12598 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12599 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12600 _lt_linker_boilerplate=`cat conftest.err`
12601 $rm conftest*
12602
12603
12604 # Allow CC to be a program name with arguments.
12605 lt_save_CC=$CC
12606 lt_save_LD=$LD
12607 lt_save_GCC=$GCC
12608 GCC=$GXX
12609 lt_save_with_gnu_ld=$with_gnu_ld
12610 lt_save_path_LD=$lt_cv_path_LD
12611 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12612   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12613 else
12614   $as_unset lt_cv_prog_gnu_ld
12615 fi
12616 if test -n "${lt_cv_path_LDCXX+set}"; then
12617   lt_cv_path_LD=$lt_cv_path_LDCXX
12618 else
12619   $as_unset lt_cv_path_LD
12620 fi
12621 test -z "${LDCXX+set}" || LD=$LDCXX
12622 CC=${CXX-"c++"}
12623 compiler=$CC
12624 compiler_CXX=$CC
12625 for cc_temp in $compiler""; do
12626   case $cc_temp in
12627     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12628     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12629     \-*) ;;
12630     *) break;;
12631   esac
12632 done
12633 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12634
12635
12636 # We don't want -fno-exception wen compiling C++ code, so set the
12637 # no_builtin_flag separately
12638 if test "$GXX" = yes; then
12639   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12640 else
12641   lt_prog_compiler_no_builtin_flag_CXX=
12642 fi
12643
12644 if test "$GXX" = yes; then
12645   # Set up default GNU C++ configuration
12646
12647
12648 # Check whether --with-gnu-ld was given.
12649 if test "${with_gnu_ld+set}" = set; then
12650   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12651 else
12652   with_gnu_ld=no
12653 fi
12654
12655 ac_prog=ld
12656 if test "$GCC" = yes; then
12657   # Check if gcc -print-prog-name=ld gives a path.
12658   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12659 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12660   case $host in
12661   *-*-mingw*)
12662     # gcc leaves a trailing carriage return which upsets mingw
12663     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12664   *)
12665     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12666   esac
12667   case $ac_prog in
12668     # Accept absolute paths.
12669     [\\/]* | ?:[\\/]*)
12670       re_direlt='/[^/][^/]*/\.\./'
12671       # Canonicalize the pathname of ld
12672       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12673       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12674         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12675       done
12676       test -z "$LD" && LD="$ac_prog"
12677       ;;
12678   "")
12679     # If it fails, then pretend we aren't using GCC.
12680     ac_prog=ld
12681     ;;
12682   *)
12683     # If it is relative, then search for the first ld in PATH.
12684     with_gnu_ld=unknown
12685     ;;
12686   esac
12687 elif test "$with_gnu_ld" = yes; then
12688   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12689 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12690 else
12691   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12692 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12693 fi
12694 if test "${lt_cv_path_LD+set}" = set; then
12695   echo $ECHO_N "(cached) $ECHO_C" >&6
12696 else
12697   if test -z "$LD"; then
12698   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12699   for ac_dir in $PATH; do
12700     IFS="$lt_save_ifs"
12701     test -z "$ac_dir" && ac_dir=.
12702     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12703       lt_cv_path_LD="$ac_dir/$ac_prog"
12704       # Check to see if the program is GNU ld.  I'd rather use --version,
12705       # but apparently some variants of GNU ld only accept -v.
12706       # Break only if it was the GNU/non-GNU ld that we prefer.
12707       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12708       *GNU* | *'with BFD'*)
12709         test "$with_gnu_ld" != no && break
12710         ;;
12711       *)
12712         test "$with_gnu_ld" != yes && break
12713         ;;
12714       esac
12715     fi
12716   done
12717   IFS="$lt_save_ifs"
12718 else
12719   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12720 fi
12721 fi
12722
12723 LD="$lt_cv_path_LD"
12724 if test -n "$LD"; then
12725   { echo "$as_me:$LINENO: result: $LD" >&5
12726 echo "${ECHO_T}$LD" >&6; }
12727 else
12728   { echo "$as_me:$LINENO: result: no" >&5
12729 echo "${ECHO_T}no" >&6; }
12730 fi
12731 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12732 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12733    { (exit 1); exit 1; }; }
12734 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12735 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12736 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12737   echo $ECHO_N "(cached) $ECHO_C" >&6
12738 else
12739   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12740 case `$LD -v 2>&1 </dev/null` in
12741 *GNU* | *'with BFD'*)
12742   lt_cv_prog_gnu_ld=yes
12743   ;;
12744 *)
12745   lt_cv_prog_gnu_ld=no
12746   ;;
12747 esac
12748 fi
12749 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12750 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12751 with_gnu_ld=$lt_cv_prog_gnu_ld
12752
12753
12754
12755   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12756   # archiving commands below assume that GNU ld is being used.
12757   if test "$with_gnu_ld" = yes; then
12758     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12759     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'
12760
12761     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12762     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12763
12764     # If archive_cmds runs LD, not CC, wlarc should be empty
12765     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12766     #     investigate it a little bit more. (MM)
12767     wlarc='${wl}'
12768
12769     # ancient GNU ld didn't support --whole-archive et. al.
12770     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12771         grep 'no-whole-archive' > /dev/null; then
12772       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12773     else
12774       whole_archive_flag_spec_CXX=
12775     fi
12776   else
12777     with_gnu_ld=no
12778     wlarc=
12779
12780     # A generic and very simple default shared library creation
12781     # command for GNU C++ for the case where it uses the native
12782     # linker, instead of GNU ld.  If possible, this setting should
12783     # overridden to take advantage of the native linker features on
12784     # the platform it is being used on.
12785     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12786   fi
12787
12788   # Commands to make compiler produce verbose output that lists
12789   # what "hidden" libraries, object files and flags are used when
12790   # linking a shared library.
12791   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12792
12793 else
12794   GXX=no
12795   with_gnu_ld=no
12796   wlarc=
12797 fi
12798
12799 # PORTME: fill in a description of your system's C++ link characteristics
12800 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12801 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12802 ld_shlibs_CXX=yes
12803 case $host_os in
12804   aix3*)
12805     # FIXME: insert proper C++ library support
12806     ld_shlibs_CXX=no
12807     ;;
12808   aix4* | aix5*)
12809     if test "$host_cpu" = ia64; then
12810       # On IA64, the linker does run time linking by default, so we don't
12811       # have to do anything special.
12812       aix_use_runtimelinking=no
12813       exp_sym_flag='-Bexport'
12814       no_entry_flag=""
12815     else
12816       aix_use_runtimelinking=no
12817
12818       # Test if we are trying to use run time linking or normal
12819       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12820       # need to do runtime linking.
12821       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12822         for ld_flag in $LDFLAGS; do
12823           case $ld_flag in
12824           *-brtl*)
12825             aix_use_runtimelinking=yes
12826             break
12827             ;;
12828           esac
12829         done
12830         ;;
12831       esac
12832
12833       exp_sym_flag='-bexport'
12834       no_entry_flag='-bnoentry'
12835     fi
12836
12837     # When large executables or shared objects are built, AIX ld can
12838     # have problems creating the table of contents.  If linking a library
12839     # or program results in "error TOC overflow" add -mminimal-toc to
12840     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12841     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12842
12843     archive_cmds_CXX=''
12844     hardcode_direct_CXX=yes
12845     hardcode_libdir_separator_CXX=':'
12846     link_all_deplibs_CXX=yes
12847
12848     if test "$GXX" = yes; then
12849       case $host_os in aix4.[012]|aix4.[012].*)
12850       # We only want to do this on AIX 4.2 and lower, the check
12851       # below for broken collect2 doesn't work under 4.3+
12852         collect2name=`${CC} -print-prog-name=collect2`
12853         if test -f "$collect2name" && \
12854            strings "$collect2name" | grep resolve_lib_name >/dev/null
12855         then
12856           # We have reworked collect2
12857           hardcode_direct_CXX=yes
12858         else
12859           # We have old collect2
12860           hardcode_direct_CXX=unsupported
12861           # It fails to find uninstalled libraries when the uninstalled
12862           # path is not listed in the libpath.  Setting hardcode_minus_L
12863           # to unsupported forces relinking
12864           hardcode_minus_L_CXX=yes
12865           hardcode_libdir_flag_spec_CXX='-L$libdir'
12866           hardcode_libdir_separator_CXX=
12867         fi
12868         ;;
12869       esac
12870       shared_flag='-shared'
12871       if test "$aix_use_runtimelinking" = yes; then
12872         shared_flag="$shared_flag "'${wl}-G'
12873       fi
12874     else
12875       # not using gcc
12876       if test "$host_cpu" = ia64; then
12877         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12878         # chokes on -Wl,-G. The following line is correct:
12879         shared_flag='-G'
12880       else
12881         if test "$aix_use_runtimelinking" = yes; then
12882           shared_flag='${wl}-G'
12883         else
12884           shared_flag='${wl}-bM:SRE'
12885         fi
12886       fi
12887     fi
12888
12889     # It seems that -bexpall does not export symbols beginning with
12890     # underscore (_), so it is better to generate a list of symbols to export.
12891     always_export_symbols_CXX=yes
12892     if test "$aix_use_runtimelinking" = yes; then
12893       # Warning - without using the other runtime loading flags (-brtl),
12894       # -berok will link without error, but may produce a broken library.
12895       allow_undefined_flag_CXX='-berok'
12896       # Determine the default libpath from the value encoded in an empty executable.
12897       cat >conftest.$ac_ext <<_ACEOF
12898 /* confdefs.h.  */
12899 _ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h.  */
12903
12904 int
12905 main ()
12906 {
12907
12908   ;
12909   return 0;
12910 }
12911 _ACEOF
12912 rm -f conftest.$ac_objext conftest$ac_exeext
12913 if { (ac_try="$ac_link"
12914 case "(($ac_try" in
12915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916   *) ac_try_echo=$ac_try;;
12917 esac
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919   (eval "$ac_link") 2>conftest.er1
12920   ac_status=$?
12921   grep -v '^ *+' conftest.er1 >conftest.err
12922   rm -f conftest.er1
12923   cat conftest.err >&5
12924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925   (exit $ac_status); } &&
12926          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12927   { (case "(($ac_try" in
12928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929   *) ac_try_echo=$ac_try;;
12930 esac
12931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932   (eval "$ac_try") 2>&5
12933   ac_status=$?
12934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935   (exit $ac_status); }; } &&
12936          { ac_try='test -s conftest$ac_exeext'
12937   { (case "(($ac_try" in
12938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12939   *) ac_try_echo=$ac_try;;
12940 esac
12941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12942   (eval "$ac_try") 2>&5
12943   ac_status=$?
12944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945   (exit $ac_status); }; }; then
12946
12947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12948 }'`
12949 # Check for a 64-bit object if we didn't find anything.
12950 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; }
12951 }'`; fi
12952 else
12953   echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12955
12956
12957 fi
12958
12959 rm -f core conftest.err conftest.$ac_objext \
12960       conftest$ac_exeext conftest.$ac_ext
12961 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12962
12963       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12964
12965       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"
12966      else
12967       if test "$host_cpu" = ia64; then
12968         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12969         allow_undefined_flag_CXX="-z nodefs"
12970         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"
12971       else
12972         # Determine the default libpath from the value encoded in an empty executable.
12973         cat >conftest.$ac_ext <<_ACEOF
12974 /* confdefs.h.  */
12975 _ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h.  */
12979
12980 int
12981 main ()
12982 {
12983
12984   ;
12985   return 0;
12986 }
12987 _ACEOF
12988 rm -f conftest.$ac_objext conftest$ac_exeext
12989 if { (ac_try="$ac_link"
12990 case "(($ac_try" in
12991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992   *) ac_try_echo=$ac_try;;
12993 esac
12994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995   (eval "$ac_link") 2>conftest.er1
12996   ac_status=$?
12997   grep -v '^ *+' conftest.er1 >conftest.err
12998   rm -f conftest.er1
12999   cat conftest.err >&5
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); } &&
13002          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13003   { (case "(($ac_try" in
13004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005   *) ac_try_echo=$ac_try;;
13006 esac
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008   (eval "$ac_try") 2>&5
13009   ac_status=$?
13010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011   (exit $ac_status); }; } &&
13012          { ac_try='test -s conftest$ac_exeext'
13013   { (case "(($ac_try" in
13014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015   *) ac_try_echo=$ac_try;;
13016 esac
13017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018   (eval "$ac_try") 2>&5
13019   ac_status=$?
13020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021   (exit $ac_status); }; }; then
13022
13023 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13024 }'`
13025 # Check for a 64-bit object if we didn't find anything.
13026 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; }
13027 }'`; fi
13028 else
13029   echo "$as_me: failed program was:" >&5
13030 sed 's/^/| /' conftest.$ac_ext >&5
13031
13032
13033 fi
13034
13035 rm -f core conftest.err conftest.$ac_objext \
13036       conftest$ac_exeext conftest.$ac_ext
13037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13038
13039         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13040         # Warning - without using the other run time loading flags,
13041         # -berok will link without error, but may produce a broken library.
13042         no_undefined_flag_CXX=' ${wl}-bernotok'
13043         allow_undefined_flag_CXX=' ${wl}-berok'
13044         # Exported symbols can be pulled into shared objects from archives
13045         whole_archive_flag_spec_CXX='$convenience'
13046         archive_cmds_need_lc_CXX=yes
13047         # This is similar to how AIX traditionally builds its shared libraries.
13048         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'
13049       fi
13050     fi
13051     ;;
13052
13053   beos*)
13054     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13055       allow_undefined_flag_CXX=unsupported
13056       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13057       # support --undefined.  This deserves some investigation.  FIXME
13058       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13059     else
13060       ld_shlibs_CXX=no
13061     fi
13062     ;;
13063
13064   chorus*)
13065     case $cc_basename in
13066       *)
13067         # FIXME: insert proper C++ library support
13068         ld_shlibs_CXX=no
13069         ;;
13070     esac
13071     ;;
13072
13073   cygwin* | mingw* | pw32*)
13074     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13075     # as there is no search path for DLLs.
13076     hardcode_libdir_flag_spec_CXX='-L$libdir'
13077     allow_undefined_flag_CXX=unsupported
13078     always_export_symbols_CXX=no
13079     enable_shared_with_static_runtimes_CXX=yes
13080
13081     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13082       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'
13083       # If the export-symbols file already is a .def file (1st line
13084       # is EXPORTS), use it as is; otherwise, prepend...
13085       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13086         cp $export_symbols $output_objdir/$soname.def;
13087       else
13088         echo EXPORTS > $output_objdir/$soname.def;
13089         cat $export_symbols >> $output_objdir/$soname.def;
13090       fi~
13091       $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'
13092     else
13093       ld_shlibs_CXX=no
13094     fi
13095   ;;
13096       darwin* | rhapsody*)
13097         case $host_os in
13098         rhapsody* | darwin1.[012])
13099          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13100          ;;
13101        *) # Darwin 1.3 on
13102          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13103            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13104          else
13105            case ${MACOSX_DEPLOYMENT_TARGET} in
13106              10.[012])
13107                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13108                ;;
13109              10.*)
13110                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13111                ;;
13112            esac
13113          fi
13114          ;;
13115         esac
13116       archive_cmds_need_lc_CXX=no
13117       hardcode_direct_CXX=no
13118       hardcode_automatic_CXX=yes
13119       hardcode_shlibpath_var_CXX=unsupported
13120       whole_archive_flag_spec_CXX=''
13121       link_all_deplibs_CXX=yes
13122
13123     if test "$GXX" = yes ; then
13124       lt_int_apple_cc_single_mod=no
13125       output_verbose_link_cmd='echo'
13126       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13127        lt_int_apple_cc_single_mod=yes
13128       fi
13129       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13130        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13131       else
13132           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'
13133         fi
13134         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13135         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13136           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13137             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}'
13138           else
13139             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}'
13140           fi
13141             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}'
13142       else
13143       case $cc_basename in
13144         xlc*)
13145          output_verbose_link_cmd='echo'
13146           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'
13147           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13148           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13149           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}'
13150           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}'
13151           ;;
13152        *)
13153          ld_shlibs_CXX=no
13154           ;;
13155       esac
13156       fi
13157         ;;
13158
13159   dgux*)
13160     case $cc_basename in
13161       ec++*)
13162         # FIXME: insert proper C++ library support
13163         ld_shlibs_CXX=no
13164         ;;
13165       ghcx*)
13166         # Green Hills C++ Compiler
13167         # FIXME: insert proper C++ library support
13168         ld_shlibs_CXX=no
13169         ;;
13170       *)
13171         # FIXME: insert proper C++ library support
13172         ld_shlibs_CXX=no
13173         ;;
13174     esac
13175     ;;
13176   freebsd[12]*)
13177     # C++ shared libraries reported to be fairly broken before switch to ELF
13178     ld_shlibs_CXX=no
13179     ;;
13180   freebsd-elf*)
13181     archive_cmds_need_lc_CXX=no
13182     ;;
13183   freebsd* | dragonfly*)
13184     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13185     # conventions
13186     ld_shlibs_CXX=yes
13187     ;;
13188   gnu*)
13189     ;;
13190   hpux9*)
13191     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13192     hardcode_libdir_separator_CXX=:
13193     export_dynamic_flag_spec_CXX='${wl}-E'
13194     hardcode_direct_CXX=yes
13195     hardcode_minus_L_CXX=yes # Not in the search PATH,
13196                                 # but as the default
13197                                 # location of the library.
13198
13199     case $cc_basename in
13200     CC*)
13201       # FIXME: insert proper C++ library support
13202       ld_shlibs_CXX=no
13203       ;;
13204     aCC*)
13205       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'
13206       # Commands to make compiler produce verbose output that lists
13207       # what "hidden" libraries, object files and flags are used when
13208       # linking a shared library.
13209       #
13210       # There doesn't appear to be a way to prevent this compiler from
13211       # explicitly linking system object files so we need to strip them
13212       # from the output so that they don't get included in the library
13213       # dependencies.
13214       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'
13215       ;;
13216     *)
13217       if test "$GXX" = yes; then
13218         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'
13219       else
13220         # FIXME: insert proper C++ library support
13221         ld_shlibs_CXX=no
13222       fi
13223       ;;
13224     esac
13225     ;;
13226   hpux10*|hpux11*)
13227     if test $with_gnu_ld = no; then
13228       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13229       hardcode_libdir_separator_CXX=:
13230
13231       case $host_cpu in
13232       hppa*64*|ia64*)
13233         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13234         ;;
13235       *)
13236         export_dynamic_flag_spec_CXX='${wl}-E'
13237         ;;
13238       esac
13239     fi
13240     case $host_cpu in
13241     hppa*64*|ia64*)
13242       hardcode_direct_CXX=no
13243       hardcode_shlibpath_var_CXX=no
13244       ;;
13245     *)
13246       hardcode_direct_CXX=yes
13247       hardcode_minus_L_CXX=yes # Not in the search PATH,
13248                                               # but as the default
13249                                               # location of the library.
13250       ;;
13251     esac
13252
13253     case $cc_basename in
13254       CC*)
13255         # FIXME: insert proper C++ library support
13256         ld_shlibs_CXX=no
13257         ;;
13258       aCC*)
13259         case $host_cpu in
13260         hppa*64*)
13261           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13262           ;;
13263         ia64*)
13264           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13265           ;;
13266         *)
13267           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13268           ;;
13269         esac
13270         # Commands to make compiler produce verbose output that lists
13271         # what "hidden" libraries, object files and flags are used when
13272         # linking a shared library.
13273         #
13274         # There doesn't appear to be a way to prevent this compiler from
13275         # explicitly linking system object files so we need to strip them
13276         # from the output so that they don't get included in the library
13277         # dependencies.
13278         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'
13279         ;;
13280       *)
13281         if test "$GXX" = yes; then
13282           if test $with_gnu_ld = no; then
13283             case $host_cpu in
13284             hppa*64*)
13285               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13286               ;;
13287             ia64*)
13288               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13289               ;;
13290             *)
13291               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'
13292               ;;
13293             esac
13294           fi
13295         else
13296           # FIXME: insert proper C++ library support
13297           ld_shlibs_CXX=no
13298         fi
13299         ;;
13300     esac
13301     ;;
13302   interix3*)
13303     hardcode_direct_CXX=no
13304     hardcode_shlibpath_var_CXX=no
13305     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13306     export_dynamic_flag_spec_CXX='${wl}-E'
13307     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13308     # Instead, shared libraries are loaded at an image base (0x10000000 by
13309     # default) and relocated if they conflict, which is a slow very memory
13310     # consuming and fragmenting process.  To avoid this, we pick a random,
13311     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13312     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13313     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'
13314     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'
13315     ;;
13316   irix5* | irix6*)
13317     case $cc_basename in
13318       CC*)
13319         # SGI C++
13320         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'
13321
13322         # Archives containing C++ object files must be created using
13323         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13324         # necessary to make sure instantiated templates are included
13325         # in the archive.
13326         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13327         ;;
13328       *)
13329         if test "$GXX" = yes; then
13330           if test "$with_gnu_ld" = no; then
13331             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'
13332           else
13333             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'
13334           fi
13335         fi
13336         link_all_deplibs_CXX=yes
13337         ;;
13338     esac
13339     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13340     hardcode_libdir_separator_CXX=:
13341     ;;
13342   linux* | k*bsd*-gnu)
13343     case $cc_basename in
13344       KCC*)
13345         # Kuck and Associates, Inc. (KAI) C++ Compiler
13346
13347         # KCC will only create a shared library if the output file
13348         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13349         # to its proper name (with version) after linking.
13350         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'
13351         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'
13352         # Commands to make compiler produce verbose output that lists
13353         # what "hidden" libraries, object files and flags are used when
13354         # linking a shared library.
13355         #
13356         # There doesn't appear to be a way to prevent this compiler from
13357         # explicitly linking system object files so we need to strip them
13358         # from the output so that they don't get included in the library
13359         # dependencies.
13360         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'
13361
13362         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13363         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13364
13365         # Archives containing C++ object files must be created using
13366         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13367         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13368         ;;
13369       icpc*)
13370         # Intel C++
13371         with_gnu_ld=yes
13372         # version 8.0 and above of icpc choke on multiply defined symbols
13373         # if we add $predep_objects and $postdep_objects, however 7.1 and
13374         # earlier do not add the objects themselves.
13375         case `$CC -V 2>&1` in
13376         *"Version 7."*)
13377           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13378           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'
13379           ;;
13380         *)  # Version 8.0 or newer
13381           tmp_idyn=
13382           case $host_cpu in
13383             ia64*) tmp_idyn=' -i_dynamic';;
13384           esac
13385           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13386           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'
13387           ;;
13388         esac
13389         archive_cmds_need_lc_CXX=no
13390         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13391         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13392         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13393         ;;
13394       pgCC*)
13395         # Portland Group C++ compiler
13396         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13397         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'
13398
13399         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13400         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13401         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'
13402         ;;
13403       cxx*)
13404         # Compaq C++
13405         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13406         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'
13407
13408         runpath_var=LD_RUN_PATH
13409         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13410         hardcode_libdir_separator_CXX=:
13411
13412         # Commands to make compiler produce verbose output that lists
13413         # what "hidden" libraries, object files and flags are used when
13414         # linking a shared library.
13415         #
13416         # There doesn't appear to be a way to prevent this compiler from
13417         # explicitly linking system object files so we need to strip them
13418         # from the output so that they don't get included in the library
13419         # dependencies.
13420         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'
13421         ;;
13422     esac
13423     ;;
13424   lynxos*)
13425     # FIXME: insert proper C++ library support
13426     ld_shlibs_CXX=no
13427     ;;
13428   m88k*)
13429     # FIXME: insert proper C++ library support
13430     ld_shlibs_CXX=no
13431     ;;
13432   mvs*)
13433     case $cc_basename in
13434       cxx*)
13435         # FIXME: insert proper C++ library support
13436         ld_shlibs_CXX=no
13437         ;;
13438       *)
13439         # FIXME: insert proper C++ library support
13440         ld_shlibs_CXX=no
13441         ;;
13442     esac
13443     ;;
13444   netbsd* | netbsdelf*-gnu)
13445     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13446       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13447       wlarc=
13448       hardcode_libdir_flag_spec_CXX='-R$libdir'
13449       hardcode_direct_CXX=yes
13450       hardcode_shlibpath_var_CXX=no
13451     fi
13452     # Workaround some broken pre-1.5 toolchains
13453     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13454     ;;
13455   openbsd2*)
13456     # C++ shared libraries are fairly broken
13457     ld_shlibs_CXX=no
13458     ;;
13459   openbsd*)
13460     hardcode_direct_CXX=yes
13461     hardcode_shlibpath_var_CXX=no
13462     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13463     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13464     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13465       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13466       export_dynamic_flag_spec_CXX='${wl}-E'
13467       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13468     fi
13469     output_verbose_link_cmd='echo'
13470     ;;
13471   osf3*)
13472     case $cc_basename in
13473       KCC*)
13474         # Kuck and Associates, Inc. (KAI) C++ Compiler
13475
13476         # KCC will only create a shared library if the output file
13477         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13478         # to its proper name (with version) after linking.
13479         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'
13480
13481         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13482         hardcode_libdir_separator_CXX=:
13483
13484         # Archives containing C++ object files must be created using
13485         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13486         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13487
13488         ;;
13489       RCC*)
13490         # Rational C++ 2.4.1
13491         # FIXME: insert proper C++ library support
13492         ld_shlibs_CXX=no
13493         ;;
13494       cxx*)
13495         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13496         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'
13497
13498         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13499         hardcode_libdir_separator_CXX=:
13500
13501         # Commands to make compiler produce verbose output that lists
13502         # what "hidden" libraries, object files and flags are used when
13503         # linking a shared library.
13504         #
13505         # There doesn't appear to be a way to prevent this compiler from
13506         # explicitly linking system object files so we need to strip them
13507         # from the output so that they don't get included in the library
13508         # dependencies.
13509         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'
13510         ;;
13511       *)
13512         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13513           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13514           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'
13515
13516           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13517           hardcode_libdir_separator_CXX=:
13518
13519           # Commands to make compiler produce verbose output that lists
13520           # what "hidden" libraries, object files and flags are used when
13521           # linking a shared library.
13522           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13523
13524         else
13525           # FIXME: insert proper C++ library support
13526           ld_shlibs_CXX=no
13527         fi
13528         ;;
13529     esac
13530     ;;
13531   osf4* | osf5*)
13532     case $cc_basename in
13533       KCC*)
13534         # Kuck and Associates, Inc. (KAI) C++ Compiler
13535
13536         # KCC will only create a shared library if the output file
13537         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13538         # to its proper name (with version) after linking.
13539         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'
13540
13541         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13542         hardcode_libdir_separator_CXX=:
13543
13544         # Archives containing C++ object files must be created using
13545         # the KAI C++ compiler.
13546         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13547         ;;
13548       RCC*)
13549         # Rational C++ 2.4.1
13550         # FIXME: insert proper C++ library support
13551         ld_shlibs_CXX=no
13552         ;;
13553       cxx*)
13554         allow_undefined_flag_CXX=' -expect_unresolved \*'
13555         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'
13556         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13557           echo "-hidden">> $lib.exp~
13558           $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~
13559           $rm $lib.exp'
13560
13561         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13562         hardcode_libdir_separator_CXX=:
13563
13564         # Commands to make compiler produce verbose output that lists
13565         # what "hidden" libraries, object files and flags are used when
13566         # linking a shared library.
13567         #
13568         # There doesn't appear to be a way to prevent this compiler from
13569         # explicitly linking system object files so we need to strip them
13570         # from the output so that they don't get included in the library
13571         # dependencies.
13572         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'
13573         ;;
13574       *)
13575         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13576           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13577          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'
13578
13579           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13580           hardcode_libdir_separator_CXX=:
13581
13582           # Commands to make compiler produce verbose output that lists
13583           # what "hidden" libraries, object files and flags are used when
13584           # linking a shared library.
13585           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13586
13587         else
13588           # FIXME: insert proper C++ library support
13589           ld_shlibs_CXX=no
13590         fi
13591         ;;
13592     esac
13593     ;;
13594   psos*)
13595     # FIXME: insert proper C++ library support
13596     ld_shlibs_CXX=no
13597     ;;
13598   sunos4*)
13599     case $cc_basename in
13600       CC*)
13601         # Sun C++ 4.x
13602         # FIXME: insert proper C++ library support
13603         ld_shlibs_CXX=no
13604         ;;
13605       lcc*)
13606         # Lucid
13607         # FIXME: insert proper C++ library support
13608         ld_shlibs_CXX=no
13609         ;;
13610       *)
13611         # FIXME: insert proper C++ library support
13612         ld_shlibs_CXX=no
13613         ;;
13614     esac
13615     ;;
13616   solaris*)
13617     case $cc_basename in
13618       CC*)
13619         # Sun C++ 4.2, 5.x and Centerline C++
13620         archive_cmds_need_lc_CXX=yes
13621         no_undefined_flag_CXX=' -zdefs'
13622         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13623         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13624         $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'
13625
13626         hardcode_libdir_flag_spec_CXX='-R$libdir'
13627         hardcode_shlibpath_var_CXX=no
13628         case $host_os in
13629           solaris2.[0-5] | solaris2.[0-5].*) ;;
13630           *)
13631             # The C++ compiler is used as linker so we must use $wl
13632             # flag to pass the commands to the underlying system
13633             # linker. We must also pass each convience library through
13634             # to the system linker between allextract/defaultextract.
13635             # The C++ compiler will combine linker options so we
13636             # cannot just pass the convience library names through
13637             # without $wl.
13638             # Supported since Solaris 2.6 (maybe 2.5.1?)
13639             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'
13640             ;;
13641         esac
13642         link_all_deplibs_CXX=yes
13643
13644         output_verbose_link_cmd='echo'
13645
13646         # Archives containing C++ object files must be created using
13647         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13648         # necessary to make sure instantiated templates are included
13649         # in the archive.
13650         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13651         ;;
13652       gcx*)
13653         # Green Hills C++ Compiler
13654         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13655
13656         # The C++ compiler must be used to create the archive.
13657         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13658         ;;
13659       *)
13660         # GNU C++ compiler with Solaris linker
13661         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13662           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13663           if $CC --version | grep -v '^2\.7' > /dev/null; then
13664             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13665             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13666                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13667
13668             # Commands to make compiler produce verbose output that lists
13669             # what "hidden" libraries, object files and flags are used when
13670             # linking a shared library.
13671             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13672           else
13673             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13674             # platform.
13675             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13676             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13677                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13678
13679             # Commands to make compiler produce verbose output that lists
13680             # what "hidden" libraries, object files and flags are used when
13681             # linking a shared library.
13682             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13683           fi
13684
13685           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13686         fi
13687         ;;
13688     esac
13689     ;;
13690   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13691     no_undefined_flag_CXX='${wl}-z,text'
13692     archive_cmds_need_lc_CXX=no
13693     hardcode_shlibpath_var_CXX=no
13694     runpath_var='LD_RUN_PATH'
13695
13696     case $cc_basename in
13697       CC*)
13698         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13699         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13700         ;;
13701       *)
13702         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13703         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13704         ;;
13705     esac
13706     ;;
13707   sysv5* | sco3.2v5* | sco5v6*)
13708     # Note: We can NOT use -z defs as we might desire, because we do not
13709     # link with -lc, and that would cause any symbols used from libc to
13710     # always be unresolved, which means just about no library would
13711     # ever link correctly.  If we're not using GNU ld we use -z text
13712     # though, which does catch some bad symbols but isn't as heavy-handed
13713     # as -z defs.
13714     # For security reasons, it is highly recommended that you always
13715     # use absolute paths for naming shared libraries, and exclude the
13716     # DT_RUNPATH tag from executables and libraries.  But doing so
13717     # requires that you compile everything twice, which is a pain.
13718     # So that behaviour is only enabled if SCOABSPATH is set to a
13719     # non-empty value in the environment.  Most likely only useful for
13720     # creating official distributions of packages.
13721     # This is a hack until libtool officially supports absolute path
13722     # names for shared libraries.
13723     no_undefined_flag_CXX='${wl}-z,text'
13724     allow_undefined_flag_CXX='${wl}-z,nodefs'
13725     archive_cmds_need_lc_CXX=no
13726     hardcode_shlibpath_var_CXX=no
13727     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13728     hardcode_libdir_separator_CXX=':'
13729     link_all_deplibs_CXX=yes
13730     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13731     runpath_var='LD_RUN_PATH'
13732
13733     case $cc_basename in
13734       CC*)
13735         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13736         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13737         ;;
13738       *)
13739         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13740         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13741         ;;
13742     esac
13743     ;;
13744   tandem*)
13745     case $cc_basename in
13746       NCC*)
13747         # NonStop-UX NCC 3.20
13748         # FIXME: insert proper C++ library support
13749         ld_shlibs_CXX=no
13750         ;;
13751       *)
13752         # FIXME: insert proper C++ library support
13753         ld_shlibs_CXX=no
13754         ;;
13755     esac
13756     ;;
13757   vxworks*)
13758     # FIXME: insert proper C++ library support
13759     ld_shlibs_CXX=no
13760     ;;
13761   *)
13762     # FIXME: insert proper C++ library support
13763     ld_shlibs_CXX=no
13764     ;;
13765 esac
13766 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13767 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13768 test "$ld_shlibs_CXX" = no && can_build_shared=no
13769
13770 GCC_CXX="$GXX"
13771 LD_CXX="$LD"
13772
13773
13774 cat > conftest.$ac_ext <<EOF
13775 class Foo
13776 {
13777 public:
13778   Foo (void) { a = 0; }
13779 private:
13780   int a;
13781 };
13782 EOF
13783
13784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13785   (eval $ac_compile) 2>&5
13786   ac_status=$?
13787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788   (exit $ac_status); }; then
13789   # Parse the compiler output and extract the necessary
13790   # objects, libraries and library flags.
13791
13792   # Sentinel used to keep track of whether or not we are before
13793   # the conftest object file.
13794   pre_test_object_deps_done=no
13795
13796   # The `*' in the case matches for architectures that use `case' in
13797   # $output_verbose_cmd can trigger glob expansion during the loop
13798   # eval without this substitution.
13799   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13800
13801   for p in `eval $output_verbose_link_cmd`; do
13802     case $p in
13803
13804     -L* | -R* | -l*)
13805        # Some compilers place space between "-{L,R}" and the path.
13806        # Remove the space.
13807        if test $p = "-L" \
13808           || test $p = "-R"; then
13809          prev=$p
13810          continue
13811        else
13812          prev=
13813        fi
13814
13815        if test "$pre_test_object_deps_done" = no; then
13816          case $p in
13817          -L* | -R*)
13818            # Internal compiler library paths should come after those
13819            # provided the user.  The postdeps already come after the
13820            # user supplied libs so there is no need to process them.
13821            if test -z "$compiler_lib_search_path_CXX"; then
13822              compiler_lib_search_path_CXX="${prev}${p}"
13823            else
13824              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13825            fi
13826            ;;
13827          # The "-l" case would never come before the object being
13828          # linked, so don't bother handling this case.
13829          esac
13830        else
13831          if test -z "$postdeps_CXX"; then
13832            postdeps_CXX="${prev}${p}"
13833          else
13834            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13835          fi
13836        fi
13837        ;;
13838
13839     *.$objext)
13840        # This assumes that the test object file only shows up
13841        # once in the compiler output.
13842        if test "$p" = "conftest.$objext"; then
13843          pre_test_object_deps_done=yes
13844          continue
13845        fi
13846
13847        if test "$pre_test_object_deps_done" = no; then
13848          if test -z "$predep_objects_CXX"; then
13849            predep_objects_CXX="$p"
13850          else
13851            predep_objects_CXX="$predep_objects_CXX $p"
13852          fi
13853        else
13854          if test -z "$postdep_objects_CXX"; then
13855            postdep_objects_CXX="$p"
13856          else
13857            postdep_objects_CXX="$postdep_objects_CXX $p"
13858          fi
13859        fi
13860        ;;
13861
13862     *) ;; # Ignore the rest.
13863
13864     esac
13865   done
13866
13867   # Clean up.
13868   rm -f a.out a.exe
13869 else
13870   echo "libtool.m4: error: problem compiling CXX test program"
13871 fi
13872
13873 $rm -f confest.$objext
13874
13875 # PORTME: override above test on systems where it is broken
13876 case $host_os in
13877 interix3*)
13878   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13879   # hack all around it, let's just trust "g++" to DTRT.
13880   predep_objects_CXX=
13881   postdep_objects_CXX=
13882   postdeps_CXX=
13883   ;;
13884
13885 solaris*)
13886   case $cc_basename in
13887   CC*)
13888     # Adding this requires a known-good setup of shared libraries for
13889     # Sun compiler versions before 5.6, else PIC objects from an old
13890     # archive will be linked into the output, leading to subtle bugs.
13891     postdeps_CXX='-lCstd -lCrun'
13892     ;;
13893   esac
13894   ;;
13895 esac
13896
13897
13898 case " $postdeps_CXX " in
13899 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13900 esac
13901
13902 lt_prog_compiler_wl_CXX=
13903 lt_prog_compiler_pic_CXX=
13904 lt_prog_compiler_static_CXX=
13905
13906 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13907 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13908
13909   # C++ specific cases for pic, static, wl, etc.
13910   if test "$GXX" = yes; then
13911     lt_prog_compiler_wl_CXX='-Wl,'
13912     lt_prog_compiler_static_CXX='-static'
13913
13914     case $host_os in
13915     aix*)
13916       # All AIX code is PIC.
13917       if test "$host_cpu" = ia64; then
13918         # AIX 5 now supports IA64 processor
13919         lt_prog_compiler_static_CXX='-Bstatic'
13920       fi
13921       ;;
13922     amigaos*)
13923       # FIXME: we need at least 68020 code to build shared libraries, but
13924       # adding the `-m68020' flag to GCC prevents building anything better,
13925       # like `-m68040'.
13926       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13927       ;;
13928     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13929       # PIC is the default for these OSes.
13930       ;;
13931     mingw* | os2* | pw32*)
13932       # This hack is so that the source file can tell whether it is being
13933       # built for inclusion in a dll (and should export symbols for example).
13934       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13935       ;;
13936     darwin* | rhapsody*)
13937       # PIC is the default on this platform
13938       # Common symbols not allowed in MH_DYLIB files
13939       lt_prog_compiler_pic_CXX='-fno-common'
13940       ;;
13941     *djgpp*)
13942       # DJGPP does not support shared libraries at all
13943       lt_prog_compiler_pic_CXX=
13944       ;;
13945     interix3*)
13946       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13947       # Instead, we relocate shared libraries at runtime.
13948       ;;
13949     sysv4*MP*)
13950       if test -d /usr/nec; then
13951         lt_prog_compiler_pic_CXX=-Kconform_pic
13952       fi
13953       ;;
13954     hpux*)
13955       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13956       # not for PA HP-UX.
13957       case $host_cpu in
13958       hppa*64*|ia64*)
13959         ;;
13960       *)
13961         lt_prog_compiler_pic_CXX='-fPIC'
13962         ;;
13963       esac
13964       ;;
13965     *)
13966       lt_prog_compiler_pic_CXX='-fPIC'
13967       ;;
13968     esac
13969   else
13970     case $host_os in
13971       aix4* | aix5*)
13972         # All AIX code is PIC.
13973         if test "$host_cpu" = ia64; then
13974           # AIX 5 now supports IA64 processor
13975           lt_prog_compiler_static_CXX='-Bstatic'
13976         else
13977           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13978         fi
13979         ;;
13980       chorus*)
13981         case $cc_basename in
13982         cxch68*)
13983           # Green Hills C++ Compiler
13984           # _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"
13985           ;;
13986         esac
13987         ;;
13988        darwin*)
13989          # PIC is the default on this platform
13990          # Common symbols not allowed in MH_DYLIB files
13991          case $cc_basename in
13992            xlc*)
13993            lt_prog_compiler_pic_CXX='-qnocommon'
13994            lt_prog_compiler_wl_CXX='-Wl,'
13995            ;;
13996          esac
13997        ;;
13998       dgux*)
13999         case $cc_basename in
14000           ec++*)
14001             lt_prog_compiler_pic_CXX='-KPIC'
14002             ;;
14003           ghcx*)
14004             # Green Hills C++ Compiler
14005             lt_prog_compiler_pic_CXX='-pic'
14006             ;;
14007           *)
14008             ;;
14009         esac
14010         ;;
14011       freebsd* | dragonfly*)
14012         # FreeBSD uses GNU C++
14013         ;;
14014       hpux9* | hpux10* | hpux11*)
14015         case $cc_basename in
14016           CC*)
14017             lt_prog_compiler_wl_CXX='-Wl,'
14018             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14019             if test "$host_cpu" != ia64; then
14020               lt_prog_compiler_pic_CXX='+Z'
14021             fi
14022             ;;
14023           aCC*)
14024             lt_prog_compiler_wl_CXX='-Wl,'
14025             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14026             case $host_cpu in
14027             hppa*64*|ia64*)
14028               # +Z the default
14029               ;;
14030             *)
14031               lt_prog_compiler_pic_CXX='+Z'
14032               ;;
14033             esac
14034             ;;
14035           *)
14036             ;;
14037         esac
14038         ;;
14039       interix*)
14040         # This is c89, which is MS Visual C++ (no shared libs)
14041         # Anyone wants to do a port?
14042         ;;
14043       irix5* | irix6* | nonstopux*)
14044         case $cc_basename in
14045           CC*)
14046             lt_prog_compiler_wl_CXX='-Wl,'
14047             lt_prog_compiler_static_CXX='-non_shared'
14048             # CC pic flag -KPIC is the default.
14049             ;;
14050           *)
14051             ;;
14052         esac
14053         ;;
14054       linux* | k*bsd*-gnu)
14055         case $cc_basename in
14056           KCC*)
14057             # KAI C++ Compiler
14058             lt_prog_compiler_wl_CXX='--backend -Wl,'
14059             lt_prog_compiler_pic_CXX='-fPIC'
14060             ;;
14061           icpc* | ecpc*)
14062             # Intel C++
14063             lt_prog_compiler_wl_CXX='-Wl,'
14064             lt_prog_compiler_pic_CXX='-KPIC'
14065             lt_prog_compiler_static_CXX='-static'
14066             ;;
14067           pgCC*)
14068             # Portland Group C++ compiler.
14069             lt_prog_compiler_wl_CXX='-Wl,'
14070             lt_prog_compiler_pic_CXX='-fpic'
14071             lt_prog_compiler_static_CXX='-Bstatic'
14072             ;;
14073           cxx*)
14074             # Compaq C++
14075             # Make sure the PIC flag is empty.  It appears that all Alpha
14076             # Linux and Compaq Tru64 Unix objects are PIC.
14077             lt_prog_compiler_pic_CXX=
14078             lt_prog_compiler_static_CXX='-non_shared'
14079             ;;
14080           *)
14081             ;;
14082         esac
14083         ;;
14084       lynxos*)
14085         ;;
14086       m88k*)
14087         ;;
14088       mvs*)
14089         case $cc_basename in
14090           cxx*)
14091             lt_prog_compiler_pic_CXX='-W c,exportall'
14092             ;;
14093           *)
14094             ;;
14095         esac
14096         ;;
14097       netbsd* | netbsdelf*-gnu)
14098         ;;
14099       osf3* | osf4* | osf5*)
14100         case $cc_basename in
14101           KCC*)
14102             lt_prog_compiler_wl_CXX='--backend -Wl,'
14103             ;;
14104           RCC*)
14105             # Rational C++ 2.4.1
14106             lt_prog_compiler_pic_CXX='-pic'
14107             ;;
14108           cxx*)
14109             # Digital/Compaq C++
14110             lt_prog_compiler_wl_CXX='-Wl,'
14111             # Make sure the PIC flag is empty.  It appears that all Alpha
14112             # Linux and Compaq Tru64 Unix objects are PIC.
14113             lt_prog_compiler_pic_CXX=
14114             lt_prog_compiler_static_CXX='-non_shared'
14115             ;;
14116           *)
14117             ;;
14118         esac
14119         ;;
14120       psos*)
14121         ;;
14122       solaris*)
14123         case $cc_basename in
14124           CC*)
14125             # Sun C++ 4.2, 5.x and Centerline C++
14126             lt_prog_compiler_pic_CXX='-KPIC'
14127             lt_prog_compiler_static_CXX='-Bstatic'
14128             lt_prog_compiler_wl_CXX='-Qoption ld '
14129             ;;
14130           gcx*)
14131             # Green Hills C++ Compiler
14132             lt_prog_compiler_pic_CXX='-PIC'
14133             ;;
14134           *)
14135             ;;
14136         esac
14137         ;;
14138       sunos4*)
14139         case $cc_basename in
14140           CC*)
14141             # Sun C++ 4.x
14142             lt_prog_compiler_pic_CXX='-pic'
14143             lt_prog_compiler_static_CXX='-Bstatic'
14144             ;;
14145           lcc*)
14146             # Lucid
14147             lt_prog_compiler_pic_CXX='-pic'
14148             ;;
14149           *)
14150             ;;
14151         esac
14152         ;;
14153       tandem*)
14154         case $cc_basename in
14155           NCC*)
14156             # NonStop-UX NCC 3.20
14157             lt_prog_compiler_pic_CXX='-KPIC'
14158             ;;
14159           *)
14160             ;;
14161         esac
14162         ;;
14163       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14164         case $cc_basename in
14165           CC*)
14166             lt_prog_compiler_wl_CXX='-Wl,'
14167             lt_prog_compiler_pic_CXX='-KPIC'
14168             lt_prog_compiler_static_CXX='-Bstatic'
14169             ;;
14170         esac
14171         ;;
14172       vxworks*)
14173         ;;
14174       *)
14175         lt_prog_compiler_can_build_shared_CXX=no
14176         ;;
14177     esac
14178   fi
14179
14180 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14181 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14182
14183 #
14184 # Check to make sure the PIC flag actually works.
14185 #
14186 if test -n "$lt_prog_compiler_pic_CXX"; then
14187
14188 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14189 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14190 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14191   echo $ECHO_N "(cached) $ECHO_C" >&6
14192 else
14193   lt_prog_compiler_pic_works_CXX=no
14194   ac_outfile=conftest.$ac_objext
14195    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14196    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14197    # Insert the option either (1) after the last *FLAGS variable, or
14198    # (2) before a word containing "conftest.", or (3) at the end.
14199    # Note that $ac_compile itself does not contain backslashes and begins
14200    # with a dollar sign (not a hyphen), so the echo should work correctly.
14201    # The option is referenced via a variable to avoid confusing sed.
14202    lt_compile=`echo "$ac_compile" | $SED \
14203    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14204    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14205    -e 's:$: $lt_compiler_flag:'`
14206    (eval echo "\"\$as_me:14206: $lt_compile\"" >&5)
14207    (eval "$lt_compile" 2>conftest.err)
14208    ac_status=$?
14209    cat conftest.err >&5
14210    echo "$as_me:14210: \$? = $ac_status" >&5
14211    if (exit $ac_status) && test -s "$ac_outfile"; then
14212      # The compiler can only warn and ignore the option if not recognized
14213      # So say no if there are warnings other than the usual output.
14214      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14215      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14216      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14217        lt_prog_compiler_pic_works_CXX=yes
14218      fi
14219    fi
14220    $rm conftest*
14221
14222 fi
14223 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14224 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14225
14226 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14227     case $lt_prog_compiler_pic_CXX in
14228      "" | " "*) ;;
14229      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14230      esac
14231 else
14232     lt_prog_compiler_pic_CXX=
14233      lt_prog_compiler_can_build_shared_CXX=no
14234 fi
14235
14236 fi
14237 case $host_os in
14238   # For platforms which do not support PIC, -DPIC is meaningless:
14239   *djgpp*)
14240     lt_prog_compiler_pic_CXX=
14241     ;;
14242   *)
14243     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14244     ;;
14245 esac
14246
14247 #
14248 # Check to make sure the static flag actually works.
14249 #
14250 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14251 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14252 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14253 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14254   echo $ECHO_N "(cached) $ECHO_C" >&6
14255 else
14256   lt_prog_compiler_static_works_CXX=no
14257    save_LDFLAGS="$LDFLAGS"
14258    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14259    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14260    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14261      # The linker can only warn and ignore the option if not recognized
14262      # So say no if there are warnings
14263      if test -s conftest.err; then
14264        # Append any errors to the config.log.
14265        cat conftest.err 1>&5
14266        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14267        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14268        if diff conftest.exp conftest.er2 >/dev/null; then
14269          lt_prog_compiler_static_works_CXX=yes
14270        fi
14271      else
14272        lt_prog_compiler_static_works_CXX=yes
14273      fi
14274    fi
14275    $rm conftest*
14276    LDFLAGS="$save_LDFLAGS"
14277
14278 fi
14279 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14280 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14281
14282 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14283     :
14284 else
14285     lt_prog_compiler_static_CXX=
14286 fi
14287
14288
14289 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14290 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14291 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14292   echo $ECHO_N "(cached) $ECHO_C" >&6
14293 else
14294   lt_cv_prog_compiler_c_o_CXX=no
14295    $rm -r conftest 2>/dev/null
14296    mkdir conftest
14297    cd conftest
14298    mkdir out
14299    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14300
14301    lt_compiler_flag="-o out/conftest2.$ac_objext"
14302    # Insert the option either (1) after the last *FLAGS variable, or
14303    # (2) before a word containing "conftest.", or (3) at the end.
14304    # Note that $ac_compile itself does not contain backslashes and begins
14305    # with a dollar sign (not a hyphen), so the echo should work correctly.
14306    lt_compile=`echo "$ac_compile" | $SED \
14307    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14308    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14309    -e 's:$: $lt_compiler_flag:'`
14310    (eval echo "\"\$as_me:14310: $lt_compile\"" >&5)
14311    (eval "$lt_compile" 2>out/conftest.err)
14312    ac_status=$?
14313    cat out/conftest.err >&5
14314    echo "$as_me:14314: \$? = $ac_status" >&5
14315    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14316    then
14317      # The compiler can only warn and ignore the option if not recognized
14318      # So say no if there are warnings
14319      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14320      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14321      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14322        lt_cv_prog_compiler_c_o_CXX=yes
14323      fi
14324    fi
14325    chmod u+w . 2>&5
14326    $rm conftest*
14327    # SGI C++ compiler will create directory out/ii_files/ for
14328    # template instantiation
14329    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14330    $rm out/* && rmdir out
14331    cd ..
14332    rmdir conftest
14333    $rm conftest*
14334
14335 fi
14336 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14337 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14338
14339
14340 hard_links="nottested"
14341 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14342   # do not overwrite the value of need_locks provided by the user
14343   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14344 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14345   hard_links=yes
14346   $rm conftest*
14347   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14348   touch conftest.a
14349   ln conftest.a conftest.b 2>&5 || hard_links=no
14350   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14351   { echo "$as_me:$LINENO: result: $hard_links" >&5
14352 echo "${ECHO_T}$hard_links" >&6; }
14353   if test "$hard_links" = no; then
14354     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14355 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14356     need_locks=warn
14357   fi
14358 else
14359   need_locks=no
14360 fi
14361
14362 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14363 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14364
14365   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14366   case $host_os in
14367   aix4* | aix5*)
14368     # If we're using GNU nm, then we don't want the "-C" option.
14369     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14370     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14371       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'
14372     else
14373       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'
14374     fi
14375     ;;
14376   pw32*)
14377     export_symbols_cmds_CXX="$ltdll_cmds"
14378   ;;
14379   cygwin* | mingw*)
14380     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'
14381   ;;
14382   linux* | k*bsd*-gnu)
14383     link_all_deplibs_CXX=no
14384   ;;
14385   *)
14386     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14387   ;;
14388   esac
14389
14390 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14391 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14392 test "$ld_shlibs_CXX" = no && can_build_shared=no
14393
14394 #
14395 # Do we need to explicitly link libc?
14396 #
14397 case "x$archive_cmds_need_lc_CXX" in
14398 x|xyes)
14399   # Assume -lc should be added
14400   archive_cmds_need_lc_CXX=yes
14401
14402   if test "$enable_shared" = yes && test "$GCC" = yes; then
14403     case $archive_cmds_CXX in
14404     *'~'*)
14405       # FIXME: we may have to deal with multi-command sequences.
14406       ;;
14407     '$CC '*)
14408       # Test whether the compiler implicitly links with -lc since on some
14409       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14410       # to ld, don't add -lc before -lgcc.
14411       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14412 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14413       $rm conftest*
14414       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14415
14416       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14417   (eval $ac_compile) 2>&5
14418   ac_status=$?
14419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); } 2>conftest.err; then
14421         soname=conftest
14422         lib=conftest
14423         libobjs=conftest.$ac_objext
14424         deplibs=
14425         wl=$lt_prog_compiler_wl_CXX
14426         pic_flag=$lt_prog_compiler_pic_CXX
14427         compiler_flags=-v
14428         linker_flags=-v
14429         verstring=
14430         output_objdir=.
14431         libname=conftest
14432         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14433         allow_undefined_flag_CXX=
14434         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14435   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14436   ac_status=$?
14437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438   (exit $ac_status); }
14439         then
14440           archive_cmds_need_lc_CXX=no
14441         else
14442           archive_cmds_need_lc_CXX=yes
14443         fi
14444         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14445       else
14446         cat conftest.err 1>&5
14447       fi
14448       $rm conftest*
14449       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14450 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14451       ;;
14452     esac
14453   fi
14454   ;;
14455 esac
14456
14457 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14458 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14459 library_names_spec=
14460 libname_spec='lib$name'
14461 soname_spec=
14462 shrext_cmds=".so"
14463 postinstall_cmds=
14464 postuninstall_cmds=
14465 finish_cmds=
14466 finish_eval=
14467 shlibpath_var=
14468 shlibpath_overrides_runpath=unknown
14469 version_type=none
14470 dynamic_linker="$host_os ld.so"
14471 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14472 if test "$GCC" = yes; then
14473   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14474   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14475     # if the path contains ";" then we assume it to be the separator
14476     # otherwise default to the standard path separator (i.e. ":") - it is
14477     # assumed that no part of a normal pathname contains ";" but that should
14478     # okay in the real world where ";" in dirpaths is itself problematic.
14479     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14480   else
14481     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14482   fi
14483 else
14484   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14485 fi
14486 need_lib_prefix=unknown
14487 hardcode_into_libs=no
14488
14489 # when you set need_version to no, make sure it does not cause -set_version
14490 # flags to be left without arguments
14491 need_version=unknown
14492
14493 case $host_os in
14494 aix3*)
14495   version_type=linux
14496   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14497   shlibpath_var=LIBPATH
14498
14499   # AIX 3 has no versioning support, so we append a major version to the name.
14500   soname_spec='${libname}${release}${shared_ext}$major'
14501   ;;
14502
14503 aix4* | aix5*)
14504   version_type=linux
14505   need_lib_prefix=no
14506   need_version=no
14507   hardcode_into_libs=yes
14508   if test "$host_cpu" = ia64; then
14509     # AIX 5 supports IA64
14510     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14511     shlibpath_var=LD_LIBRARY_PATH
14512   else
14513     # With GCC up to 2.95.x, collect2 would create an import file
14514     # for dependence libraries.  The import file would start with
14515     # the line `#! .'.  This would cause the generated library to
14516     # depend on `.', always an invalid library.  This was fixed in
14517     # development snapshots of GCC prior to 3.0.
14518     case $host_os in
14519       aix4 | aix4.[01] | aix4.[01].*)
14520       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14521            echo ' yes '
14522            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14523         :
14524       else
14525         can_build_shared=no
14526       fi
14527       ;;
14528     esac
14529     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14530     # soname into executable. Probably we can add versioning support to
14531     # collect2, so additional links can be useful in future.
14532     if test "$aix_use_runtimelinking" = yes; then
14533       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14534       # instead of lib<name>.a to let people know that these are not
14535       # typical AIX shared libraries.
14536       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14537     else
14538       # We preserve .a as extension for shared libraries through AIX4.2
14539       # and later when we are not doing run time linking.
14540       library_names_spec='${libname}${release}.a $libname.a'
14541       soname_spec='${libname}${release}${shared_ext}$major'
14542     fi
14543     shlibpath_var=LIBPATH
14544   fi
14545   ;;
14546
14547 amigaos*)
14548   library_names_spec='$libname.ixlibrary $libname.a'
14549   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14550   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'
14551   ;;
14552
14553 beos*)
14554   library_names_spec='${libname}${shared_ext}'
14555   dynamic_linker="$host_os ld.so"
14556   shlibpath_var=LIBRARY_PATH
14557   ;;
14558
14559 bsdi[45]*)
14560   version_type=linux
14561   need_version=no
14562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14563   soname_spec='${libname}${release}${shared_ext}$major'
14564   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14565   shlibpath_var=LD_LIBRARY_PATH
14566   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14567   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14568   # the default ld.so.conf also contains /usr/contrib/lib and
14569   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14570   # libtool to hard-code these into programs
14571   ;;
14572
14573 cygwin* | mingw* | pw32*)
14574   version_type=windows
14575   shrext_cmds=".dll"
14576   need_version=no
14577   need_lib_prefix=no
14578
14579   case $GCC,$host_os in
14580   yes,cygwin* | yes,mingw* | yes,pw32*)
14581     library_names_spec='$libname.dll.a'
14582     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14583     postinstall_cmds='base_file=`basename \${file}`~
14584       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14585       dldir=$destdir/`dirname \$dlpath`~
14586       test -d \$dldir || mkdir -p \$dldir~
14587       $install_prog $dir/$dlname \$dldir/$dlname~
14588       chmod a+x \$dldir/$dlname'
14589     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14590       dlpath=$dir/\$dldll~
14591        $rm \$dlpath'
14592     shlibpath_overrides_runpath=yes
14593
14594     case $host_os in
14595     cygwin*)
14596       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14597       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14598       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14599       ;;
14600     mingw*)
14601       # MinGW DLLs use traditional 'lib' prefix
14602       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14603       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14604       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14605         # It is most probably a Windows format PATH printed by
14606         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14607         # path with ; separators, and with drive letters. We can handle the
14608         # drive letters (cygwin fileutils understands them), so leave them,
14609         # especially as we might pass files found there to a mingw objdump,
14610         # which wouldn't understand a cygwinified path. Ahh.
14611         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14612       else
14613         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14614       fi
14615       ;;
14616     pw32*)
14617       # pw32 DLLs use 'pw' prefix rather than 'lib'
14618       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14619       ;;
14620     esac
14621     ;;
14622
14623   *)
14624     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14625     ;;
14626   esac
14627   dynamic_linker='Win32 ld.exe'
14628   # FIXME: first we should search . and the directory the executable is in
14629   shlibpath_var=PATH
14630   ;;
14631
14632 darwin* | rhapsody*)
14633   dynamic_linker="$host_os dyld"
14634   version_type=darwin
14635   need_lib_prefix=no
14636   need_version=no
14637   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14638   soname_spec='${libname}${release}${major}$shared_ext'
14639   shlibpath_overrides_runpath=yes
14640   shlibpath_var=DYLD_LIBRARY_PATH
14641   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14642   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14643   if test "$GCC" = yes; then
14644     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"`
14645   else
14646     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14647   fi
14648   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14649   ;;
14650
14651 dgux*)
14652   version_type=linux
14653   need_lib_prefix=no
14654   need_version=no
14655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14656   soname_spec='${libname}${release}${shared_ext}$major'
14657   shlibpath_var=LD_LIBRARY_PATH
14658   ;;
14659
14660 freebsd1*)
14661   dynamic_linker=no
14662   ;;
14663
14664 freebsd* | dragonfly*)
14665   # DragonFly does not have aout.  When/if they implement a new
14666   # versioning mechanism, adjust this.
14667   if test -x /usr/bin/objformat; then
14668     objformat=`/usr/bin/objformat`
14669   else
14670     case $host_os in
14671     freebsd[123]*) objformat=aout ;;
14672     *) objformat=elf ;;
14673     esac
14674   fi
14675   version_type=freebsd-$objformat
14676   case $version_type in
14677     freebsd-elf*)
14678       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14679       need_version=no
14680       need_lib_prefix=no
14681       ;;
14682     freebsd-*)
14683       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14684       need_version=yes
14685       ;;
14686   esac
14687   shlibpath_var=LD_LIBRARY_PATH
14688   case $host_os in
14689   freebsd2*)
14690     shlibpath_overrides_runpath=yes
14691     ;;
14692   freebsd3.[01]* | freebsdelf3.[01]*)
14693     shlibpath_overrides_runpath=yes
14694     hardcode_into_libs=yes
14695     ;;
14696   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14697   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14698     shlibpath_overrides_runpath=no
14699     hardcode_into_libs=yes
14700     ;;
14701   freebsd*) # from 4.6 on
14702     shlibpath_overrides_runpath=yes
14703     hardcode_into_libs=yes
14704     ;;
14705   esac
14706   ;;
14707
14708 gnu*)
14709   version_type=linux
14710   need_lib_prefix=no
14711   need_version=no
14712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14713   soname_spec='${libname}${release}${shared_ext}$major'
14714   shlibpath_var=LD_LIBRARY_PATH
14715   hardcode_into_libs=yes
14716   ;;
14717
14718 hpux9* | hpux10* | hpux11*)
14719   # Give a soname corresponding to the major version so that dld.sl refuses to
14720   # link against other versions.
14721   version_type=sunos
14722   need_lib_prefix=no
14723   need_version=no
14724   case $host_cpu in
14725   ia64*)
14726     shrext_cmds='.so'
14727     hardcode_into_libs=yes
14728     dynamic_linker="$host_os dld.so"
14729     shlibpath_var=LD_LIBRARY_PATH
14730     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14732     soname_spec='${libname}${release}${shared_ext}$major'
14733     if test "X$HPUX_IA64_MODE" = X32; then
14734       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14735     else
14736       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14737     fi
14738     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14739     ;;
14740    hppa*64*)
14741      shrext_cmds='.sl'
14742      hardcode_into_libs=yes
14743      dynamic_linker="$host_os dld.sl"
14744      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14745      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14746      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14747      soname_spec='${libname}${release}${shared_ext}$major'
14748      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14749      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14750      ;;
14751    *)
14752     shrext_cmds='.sl'
14753     dynamic_linker="$host_os dld.sl"
14754     shlibpath_var=SHLIB_PATH
14755     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14756     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757     soname_spec='${libname}${release}${shared_ext}$major'
14758     ;;
14759   esac
14760   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14761   postinstall_cmds='chmod 555 $lib'
14762   ;;
14763
14764 interix3*)
14765   version_type=linux
14766   need_lib_prefix=no
14767   need_version=no
14768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14769   soname_spec='${libname}${release}${shared_ext}$major'
14770   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14771   shlibpath_var=LD_LIBRARY_PATH
14772   shlibpath_overrides_runpath=no
14773   hardcode_into_libs=yes
14774   ;;
14775
14776 irix5* | irix6* | nonstopux*)
14777   case $host_os in
14778     nonstopux*) version_type=nonstopux ;;
14779     *)
14780         if test "$lt_cv_prog_gnu_ld" = yes; then
14781                 version_type=linux
14782         else
14783                 version_type=irix
14784         fi ;;
14785   esac
14786   need_lib_prefix=no
14787   need_version=no
14788   soname_spec='${libname}${release}${shared_ext}$major'
14789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14790   case $host_os in
14791   irix5* | nonstopux*)
14792     libsuff= shlibsuff=
14793     ;;
14794   *)
14795     case $LD in # libtool.m4 will add one of these switches to LD
14796     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14797       libsuff= shlibsuff= libmagic=32-bit;;
14798     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14799       libsuff=32 shlibsuff=N32 libmagic=N32;;
14800     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14801       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14802     *) libsuff= shlibsuff= libmagic=never-match;;
14803     esac
14804     ;;
14805   esac
14806   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14807   shlibpath_overrides_runpath=no
14808   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14809   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14810   hardcode_into_libs=yes
14811   ;;
14812
14813 # No shared lib support for Linux oldld, aout, or coff.
14814 linux*oldld* | linux*aout* | linux*coff*)
14815   dynamic_linker=no
14816   ;;
14817
14818 # This must be Linux ELF.
14819 linux* | k*bsd*-gnu)
14820   version_type=linux
14821   need_lib_prefix=no
14822   need_version=no
14823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14824   soname_spec='${libname}${release}${shared_ext}$major'
14825   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14826   shlibpath_var=LD_LIBRARY_PATH
14827   shlibpath_overrides_runpath=no
14828   # This implies no fast_install, which is unacceptable.
14829   # Some rework will be needed to allow for fast_install
14830   # before this can be enabled.
14831   hardcode_into_libs=yes
14832
14833   # Append ld.so.conf contents to the search path
14834   if test -f /etc/ld.so.conf; then
14835     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' ' '`
14836     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14837   fi
14838
14839   # We used to test for /lib/ld.so.1 and disable shared libraries on
14840   # powerpc, because MkLinux only supported shared libraries with the
14841   # GNU dynamic linker.  Since this was broken with cross compilers,
14842   # most powerpc-linux boxes support dynamic linking these days and
14843   # people can always --disable-shared, the test was removed, and we
14844   # assume the GNU/Linux dynamic linker is in use.
14845   dynamic_linker='GNU/Linux ld.so'
14846   ;;
14847
14848 netbsdelf*-gnu)
14849   version_type=linux
14850   need_lib_prefix=no
14851   need_version=no
14852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14853   soname_spec='${libname}${release}${shared_ext}$major'
14854   shlibpath_var=LD_LIBRARY_PATH
14855   shlibpath_overrides_runpath=no
14856   hardcode_into_libs=yes
14857   dynamic_linker='NetBSD ld.elf_so'
14858   ;;
14859
14860 netbsd*)
14861   version_type=sunos
14862   need_lib_prefix=no
14863   need_version=no
14864   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14866     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14867     dynamic_linker='NetBSD (a.out) ld.so'
14868   else
14869     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14870     soname_spec='${libname}${release}${shared_ext}$major'
14871     dynamic_linker='NetBSD ld.elf_so'
14872   fi
14873   shlibpath_var=LD_LIBRARY_PATH
14874   shlibpath_overrides_runpath=yes
14875   hardcode_into_libs=yes
14876   ;;
14877
14878 newsos6)
14879   version_type=linux
14880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14881   shlibpath_var=LD_LIBRARY_PATH
14882   shlibpath_overrides_runpath=yes
14883   ;;
14884
14885 nto-qnx*)
14886   version_type=linux
14887   need_lib_prefix=no
14888   need_version=no
14889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14890   soname_spec='${libname}${release}${shared_ext}$major'
14891   shlibpath_var=LD_LIBRARY_PATH
14892   shlibpath_overrides_runpath=yes
14893   ;;
14894
14895 openbsd*)
14896   version_type=sunos
14897   sys_lib_dlsearch_path_spec="/usr/lib"
14898   need_lib_prefix=no
14899   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14900   case $host_os in
14901     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14902     *)                         need_version=no  ;;
14903   esac
14904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14905   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14906   shlibpath_var=LD_LIBRARY_PATH
14907   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14908     case $host_os in
14909       openbsd2.[89] | openbsd2.[89].*)
14910         shlibpath_overrides_runpath=no
14911         ;;
14912       *)
14913         shlibpath_overrides_runpath=yes
14914         ;;
14915       esac
14916   else
14917     shlibpath_overrides_runpath=yes
14918   fi
14919   ;;
14920
14921 os2*)
14922   libname_spec='$name'
14923   shrext_cmds=".dll"
14924   need_lib_prefix=no
14925   library_names_spec='$libname${shared_ext} $libname.a'
14926   dynamic_linker='OS/2 ld.exe'
14927   shlibpath_var=LIBPATH
14928   ;;
14929
14930 osf3* | osf4* | osf5*)
14931   version_type=osf
14932   need_lib_prefix=no
14933   need_version=no
14934   soname_spec='${libname}${release}${shared_ext}$major'
14935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14936   shlibpath_var=LD_LIBRARY_PATH
14937   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14938   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14939   ;;
14940
14941 solaris*)
14942   version_type=linux
14943   need_lib_prefix=no
14944   need_version=no
14945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946   soname_spec='${libname}${release}${shared_ext}$major'
14947   shlibpath_var=LD_LIBRARY_PATH
14948   shlibpath_overrides_runpath=yes
14949   hardcode_into_libs=yes
14950   # ldd complains unless libraries are executable
14951   postinstall_cmds='chmod +x $lib'
14952   ;;
14953
14954 sunos4*)
14955   version_type=sunos
14956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14957   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14958   shlibpath_var=LD_LIBRARY_PATH
14959   shlibpath_overrides_runpath=yes
14960   if test "$with_gnu_ld" = yes; then
14961     need_lib_prefix=no
14962   fi
14963   need_version=yes
14964   ;;
14965
14966 sysv4 | sysv4.3*)
14967   version_type=linux
14968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14969   soname_spec='${libname}${release}${shared_ext}$major'
14970   shlibpath_var=LD_LIBRARY_PATH
14971   case $host_vendor in
14972     sni)
14973       shlibpath_overrides_runpath=no
14974       need_lib_prefix=no
14975       export_dynamic_flag_spec='${wl}-Blargedynsym'
14976       runpath_var=LD_RUN_PATH
14977       ;;
14978     siemens)
14979       need_lib_prefix=no
14980       ;;
14981     motorola)
14982       need_lib_prefix=no
14983       need_version=no
14984       shlibpath_overrides_runpath=no
14985       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14986       ;;
14987   esac
14988   ;;
14989
14990 sysv4*MP*)
14991   if test -d /usr/nec ;then
14992     version_type=linux
14993     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14994     soname_spec='$libname${shared_ext}.$major'
14995     shlibpath_var=LD_LIBRARY_PATH
14996   fi
14997   ;;
14998
14999 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15000   version_type=freebsd-elf
15001   need_lib_prefix=no
15002   need_version=no
15003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15004   soname_spec='${libname}${release}${shared_ext}$major'
15005   shlibpath_var=LD_LIBRARY_PATH
15006   hardcode_into_libs=yes
15007   if test "$with_gnu_ld" = yes; then
15008     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15009     shlibpath_overrides_runpath=no
15010   else
15011     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15012     shlibpath_overrides_runpath=yes
15013     case $host_os in
15014       sco3.2v5*)
15015         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15016         ;;
15017     esac
15018   fi
15019   sys_lib_dlsearch_path_spec='/usr/lib'
15020   ;;
15021
15022 uts4*)
15023   version_type=linux
15024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15025   soname_spec='${libname}${release}${shared_ext}$major'
15026   shlibpath_var=LD_LIBRARY_PATH
15027   ;;
15028
15029 *)
15030   dynamic_linker=no
15031   ;;
15032 esac
15033 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15034 echo "${ECHO_T}$dynamic_linker" >&6; }
15035 test "$dynamic_linker" = no && can_build_shared=no
15036
15037 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15038 if test "$GCC" = yes; then
15039   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15040 fi
15041
15042 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15043 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15044 hardcode_action_CXX=
15045 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15046    test -n "$runpath_var_CXX" || \
15047    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15048
15049   # We can hardcode non-existant directories.
15050   if test "$hardcode_direct_CXX" != no &&
15051      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15052      # have to relink, otherwise we might link with an installed library
15053      # when we should be linking with a yet-to-be-installed one
15054      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15055      test "$hardcode_minus_L_CXX" != no; then
15056     # Linking always hardcodes the temporary library directory.
15057     hardcode_action_CXX=relink
15058   else
15059     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15060     hardcode_action_CXX=immediate
15061   fi
15062 else
15063   # We cannot hardcode anything, or else we can only hardcode existing
15064   # directories.
15065   hardcode_action_CXX=unsupported
15066 fi
15067 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15068 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15069
15070 if test "$hardcode_action_CXX" = relink; then
15071   # Fast installation is not supported
15072   enable_fast_install=no
15073 elif test "$shlibpath_overrides_runpath" = yes ||
15074      test "$enable_shared" = no; then
15075   # Fast installation is not necessary
15076   enable_fast_install=needless
15077 fi
15078
15079
15080 # The else clause should only fire when bootstrapping the
15081 # libtool distribution, otherwise you forgot to ship ltmain.sh
15082 # with your package, and you will get complaints that there are
15083 # no rules to generate ltmain.sh.
15084 if test -f "$ltmain"; then
15085   # See if we are running on zsh, and set the options which allow our commands through
15086   # without removal of \ escapes.
15087   if test -n "${ZSH_VERSION+set}" ; then
15088     setopt NO_GLOB_SUBST
15089   fi
15090   # Now quote all the things that may contain metacharacters while being
15091   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15092   # variables and quote the copies for generation of the libtool script.
15093   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15094     SED SHELL STRIP \
15095     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15096     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15097     deplibs_check_method reload_flag reload_cmds need_locks \
15098     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15099     lt_cv_sys_global_symbol_to_c_name_address \
15100     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15101     old_postinstall_cmds old_postuninstall_cmds \
15102     compiler_CXX \
15103     CC_CXX \
15104     LD_CXX \
15105     lt_prog_compiler_wl_CXX \
15106     lt_prog_compiler_pic_CXX \
15107     lt_prog_compiler_static_CXX \
15108     lt_prog_compiler_no_builtin_flag_CXX \
15109     export_dynamic_flag_spec_CXX \
15110     thread_safe_flag_spec_CXX \
15111     whole_archive_flag_spec_CXX \
15112     enable_shared_with_static_runtimes_CXX \
15113     old_archive_cmds_CXX \
15114     old_archive_from_new_cmds_CXX \
15115     predep_objects_CXX \
15116     postdep_objects_CXX \
15117     predeps_CXX \
15118     postdeps_CXX \
15119     compiler_lib_search_path_CXX \
15120     archive_cmds_CXX \
15121     archive_expsym_cmds_CXX \
15122     postinstall_cmds_CXX \
15123     postuninstall_cmds_CXX \
15124     old_archive_from_expsyms_cmds_CXX \
15125     allow_undefined_flag_CXX \
15126     no_undefined_flag_CXX \
15127     export_symbols_cmds_CXX \
15128     hardcode_libdir_flag_spec_CXX \
15129     hardcode_libdir_flag_spec_ld_CXX \
15130     hardcode_libdir_separator_CXX \
15131     hardcode_automatic_CXX \
15132     module_cmds_CXX \
15133     module_expsym_cmds_CXX \
15134     lt_cv_prog_compiler_c_o_CXX \
15135     exclude_expsyms_CXX \
15136     include_expsyms_CXX; do
15137
15138     case $var in
15139     old_archive_cmds_CXX | \
15140     old_archive_from_new_cmds_CXX | \
15141     archive_cmds_CXX | \
15142     archive_expsym_cmds_CXX | \
15143     module_cmds_CXX | \
15144     module_expsym_cmds_CXX | \
15145     old_archive_from_expsyms_cmds_CXX | \
15146     export_symbols_cmds_CXX | \
15147     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15148     postinstall_cmds | postuninstall_cmds | \
15149     old_postinstall_cmds | old_postuninstall_cmds | \
15150     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15151       # Double-quote double-evaled strings.
15152       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15153       ;;
15154     *)
15155       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15156       ;;
15157     esac
15158   done
15159
15160   case $lt_echo in
15161   *'\$0 --fallback-echo"')
15162     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15163     ;;
15164   esac
15165
15166 cfgfile="$ofile"
15167
15168   cat <<__EOF__ >> "$cfgfile"
15169 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15170
15171 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15172
15173 # Shell to use when invoking shell scripts.
15174 SHELL=$lt_SHELL
15175
15176 # Whether or not to build shared libraries.
15177 build_libtool_libs=$enable_shared
15178
15179 # Whether or not to build static libraries.
15180 build_old_libs=$enable_static
15181
15182 # Whether or not to add -lc for building shared libraries.
15183 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15184
15185 # Whether or not to disallow shared libs when runtime libs are static
15186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15187
15188 # Whether or not to optimize for fast installation.
15189 fast_install=$enable_fast_install
15190
15191 # The host system.
15192 host_alias=$host_alias
15193 host=$host
15194 host_os=$host_os
15195
15196 # The build system.
15197 build_alias=$build_alias
15198 build=$build
15199 build_os=$build_os
15200
15201 # An echo program that does not interpret backslashes.
15202 echo=$lt_echo
15203
15204 # The archiver.
15205 AR=$lt_AR
15206 AR_FLAGS=$lt_AR_FLAGS
15207
15208 # A C compiler.
15209 LTCC=$lt_LTCC
15210
15211 # LTCC compiler flags.
15212 LTCFLAGS=$lt_LTCFLAGS
15213
15214 # A language-specific compiler.
15215 CC=$lt_compiler_CXX
15216
15217 # Is the compiler the GNU C compiler?
15218 with_gcc=$GCC_CXX
15219
15220 # An ERE matcher.
15221 EGREP=$lt_EGREP
15222
15223 # The linker used to build libraries.
15224 LD=$lt_LD_CXX
15225
15226 # Whether we need hard or soft links.
15227 LN_S=$lt_LN_S
15228
15229 # A BSD-compatible nm program.
15230 NM=$lt_NM
15231
15232 # A symbol stripping program
15233 STRIP=$lt_STRIP
15234
15235 # Used to examine libraries when file_magic_cmd begins "file"
15236 MAGIC_CMD=$MAGIC_CMD
15237
15238 # Used on cygwin: DLL creation program.
15239 DLLTOOL="$DLLTOOL"
15240
15241 # Used on cygwin: object dumper.
15242 OBJDUMP="$OBJDUMP"
15243
15244 # Used on cygwin: assembler.
15245 AS="$AS"
15246
15247 # The name of the directory that contains temporary libtool files.
15248 objdir=$objdir
15249
15250 # How to create reloadable object files.
15251 reload_flag=$lt_reload_flag
15252 reload_cmds=$lt_reload_cmds
15253
15254 # How to pass a linker flag through the compiler.
15255 wl=$lt_lt_prog_compiler_wl_CXX
15256
15257 # Object file suffix (normally "o").
15258 objext="$ac_objext"
15259
15260 # Old archive suffix (normally "a").
15261 libext="$libext"
15262
15263 # Shared library suffix (normally ".so").
15264 shrext_cmds='$shrext_cmds'
15265
15266 # Executable file suffix (normally "").
15267 exeext="$exeext"
15268
15269 # Additional compiler flags for building library objects.
15270 pic_flag=$lt_lt_prog_compiler_pic_CXX
15271 pic_mode=$pic_mode
15272
15273 # What is the maximum length of a command?
15274 max_cmd_len=$lt_cv_sys_max_cmd_len
15275
15276 # Does compiler simultaneously support -c and -o options?
15277 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15278
15279 # Must we lock files when doing compilation?
15280 need_locks=$lt_need_locks
15281
15282 # Do we need the lib prefix for modules?
15283 need_lib_prefix=$need_lib_prefix
15284
15285 # Do we need a version for libraries?
15286 need_version=$need_version
15287
15288 # Whether dlopen is supported.
15289 dlopen_support=$enable_dlopen
15290
15291 # Whether dlopen of programs is supported.
15292 dlopen_self=$enable_dlopen_self
15293
15294 # Whether dlopen of statically linked programs is supported.
15295 dlopen_self_static=$enable_dlopen_self_static
15296
15297 # Compiler flag to prevent dynamic linking.
15298 link_static_flag=$lt_lt_prog_compiler_static_CXX
15299
15300 # Compiler flag to turn off builtin functions.
15301 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15302
15303 # Compiler flag to allow reflexive dlopens.
15304 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15305
15306 # Compiler flag to generate shared objects directly from archives.
15307 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15308
15309 # Compiler flag to generate thread-safe objects.
15310 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15311
15312 # Library versioning type.
15313 version_type=$version_type
15314
15315 # Format of library name prefix.
15316 libname_spec=$lt_libname_spec
15317
15318 # List of archive names.  First name is the real one, the rest are links.
15319 # The last name is the one that the linker finds with -lNAME.
15320 library_names_spec=$lt_library_names_spec
15321
15322 # The coded name of the library, if different from the real name.
15323 soname_spec=$lt_soname_spec
15324
15325 # Commands used to build and install an old-style archive.
15326 RANLIB=$lt_RANLIB
15327 old_archive_cmds=$lt_old_archive_cmds_CXX
15328 old_postinstall_cmds=$lt_old_postinstall_cmds
15329 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15330
15331 # Create an old-style archive from a shared archive.
15332 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15333
15334 # Create a temporary old-style archive to link instead of a shared archive.
15335 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15336
15337 # Commands used to build and install a shared archive.
15338 archive_cmds=$lt_archive_cmds_CXX
15339 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15340 postinstall_cmds=$lt_postinstall_cmds
15341 postuninstall_cmds=$lt_postuninstall_cmds
15342
15343 # Commands used to build a loadable module (assumed same as above if empty)
15344 module_cmds=$lt_module_cmds_CXX
15345 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15346
15347 # Commands to strip libraries.
15348 old_striplib=$lt_old_striplib
15349 striplib=$lt_striplib
15350
15351 # Dependencies to place before the objects being linked to create a
15352 # shared library.
15353 predep_objects=$lt_predep_objects_CXX
15354
15355 # Dependencies to place after the objects being linked to create a
15356 # shared library.
15357 postdep_objects=$lt_postdep_objects_CXX
15358
15359 # Dependencies to place before the objects being linked to create a
15360 # shared library.
15361 predeps=$lt_predeps_CXX
15362
15363 # Dependencies to place after the objects being linked to create a
15364 # shared library.
15365 postdeps=$lt_postdeps_CXX
15366
15367 # The library search path used internally by the compiler when linking
15368 # a shared library.
15369 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15370
15371 # Method to check whether dependent libraries are shared objects.
15372 deplibs_check_method=$lt_deplibs_check_method
15373
15374 # Command to use when deplibs_check_method == file_magic.
15375 file_magic_cmd=$lt_file_magic_cmd
15376
15377 # Flag that allows shared libraries with undefined symbols to be built.
15378 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15379
15380 # Flag that forces no undefined symbols.
15381 no_undefined_flag=$lt_no_undefined_flag_CXX
15382
15383 # Commands used to finish a libtool library installation in a directory.
15384 finish_cmds=$lt_finish_cmds
15385
15386 # Same as above, but a single script fragment to be evaled but not shown.
15387 finish_eval=$lt_finish_eval
15388
15389 # Take the output of nm and produce a listing of raw symbols and C names.
15390 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15391
15392 # Transform the output of nm in a proper C declaration
15393 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15394
15395 # Transform the output of nm in a C name address pair
15396 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15397
15398 # This is the shared library runtime path variable.
15399 runpath_var=$runpath_var
15400
15401 # This is the shared library path variable.
15402 shlibpath_var=$shlibpath_var
15403
15404 # Is shlibpath searched before the hard-coded library search path?
15405 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15406
15407 # How to hardcode a shared library path into an executable.
15408 hardcode_action=$hardcode_action_CXX
15409
15410 # Whether we should hardcode library paths into libraries.
15411 hardcode_into_libs=$hardcode_into_libs
15412
15413 # Flag to hardcode \$libdir into a binary during linking.
15414 # This must work even if \$libdir does not exist.
15415 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15416
15417 # If ld is used when linking, flag to hardcode \$libdir into
15418 # a binary during linking. This must work even if \$libdir does
15419 # not exist.
15420 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15421
15422 # Whether we need a single -rpath flag with a separated argument.
15423 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15424
15425 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15426 # resulting binary.
15427 hardcode_direct=$hardcode_direct_CXX
15428
15429 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15430 # resulting binary.
15431 hardcode_minus_L=$hardcode_minus_L_CXX
15432
15433 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15434 # the resulting binary.
15435 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15436
15437 # Set to yes if building a shared library automatically hardcodes DIR into the library
15438 # and all subsequent libraries and executables linked against it.
15439 hardcode_automatic=$hardcode_automatic_CXX
15440
15441 # Variables whose values should be saved in libtool wrapper scripts and
15442 # restored at relink time.
15443 variables_saved_for_relink="$variables_saved_for_relink"
15444
15445 # Whether libtool must link a program against all its dependency libraries.
15446 link_all_deplibs=$link_all_deplibs_CXX
15447
15448 # Compile-time system search path for libraries
15449 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15450
15451 # Run-time system search path for libraries
15452 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15453
15454 # Fix the shell variable \$srcfile for the compiler.
15455 fix_srcfile_path="$fix_srcfile_path_CXX"
15456
15457 # Set to yes if exported symbols are required.
15458 always_export_symbols=$always_export_symbols_CXX
15459
15460 # The commands to list exported symbols.
15461 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15462
15463 # The commands to extract the exported symbol list from a shared archive.
15464 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15465
15466 # Symbols that should not be listed in the preloaded symbols.
15467 exclude_expsyms=$lt_exclude_expsyms_CXX
15468
15469 # Symbols that must always be exported.
15470 include_expsyms=$lt_include_expsyms_CXX
15471
15472 # ### END LIBTOOL TAG CONFIG: $tagname
15473
15474 __EOF__
15475
15476
15477 else
15478   # If there is no Makefile yet, we rely on a make rule to execute
15479   # `config.status --recheck' to rerun these tests and create the
15480   # libtool script then.
15481   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15482   if test -f "$ltmain_in"; then
15483     test -f Makefile && make "$ltmain"
15484   fi
15485 fi
15486
15487
15488 ac_ext=c
15489 ac_cpp='$CPP $CPPFLAGS'
15490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15493
15494 CC=$lt_save_CC
15495 LDCXX=$LD
15496 LD=$lt_save_LD
15497 GCC=$lt_save_GCC
15498 with_gnu_ldcxx=$with_gnu_ld
15499 with_gnu_ld=$lt_save_with_gnu_ld
15500 lt_cv_path_LDCXX=$lt_cv_path_LD
15501 lt_cv_path_LD=$lt_save_path_LD
15502 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15503 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15504
15505         else
15506           tagname=""
15507         fi
15508         ;;
15509
15510       F77)
15511         if test -n "$F77" && test "X$F77" != "Xno"; then
15512
15513 ac_ext=f
15514 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15515 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15516 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15517
15518
15519 archive_cmds_need_lc_F77=no
15520 allow_undefined_flag_F77=
15521 always_export_symbols_F77=no
15522 archive_expsym_cmds_F77=
15523 export_dynamic_flag_spec_F77=
15524 hardcode_direct_F77=no
15525 hardcode_libdir_flag_spec_F77=
15526 hardcode_libdir_flag_spec_ld_F77=
15527 hardcode_libdir_separator_F77=
15528 hardcode_minus_L_F77=no
15529 hardcode_automatic_F77=no
15530 module_cmds_F77=
15531 module_expsym_cmds_F77=
15532 link_all_deplibs_F77=unknown
15533 old_archive_cmds_F77=$old_archive_cmds
15534 no_undefined_flag_F77=
15535 whole_archive_flag_spec_F77=
15536 enable_shared_with_static_runtimes_F77=no
15537
15538 # Source file extension for f77 test sources.
15539 ac_ext=f
15540
15541 # Object file extension for compiled f77 test sources.
15542 objext=o
15543 objext_F77=$objext
15544
15545 # Code to be used in simple compile tests
15546 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15547
15548 # Code to be used in simple link tests
15549 lt_simple_link_test_code="      program t\n      end\n"
15550
15551 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15552
15553 # If no C compiler was specified, use CC.
15554 LTCC=${LTCC-"$CC"}
15555
15556 # If no C compiler flags were specified, use CFLAGS.
15557 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15558
15559 # Allow CC to be a program name with arguments.
15560 compiler=$CC
15561
15562
15563 # save warnings/boilerplate of simple test code
15564 ac_outfile=conftest.$ac_objext
15565 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15566 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15567 _lt_compiler_boilerplate=`cat conftest.err`
15568 $rm conftest*
15569
15570 ac_outfile=conftest.$ac_objext
15571 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15572 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15573 _lt_linker_boilerplate=`cat conftest.err`
15574 $rm conftest*
15575
15576
15577 # Allow CC to be a program name with arguments.
15578 lt_save_CC="$CC"
15579 CC=${F77-"f77"}
15580 compiler=$CC
15581 compiler_F77=$CC
15582 for cc_temp in $compiler""; do
15583   case $cc_temp in
15584     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15585     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15586     \-*) ;;
15587     *) break;;
15588   esac
15589 done
15590 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15591
15592
15593 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15594 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15595 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15596 echo "${ECHO_T}$can_build_shared" >&6; }
15597
15598 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15599 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15600 test "$can_build_shared" = "no" && enable_shared=no
15601
15602 # On AIX, shared libraries and static libraries use the same namespace, and
15603 # are all built from PIC.
15604 case $host_os in
15605 aix3*)
15606   test "$enable_shared" = yes && enable_static=no
15607   if test -n "$RANLIB"; then
15608     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15609     postinstall_cmds='$RANLIB $lib'
15610   fi
15611   ;;
15612 aix4* | aix5*)
15613   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15614     test "$enable_shared" = yes && enable_static=no
15615   fi
15616   ;;
15617 esac
15618 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15619 echo "${ECHO_T}$enable_shared" >&6; }
15620
15621 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15622 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15623 # Make sure either enable_shared or enable_static is yes.
15624 test "$enable_shared" = yes || enable_static=yes
15625 { echo "$as_me:$LINENO: result: $enable_static" >&5
15626 echo "${ECHO_T}$enable_static" >&6; }
15627
15628 GCC_F77="$G77"
15629 LD_F77="$LD"
15630
15631 lt_prog_compiler_wl_F77=
15632 lt_prog_compiler_pic_F77=
15633 lt_prog_compiler_static_F77=
15634
15635 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15636 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15637
15638   if test "$GCC" = yes; then
15639     lt_prog_compiler_wl_F77='-Wl,'
15640     lt_prog_compiler_static_F77='-static'
15641
15642     case $host_os in
15643       aix*)
15644       # All AIX code is PIC.
15645       if test "$host_cpu" = ia64; then
15646         # AIX 5 now supports IA64 processor
15647         lt_prog_compiler_static_F77='-Bstatic'
15648       fi
15649       ;;
15650
15651     amigaos*)
15652       # FIXME: we need at least 68020 code to build shared libraries, but
15653       # adding the `-m68020' flag to GCC prevents building anything better,
15654       # like `-m68040'.
15655       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15656       ;;
15657
15658     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15659       # PIC is the default for these OSes.
15660       ;;
15661
15662     mingw* | pw32* | os2*)
15663       # This hack is so that the source file can tell whether it is being
15664       # built for inclusion in a dll (and should export symbols for example).
15665       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15666       ;;
15667
15668     darwin* | rhapsody*)
15669       # PIC is the default on this platform
15670       # Common symbols not allowed in MH_DYLIB files
15671       lt_prog_compiler_pic_F77='-fno-common'
15672       ;;
15673
15674     interix3*)
15675       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15676       # Instead, we relocate shared libraries at runtime.
15677       ;;
15678
15679     msdosdjgpp*)
15680       # Just because we use GCC doesn't mean we suddenly get shared libraries
15681       # on systems that don't support them.
15682       lt_prog_compiler_can_build_shared_F77=no
15683       enable_shared=no
15684       ;;
15685
15686     sysv4*MP*)
15687       if test -d /usr/nec; then
15688         lt_prog_compiler_pic_F77=-Kconform_pic
15689       fi
15690       ;;
15691
15692     hpux*)
15693       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15694       # not for PA HP-UX.
15695       case $host_cpu in
15696       hppa*64*|ia64*)
15697         # +Z the default
15698         ;;
15699       *)
15700         lt_prog_compiler_pic_F77='-fPIC'
15701         ;;
15702       esac
15703       ;;
15704
15705     *)
15706       lt_prog_compiler_pic_F77='-fPIC'
15707       ;;
15708     esac
15709   else
15710     # PORTME Check for flag to pass linker flags through the system compiler.
15711     case $host_os in
15712     aix*)
15713       lt_prog_compiler_wl_F77='-Wl,'
15714       if test "$host_cpu" = ia64; then
15715         # AIX 5 now supports IA64 processor
15716         lt_prog_compiler_static_F77='-Bstatic'
15717       else
15718         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15719       fi
15720       ;;
15721       darwin*)
15722         # PIC is the default on this platform
15723         # Common symbols not allowed in MH_DYLIB files
15724        case $cc_basename in
15725          xlc*)
15726          lt_prog_compiler_pic_F77='-qnocommon'
15727          lt_prog_compiler_wl_F77='-Wl,'
15728          ;;
15729        esac
15730        ;;
15731
15732     mingw* | pw32* | os2*)
15733       # This hack is so that the source file can tell whether it is being
15734       # built for inclusion in a dll (and should export symbols for example).
15735       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15736       ;;
15737
15738     hpux9* | hpux10* | hpux11*)
15739       lt_prog_compiler_wl_F77='-Wl,'
15740       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15741       # not for PA HP-UX.
15742       case $host_cpu in
15743       hppa*64*|ia64*)
15744         # +Z the default
15745         ;;
15746       *)
15747         lt_prog_compiler_pic_F77='+Z'
15748         ;;
15749       esac
15750       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15751       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15752       ;;
15753
15754     irix5* | irix6* | nonstopux*)
15755       lt_prog_compiler_wl_F77='-Wl,'
15756       # PIC (with -KPIC) is the default.
15757       lt_prog_compiler_static_F77='-non_shared'
15758       ;;
15759
15760     newsos6)
15761       lt_prog_compiler_pic_F77='-KPIC'
15762       lt_prog_compiler_static_F77='-Bstatic'
15763       ;;
15764
15765     linux* | k*bsd*-gnu)
15766       case $cc_basename in
15767       icc* | ecc*)
15768         lt_prog_compiler_wl_F77='-Wl,'
15769         lt_prog_compiler_pic_F77='-KPIC'
15770         lt_prog_compiler_static_F77='-static'
15771         ;;
15772       pgcc* | pgf77* | pgf90* | pgf95*)
15773         # Portland Group compilers (*not* the Pentium gcc compiler,
15774         # which looks to be a dead project)
15775         lt_prog_compiler_wl_F77='-Wl,'
15776         lt_prog_compiler_pic_F77='-fpic'
15777         lt_prog_compiler_static_F77='-Bstatic'
15778         ;;
15779       ccc*)
15780         lt_prog_compiler_wl_F77='-Wl,'
15781         # All Alpha code is PIC.
15782         lt_prog_compiler_static_F77='-non_shared'
15783         ;;
15784       esac
15785       ;;
15786
15787     osf3* | osf4* | osf5*)
15788       lt_prog_compiler_wl_F77='-Wl,'
15789       # All OSF/1 code is PIC.
15790       lt_prog_compiler_static_F77='-non_shared'
15791       ;;
15792
15793     solaris*)
15794       lt_prog_compiler_pic_F77='-KPIC'
15795       lt_prog_compiler_static_F77='-Bstatic'
15796       case $cc_basename in
15797       f77* | f90* | f95*)
15798         lt_prog_compiler_wl_F77='-Qoption ld ';;
15799       *)
15800         lt_prog_compiler_wl_F77='-Wl,';;
15801       esac
15802       ;;
15803
15804     sunos4*)
15805       lt_prog_compiler_wl_F77='-Qoption ld '
15806       lt_prog_compiler_pic_F77='-PIC'
15807       lt_prog_compiler_static_F77='-Bstatic'
15808       ;;
15809
15810     sysv4 | sysv4.2uw2* | sysv4.3*)
15811       lt_prog_compiler_wl_F77='-Wl,'
15812       lt_prog_compiler_pic_F77='-KPIC'
15813       lt_prog_compiler_static_F77='-Bstatic'
15814       ;;
15815
15816     sysv4*MP*)
15817       if test -d /usr/nec ;then
15818         lt_prog_compiler_pic_F77='-Kconform_pic'
15819         lt_prog_compiler_static_F77='-Bstatic'
15820       fi
15821       ;;
15822
15823     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15824       lt_prog_compiler_wl_F77='-Wl,'
15825       lt_prog_compiler_pic_F77='-KPIC'
15826       lt_prog_compiler_static_F77='-Bstatic'
15827       ;;
15828
15829     unicos*)
15830       lt_prog_compiler_wl_F77='-Wl,'
15831       lt_prog_compiler_can_build_shared_F77=no
15832       ;;
15833
15834     uts4*)
15835       lt_prog_compiler_pic_F77='-pic'
15836       lt_prog_compiler_static_F77='-Bstatic'
15837       ;;
15838
15839     *)
15840       lt_prog_compiler_can_build_shared_F77=no
15841       ;;
15842     esac
15843   fi
15844
15845 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15846 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15847
15848 #
15849 # Check to make sure the PIC flag actually works.
15850 #
15851 if test -n "$lt_prog_compiler_pic_F77"; then
15852
15853 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15854 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15855 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15856   echo $ECHO_N "(cached) $ECHO_C" >&6
15857 else
15858   lt_prog_compiler_pic_works_F77=no
15859   ac_outfile=conftest.$ac_objext
15860    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15861    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15862    # Insert the option either (1) after the last *FLAGS variable, or
15863    # (2) before a word containing "conftest.", or (3) at the end.
15864    # Note that $ac_compile itself does not contain backslashes and begins
15865    # with a dollar sign (not a hyphen), so the echo should work correctly.
15866    # The option is referenced via a variable to avoid confusing sed.
15867    lt_compile=`echo "$ac_compile" | $SED \
15868    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15869    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15870    -e 's:$: $lt_compiler_flag:'`
15871    (eval echo "\"\$as_me:15871: $lt_compile\"" >&5)
15872    (eval "$lt_compile" 2>conftest.err)
15873    ac_status=$?
15874    cat conftest.err >&5
15875    echo "$as_me:15875: \$? = $ac_status" >&5
15876    if (exit $ac_status) && test -s "$ac_outfile"; then
15877      # The compiler can only warn and ignore the option if not recognized
15878      # So say no if there are warnings other than the usual output.
15879      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15880      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15881      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15882        lt_prog_compiler_pic_works_F77=yes
15883      fi
15884    fi
15885    $rm conftest*
15886
15887 fi
15888 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15889 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15890
15891 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15892     case $lt_prog_compiler_pic_F77 in
15893      "" | " "*) ;;
15894      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15895      esac
15896 else
15897     lt_prog_compiler_pic_F77=
15898      lt_prog_compiler_can_build_shared_F77=no
15899 fi
15900
15901 fi
15902 case $host_os in
15903   # For platforms which do not support PIC, -DPIC is meaningless:
15904   *djgpp*)
15905     lt_prog_compiler_pic_F77=
15906     ;;
15907   *)
15908     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15909     ;;
15910 esac
15911
15912 #
15913 # Check to make sure the static flag actually works.
15914 #
15915 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15916 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15917 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15918 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15919   echo $ECHO_N "(cached) $ECHO_C" >&6
15920 else
15921   lt_prog_compiler_static_works_F77=no
15922    save_LDFLAGS="$LDFLAGS"
15923    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15924    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15925    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15926      # The linker can only warn and ignore the option if not recognized
15927      # So say no if there are warnings
15928      if test -s conftest.err; then
15929        # Append any errors to the config.log.
15930        cat conftest.err 1>&5
15931        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15932        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15933        if diff conftest.exp conftest.er2 >/dev/null; then
15934          lt_prog_compiler_static_works_F77=yes
15935        fi
15936      else
15937        lt_prog_compiler_static_works_F77=yes
15938      fi
15939    fi
15940    $rm conftest*
15941    LDFLAGS="$save_LDFLAGS"
15942
15943 fi
15944 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15945 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15946
15947 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15948     :
15949 else
15950     lt_prog_compiler_static_F77=
15951 fi
15952
15953
15954 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15955 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15956 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15957   echo $ECHO_N "(cached) $ECHO_C" >&6
15958 else
15959   lt_cv_prog_compiler_c_o_F77=no
15960    $rm -r conftest 2>/dev/null
15961    mkdir conftest
15962    cd conftest
15963    mkdir out
15964    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15965
15966    lt_compiler_flag="-o out/conftest2.$ac_objext"
15967    # Insert the option either (1) after the last *FLAGS variable, or
15968    # (2) before a word containing "conftest.", or (3) at the end.
15969    # Note that $ac_compile itself does not contain backslashes and begins
15970    # with a dollar sign (not a hyphen), so the echo should work correctly.
15971    lt_compile=`echo "$ac_compile" | $SED \
15972    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15973    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15974    -e 's:$: $lt_compiler_flag:'`
15975    (eval echo "\"\$as_me:15975: $lt_compile\"" >&5)
15976    (eval "$lt_compile" 2>out/conftest.err)
15977    ac_status=$?
15978    cat out/conftest.err >&5
15979    echo "$as_me:15979: \$? = $ac_status" >&5
15980    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15981    then
15982      # The compiler can only warn and ignore the option if not recognized
15983      # So say no if there are warnings
15984      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15985      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15986      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15987        lt_cv_prog_compiler_c_o_F77=yes
15988      fi
15989    fi
15990    chmod u+w . 2>&5
15991    $rm conftest*
15992    # SGI C++ compiler will create directory out/ii_files/ for
15993    # template instantiation
15994    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15995    $rm out/* && rmdir out
15996    cd ..
15997    rmdir conftest
15998    $rm conftest*
15999
16000 fi
16001 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16002 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16003
16004
16005 hard_links="nottested"
16006 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16007   # do not overwrite the value of need_locks provided by the user
16008   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16009 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16010   hard_links=yes
16011   $rm conftest*
16012   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16013   touch conftest.a
16014   ln conftest.a conftest.b 2>&5 || hard_links=no
16015   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16016   { echo "$as_me:$LINENO: result: $hard_links" >&5
16017 echo "${ECHO_T}$hard_links" >&6; }
16018   if test "$hard_links" = no; then
16019     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16020 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16021     need_locks=warn
16022   fi
16023 else
16024   need_locks=no
16025 fi
16026
16027 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16028 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16029
16030   runpath_var=
16031   allow_undefined_flag_F77=
16032   enable_shared_with_static_runtimes_F77=no
16033   archive_cmds_F77=
16034   archive_expsym_cmds_F77=
16035   old_archive_From_new_cmds_F77=
16036   old_archive_from_expsyms_cmds_F77=
16037   export_dynamic_flag_spec_F77=
16038   whole_archive_flag_spec_F77=
16039   thread_safe_flag_spec_F77=
16040   hardcode_libdir_flag_spec_F77=
16041   hardcode_libdir_flag_spec_ld_F77=
16042   hardcode_libdir_separator_F77=
16043   hardcode_direct_F77=no
16044   hardcode_minus_L_F77=no
16045   hardcode_shlibpath_var_F77=unsupported
16046   link_all_deplibs_F77=unknown
16047   hardcode_automatic_F77=no
16048   module_cmds_F77=
16049   module_expsym_cmds_F77=
16050   always_export_symbols_F77=no
16051   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16052   # include_expsyms should be a list of space-separated symbols to be *always*
16053   # included in the symbol list
16054   include_expsyms_F77=
16055   # exclude_expsyms can be an extended regexp of symbols to exclude
16056   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16057   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16058   # as well as any symbol that contains `d'.
16059   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16060   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16061   # platforms (ab)use it in PIC code, but their linkers get confused if
16062   # the symbol is explicitly referenced.  Since portable code cannot
16063   # rely on this symbol name, it's probably fine to never include it in
16064   # preloaded symbol tables.
16065   extract_expsyms_cmds=
16066   # Just being paranoid about ensuring that cc_basename is set.
16067   for cc_temp in $compiler""; do
16068   case $cc_temp in
16069     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16070     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16071     \-*) ;;
16072     *) break;;
16073   esac
16074 done
16075 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16076
16077   case $host_os in
16078   cygwin* | mingw* | pw32*)
16079     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16080     # When not using gcc, we currently assume that we are using
16081     # Microsoft Visual C++.
16082     if test "$GCC" != yes; then
16083       with_gnu_ld=no
16084     fi
16085     ;;
16086   interix*)
16087     # we just hope/assume this is gcc and not c89 (= MSVC++)
16088     with_gnu_ld=yes
16089     ;;
16090   openbsd*)
16091     with_gnu_ld=no
16092     ;;
16093   esac
16094
16095   ld_shlibs_F77=yes
16096   if test "$with_gnu_ld" = yes; then
16097     # If archive_cmds runs LD, not CC, wlarc should be empty
16098     wlarc='${wl}'
16099
16100     # Set some defaults for GNU ld with shared library support. These
16101     # are reset later if shared libraries are not supported. Putting them
16102     # here allows them to be overridden if necessary.
16103     runpath_var=LD_RUN_PATH
16104     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16105     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16106     # ancient GNU ld didn't support --whole-archive et. al.
16107     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16108         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16109       else
16110         whole_archive_flag_spec_F77=
16111     fi
16112     supports_anon_versioning=no
16113     case `$LD -v 2>/dev/null` in
16114       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16115       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16116       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16117       *\ 2.11.*) ;; # other 2.11 versions
16118       *) supports_anon_versioning=yes ;;
16119     esac
16120
16121     # See if GNU ld supports shared libraries.
16122     case $host_os in
16123     aix3* | aix4* | aix5*)
16124       # On AIX/PPC, the GNU linker is very broken
16125       if test "$host_cpu" != ia64; then
16126         ld_shlibs_F77=no
16127         cat <<EOF 1>&2
16128
16129 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16130 *** to be unable to reliably create shared libraries on AIX.
16131 *** Therefore, libtool is disabling shared libraries support.  If you
16132 *** really care for shared libraries, you may want to modify your PATH
16133 *** so that a non-GNU linker is found, and then restart.
16134
16135 EOF
16136       fi
16137       ;;
16138
16139     amigaos*)
16140       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)'
16141       hardcode_libdir_flag_spec_F77='-L$libdir'
16142       hardcode_minus_L_F77=yes
16143
16144       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16145       # that the semantics of dynamic libraries on AmigaOS, at least up
16146       # to version 4, is to share data among multiple programs linked
16147       # with the same dynamic library.  Since this doesn't match the
16148       # behavior of shared libraries on other platforms, we can't use
16149       # them.
16150       ld_shlibs_F77=no
16151       ;;
16152
16153     beos*)
16154       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16155         allow_undefined_flag_F77=unsupported
16156         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16157         # support --undefined.  This deserves some investigation.  FIXME
16158         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16159       else
16160         ld_shlibs_F77=no
16161       fi
16162       ;;
16163
16164     cygwin* | mingw* | pw32*)
16165       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16166       # as there is no search path for DLLs.
16167       hardcode_libdir_flag_spec_F77='-L$libdir'
16168       allow_undefined_flag_F77=unsupported
16169       always_export_symbols_F77=no
16170       enable_shared_with_static_runtimes_F77=yes
16171       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16172
16173       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16174         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16175         # If the export-symbols file already is a .def file (1st line
16176         # is EXPORTS), use it as is; otherwise, prepend...
16177         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16178           cp $export_symbols $output_objdir/$soname.def;
16179         else
16180           echo EXPORTS > $output_objdir/$soname.def;
16181           cat $export_symbols >> $output_objdir/$soname.def;
16182         fi~
16183         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16184       else
16185         ld_shlibs_F77=no
16186       fi
16187       ;;
16188
16189     interix3*)
16190       hardcode_direct_F77=no
16191       hardcode_shlibpath_var_F77=no
16192       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16193       export_dynamic_flag_spec_F77='${wl}-E'
16194       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16195       # Instead, shared libraries are loaded at an image base (0x10000000 by
16196       # default) and relocated if they conflict, which is a slow very memory
16197       # consuming and fragmenting process.  To avoid this, we pick a random,
16198       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16199       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16200       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'
16201       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'
16202       ;;
16203
16204     linux* | k*bsd*-gnu)
16205       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16206         tmp_addflag=
16207         case $cc_basename,$host_cpu in
16208         pgcc*)                          # Portland Group C compiler
16209           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'
16210           tmp_addflag=' $pic_flag'
16211           ;;
16212         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16213           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'
16214           tmp_addflag=' $pic_flag -Mnomain' ;;
16215         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16216           tmp_addflag=' -i_dynamic' ;;
16217         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16218           tmp_addflag=' -i_dynamic -nofor_main' ;;
16219         ifc* | ifort*)                  # Intel Fortran compiler
16220           tmp_addflag=' -nofor_main' ;;
16221         esac
16222         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16223
16224         if test $supports_anon_versioning = yes; then
16225           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16226   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16227   $echo "local: *; };" >> $output_objdir/$libname.ver~
16228           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16229         fi
16230         link_all_deplibs_F77=no
16231       else
16232         ld_shlibs_F77=no
16233       fi
16234       ;;
16235
16236     netbsd* | netbsdelf*-gnu)
16237       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16238         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16239         wlarc=
16240       else
16241         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16242         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16243       fi
16244       ;;
16245
16246     solaris*)
16247       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16248         ld_shlibs_F77=no
16249         cat <<EOF 1>&2
16250
16251 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16252 *** create shared libraries on Solaris systems.  Therefore, libtool
16253 *** is disabling shared libraries support.  We urge you to upgrade GNU
16254 *** binutils to release 2.9.1 or newer.  Another option is to modify
16255 *** your PATH or compiler configuration so that the native linker is
16256 *** used, and then restart.
16257
16258 EOF
16259       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16260         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16261         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16262       else
16263         ld_shlibs_F77=no
16264       fi
16265       ;;
16266
16267     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16268       case `$LD -v 2>&1` in
16269         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16270         ld_shlibs_F77=no
16271         cat <<_LT_EOF 1>&2
16272
16273 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16274 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16275 *** is disabling shared libraries support.  We urge you to upgrade GNU
16276 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16277 *** your PATH or compiler configuration so that the native linker is
16278 *** used, and then restart.
16279
16280 _LT_EOF
16281         ;;
16282         *)
16283           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16284             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16285             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16286             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16287           else
16288             ld_shlibs_F77=no
16289           fi
16290         ;;
16291       esac
16292       ;;
16293
16294     sunos4*)
16295       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16296       wlarc=
16297       hardcode_direct_F77=yes
16298       hardcode_shlibpath_var_F77=no
16299       ;;
16300
16301     *)
16302       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16303         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16304         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16305       else
16306         ld_shlibs_F77=no
16307       fi
16308       ;;
16309     esac
16310
16311     if test "$ld_shlibs_F77" = no; then
16312       runpath_var=
16313       hardcode_libdir_flag_spec_F77=
16314       export_dynamic_flag_spec_F77=
16315       whole_archive_flag_spec_F77=
16316     fi
16317   else
16318     # PORTME fill in a description of your system's linker (not GNU ld)
16319     case $host_os in
16320     aix3*)
16321       allow_undefined_flag_F77=unsupported
16322       always_export_symbols_F77=yes
16323       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'
16324       # Note: this linker hardcodes the directories in LIBPATH if there
16325       # are no directories specified by -L.
16326       hardcode_minus_L_F77=yes
16327       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16328         # Neither direct hardcoding nor static linking is supported with a
16329         # broken collect2.
16330         hardcode_direct_F77=unsupported
16331       fi
16332       ;;
16333
16334     aix4* | aix5*)
16335       if test "$host_cpu" = ia64; then
16336         # On IA64, the linker does run time linking by default, so we don't
16337         # have to do anything special.
16338         aix_use_runtimelinking=no
16339         exp_sym_flag='-Bexport'
16340         no_entry_flag=""
16341       else
16342         # If we're using GNU nm, then we don't want the "-C" option.
16343         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16344         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16345           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'
16346         else
16347           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'
16348         fi
16349         aix_use_runtimelinking=no
16350
16351         # Test if we are trying to use run time linking or normal
16352         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16353         # need to do runtime linking.
16354         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16355           for ld_flag in $LDFLAGS; do
16356           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16357             aix_use_runtimelinking=yes
16358             break
16359           fi
16360           done
16361           ;;
16362         esac
16363
16364         exp_sym_flag='-bexport'
16365         no_entry_flag='-bnoentry'
16366       fi
16367
16368       # When large executables or shared objects are built, AIX ld can
16369       # have problems creating the table of contents.  If linking a library
16370       # or program results in "error TOC overflow" add -mminimal-toc to
16371       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16372       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16373
16374       archive_cmds_F77=''
16375       hardcode_direct_F77=yes
16376       hardcode_libdir_separator_F77=':'
16377       link_all_deplibs_F77=yes
16378
16379       if test "$GCC" = yes; then
16380         case $host_os in aix4.[012]|aix4.[012].*)
16381         # We only want to do this on AIX 4.2 and lower, the check
16382         # below for broken collect2 doesn't work under 4.3+
16383           collect2name=`${CC} -print-prog-name=collect2`
16384           if test -f "$collect2name" && \
16385            strings "$collect2name" | grep resolve_lib_name >/dev/null
16386           then
16387           # We have reworked collect2
16388           hardcode_direct_F77=yes
16389           else
16390           # We have old collect2
16391           hardcode_direct_F77=unsupported
16392           # It fails to find uninstalled libraries when the uninstalled
16393           # path is not listed in the libpath.  Setting hardcode_minus_L
16394           # to unsupported forces relinking
16395           hardcode_minus_L_F77=yes
16396           hardcode_libdir_flag_spec_F77='-L$libdir'
16397           hardcode_libdir_separator_F77=
16398           fi
16399           ;;
16400         esac
16401         shared_flag='-shared'
16402         if test "$aix_use_runtimelinking" = yes; then
16403           shared_flag="$shared_flag "'${wl}-G'
16404         fi
16405       else
16406         # not using gcc
16407         if test "$host_cpu" = ia64; then
16408         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16409         # chokes on -Wl,-G. The following line is correct:
16410           shared_flag='-G'
16411         else
16412           if test "$aix_use_runtimelinking" = yes; then
16413             shared_flag='${wl}-G'
16414           else
16415             shared_flag='${wl}-bM:SRE'
16416           fi
16417         fi
16418       fi
16419
16420       # It seems that -bexpall does not export symbols beginning with
16421       # underscore (_), so it is better to generate a list of symbols to export.
16422       always_export_symbols_F77=yes
16423       if test "$aix_use_runtimelinking" = yes; then
16424         # Warning - without using the other runtime loading flags (-brtl),
16425         # -berok will link without error, but may produce a broken library.
16426         allow_undefined_flag_F77='-berok'
16427        # Determine the default libpath from the value encoded in an empty executable.
16428        cat >conftest.$ac_ext <<_ACEOF
16429       program main
16430
16431       end
16432 _ACEOF
16433 rm -f conftest.$ac_objext conftest$ac_exeext
16434 if { (ac_try="$ac_link"
16435 case "(($ac_try" in
16436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437   *) ac_try_echo=$ac_try;;
16438 esac
16439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16440   (eval "$ac_link") 2>conftest.er1
16441   ac_status=$?
16442   grep -v '^ *+' conftest.er1 >conftest.err
16443   rm -f conftest.er1
16444   cat conftest.err >&5
16445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446   (exit $ac_status); } &&
16447          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16448   { (case "(($ac_try" in
16449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450   *) ac_try_echo=$ac_try;;
16451 esac
16452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16453   (eval "$ac_try") 2>&5
16454   ac_status=$?
16455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456   (exit $ac_status); }; } &&
16457          { ac_try='test -s conftest$ac_exeext'
16458   { (case "(($ac_try" in
16459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460   *) ac_try_echo=$ac_try;;
16461 esac
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463   (eval "$ac_try") 2>&5
16464   ac_status=$?
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); }; }; then
16467
16468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16469 }'`
16470 # Check for a 64-bit object if we didn't find anything.
16471 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; }
16472 }'`; fi
16473 else
16474   echo "$as_me: failed program was:" >&5
16475 sed 's/^/| /' conftest.$ac_ext >&5
16476
16477
16478 fi
16479
16480 rm -f core conftest.err conftest.$ac_objext \
16481       conftest$ac_exeext conftest.$ac_ext
16482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16483
16484        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16485         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"
16486        else
16487         if test "$host_cpu" = ia64; then
16488           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16489           allow_undefined_flag_F77="-z nodefs"
16490           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"
16491         else
16492          # Determine the default libpath from the value encoded in an empty executable.
16493          cat >conftest.$ac_ext <<_ACEOF
16494       program main
16495
16496       end
16497 _ACEOF
16498 rm -f conftest.$ac_objext conftest$ac_exeext
16499 if { (ac_try="$ac_link"
16500 case "(($ac_try" in
16501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502   *) ac_try_echo=$ac_try;;
16503 esac
16504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505   (eval "$ac_link") 2>conftest.er1
16506   ac_status=$?
16507   grep -v '^ *+' conftest.er1 >conftest.err
16508   rm -f conftest.er1
16509   cat conftest.err >&5
16510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511   (exit $ac_status); } &&
16512          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16513   { (case "(($ac_try" in
16514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515   *) ac_try_echo=$ac_try;;
16516 esac
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518   (eval "$ac_try") 2>&5
16519   ac_status=$?
16520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521   (exit $ac_status); }; } &&
16522          { ac_try='test -s conftest$ac_exeext'
16523   { (case "(($ac_try" in
16524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525   *) ac_try_echo=$ac_try;;
16526 esac
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528   (eval "$ac_try") 2>&5
16529   ac_status=$?
16530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531   (exit $ac_status); }; }; then
16532
16533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16534 }'`
16535 # Check for a 64-bit object if we didn't find anything.
16536 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; }
16537 }'`; fi
16538 else
16539   echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16541
16542
16543 fi
16544
16545 rm -f core conftest.err conftest.$ac_objext \
16546       conftest$ac_exeext conftest.$ac_ext
16547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16548
16549          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16550           # Warning - without using the other run time loading flags,
16551           # -berok will link without error, but may produce a broken library.
16552           no_undefined_flag_F77=' ${wl}-bernotok'
16553           allow_undefined_flag_F77=' ${wl}-berok'
16554           # Exported symbols can be pulled into shared objects from archives
16555           whole_archive_flag_spec_F77='$convenience'
16556           archive_cmds_need_lc_F77=yes
16557           # This is similar to how AIX traditionally builds its shared libraries.
16558           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'
16559         fi
16560       fi
16561       ;;
16562
16563     amigaos*)
16564       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)'
16565       hardcode_libdir_flag_spec_F77='-L$libdir'
16566       hardcode_minus_L_F77=yes
16567       # see comment about different semantics on the GNU ld section
16568       ld_shlibs_F77=no
16569       ;;
16570
16571     bsdi[45]*)
16572       export_dynamic_flag_spec_F77=-rdynamic
16573       ;;
16574
16575     cygwin* | mingw* | pw32*)
16576       # When not using gcc, we currently assume that we are using
16577       # Microsoft Visual C++.
16578       # hardcode_libdir_flag_spec is actually meaningless, as there is
16579       # no search path for DLLs.
16580       hardcode_libdir_flag_spec_F77=' '
16581       allow_undefined_flag_F77=unsupported
16582       # Tell ltmain to make .lib files, not .a files.
16583       libext=lib
16584       # Tell ltmain to make .dll files, not .so files.
16585       shrext_cmds=".dll"
16586       # FIXME: Setting linknames here is a bad hack.
16587       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16588       # The linker will automatically build a .lib file if we build a DLL.
16589       old_archive_From_new_cmds_F77='true'
16590       # FIXME: Should let the user specify the lib program.
16591       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16592       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16593       enable_shared_with_static_runtimes_F77=yes
16594       ;;
16595
16596     darwin* | rhapsody*)
16597       case $host_os in
16598         rhapsody* | darwin1.[012])
16599          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16600          ;;
16601        *) # Darwin 1.3 on
16602          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16603            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16604          else
16605            case ${MACOSX_DEPLOYMENT_TARGET} in
16606              10.[012])
16607                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16608                ;;
16609              10.*)
16610                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16611                ;;
16612            esac
16613          fi
16614          ;;
16615       esac
16616       archive_cmds_need_lc_F77=no
16617       hardcode_direct_F77=no
16618       hardcode_automatic_F77=yes
16619       hardcode_shlibpath_var_F77=unsupported
16620       whole_archive_flag_spec_F77=''
16621       link_all_deplibs_F77=yes
16622     if test "$GCC" = yes ; then
16623         output_verbose_link_cmd='echo'
16624         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16625       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16626       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16627       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}'
16628       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}'
16629     else
16630       case $cc_basename in
16631         xlc*)
16632          output_verbose_link_cmd='echo'
16633          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16634          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16635           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16636          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}'
16637           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}'
16638           ;;
16639        *)
16640          ld_shlibs_F77=no
16641           ;;
16642       esac
16643     fi
16644       ;;
16645
16646     dgux*)
16647       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16648       hardcode_libdir_flag_spec_F77='-L$libdir'
16649       hardcode_shlibpath_var_F77=no
16650       ;;
16651
16652     freebsd1*)
16653       ld_shlibs_F77=no
16654       ;;
16655
16656     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16657     # support.  Future versions do this automatically, but an explicit c++rt0.o
16658     # does not break anything, and helps significantly (at the cost of a little
16659     # extra space).
16660     freebsd2.2*)
16661       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16662       hardcode_libdir_flag_spec_F77='-R$libdir'
16663       hardcode_direct_F77=yes
16664       hardcode_shlibpath_var_F77=no
16665       ;;
16666
16667     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16668     freebsd2*)
16669       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16670       hardcode_direct_F77=yes
16671       hardcode_minus_L_F77=yes
16672       hardcode_shlibpath_var_F77=no
16673       ;;
16674
16675     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16676     freebsd* | dragonfly*)
16677       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16678       hardcode_libdir_flag_spec_F77='-R$libdir'
16679       hardcode_direct_F77=yes
16680       hardcode_shlibpath_var_F77=no
16681       ;;
16682
16683     hpux9*)
16684       if test "$GCC" = yes; then
16685         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'
16686       else
16687         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'
16688       fi
16689       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16690       hardcode_libdir_separator_F77=:
16691       hardcode_direct_F77=yes
16692
16693       # hardcode_minus_L: Not really in the search PATH,
16694       # but as the default location of the library.
16695       hardcode_minus_L_F77=yes
16696       export_dynamic_flag_spec_F77='${wl}-E'
16697       ;;
16698
16699     hpux10*)
16700       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16701         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16702       else
16703         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16704       fi
16705       if test "$with_gnu_ld" = no; then
16706         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16707         hardcode_libdir_separator_F77=:
16708
16709         hardcode_direct_F77=yes
16710         export_dynamic_flag_spec_F77='${wl}-E'
16711
16712         # hardcode_minus_L: Not really in the search PATH,
16713         # but as the default location of the library.
16714         hardcode_minus_L_F77=yes
16715       fi
16716       ;;
16717
16718     hpux11*)
16719       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16720         case $host_cpu in
16721         hppa*64*)
16722           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16723           ;;
16724         ia64*)
16725           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16726           ;;
16727         *)
16728           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16729           ;;
16730         esac
16731       else
16732         case $host_cpu in
16733         hppa*64*)
16734           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16735           ;;
16736         ia64*)
16737           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16738           ;;
16739         *)
16740           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16741           ;;
16742         esac
16743       fi
16744       if test "$with_gnu_ld" = no; then
16745         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16746         hardcode_libdir_separator_F77=:
16747
16748         case $host_cpu in
16749         hppa*64*|ia64*)
16750           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16751           hardcode_direct_F77=no
16752           hardcode_shlibpath_var_F77=no
16753           ;;
16754         *)
16755           hardcode_direct_F77=yes
16756           export_dynamic_flag_spec_F77='${wl}-E'
16757
16758           # hardcode_minus_L: Not really in the search PATH,
16759           # but as the default location of the library.
16760           hardcode_minus_L_F77=yes
16761           ;;
16762         esac
16763       fi
16764       ;;
16765
16766     irix5* | irix6* | nonstopux*)
16767       if test "$GCC" = yes; then
16768         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'
16769       else
16770         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'
16771         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16772       fi
16773       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16774       hardcode_libdir_separator_F77=:
16775       link_all_deplibs_F77=yes
16776       ;;
16777
16778     netbsd* | netbsdelf*-gnu)
16779       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16780         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16781       else
16782         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16783       fi
16784       hardcode_libdir_flag_spec_F77='-R$libdir'
16785       hardcode_direct_F77=yes
16786       hardcode_shlibpath_var_F77=no
16787       ;;
16788
16789     newsos6)
16790       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16791       hardcode_direct_F77=yes
16792       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16793       hardcode_libdir_separator_F77=:
16794       hardcode_shlibpath_var_F77=no
16795       ;;
16796
16797     openbsd*)
16798       hardcode_direct_F77=yes
16799       hardcode_shlibpath_var_F77=no
16800       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16801         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16802         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16803         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16804         export_dynamic_flag_spec_F77='${wl}-E'
16805       else
16806        case $host_os in
16807          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16808            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16809            hardcode_libdir_flag_spec_F77='-R$libdir'
16810            ;;
16811          *)
16812            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16813            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16814            ;;
16815        esac
16816       fi
16817       ;;
16818
16819     os2*)
16820       hardcode_libdir_flag_spec_F77='-L$libdir'
16821       hardcode_minus_L_F77=yes
16822       allow_undefined_flag_F77=unsupported
16823       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'
16824       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16825       ;;
16826
16827     osf3*)
16828       if test "$GCC" = yes; then
16829         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16830         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'
16831       else
16832         allow_undefined_flag_F77=' -expect_unresolved \*'
16833         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'
16834       fi
16835       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16836       hardcode_libdir_separator_F77=:
16837       ;;
16838
16839     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16840       if test "$GCC" = yes; then
16841         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16842         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'
16843         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16844       else
16845         allow_undefined_flag_F77=' -expect_unresolved \*'
16846         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'
16847         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~
16848         $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'
16849
16850         # Both c and cxx compiler support -rpath directly
16851         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16852       fi
16853       hardcode_libdir_separator_F77=:
16854       ;;
16855
16856     solaris*)
16857       no_undefined_flag_F77=' -z text'
16858       if test "$GCC" = yes; then
16859         wlarc='${wl}'
16860         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16861         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16862           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16863       else
16864         wlarc=''
16865         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16866         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16867         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16868       fi
16869       hardcode_libdir_flag_spec_F77='-R$libdir'
16870       hardcode_shlibpath_var_F77=no
16871       case $host_os in
16872       solaris2.[0-5] | solaris2.[0-5].*) ;;
16873       *)
16874         # The compiler driver will combine linker options so we
16875         # cannot just pass the convience library names through
16876         # without $wl, iff we do not link with $LD.
16877         # Luckily, gcc supports the same syntax we need for Sun Studio.
16878         # Supported since Solaris 2.6 (maybe 2.5.1?)
16879         case $wlarc in
16880         '')
16881           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16882         *)
16883           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' ;;
16884         esac ;;
16885       esac
16886       link_all_deplibs_F77=yes
16887       ;;
16888
16889     sunos4*)
16890       if test "x$host_vendor" = xsequent; then
16891         # Use $CC to link under sequent, because it throws in some extra .o
16892         # files that make .init and .fini sections work.
16893         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16894       else
16895         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16896       fi
16897       hardcode_libdir_flag_spec_F77='-L$libdir'
16898       hardcode_direct_F77=yes
16899       hardcode_minus_L_F77=yes
16900       hardcode_shlibpath_var_F77=no
16901       ;;
16902
16903     sysv4)
16904       case $host_vendor in
16905         sni)
16906           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16907           hardcode_direct_F77=yes # is this really true???
16908         ;;
16909         siemens)
16910           ## LD is ld it makes a PLAMLIB
16911           ## CC just makes a GrossModule.
16912           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16913           reload_cmds_F77='$CC -r -o $output$reload_objs'
16914           hardcode_direct_F77=no
16915         ;;
16916         motorola)
16917           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16918           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16919         ;;
16920       esac
16921       runpath_var='LD_RUN_PATH'
16922       hardcode_shlibpath_var_F77=no
16923       ;;
16924
16925     sysv4.3*)
16926       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16927       hardcode_shlibpath_var_F77=no
16928       export_dynamic_flag_spec_F77='-Bexport'
16929       ;;
16930
16931     sysv4*MP*)
16932       if test -d /usr/nec; then
16933         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16934         hardcode_shlibpath_var_F77=no
16935         runpath_var=LD_RUN_PATH
16936         hardcode_runpath_var=yes
16937         ld_shlibs_F77=yes
16938       fi
16939       ;;
16940
16941     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16942       no_undefined_flag_F77='${wl}-z,text'
16943       archive_cmds_need_lc_F77=no
16944       hardcode_shlibpath_var_F77=no
16945       runpath_var='LD_RUN_PATH'
16946
16947       if test "$GCC" = yes; then
16948         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16949         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16950       else
16951         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16952         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16953       fi
16954       ;;
16955
16956     sysv5* | sco3.2v5* | sco5v6*)
16957       # Note: We can NOT use -z defs as we might desire, because we do not
16958       # link with -lc, and that would cause any symbols used from libc to
16959       # always be unresolved, which means just about no library would
16960       # ever link correctly.  If we're not using GNU ld we use -z text
16961       # though, which does catch some bad symbols but isn't as heavy-handed
16962       # as -z defs.
16963       no_undefined_flag_F77='${wl}-z,text'
16964       allow_undefined_flag_F77='${wl}-z,nodefs'
16965       archive_cmds_need_lc_F77=no
16966       hardcode_shlibpath_var_F77=no
16967       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16968       hardcode_libdir_separator_F77=':'
16969       link_all_deplibs_F77=yes
16970       export_dynamic_flag_spec_F77='${wl}-Bexport'
16971       runpath_var='LD_RUN_PATH'
16972
16973       if test "$GCC" = yes; then
16974         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16975         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16976       else
16977         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16978         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16979       fi
16980       ;;
16981
16982     uts4*)
16983       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16984       hardcode_libdir_flag_spec_F77='-L$libdir'
16985       hardcode_shlibpath_var_F77=no
16986       ;;
16987
16988     *)
16989       ld_shlibs_F77=no
16990       ;;
16991     esac
16992   fi
16993
16994 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16995 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16996 test "$ld_shlibs_F77" = no && can_build_shared=no
16997
16998 #
16999 # Do we need to explicitly link libc?
17000 #
17001 case "x$archive_cmds_need_lc_F77" in
17002 x|xyes)
17003   # Assume -lc should be added
17004   archive_cmds_need_lc_F77=yes
17005
17006   if test "$enable_shared" = yes && test "$GCC" = yes; then
17007     case $archive_cmds_F77 in
17008     *'~'*)
17009       # FIXME: we may have to deal with multi-command sequences.
17010       ;;
17011     '$CC '*)
17012       # Test whether the compiler implicitly links with -lc since on some
17013       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17014       # to ld, don't add -lc before -lgcc.
17015       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17016 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17017       $rm conftest*
17018       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17019
17020       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17021   (eval $ac_compile) 2>&5
17022   ac_status=$?
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); } 2>conftest.err; then
17025         soname=conftest
17026         lib=conftest
17027         libobjs=conftest.$ac_objext
17028         deplibs=
17029         wl=$lt_prog_compiler_wl_F77
17030         pic_flag=$lt_prog_compiler_pic_F77
17031         compiler_flags=-v
17032         linker_flags=-v
17033         verstring=
17034         output_objdir=.
17035         libname=conftest
17036         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17037         allow_undefined_flag_F77=
17038         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17039   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17040   ac_status=$?
17041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042   (exit $ac_status); }
17043         then
17044           archive_cmds_need_lc_F77=no
17045         else
17046           archive_cmds_need_lc_F77=yes
17047         fi
17048         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17049       else
17050         cat conftest.err 1>&5
17051       fi
17052       $rm conftest*
17053       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17054 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17055       ;;
17056     esac
17057   fi
17058   ;;
17059 esac
17060
17061 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17062 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17063 library_names_spec=
17064 libname_spec='lib$name'
17065 soname_spec=
17066 shrext_cmds=".so"
17067 postinstall_cmds=
17068 postuninstall_cmds=
17069 finish_cmds=
17070 finish_eval=
17071 shlibpath_var=
17072 shlibpath_overrides_runpath=unknown
17073 version_type=none
17074 dynamic_linker="$host_os ld.so"
17075 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17076 if test "$GCC" = yes; then
17077   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17078   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17079     # if the path contains ";" then we assume it to be the separator
17080     # otherwise default to the standard path separator (i.e. ":") - it is
17081     # assumed that no part of a normal pathname contains ";" but that should
17082     # okay in the real world where ";" in dirpaths is itself problematic.
17083     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17084   else
17085     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17086   fi
17087 else
17088   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17089 fi
17090 need_lib_prefix=unknown
17091 hardcode_into_libs=no
17092
17093 # when you set need_version to no, make sure it does not cause -set_version
17094 # flags to be left without arguments
17095 need_version=unknown
17096
17097 case $host_os in
17098 aix3*)
17099   version_type=linux
17100   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17101   shlibpath_var=LIBPATH
17102
17103   # AIX 3 has no versioning support, so we append a major version to the name.
17104   soname_spec='${libname}${release}${shared_ext}$major'
17105   ;;
17106
17107 aix4* | aix5*)
17108   version_type=linux
17109   need_lib_prefix=no
17110   need_version=no
17111   hardcode_into_libs=yes
17112   if test "$host_cpu" = ia64; then
17113     # AIX 5 supports IA64
17114     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17115     shlibpath_var=LD_LIBRARY_PATH
17116   else
17117     # With GCC up to 2.95.x, collect2 would create an import file
17118     # for dependence libraries.  The import file would start with
17119     # the line `#! .'.  This would cause the generated library to
17120     # depend on `.', always an invalid library.  This was fixed in
17121     # development snapshots of GCC prior to 3.0.
17122     case $host_os in
17123       aix4 | aix4.[01] | aix4.[01].*)
17124       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17125            echo ' yes '
17126            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17127         :
17128       else
17129         can_build_shared=no
17130       fi
17131       ;;
17132     esac
17133     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17134     # soname into executable. Probably we can add versioning support to
17135     # collect2, so additional links can be useful in future.
17136     if test "$aix_use_runtimelinking" = yes; then
17137       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17138       # instead of lib<name>.a to let people know that these are not
17139       # typical AIX shared libraries.
17140       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17141     else
17142       # We preserve .a as extension for shared libraries through AIX4.2
17143       # and later when we are not doing run time linking.
17144       library_names_spec='${libname}${release}.a $libname.a'
17145       soname_spec='${libname}${release}${shared_ext}$major'
17146     fi
17147     shlibpath_var=LIBPATH
17148   fi
17149   ;;
17150
17151 amigaos*)
17152   library_names_spec='$libname.ixlibrary $libname.a'
17153   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17154   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'
17155   ;;
17156
17157 beos*)
17158   library_names_spec='${libname}${shared_ext}'
17159   dynamic_linker="$host_os ld.so"
17160   shlibpath_var=LIBRARY_PATH
17161   ;;
17162
17163 bsdi[45]*)
17164   version_type=linux
17165   need_version=no
17166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17167   soname_spec='${libname}${release}${shared_ext}$major'
17168   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17169   shlibpath_var=LD_LIBRARY_PATH
17170   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17171   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17172   # the default ld.so.conf also contains /usr/contrib/lib and
17173   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17174   # libtool to hard-code these into programs
17175   ;;
17176
17177 cygwin* | mingw* | pw32*)
17178   version_type=windows
17179   shrext_cmds=".dll"
17180   need_version=no
17181   need_lib_prefix=no
17182
17183   case $GCC,$host_os in
17184   yes,cygwin* | yes,mingw* | yes,pw32*)
17185     library_names_spec='$libname.dll.a'
17186     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17187     postinstall_cmds='base_file=`basename \${file}`~
17188       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17189       dldir=$destdir/`dirname \$dlpath`~
17190       test -d \$dldir || mkdir -p \$dldir~
17191       $install_prog $dir/$dlname \$dldir/$dlname~
17192       chmod a+x \$dldir/$dlname'
17193     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17194       dlpath=$dir/\$dldll~
17195        $rm \$dlpath'
17196     shlibpath_overrides_runpath=yes
17197
17198     case $host_os in
17199     cygwin*)
17200       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17201       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17202       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17203       ;;
17204     mingw*)
17205       # MinGW DLLs use traditional 'lib' prefix
17206       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17207       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17208       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17209         # It is most probably a Windows format PATH printed by
17210         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17211         # path with ; separators, and with drive letters. We can handle the
17212         # drive letters (cygwin fileutils understands them), so leave them,
17213         # especially as we might pass files found there to a mingw objdump,
17214         # which wouldn't understand a cygwinified path. Ahh.
17215         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17216       else
17217         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17218       fi
17219       ;;
17220     pw32*)
17221       # pw32 DLLs use 'pw' prefix rather than 'lib'
17222       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17223       ;;
17224     esac
17225     ;;
17226
17227   *)
17228     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17229     ;;
17230   esac
17231   dynamic_linker='Win32 ld.exe'
17232   # FIXME: first we should search . and the directory the executable is in
17233   shlibpath_var=PATH
17234   ;;
17235
17236 darwin* | rhapsody*)
17237   dynamic_linker="$host_os dyld"
17238   version_type=darwin
17239   need_lib_prefix=no
17240   need_version=no
17241   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17242   soname_spec='${libname}${release}${major}$shared_ext'
17243   shlibpath_overrides_runpath=yes
17244   shlibpath_var=DYLD_LIBRARY_PATH
17245   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17246   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17247   if test "$GCC" = yes; then
17248     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"`
17249   else
17250     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17251   fi
17252   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17253   ;;
17254
17255 dgux*)
17256   version_type=linux
17257   need_lib_prefix=no
17258   need_version=no
17259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17260   soname_spec='${libname}${release}${shared_ext}$major'
17261   shlibpath_var=LD_LIBRARY_PATH
17262   ;;
17263
17264 freebsd1*)
17265   dynamic_linker=no
17266   ;;
17267
17268 freebsd* | dragonfly*)
17269   # DragonFly does not have aout.  When/if they implement a new
17270   # versioning mechanism, adjust this.
17271   if test -x /usr/bin/objformat; then
17272     objformat=`/usr/bin/objformat`
17273   else
17274     case $host_os in
17275     freebsd[123]*) objformat=aout ;;
17276     *) objformat=elf ;;
17277     esac
17278   fi
17279   version_type=freebsd-$objformat
17280   case $version_type in
17281     freebsd-elf*)
17282       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17283       need_version=no
17284       need_lib_prefix=no
17285       ;;
17286     freebsd-*)
17287       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17288       need_version=yes
17289       ;;
17290   esac
17291   shlibpath_var=LD_LIBRARY_PATH
17292   case $host_os in
17293   freebsd2*)
17294     shlibpath_overrides_runpath=yes
17295     ;;
17296   freebsd3.[01]* | freebsdelf3.[01]*)
17297     shlibpath_overrides_runpath=yes
17298     hardcode_into_libs=yes
17299     ;;
17300   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17301   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17302     shlibpath_overrides_runpath=no
17303     hardcode_into_libs=yes
17304     ;;
17305   freebsd*) # from 4.6 on
17306     shlibpath_overrides_runpath=yes
17307     hardcode_into_libs=yes
17308     ;;
17309   esac
17310   ;;
17311
17312 gnu*)
17313   version_type=linux
17314   need_lib_prefix=no
17315   need_version=no
17316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17317   soname_spec='${libname}${release}${shared_ext}$major'
17318   shlibpath_var=LD_LIBRARY_PATH
17319   hardcode_into_libs=yes
17320   ;;
17321
17322 hpux9* | hpux10* | hpux11*)
17323   # Give a soname corresponding to the major version so that dld.sl refuses to
17324   # link against other versions.
17325   version_type=sunos
17326   need_lib_prefix=no
17327   need_version=no
17328   case $host_cpu in
17329   ia64*)
17330     shrext_cmds='.so'
17331     hardcode_into_libs=yes
17332     dynamic_linker="$host_os dld.so"
17333     shlibpath_var=LD_LIBRARY_PATH
17334     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17335     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17336     soname_spec='${libname}${release}${shared_ext}$major'
17337     if test "X$HPUX_IA64_MODE" = X32; then
17338       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17339     else
17340       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17341     fi
17342     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17343     ;;
17344    hppa*64*)
17345      shrext_cmds='.sl'
17346      hardcode_into_libs=yes
17347      dynamic_linker="$host_os dld.sl"
17348      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17349      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17350      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17351      soname_spec='${libname}${release}${shared_ext}$major'
17352      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17353      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17354      ;;
17355    *)
17356     shrext_cmds='.sl'
17357     dynamic_linker="$host_os dld.sl"
17358     shlibpath_var=SHLIB_PATH
17359     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17361     soname_spec='${libname}${release}${shared_ext}$major'
17362     ;;
17363   esac
17364   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17365   postinstall_cmds='chmod 555 $lib'
17366   ;;
17367
17368 interix3*)
17369   version_type=linux
17370   need_lib_prefix=no
17371   need_version=no
17372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17373   soname_spec='${libname}${release}${shared_ext}$major'
17374   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17375   shlibpath_var=LD_LIBRARY_PATH
17376   shlibpath_overrides_runpath=no
17377   hardcode_into_libs=yes
17378   ;;
17379
17380 irix5* | irix6* | nonstopux*)
17381   case $host_os in
17382     nonstopux*) version_type=nonstopux ;;
17383     *)
17384         if test "$lt_cv_prog_gnu_ld" = yes; then
17385                 version_type=linux
17386         else
17387                 version_type=irix
17388         fi ;;
17389   esac
17390   need_lib_prefix=no
17391   need_version=no
17392   soname_spec='${libname}${release}${shared_ext}$major'
17393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17394   case $host_os in
17395   irix5* | nonstopux*)
17396     libsuff= shlibsuff=
17397     ;;
17398   *)
17399     case $LD in # libtool.m4 will add one of these switches to LD
17400     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17401       libsuff= shlibsuff= libmagic=32-bit;;
17402     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17403       libsuff=32 shlibsuff=N32 libmagic=N32;;
17404     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17405       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17406     *) libsuff= shlibsuff= libmagic=never-match;;
17407     esac
17408     ;;
17409   esac
17410   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17411   shlibpath_overrides_runpath=no
17412   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17413   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17414   hardcode_into_libs=yes
17415   ;;
17416
17417 # No shared lib support for Linux oldld, aout, or coff.
17418 linux*oldld* | linux*aout* | linux*coff*)
17419   dynamic_linker=no
17420   ;;
17421
17422 # This must be Linux ELF.
17423 linux* | k*bsd*-gnu)
17424   version_type=linux
17425   need_lib_prefix=no
17426   need_version=no
17427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17428   soname_spec='${libname}${release}${shared_ext}$major'
17429   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17430   shlibpath_var=LD_LIBRARY_PATH
17431   shlibpath_overrides_runpath=no
17432   # This implies no fast_install, which is unacceptable.
17433   # Some rework will be needed to allow for fast_install
17434   # before this can be enabled.
17435   hardcode_into_libs=yes
17436
17437   # Append ld.so.conf contents to the search path
17438   if test -f /etc/ld.so.conf; then
17439     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' ' '`
17440     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17441   fi
17442
17443   # We used to test for /lib/ld.so.1 and disable shared libraries on
17444   # powerpc, because MkLinux only supported shared libraries with the
17445   # GNU dynamic linker.  Since this was broken with cross compilers,
17446   # most powerpc-linux boxes support dynamic linking these days and
17447   # people can always --disable-shared, the test was removed, and we
17448   # assume the GNU/Linux dynamic linker is in use.
17449   dynamic_linker='GNU/Linux ld.so'
17450   ;;
17451
17452 netbsdelf*-gnu)
17453   version_type=linux
17454   need_lib_prefix=no
17455   need_version=no
17456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17457   soname_spec='${libname}${release}${shared_ext}$major'
17458   shlibpath_var=LD_LIBRARY_PATH
17459   shlibpath_overrides_runpath=no
17460   hardcode_into_libs=yes
17461   dynamic_linker='NetBSD ld.elf_so'
17462   ;;
17463
17464 netbsd*)
17465   version_type=sunos
17466   need_lib_prefix=no
17467   need_version=no
17468   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17469     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17470     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17471     dynamic_linker='NetBSD (a.out) ld.so'
17472   else
17473     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17474     soname_spec='${libname}${release}${shared_ext}$major'
17475     dynamic_linker='NetBSD ld.elf_so'
17476   fi
17477   shlibpath_var=LD_LIBRARY_PATH
17478   shlibpath_overrides_runpath=yes
17479   hardcode_into_libs=yes
17480   ;;
17481
17482 newsos6)
17483   version_type=linux
17484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17485   shlibpath_var=LD_LIBRARY_PATH
17486   shlibpath_overrides_runpath=yes
17487   ;;
17488
17489 nto-qnx*)
17490   version_type=linux
17491   need_lib_prefix=no
17492   need_version=no
17493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494   soname_spec='${libname}${release}${shared_ext}$major'
17495   shlibpath_var=LD_LIBRARY_PATH
17496   shlibpath_overrides_runpath=yes
17497   ;;
17498
17499 openbsd*)
17500   version_type=sunos
17501   sys_lib_dlsearch_path_spec="/usr/lib"
17502   need_lib_prefix=no
17503   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17504   case $host_os in
17505     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17506     *)                         need_version=no  ;;
17507   esac
17508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17509   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17510   shlibpath_var=LD_LIBRARY_PATH
17511   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17512     case $host_os in
17513       openbsd2.[89] | openbsd2.[89].*)
17514         shlibpath_overrides_runpath=no
17515         ;;
17516       *)
17517         shlibpath_overrides_runpath=yes
17518         ;;
17519       esac
17520   else
17521     shlibpath_overrides_runpath=yes
17522   fi
17523   ;;
17524
17525 os2*)
17526   libname_spec='$name'
17527   shrext_cmds=".dll"
17528   need_lib_prefix=no
17529   library_names_spec='$libname${shared_ext} $libname.a'
17530   dynamic_linker='OS/2 ld.exe'
17531   shlibpath_var=LIBPATH
17532   ;;
17533
17534 osf3* | osf4* | osf5*)
17535   version_type=osf
17536   need_lib_prefix=no
17537   need_version=no
17538   soname_spec='${libname}${release}${shared_ext}$major'
17539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17540   shlibpath_var=LD_LIBRARY_PATH
17541   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17542   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17543   ;;
17544
17545 solaris*)
17546   version_type=linux
17547   need_lib_prefix=no
17548   need_version=no
17549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17550   soname_spec='${libname}${release}${shared_ext}$major'
17551   shlibpath_var=LD_LIBRARY_PATH
17552   shlibpath_overrides_runpath=yes
17553   hardcode_into_libs=yes
17554   # ldd complains unless libraries are executable
17555   postinstall_cmds='chmod +x $lib'
17556   ;;
17557
17558 sunos4*)
17559   version_type=sunos
17560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17561   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17562   shlibpath_var=LD_LIBRARY_PATH
17563   shlibpath_overrides_runpath=yes
17564   if test "$with_gnu_ld" = yes; then
17565     need_lib_prefix=no
17566   fi
17567   need_version=yes
17568   ;;
17569
17570 sysv4 | sysv4.3*)
17571   version_type=linux
17572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17573   soname_spec='${libname}${release}${shared_ext}$major'
17574   shlibpath_var=LD_LIBRARY_PATH
17575   case $host_vendor in
17576     sni)
17577       shlibpath_overrides_runpath=no
17578       need_lib_prefix=no
17579       export_dynamic_flag_spec='${wl}-Blargedynsym'
17580       runpath_var=LD_RUN_PATH
17581       ;;
17582     siemens)
17583       need_lib_prefix=no
17584       ;;
17585     motorola)
17586       need_lib_prefix=no
17587       need_version=no
17588       shlibpath_overrides_runpath=no
17589       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17590       ;;
17591   esac
17592   ;;
17593
17594 sysv4*MP*)
17595   if test -d /usr/nec ;then
17596     version_type=linux
17597     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17598     soname_spec='$libname${shared_ext}.$major'
17599     shlibpath_var=LD_LIBRARY_PATH
17600   fi
17601   ;;
17602
17603 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17604   version_type=freebsd-elf
17605   need_lib_prefix=no
17606   need_version=no
17607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17608   soname_spec='${libname}${release}${shared_ext}$major'
17609   shlibpath_var=LD_LIBRARY_PATH
17610   hardcode_into_libs=yes
17611   if test "$with_gnu_ld" = yes; then
17612     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17613     shlibpath_overrides_runpath=no
17614   else
17615     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17616     shlibpath_overrides_runpath=yes
17617     case $host_os in
17618       sco3.2v5*)
17619         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17620         ;;
17621     esac
17622   fi
17623   sys_lib_dlsearch_path_spec='/usr/lib'
17624   ;;
17625
17626 uts4*)
17627   version_type=linux
17628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17629   soname_spec='${libname}${release}${shared_ext}$major'
17630   shlibpath_var=LD_LIBRARY_PATH
17631   ;;
17632
17633 *)
17634   dynamic_linker=no
17635   ;;
17636 esac
17637 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17638 echo "${ECHO_T}$dynamic_linker" >&6; }
17639 test "$dynamic_linker" = no && can_build_shared=no
17640
17641 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17642 if test "$GCC" = yes; then
17643   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17644 fi
17645
17646 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17647 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17648 hardcode_action_F77=
17649 if test -n "$hardcode_libdir_flag_spec_F77" || \
17650    test -n "$runpath_var_F77" || \
17651    test "X$hardcode_automatic_F77" = "Xyes" ; then
17652
17653   # We can hardcode non-existant directories.
17654   if test "$hardcode_direct_F77" != no &&
17655      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17656      # have to relink, otherwise we might link with an installed library
17657      # when we should be linking with a yet-to-be-installed one
17658      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17659      test "$hardcode_minus_L_F77" != no; then
17660     # Linking always hardcodes the temporary library directory.
17661     hardcode_action_F77=relink
17662   else
17663     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17664     hardcode_action_F77=immediate
17665   fi
17666 else
17667   # We cannot hardcode anything, or else we can only hardcode existing
17668   # directories.
17669   hardcode_action_F77=unsupported
17670 fi
17671 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17672 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17673
17674 if test "$hardcode_action_F77" = relink; then
17675   # Fast installation is not supported
17676   enable_fast_install=no
17677 elif test "$shlibpath_overrides_runpath" = yes ||
17678      test "$enable_shared" = no; then
17679   # Fast installation is not necessary
17680   enable_fast_install=needless
17681 fi
17682
17683
17684 # The else clause should only fire when bootstrapping the
17685 # libtool distribution, otherwise you forgot to ship ltmain.sh
17686 # with your package, and you will get complaints that there are
17687 # no rules to generate ltmain.sh.
17688 if test -f "$ltmain"; then
17689   # See if we are running on zsh, and set the options which allow our commands through
17690   # without removal of \ escapes.
17691   if test -n "${ZSH_VERSION+set}" ; then
17692     setopt NO_GLOB_SUBST
17693   fi
17694   # Now quote all the things that may contain metacharacters while being
17695   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17696   # variables and quote the copies for generation of the libtool script.
17697   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17698     SED SHELL STRIP \
17699     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17700     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17701     deplibs_check_method reload_flag reload_cmds need_locks \
17702     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17703     lt_cv_sys_global_symbol_to_c_name_address \
17704     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17705     old_postinstall_cmds old_postuninstall_cmds \
17706     compiler_F77 \
17707     CC_F77 \
17708     LD_F77 \
17709     lt_prog_compiler_wl_F77 \
17710     lt_prog_compiler_pic_F77 \
17711     lt_prog_compiler_static_F77 \
17712     lt_prog_compiler_no_builtin_flag_F77 \
17713     export_dynamic_flag_spec_F77 \
17714     thread_safe_flag_spec_F77 \
17715     whole_archive_flag_spec_F77 \
17716     enable_shared_with_static_runtimes_F77 \
17717     old_archive_cmds_F77 \
17718     old_archive_from_new_cmds_F77 \
17719     predep_objects_F77 \
17720     postdep_objects_F77 \
17721     predeps_F77 \
17722     postdeps_F77 \
17723     compiler_lib_search_path_F77 \
17724     archive_cmds_F77 \
17725     archive_expsym_cmds_F77 \
17726     postinstall_cmds_F77 \
17727     postuninstall_cmds_F77 \
17728     old_archive_from_expsyms_cmds_F77 \
17729     allow_undefined_flag_F77 \
17730     no_undefined_flag_F77 \
17731     export_symbols_cmds_F77 \
17732     hardcode_libdir_flag_spec_F77 \
17733     hardcode_libdir_flag_spec_ld_F77 \
17734     hardcode_libdir_separator_F77 \
17735     hardcode_automatic_F77 \
17736     module_cmds_F77 \
17737     module_expsym_cmds_F77 \
17738     lt_cv_prog_compiler_c_o_F77 \
17739     exclude_expsyms_F77 \
17740     include_expsyms_F77; do
17741
17742     case $var in
17743     old_archive_cmds_F77 | \
17744     old_archive_from_new_cmds_F77 | \
17745     archive_cmds_F77 | \
17746     archive_expsym_cmds_F77 | \
17747     module_cmds_F77 | \
17748     module_expsym_cmds_F77 | \
17749     old_archive_from_expsyms_cmds_F77 | \
17750     export_symbols_cmds_F77 | \
17751     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17752     postinstall_cmds | postuninstall_cmds | \
17753     old_postinstall_cmds | old_postuninstall_cmds | \
17754     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17755       # Double-quote double-evaled strings.
17756       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17757       ;;
17758     *)
17759       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17760       ;;
17761     esac
17762   done
17763
17764   case $lt_echo in
17765   *'\$0 --fallback-echo"')
17766     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17767     ;;
17768   esac
17769
17770 cfgfile="$ofile"
17771
17772   cat <<__EOF__ >> "$cfgfile"
17773 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17774
17775 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17776
17777 # Shell to use when invoking shell scripts.
17778 SHELL=$lt_SHELL
17779
17780 # Whether or not to build shared libraries.
17781 build_libtool_libs=$enable_shared
17782
17783 # Whether or not to build static libraries.
17784 build_old_libs=$enable_static
17785
17786 # Whether or not to add -lc for building shared libraries.
17787 build_libtool_need_lc=$archive_cmds_need_lc_F77
17788
17789 # Whether or not to disallow shared libs when runtime libs are static
17790 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17791
17792 # Whether or not to optimize for fast installation.
17793 fast_install=$enable_fast_install
17794
17795 # The host system.
17796 host_alias=$host_alias
17797 host=$host
17798 host_os=$host_os
17799
17800 # The build system.
17801 build_alias=$build_alias
17802 build=$build
17803 build_os=$build_os
17804
17805 # An echo program that does not interpret backslashes.
17806 echo=$lt_echo
17807
17808 # The archiver.
17809 AR=$lt_AR
17810 AR_FLAGS=$lt_AR_FLAGS
17811
17812 # A C compiler.
17813 LTCC=$lt_LTCC
17814
17815 # LTCC compiler flags.
17816 LTCFLAGS=$lt_LTCFLAGS
17817
17818 # A language-specific compiler.
17819 CC=$lt_compiler_F77
17820
17821 # Is the compiler the GNU C compiler?
17822 with_gcc=$GCC_F77
17823
17824 # An ERE matcher.
17825 EGREP=$lt_EGREP
17826
17827 # The linker used to build libraries.
17828 LD=$lt_LD_F77
17829
17830 # Whether we need hard or soft links.
17831 LN_S=$lt_LN_S
17832
17833 # A BSD-compatible nm program.
17834 NM=$lt_NM
17835
17836 # A symbol stripping program
17837 STRIP=$lt_STRIP
17838
17839 # Used to examine libraries when file_magic_cmd begins "file"
17840 MAGIC_CMD=$MAGIC_CMD
17841
17842 # Used on cygwin: DLL creation program.
17843 DLLTOOL="$DLLTOOL"
17844
17845 # Used on cygwin: object dumper.
17846 OBJDUMP="$OBJDUMP"
17847
17848 # Used on cygwin: assembler.
17849 AS="$AS"
17850
17851 # The name of the directory that contains temporary libtool files.
17852 objdir=$objdir
17853
17854 # How to create reloadable object files.
17855 reload_flag=$lt_reload_flag
17856 reload_cmds=$lt_reload_cmds
17857
17858 # How to pass a linker flag through the compiler.
17859 wl=$lt_lt_prog_compiler_wl_F77
17860
17861 # Object file suffix (normally "o").
17862 objext="$ac_objext"
17863
17864 # Old archive suffix (normally "a").
17865 libext="$libext"
17866
17867 # Shared library suffix (normally ".so").
17868 shrext_cmds='$shrext_cmds'
17869
17870 # Executable file suffix (normally "").
17871 exeext="$exeext"
17872
17873 # Additional compiler flags for building library objects.
17874 pic_flag=$lt_lt_prog_compiler_pic_F77
17875 pic_mode=$pic_mode
17876
17877 # What is the maximum length of a command?
17878 max_cmd_len=$lt_cv_sys_max_cmd_len
17879
17880 # Does compiler simultaneously support -c and -o options?
17881 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17882
17883 # Must we lock files when doing compilation?
17884 need_locks=$lt_need_locks
17885
17886 # Do we need the lib prefix for modules?
17887 need_lib_prefix=$need_lib_prefix
17888
17889 # Do we need a version for libraries?
17890 need_version=$need_version
17891
17892 # Whether dlopen is supported.
17893 dlopen_support=$enable_dlopen
17894
17895 # Whether dlopen of programs is supported.
17896 dlopen_self=$enable_dlopen_self
17897
17898 # Whether dlopen of statically linked programs is supported.
17899 dlopen_self_static=$enable_dlopen_self_static
17900
17901 # Compiler flag to prevent dynamic linking.
17902 link_static_flag=$lt_lt_prog_compiler_static_F77
17903
17904 # Compiler flag to turn off builtin functions.
17905 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17906
17907 # Compiler flag to allow reflexive dlopens.
17908 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17909
17910 # Compiler flag to generate shared objects directly from archives.
17911 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17912
17913 # Compiler flag to generate thread-safe objects.
17914 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17915
17916 # Library versioning type.
17917 version_type=$version_type
17918
17919 # Format of library name prefix.
17920 libname_spec=$lt_libname_spec
17921
17922 # List of archive names.  First name is the real one, the rest are links.
17923 # The last name is the one that the linker finds with -lNAME.
17924 library_names_spec=$lt_library_names_spec
17925
17926 # The coded name of the library, if different from the real name.
17927 soname_spec=$lt_soname_spec
17928
17929 # Commands used to build and install an old-style archive.
17930 RANLIB=$lt_RANLIB
17931 old_archive_cmds=$lt_old_archive_cmds_F77
17932 old_postinstall_cmds=$lt_old_postinstall_cmds
17933 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17934
17935 # Create an old-style archive from a shared archive.
17936 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17937
17938 # Create a temporary old-style archive to link instead of a shared archive.
17939 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17940
17941 # Commands used to build and install a shared archive.
17942 archive_cmds=$lt_archive_cmds_F77
17943 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17944 postinstall_cmds=$lt_postinstall_cmds
17945 postuninstall_cmds=$lt_postuninstall_cmds
17946
17947 # Commands used to build a loadable module (assumed same as above if empty)
17948 module_cmds=$lt_module_cmds_F77
17949 module_expsym_cmds=$lt_module_expsym_cmds_F77
17950
17951 # Commands to strip libraries.
17952 old_striplib=$lt_old_striplib
17953 striplib=$lt_striplib
17954
17955 # Dependencies to place before the objects being linked to create a
17956 # shared library.
17957 predep_objects=$lt_predep_objects_F77
17958
17959 # Dependencies to place after the objects being linked to create a
17960 # shared library.
17961 postdep_objects=$lt_postdep_objects_F77
17962
17963 # Dependencies to place before the objects being linked to create a
17964 # shared library.
17965 predeps=$lt_predeps_F77
17966
17967 # Dependencies to place after the objects being linked to create a
17968 # shared library.
17969 postdeps=$lt_postdeps_F77
17970
17971 # The library search path used internally by the compiler when linking
17972 # a shared library.
17973 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17974
17975 # Method to check whether dependent libraries are shared objects.
17976 deplibs_check_method=$lt_deplibs_check_method
17977
17978 # Command to use when deplibs_check_method == file_magic.
17979 file_magic_cmd=$lt_file_magic_cmd
17980
17981 # Flag that allows shared libraries with undefined symbols to be built.
17982 allow_undefined_flag=$lt_allow_undefined_flag_F77
17983
17984 # Flag that forces no undefined symbols.
17985 no_undefined_flag=$lt_no_undefined_flag_F77
17986
17987 # Commands used to finish a libtool library installation in a directory.
17988 finish_cmds=$lt_finish_cmds
17989
17990 # Same as above, but a single script fragment to be evaled but not shown.
17991 finish_eval=$lt_finish_eval
17992
17993 # Take the output of nm and produce a listing of raw symbols and C names.
17994 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17995
17996 # Transform the output of nm in a proper C declaration
17997 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17998
17999 # Transform the output of nm in a C name address pair
18000 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18001
18002 # This is the shared library runtime path variable.
18003 runpath_var=$runpath_var
18004
18005 # This is the shared library path variable.
18006 shlibpath_var=$shlibpath_var
18007
18008 # Is shlibpath searched before the hard-coded library search path?
18009 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18010
18011 # How to hardcode a shared library path into an executable.
18012 hardcode_action=$hardcode_action_F77
18013
18014 # Whether we should hardcode library paths into libraries.
18015 hardcode_into_libs=$hardcode_into_libs
18016
18017 # Flag to hardcode \$libdir into a binary during linking.
18018 # This must work even if \$libdir does not exist.
18019 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18020
18021 # If ld is used when linking, flag to hardcode \$libdir into
18022 # a binary during linking. This must work even if \$libdir does
18023 # not exist.
18024 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18025
18026 # Whether we need a single -rpath flag with a separated argument.
18027 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18028
18029 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18030 # resulting binary.
18031 hardcode_direct=$hardcode_direct_F77
18032
18033 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18034 # resulting binary.
18035 hardcode_minus_L=$hardcode_minus_L_F77
18036
18037 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18038 # the resulting binary.
18039 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18040
18041 # Set to yes if building a shared library automatically hardcodes DIR into the library
18042 # and all subsequent libraries and executables linked against it.
18043 hardcode_automatic=$hardcode_automatic_F77
18044
18045 # Variables whose values should be saved in libtool wrapper scripts and
18046 # restored at relink time.
18047 variables_saved_for_relink="$variables_saved_for_relink"
18048
18049 # Whether libtool must link a program against all its dependency libraries.
18050 link_all_deplibs=$link_all_deplibs_F77
18051
18052 # Compile-time system search path for libraries
18053 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18054
18055 # Run-time system search path for libraries
18056 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18057
18058 # Fix the shell variable \$srcfile for the compiler.
18059 fix_srcfile_path="$fix_srcfile_path_F77"
18060
18061 # Set to yes if exported symbols are required.
18062 always_export_symbols=$always_export_symbols_F77
18063
18064 # The commands to list exported symbols.
18065 export_symbols_cmds=$lt_export_symbols_cmds_F77
18066
18067 # The commands to extract the exported symbol list from a shared archive.
18068 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18069
18070 # Symbols that should not be listed in the preloaded symbols.
18071 exclude_expsyms=$lt_exclude_expsyms_F77
18072
18073 # Symbols that must always be exported.
18074 include_expsyms=$lt_include_expsyms_F77
18075
18076 # ### END LIBTOOL TAG CONFIG: $tagname
18077
18078 __EOF__
18079
18080
18081 else
18082   # If there is no Makefile yet, we rely on a make rule to execute
18083   # `config.status --recheck' to rerun these tests and create the
18084   # libtool script then.
18085   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18086   if test -f "$ltmain_in"; then
18087     test -f Makefile && make "$ltmain"
18088   fi
18089 fi
18090
18091
18092 ac_ext=c
18093 ac_cpp='$CPP $CPPFLAGS'
18094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18097
18098 CC="$lt_save_CC"
18099
18100         else
18101           tagname=""
18102         fi
18103         ;;
18104
18105       GCJ)
18106         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18107
18108
18109 # Source file extension for Java test sources.
18110 ac_ext=java
18111
18112 # Object file extension for compiled Java test sources.
18113 objext=o
18114 objext_GCJ=$objext
18115
18116 # Code to be used in simple compile tests
18117 lt_simple_compile_test_code="class foo {}\n"
18118
18119 # Code to be used in simple link tests
18120 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18121
18122 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18123
18124 # If no C compiler was specified, use CC.
18125 LTCC=${LTCC-"$CC"}
18126
18127 # If no C compiler flags were specified, use CFLAGS.
18128 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18129
18130 # Allow CC to be a program name with arguments.
18131 compiler=$CC
18132
18133
18134 # save warnings/boilerplate of simple test code
18135 ac_outfile=conftest.$ac_objext
18136 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18137 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18138 _lt_compiler_boilerplate=`cat conftest.err`
18139 $rm conftest*
18140
18141 ac_outfile=conftest.$ac_objext
18142 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18143 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18144 _lt_linker_boilerplate=`cat conftest.err`
18145 $rm conftest*
18146
18147
18148 # Allow CC to be a program name with arguments.
18149 lt_save_CC="$CC"
18150 CC=${GCJ-"gcj"}
18151 compiler=$CC
18152 compiler_GCJ=$CC
18153 for cc_temp in $compiler""; do
18154   case $cc_temp in
18155     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18156     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18157     \-*) ;;
18158     *) break;;
18159   esac
18160 done
18161 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18162
18163
18164 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18165 archive_cmds_need_lc_GCJ=no
18166
18167 old_archive_cmds_GCJ=$old_archive_cmds
18168
18169
18170 lt_prog_compiler_no_builtin_flag_GCJ=
18171
18172 if test "$GCC" = yes; then
18173   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18174
18175
18176 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18177 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18178 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18179   echo $ECHO_N "(cached) $ECHO_C" >&6
18180 else
18181   lt_cv_prog_compiler_rtti_exceptions=no
18182   ac_outfile=conftest.$ac_objext
18183    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18184    lt_compiler_flag="-fno-rtti -fno-exceptions"
18185    # Insert the option either (1) after the last *FLAGS variable, or
18186    # (2) before a word containing "conftest.", or (3) at the end.
18187    # Note that $ac_compile itself does not contain backslashes and begins
18188    # with a dollar sign (not a hyphen), so the echo should work correctly.
18189    # The option is referenced via a variable to avoid confusing sed.
18190    lt_compile=`echo "$ac_compile" | $SED \
18191    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18192    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18193    -e 's:$: $lt_compiler_flag:'`
18194    (eval echo "\"\$as_me:18194: $lt_compile\"" >&5)
18195    (eval "$lt_compile" 2>conftest.err)
18196    ac_status=$?
18197    cat conftest.err >&5
18198    echo "$as_me:18198: \$? = $ac_status" >&5
18199    if (exit $ac_status) && test -s "$ac_outfile"; then
18200      # The compiler can only warn and ignore the option if not recognized
18201      # So say no if there are warnings other than the usual output.
18202      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18203      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18204      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18205        lt_cv_prog_compiler_rtti_exceptions=yes
18206      fi
18207    fi
18208    $rm conftest*
18209
18210 fi
18211 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18212 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18213
18214 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18215     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18216 else
18217     :
18218 fi
18219
18220 fi
18221
18222 lt_prog_compiler_wl_GCJ=
18223 lt_prog_compiler_pic_GCJ=
18224 lt_prog_compiler_static_GCJ=
18225
18226 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18227 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18228
18229   if test "$GCC" = yes; then
18230     lt_prog_compiler_wl_GCJ='-Wl,'
18231     lt_prog_compiler_static_GCJ='-static'
18232
18233     case $host_os in
18234       aix*)
18235       # All AIX code is PIC.
18236       if test "$host_cpu" = ia64; then
18237         # AIX 5 now supports IA64 processor
18238         lt_prog_compiler_static_GCJ='-Bstatic'
18239       fi
18240       ;;
18241
18242     amigaos*)
18243       # FIXME: we need at least 68020 code to build shared libraries, but
18244       # adding the `-m68020' flag to GCC prevents building anything better,
18245       # like `-m68040'.
18246       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18247       ;;
18248
18249     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18250       # PIC is the default for these OSes.
18251       ;;
18252
18253     mingw* | pw32* | os2*)
18254       # This hack is so that the source file can tell whether it is being
18255       # built for inclusion in a dll (and should export symbols for example).
18256       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18257       ;;
18258
18259     darwin* | rhapsody*)
18260       # PIC is the default on this platform
18261       # Common symbols not allowed in MH_DYLIB files
18262       lt_prog_compiler_pic_GCJ='-fno-common'
18263       ;;
18264
18265     interix3*)
18266       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18267       # Instead, we relocate shared libraries at runtime.
18268       ;;
18269
18270     msdosdjgpp*)
18271       # Just because we use GCC doesn't mean we suddenly get shared libraries
18272       # on systems that don't support them.
18273       lt_prog_compiler_can_build_shared_GCJ=no
18274       enable_shared=no
18275       ;;
18276
18277     sysv4*MP*)
18278       if test -d /usr/nec; then
18279         lt_prog_compiler_pic_GCJ=-Kconform_pic
18280       fi
18281       ;;
18282
18283     hpux*)
18284       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18285       # not for PA HP-UX.
18286       case $host_cpu in
18287       hppa*64*|ia64*)
18288         # +Z the default
18289         ;;
18290       *)
18291         lt_prog_compiler_pic_GCJ='-fPIC'
18292         ;;
18293       esac
18294       ;;
18295
18296     *)
18297       lt_prog_compiler_pic_GCJ='-fPIC'
18298       ;;
18299     esac
18300   else
18301     # PORTME Check for flag to pass linker flags through the system compiler.
18302     case $host_os in
18303     aix*)
18304       lt_prog_compiler_wl_GCJ='-Wl,'
18305       if test "$host_cpu" = ia64; then
18306         # AIX 5 now supports IA64 processor
18307         lt_prog_compiler_static_GCJ='-Bstatic'
18308       else
18309         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18310       fi
18311       ;;
18312       darwin*)
18313         # PIC is the default on this platform
18314         # Common symbols not allowed in MH_DYLIB files
18315        case $cc_basename in
18316          xlc*)
18317          lt_prog_compiler_pic_GCJ='-qnocommon'
18318          lt_prog_compiler_wl_GCJ='-Wl,'
18319          ;;
18320        esac
18321        ;;
18322
18323     mingw* | pw32* | os2*)
18324       # This hack is so that the source file can tell whether it is being
18325       # built for inclusion in a dll (and should export symbols for example).
18326       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18327       ;;
18328
18329     hpux9* | hpux10* | hpux11*)
18330       lt_prog_compiler_wl_GCJ='-Wl,'
18331       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18332       # not for PA HP-UX.
18333       case $host_cpu in
18334       hppa*64*|ia64*)
18335         # +Z the default
18336         ;;
18337       *)
18338         lt_prog_compiler_pic_GCJ='+Z'
18339         ;;
18340       esac
18341       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18342       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18343       ;;
18344
18345     irix5* | irix6* | nonstopux*)
18346       lt_prog_compiler_wl_GCJ='-Wl,'
18347       # PIC (with -KPIC) is the default.
18348       lt_prog_compiler_static_GCJ='-non_shared'
18349       ;;
18350
18351     newsos6)
18352       lt_prog_compiler_pic_GCJ='-KPIC'
18353       lt_prog_compiler_static_GCJ='-Bstatic'
18354       ;;
18355
18356     linux* | k*bsd*-gnu)
18357       case $cc_basename in
18358       icc* | ecc*)
18359         lt_prog_compiler_wl_GCJ='-Wl,'
18360         lt_prog_compiler_pic_GCJ='-KPIC'
18361         lt_prog_compiler_static_GCJ='-static'
18362         ;;
18363       pgcc* | pgf77* | pgf90* | pgf95*)
18364         # Portland Group compilers (*not* the Pentium gcc compiler,
18365         # which looks to be a dead project)
18366         lt_prog_compiler_wl_GCJ='-Wl,'
18367         lt_prog_compiler_pic_GCJ='-fpic'
18368         lt_prog_compiler_static_GCJ='-Bstatic'
18369         ;;
18370       ccc*)
18371         lt_prog_compiler_wl_GCJ='-Wl,'
18372         # All Alpha code is PIC.
18373         lt_prog_compiler_static_GCJ='-non_shared'
18374         ;;
18375       esac
18376       ;;
18377
18378     osf3* | osf4* | osf5*)
18379       lt_prog_compiler_wl_GCJ='-Wl,'
18380       # All OSF/1 code is PIC.
18381       lt_prog_compiler_static_GCJ='-non_shared'
18382       ;;
18383
18384     solaris*)
18385       lt_prog_compiler_pic_GCJ='-KPIC'
18386       lt_prog_compiler_static_GCJ='-Bstatic'
18387       case $cc_basename in
18388       f77* | f90* | f95*)
18389         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18390       *)
18391         lt_prog_compiler_wl_GCJ='-Wl,';;
18392       esac
18393       ;;
18394
18395     sunos4*)
18396       lt_prog_compiler_wl_GCJ='-Qoption ld '
18397       lt_prog_compiler_pic_GCJ='-PIC'
18398       lt_prog_compiler_static_GCJ='-Bstatic'
18399       ;;
18400
18401     sysv4 | sysv4.2uw2* | sysv4.3*)
18402       lt_prog_compiler_wl_GCJ='-Wl,'
18403       lt_prog_compiler_pic_GCJ='-KPIC'
18404       lt_prog_compiler_static_GCJ='-Bstatic'
18405       ;;
18406
18407     sysv4*MP*)
18408       if test -d /usr/nec ;then
18409         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18410         lt_prog_compiler_static_GCJ='-Bstatic'
18411       fi
18412       ;;
18413
18414     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18415       lt_prog_compiler_wl_GCJ='-Wl,'
18416       lt_prog_compiler_pic_GCJ='-KPIC'
18417       lt_prog_compiler_static_GCJ='-Bstatic'
18418       ;;
18419
18420     unicos*)
18421       lt_prog_compiler_wl_GCJ='-Wl,'
18422       lt_prog_compiler_can_build_shared_GCJ=no
18423       ;;
18424
18425     uts4*)
18426       lt_prog_compiler_pic_GCJ='-pic'
18427       lt_prog_compiler_static_GCJ='-Bstatic'
18428       ;;
18429
18430     *)
18431       lt_prog_compiler_can_build_shared_GCJ=no
18432       ;;
18433     esac
18434   fi
18435
18436 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18437 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18438
18439 #
18440 # Check to make sure the PIC flag actually works.
18441 #
18442 if test -n "$lt_prog_compiler_pic_GCJ"; then
18443
18444 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18445 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18446 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18447   echo $ECHO_N "(cached) $ECHO_C" >&6
18448 else
18449   lt_prog_compiler_pic_works_GCJ=no
18450   ac_outfile=conftest.$ac_objext
18451    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18452    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18453    # Insert the option either (1) after the last *FLAGS variable, or
18454    # (2) before a word containing "conftest.", or (3) at the end.
18455    # Note that $ac_compile itself does not contain backslashes and begins
18456    # with a dollar sign (not a hyphen), so the echo should work correctly.
18457    # The option is referenced via a variable to avoid confusing sed.
18458    lt_compile=`echo "$ac_compile" | $SED \
18459    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18460    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18461    -e 's:$: $lt_compiler_flag:'`
18462    (eval echo "\"\$as_me:18462: $lt_compile\"" >&5)
18463    (eval "$lt_compile" 2>conftest.err)
18464    ac_status=$?
18465    cat conftest.err >&5
18466    echo "$as_me:18466: \$? = $ac_status" >&5
18467    if (exit $ac_status) && test -s "$ac_outfile"; then
18468      # The compiler can only warn and ignore the option if not recognized
18469      # So say no if there are warnings other than the usual output.
18470      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18471      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18472      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18473        lt_prog_compiler_pic_works_GCJ=yes
18474      fi
18475    fi
18476    $rm conftest*
18477
18478 fi
18479 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18480 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18481
18482 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18483     case $lt_prog_compiler_pic_GCJ in
18484      "" | " "*) ;;
18485      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18486      esac
18487 else
18488     lt_prog_compiler_pic_GCJ=
18489      lt_prog_compiler_can_build_shared_GCJ=no
18490 fi
18491
18492 fi
18493 case $host_os in
18494   # For platforms which do not support PIC, -DPIC is meaningless:
18495   *djgpp*)
18496     lt_prog_compiler_pic_GCJ=
18497     ;;
18498   *)
18499     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18500     ;;
18501 esac
18502
18503 #
18504 # Check to make sure the static flag actually works.
18505 #
18506 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18507 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18508 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18509 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18510   echo $ECHO_N "(cached) $ECHO_C" >&6
18511 else
18512   lt_prog_compiler_static_works_GCJ=no
18513    save_LDFLAGS="$LDFLAGS"
18514    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18515    printf "$lt_simple_link_test_code" > conftest.$ac_ext
18516    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18517      # The linker can only warn and ignore the option if not recognized
18518      # So say no if there are warnings
18519      if test -s conftest.err; then
18520        # Append any errors to the config.log.
18521        cat conftest.err 1>&5
18522        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18523        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18524        if diff conftest.exp conftest.er2 >/dev/null; then
18525          lt_prog_compiler_static_works_GCJ=yes
18526        fi
18527      else
18528        lt_prog_compiler_static_works_GCJ=yes
18529      fi
18530    fi
18531    $rm conftest*
18532    LDFLAGS="$save_LDFLAGS"
18533
18534 fi
18535 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18536 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18537
18538 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18539     :
18540 else
18541     lt_prog_compiler_static_GCJ=
18542 fi
18543
18544
18545 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18546 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18547 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18548   echo $ECHO_N "(cached) $ECHO_C" >&6
18549 else
18550   lt_cv_prog_compiler_c_o_GCJ=no
18551    $rm -r conftest 2>/dev/null
18552    mkdir conftest
18553    cd conftest
18554    mkdir out
18555    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18556
18557    lt_compiler_flag="-o out/conftest2.$ac_objext"
18558    # Insert the option either (1) after the last *FLAGS variable, or
18559    # (2) before a word containing "conftest.", or (3) at the end.
18560    # Note that $ac_compile itself does not contain backslashes and begins
18561    # with a dollar sign (not a hyphen), so the echo should work correctly.
18562    lt_compile=`echo "$ac_compile" | $SED \
18563    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18564    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18565    -e 's:$: $lt_compiler_flag:'`
18566    (eval echo "\"\$as_me:18566: $lt_compile\"" >&5)
18567    (eval "$lt_compile" 2>out/conftest.err)
18568    ac_status=$?
18569    cat out/conftest.err >&5
18570    echo "$as_me:18570: \$? = $ac_status" >&5
18571    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18572    then
18573      # The compiler can only warn and ignore the option if not recognized
18574      # So say no if there are warnings
18575      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18576      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18577      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18578        lt_cv_prog_compiler_c_o_GCJ=yes
18579      fi
18580    fi
18581    chmod u+w . 2>&5
18582    $rm conftest*
18583    # SGI C++ compiler will create directory out/ii_files/ for
18584    # template instantiation
18585    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18586    $rm out/* && rmdir out
18587    cd ..
18588    rmdir conftest
18589    $rm conftest*
18590
18591 fi
18592 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18593 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18594
18595
18596 hard_links="nottested"
18597 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18598   # do not overwrite the value of need_locks provided by the user
18599   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18600 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18601   hard_links=yes
18602   $rm conftest*
18603   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18604   touch conftest.a
18605   ln conftest.a conftest.b 2>&5 || hard_links=no
18606   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18607   { echo "$as_me:$LINENO: result: $hard_links" >&5
18608 echo "${ECHO_T}$hard_links" >&6; }
18609   if test "$hard_links" = no; then
18610     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18611 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18612     need_locks=warn
18613   fi
18614 else
18615   need_locks=no
18616 fi
18617
18618 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18619 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18620
18621   runpath_var=
18622   allow_undefined_flag_GCJ=
18623   enable_shared_with_static_runtimes_GCJ=no
18624   archive_cmds_GCJ=
18625   archive_expsym_cmds_GCJ=
18626   old_archive_From_new_cmds_GCJ=
18627   old_archive_from_expsyms_cmds_GCJ=
18628   export_dynamic_flag_spec_GCJ=
18629   whole_archive_flag_spec_GCJ=
18630   thread_safe_flag_spec_GCJ=
18631   hardcode_libdir_flag_spec_GCJ=
18632   hardcode_libdir_flag_spec_ld_GCJ=
18633   hardcode_libdir_separator_GCJ=
18634   hardcode_direct_GCJ=no
18635   hardcode_minus_L_GCJ=no
18636   hardcode_shlibpath_var_GCJ=unsupported
18637   link_all_deplibs_GCJ=unknown
18638   hardcode_automatic_GCJ=no
18639   module_cmds_GCJ=
18640   module_expsym_cmds_GCJ=
18641   always_export_symbols_GCJ=no
18642   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18643   # include_expsyms should be a list of space-separated symbols to be *always*
18644   # included in the symbol list
18645   include_expsyms_GCJ=
18646   # exclude_expsyms can be an extended regexp of symbols to exclude
18647   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18648   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18649   # as well as any symbol that contains `d'.
18650   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18651   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18652   # platforms (ab)use it in PIC code, but their linkers get confused if
18653   # the symbol is explicitly referenced.  Since portable code cannot
18654   # rely on this symbol name, it's probably fine to never include it in
18655   # preloaded symbol tables.
18656   extract_expsyms_cmds=
18657   # Just being paranoid about ensuring that cc_basename is set.
18658   for cc_temp in $compiler""; do
18659   case $cc_temp in
18660     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18661     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18662     \-*) ;;
18663     *) break;;
18664   esac
18665 done
18666 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18667
18668   case $host_os in
18669   cygwin* | mingw* | pw32*)
18670     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18671     # When not using gcc, we currently assume that we are using
18672     # Microsoft Visual C++.
18673     if test "$GCC" != yes; then
18674       with_gnu_ld=no
18675     fi
18676     ;;
18677   interix*)
18678     # we just hope/assume this is gcc and not c89 (= MSVC++)
18679     with_gnu_ld=yes
18680     ;;
18681   openbsd*)
18682     with_gnu_ld=no
18683     ;;
18684   esac
18685
18686   ld_shlibs_GCJ=yes
18687   if test "$with_gnu_ld" = yes; then
18688     # If archive_cmds runs LD, not CC, wlarc should be empty
18689     wlarc='${wl}'
18690
18691     # Set some defaults for GNU ld with shared library support. These
18692     # are reset later if shared libraries are not supported. Putting them
18693     # here allows them to be overridden if necessary.
18694     runpath_var=LD_RUN_PATH
18695     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18696     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18697     # ancient GNU ld didn't support --whole-archive et. al.
18698     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18699         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18700       else
18701         whole_archive_flag_spec_GCJ=
18702     fi
18703     supports_anon_versioning=no
18704     case `$LD -v 2>/dev/null` in
18705       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18706       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18707       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18708       *\ 2.11.*) ;; # other 2.11 versions
18709       *) supports_anon_versioning=yes ;;
18710     esac
18711
18712     # See if GNU ld supports shared libraries.
18713     case $host_os in
18714     aix3* | aix4* | aix5*)
18715       # On AIX/PPC, the GNU linker is very broken
18716       if test "$host_cpu" != ia64; then
18717         ld_shlibs_GCJ=no
18718         cat <<EOF 1>&2
18719
18720 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18721 *** to be unable to reliably create shared libraries on AIX.
18722 *** Therefore, libtool is disabling shared libraries support.  If you
18723 *** really care for shared libraries, you may want to modify your PATH
18724 *** so that a non-GNU linker is found, and then restart.
18725
18726 EOF
18727       fi
18728       ;;
18729
18730     amigaos*)
18731       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)'
18732       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18733       hardcode_minus_L_GCJ=yes
18734
18735       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18736       # that the semantics of dynamic libraries on AmigaOS, at least up
18737       # to version 4, is to share data among multiple programs linked
18738       # with the same dynamic library.  Since this doesn't match the
18739       # behavior of shared libraries on other platforms, we can't use
18740       # them.
18741       ld_shlibs_GCJ=no
18742       ;;
18743
18744     beos*)
18745       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18746         allow_undefined_flag_GCJ=unsupported
18747         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18748         # support --undefined.  This deserves some investigation.  FIXME
18749         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18750       else
18751         ld_shlibs_GCJ=no
18752       fi
18753       ;;
18754
18755     cygwin* | mingw* | pw32*)
18756       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18757       # as there is no search path for DLLs.
18758       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18759       allow_undefined_flag_GCJ=unsupported
18760       always_export_symbols_GCJ=no
18761       enable_shared_with_static_runtimes_GCJ=yes
18762       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18763
18764       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18765         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18766         # If the export-symbols file already is a .def file (1st line
18767         # is EXPORTS), use it as is; otherwise, prepend...
18768         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18769           cp $export_symbols $output_objdir/$soname.def;
18770         else
18771           echo EXPORTS > $output_objdir/$soname.def;
18772           cat $export_symbols >> $output_objdir/$soname.def;
18773         fi~
18774         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18775       else
18776         ld_shlibs_GCJ=no
18777       fi
18778       ;;
18779
18780     interix3*)
18781       hardcode_direct_GCJ=no
18782       hardcode_shlibpath_var_GCJ=no
18783       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18784       export_dynamic_flag_spec_GCJ='${wl}-E'
18785       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18786       # Instead, shared libraries are loaded at an image base (0x10000000 by
18787       # default) and relocated if they conflict, which is a slow very memory
18788       # consuming and fragmenting process.  To avoid this, we pick a random,
18789       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18790       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18791       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'
18792       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'
18793       ;;
18794
18795     linux* | k*bsd*-gnu)
18796       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18797         tmp_addflag=
18798         case $cc_basename,$host_cpu in
18799         pgcc*)                          # Portland Group C compiler
18800           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'
18801           tmp_addflag=' $pic_flag'
18802           ;;
18803         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18804           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'
18805           tmp_addflag=' $pic_flag -Mnomain' ;;
18806         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18807           tmp_addflag=' -i_dynamic' ;;
18808         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18809           tmp_addflag=' -i_dynamic -nofor_main' ;;
18810         ifc* | ifort*)                  # Intel Fortran compiler
18811           tmp_addflag=' -nofor_main' ;;
18812         esac
18813         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18814
18815         if test $supports_anon_versioning = yes; then
18816           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18817   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18818   $echo "local: *; };" >> $output_objdir/$libname.ver~
18819           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18820         fi
18821         link_all_deplibs_GCJ=no
18822       else
18823         ld_shlibs_GCJ=no
18824       fi
18825       ;;
18826
18827     netbsd* | netbsdelf*-gnu)
18828       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18829         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18830         wlarc=
18831       else
18832         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18833         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18834       fi
18835       ;;
18836
18837     solaris*)
18838       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18839         ld_shlibs_GCJ=no
18840         cat <<EOF 1>&2
18841
18842 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18843 *** create shared libraries on Solaris systems.  Therefore, libtool
18844 *** is disabling shared libraries support.  We urge you to upgrade GNU
18845 *** binutils to release 2.9.1 or newer.  Another option is to modify
18846 *** your PATH or compiler configuration so that the native linker is
18847 *** used, and then restart.
18848
18849 EOF
18850       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18851         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18852         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18853       else
18854         ld_shlibs_GCJ=no
18855       fi
18856       ;;
18857
18858     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18859       case `$LD -v 2>&1` in
18860         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18861         ld_shlibs_GCJ=no
18862         cat <<_LT_EOF 1>&2
18863
18864 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18865 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18866 *** is disabling shared libraries support.  We urge you to upgrade GNU
18867 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18868 *** your PATH or compiler configuration so that the native linker is
18869 *** used, and then restart.
18870
18871 _LT_EOF
18872         ;;
18873         *)
18874           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18875             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18876             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18877             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18878           else
18879             ld_shlibs_GCJ=no
18880           fi
18881         ;;
18882       esac
18883       ;;
18884
18885     sunos4*)
18886       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18887       wlarc=
18888       hardcode_direct_GCJ=yes
18889       hardcode_shlibpath_var_GCJ=no
18890       ;;
18891
18892     *)
18893       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18894         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18895         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18896       else
18897         ld_shlibs_GCJ=no
18898       fi
18899       ;;
18900     esac
18901
18902     if test "$ld_shlibs_GCJ" = no; then
18903       runpath_var=
18904       hardcode_libdir_flag_spec_GCJ=
18905       export_dynamic_flag_spec_GCJ=
18906       whole_archive_flag_spec_GCJ=
18907     fi
18908   else
18909     # PORTME fill in a description of your system's linker (not GNU ld)
18910     case $host_os in
18911     aix3*)
18912       allow_undefined_flag_GCJ=unsupported
18913       always_export_symbols_GCJ=yes
18914       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'
18915       # Note: this linker hardcodes the directories in LIBPATH if there
18916       # are no directories specified by -L.
18917       hardcode_minus_L_GCJ=yes
18918       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18919         # Neither direct hardcoding nor static linking is supported with a
18920         # broken collect2.
18921         hardcode_direct_GCJ=unsupported
18922       fi
18923       ;;
18924
18925     aix4* | aix5*)
18926       if test "$host_cpu" = ia64; then
18927         # On IA64, the linker does run time linking by default, so we don't
18928         # have to do anything special.
18929         aix_use_runtimelinking=no
18930         exp_sym_flag='-Bexport'
18931         no_entry_flag=""
18932       else
18933         # If we're using GNU nm, then we don't want the "-C" option.
18934         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18935         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18936           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'
18937         else
18938           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'
18939         fi
18940         aix_use_runtimelinking=no
18941
18942         # Test if we are trying to use run time linking or normal
18943         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18944         # need to do runtime linking.
18945         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18946           for ld_flag in $LDFLAGS; do
18947           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18948             aix_use_runtimelinking=yes
18949             break
18950           fi
18951           done
18952           ;;
18953         esac
18954
18955         exp_sym_flag='-bexport'
18956         no_entry_flag='-bnoentry'
18957       fi
18958
18959       # When large executables or shared objects are built, AIX ld can
18960       # have problems creating the table of contents.  If linking a library
18961       # or program results in "error TOC overflow" add -mminimal-toc to
18962       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18963       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18964
18965       archive_cmds_GCJ=''
18966       hardcode_direct_GCJ=yes
18967       hardcode_libdir_separator_GCJ=':'
18968       link_all_deplibs_GCJ=yes
18969
18970       if test "$GCC" = yes; then
18971         case $host_os in aix4.[012]|aix4.[012].*)
18972         # We only want to do this on AIX 4.2 and lower, the check
18973         # below for broken collect2 doesn't work under 4.3+
18974           collect2name=`${CC} -print-prog-name=collect2`
18975           if test -f "$collect2name" && \
18976            strings "$collect2name" | grep resolve_lib_name >/dev/null
18977           then
18978           # We have reworked collect2
18979           hardcode_direct_GCJ=yes
18980           else
18981           # We have old collect2
18982           hardcode_direct_GCJ=unsupported
18983           # It fails to find uninstalled libraries when the uninstalled
18984           # path is not listed in the libpath.  Setting hardcode_minus_L
18985           # to unsupported forces relinking
18986           hardcode_minus_L_GCJ=yes
18987           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18988           hardcode_libdir_separator_GCJ=
18989           fi
18990           ;;
18991         esac
18992         shared_flag='-shared'
18993         if test "$aix_use_runtimelinking" = yes; then
18994           shared_flag="$shared_flag "'${wl}-G'
18995         fi
18996       else
18997         # not using gcc
18998         if test "$host_cpu" = ia64; then
18999         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19000         # chokes on -Wl,-G. The following line is correct:
19001           shared_flag='-G'
19002         else
19003           if test "$aix_use_runtimelinking" = yes; then
19004             shared_flag='${wl}-G'
19005           else
19006             shared_flag='${wl}-bM:SRE'
19007           fi
19008         fi
19009       fi
19010
19011       # It seems that -bexpall does not export symbols beginning with
19012       # underscore (_), so it is better to generate a list of symbols to export.
19013       always_export_symbols_GCJ=yes
19014       if test "$aix_use_runtimelinking" = yes; then
19015         # Warning - without using the other runtime loading flags (-brtl),
19016         # -berok will link without error, but may produce a broken library.
19017         allow_undefined_flag_GCJ='-berok'
19018        # Determine the default libpath from the value encoded in an empty executable.
19019        cat >conftest.$ac_ext <<_ACEOF
19020 /* confdefs.h.  */
19021 _ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h.  */
19025
19026 int
19027 main ()
19028 {
19029
19030   ;
19031   return 0;
19032 }
19033 _ACEOF
19034 rm -f conftest.$ac_objext conftest$ac_exeext
19035 if { (ac_try="$ac_link"
19036 case "(($ac_try" in
19037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19038   *) ac_try_echo=$ac_try;;
19039 esac
19040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19041   (eval "$ac_link") 2>conftest.er1
19042   ac_status=$?
19043   grep -v '^ *+' conftest.er1 >conftest.err
19044   rm -f conftest.er1
19045   cat conftest.err >&5
19046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047   (exit $ac_status); } &&
19048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19049   { (case "(($ac_try" in
19050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051   *) ac_try_echo=$ac_try;;
19052 esac
19053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19054   (eval "$ac_try") 2>&5
19055   ac_status=$?
19056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057   (exit $ac_status); }; } &&
19058          { ac_try='test -s conftest$ac_exeext'
19059   { (case "(($ac_try" in
19060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19061   *) ac_try_echo=$ac_try;;
19062 esac
19063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19064   (eval "$ac_try") 2>&5
19065   ac_status=$?
19066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067   (exit $ac_status); }; }; then
19068
19069 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19070 }'`
19071 # Check for a 64-bit object if we didn't find anything.
19072 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; }
19073 }'`; fi
19074 else
19075   echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19077
19078
19079 fi
19080
19081 rm -f core conftest.err conftest.$ac_objext \
19082       conftest$ac_exeext conftest.$ac_ext
19083 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19084
19085        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19086         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"
19087        else
19088         if test "$host_cpu" = ia64; then
19089           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19090           allow_undefined_flag_GCJ="-z nodefs"
19091           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"
19092         else
19093          # Determine the default libpath from the value encoded in an empty executable.
19094          cat >conftest.$ac_ext <<_ACEOF
19095 /* confdefs.h.  */
19096 _ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h.  */
19100
19101 int
19102 main ()
19103 {
19104
19105   ;
19106   return 0;
19107 }
19108 _ACEOF
19109 rm -f conftest.$ac_objext conftest$ac_exeext
19110 if { (ac_try="$ac_link"
19111 case "(($ac_try" in
19112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19113   *) ac_try_echo=$ac_try;;
19114 esac
19115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19116   (eval "$ac_link") 2>conftest.er1
19117   ac_status=$?
19118   grep -v '^ *+' conftest.er1 >conftest.err
19119   rm -f conftest.er1
19120   cat conftest.err >&5
19121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122   (exit $ac_status); } &&
19123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19124   { (case "(($ac_try" in
19125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126   *) ac_try_echo=$ac_try;;
19127 esac
19128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129   (eval "$ac_try") 2>&5
19130   ac_status=$?
19131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132   (exit $ac_status); }; } &&
19133          { ac_try='test -s conftest$ac_exeext'
19134   { (case "(($ac_try" in
19135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136   *) ac_try_echo=$ac_try;;
19137 esac
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139   (eval "$ac_try") 2>&5
19140   ac_status=$?
19141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142   (exit $ac_status); }; }; then
19143
19144 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19145 }'`
19146 # Check for a 64-bit object if we didn't find anything.
19147 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; }
19148 }'`; fi
19149 else
19150   echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19152
19153
19154 fi
19155
19156 rm -f core conftest.err conftest.$ac_objext \
19157       conftest$ac_exeext conftest.$ac_ext
19158 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19159
19160          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19161           # Warning - without using the other run time loading flags,
19162           # -berok will link without error, but may produce a broken library.
19163           no_undefined_flag_GCJ=' ${wl}-bernotok'
19164           allow_undefined_flag_GCJ=' ${wl}-berok'
19165           # Exported symbols can be pulled into shared objects from archives
19166           whole_archive_flag_spec_GCJ='$convenience'
19167           archive_cmds_need_lc_GCJ=yes
19168           # This is similar to how AIX traditionally builds its shared libraries.
19169           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'
19170         fi
19171       fi
19172       ;;
19173
19174     amigaos*)
19175       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)'
19176       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19177       hardcode_minus_L_GCJ=yes
19178       # see comment about different semantics on the GNU ld section
19179       ld_shlibs_GCJ=no
19180       ;;
19181
19182     bsdi[45]*)
19183       export_dynamic_flag_spec_GCJ=-rdynamic
19184       ;;
19185
19186     cygwin* | mingw* | pw32*)
19187       # When not using gcc, we currently assume that we are using
19188       # Microsoft Visual C++.
19189       # hardcode_libdir_flag_spec is actually meaningless, as there is
19190       # no search path for DLLs.
19191       hardcode_libdir_flag_spec_GCJ=' '
19192       allow_undefined_flag_GCJ=unsupported
19193       # Tell ltmain to make .lib files, not .a files.
19194       libext=lib
19195       # Tell ltmain to make .dll files, not .so files.
19196       shrext_cmds=".dll"
19197       # FIXME: Setting linknames here is a bad hack.
19198       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19199       # The linker will automatically build a .lib file if we build a DLL.
19200       old_archive_From_new_cmds_GCJ='true'
19201       # FIXME: Should let the user specify the lib program.
19202       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19203       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19204       enable_shared_with_static_runtimes_GCJ=yes
19205       ;;
19206
19207     darwin* | rhapsody*)
19208       case $host_os in
19209         rhapsody* | darwin1.[012])
19210          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19211          ;;
19212        *) # Darwin 1.3 on
19213          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19214            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19215          else
19216            case ${MACOSX_DEPLOYMENT_TARGET} in
19217              10.[012])
19218                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19219                ;;
19220              10.*)
19221                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19222                ;;
19223            esac
19224          fi
19225          ;;
19226       esac
19227       archive_cmds_need_lc_GCJ=no
19228       hardcode_direct_GCJ=no
19229       hardcode_automatic_GCJ=yes
19230       hardcode_shlibpath_var_GCJ=unsupported
19231       whole_archive_flag_spec_GCJ=''
19232       link_all_deplibs_GCJ=yes
19233     if test "$GCC" = yes ; then
19234         output_verbose_link_cmd='echo'
19235         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19236       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19237       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19238       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}'
19239       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}'
19240     else
19241       case $cc_basename in
19242         xlc*)
19243          output_verbose_link_cmd='echo'
19244          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19245          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19246           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19247          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}'
19248           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}'
19249           ;;
19250        *)
19251          ld_shlibs_GCJ=no
19252           ;;
19253       esac
19254     fi
19255       ;;
19256
19257     dgux*)
19258       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19259       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19260       hardcode_shlibpath_var_GCJ=no
19261       ;;
19262
19263     freebsd1*)
19264       ld_shlibs_GCJ=no
19265       ;;
19266
19267     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19268     # support.  Future versions do this automatically, but an explicit c++rt0.o
19269     # does not break anything, and helps significantly (at the cost of a little
19270     # extra space).
19271     freebsd2.2*)
19272       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19273       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19274       hardcode_direct_GCJ=yes
19275       hardcode_shlibpath_var_GCJ=no
19276       ;;
19277
19278     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19279     freebsd2*)
19280       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19281       hardcode_direct_GCJ=yes
19282       hardcode_minus_L_GCJ=yes
19283       hardcode_shlibpath_var_GCJ=no
19284       ;;
19285
19286     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19287     freebsd* | dragonfly*)
19288       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19289       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19290       hardcode_direct_GCJ=yes
19291       hardcode_shlibpath_var_GCJ=no
19292       ;;
19293
19294     hpux9*)
19295       if test "$GCC" = yes; then
19296         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'
19297       else
19298         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'
19299       fi
19300       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19301       hardcode_libdir_separator_GCJ=:
19302       hardcode_direct_GCJ=yes
19303
19304       # hardcode_minus_L: Not really in the search PATH,
19305       # but as the default location of the library.
19306       hardcode_minus_L_GCJ=yes
19307       export_dynamic_flag_spec_GCJ='${wl}-E'
19308       ;;
19309
19310     hpux10*)
19311       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19312         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19313       else
19314         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19315       fi
19316       if test "$with_gnu_ld" = no; then
19317         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19318         hardcode_libdir_separator_GCJ=:
19319
19320         hardcode_direct_GCJ=yes
19321         export_dynamic_flag_spec_GCJ='${wl}-E'
19322
19323         # hardcode_minus_L: Not really in the search PATH,
19324         # but as the default location of the library.
19325         hardcode_minus_L_GCJ=yes
19326       fi
19327       ;;
19328
19329     hpux11*)
19330       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19331         case $host_cpu in
19332         hppa*64*)
19333           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19334           ;;
19335         ia64*)
19336           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19337           ;;
19338         *)
19339           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19340           ;;
19341         esac
19342       else
19343         case $host_cpu in
19344         hppa*64*)
19345           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19346           ;;
19347         ia64*)
19348           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19349           ;;
19350         *)
19351           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19352           ;;
19353         esac
19354       fi
19355       if test "$with_gnu_ld" = no; then
19356         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19357         hardcode_libdir_separator_GCJ=:
19358
19359         case $host_cpu in
19360         hppa*64*|ia64*)
19361           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19362           hardcode_direct_GCJ=no
19363           hardcode_shlibpath_var_GCJ=no
19364           ;;
19365         *)
19366           hardcode_direct_GCJ=yes
19367           export_dynamic_flag_spec_GCJ='${wl}-E'
19368
19369           # hardcode_minus_L: Not really in the search PATH,
19370           # but as the default location of the library.
19371           hardcode_minus_L_GCJ=yes
19372           ;;
19373         esac
19374       fi
19375       ;;
19376
19377     irix5* | irix6* | nonstopux*)
19378       if test "$GCC" = yes; then
19379         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'
19380       else
19381         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'
19382         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19383       fi
19384       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19385       hardcode_libdir_separator_GCJ=:
19386       link_all_deplibs_GCJ=yes
19387       ;;
19388
19389     netbsd* | netbsdelf*-gnu)
19390       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19391         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19392       else
19393         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19394       fi
19395       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19396       hardcode_direct_GCJ=yes
19397       hardcode_shlibpath_var_GCJ=no
19398       ;;
19399
19400     newsos6)
19401       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19402       hardcode_direct_GCJ=yes
19403       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19404       hardcode_libdir_separator_GCJ=:
19405       hardcode_shlibpath_var_GCJ=no
19406       ;;
19407
19408     openbsd*)
19409       hardcode_direct_GCJ=yes
19410       hardcode_shlibpath_var_GCJ=no
19411       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19412         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19413         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19414         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19415         export_dynamic_flag_spec_GCJ='${wl}-E'
19416       else
19417        case $host_os in
19418          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19419            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19420            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19421            ;;
19422          *)
19423            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19424            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19425            ;;
19426        esac
19427       fi
19428       ;;
19429
19430     os2*)
19431       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19432       hardcode_minus_L_GCJ=yes
19433       allow_undefined_flag_GCJ=unsupported
19434       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'
19435       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19436       ;;
19437
19438     osf3*)
19439       if test "$GCC" = yes; then
19440         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19441         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'
19442       else
19443         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19444         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'
19445       fi
19446       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19447       hardcode_libdir_separator_GCJ=:
19448       ;;
19449
19450     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19451       if test "$GCC" = yes; then
19452         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19453         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'
19454         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19455       else
19456         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19457         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'
19458         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~
19459         $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'
19460
19461         # Both c and cxx compiler support -rpath directly
19462         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19463       fi
19464       hardcode_libdir_separator_GCJ=:
19465       ;;
19466
19467     solaris*)
19468       no_undefined_flag_GCJ=' -z text'
19469       if test "$GCC" = yes; then
19470         wlarc='${wl}'
19471         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19472         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19473           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19474       else
19475         wlarc=''
19476         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19477         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19478         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19479       fi
19480       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19481       hardcode_shlibpath_var_GCJ=no
19482       case $host_os in
19483       solaris2.[0-5] | solaris2.[0-5].*) ;;
19484       *)
19485         # The compiler driver will combine linker options so we
19486         # cannot just pass the convience library names through
19487         # without $wl, iff we do not link with $LD.
19488         # Luckily, gcc supports the same syntax we need for Sun Studio.
19489         # Supported since Solaris 2.6 (maybe 2.5.1?)
19490         case $wlarc in
19491         '')
19492           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19493         *)
19494           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' ;;
19495         esac ;;
19496       esac
19497       link_all_deplibs_GCJ=yes
19498       ;;
19499
19500     sunos4*)
19501       if test "x$host_vendor" = xsequent; then
19502         # Use $CC to link under sequent, because it throws in some extra .o
19503         # files that make .init and .fini sections work.
19504         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19505       else
19506         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19507       fi
19508       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19509       hardcode_direct_GCJ=yes
19510       hardcode_minus_L_GCJ=yes
19511       hardcode_shlibpath_var_GCJ=no
19512       ;;
19513
19514     sysv4)
19515       case $host_vendor in
19516         sni)
19517           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19518           hardcode_direct_GCJ=yes # is this really true???
19519         ;;
19520         siemens)
19521           ## LD is ld it makes a PLAMLIB
19522           ## CC just makes a GrossModule.
19523           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19524           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19525           hardcode_direct_GCJ=no
19526         ;;
19527         motorola)
19528           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19529           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19530         ;;
19531       esac
19532       runpath_var='LD_RUN_PATH'
19533       hardcode_shlibpath_var_GCJ=no
19534       ;;
19535
19536     sysv4.3*)
19537       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19538       hardcode_shlibpath_var_GCJ=no
19539       export_dynamic_flag_spec_GCJ='-Bexport'
19540       ;;
19541
19542     sysv4*MP*)
19543       if test -d /usr/nec; then
19544         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19545         hardcode_shlibpath_var_GCJ=no
19546         runpath_var=LD_RUN_PATH
19547         hardcode_runpath_var=yes
19548         ld_shlibs_GCJ=yes
19549       fi
19550       ;;
19551
19552     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19553       no_undefined_flag_GCJ='${wl}-z,text'
19554       archive_cmds_need_lc_GCJ=no
19555       hardcode_shlibpath_var_GCJ=no
19556       runpath_var='LD_RUN_PATH'
19557
19558       if test "$GCC" = yes; then
19559         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19560         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19561       else
19562         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19563         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19564       fi
19565       ;;
19566
19567     sysv5* | sco3.2v5* | sco5v6*)
19568       # Note: We can NOT use -z defs as we might desire, because we do not
19569       # link with -lc, and that would cause any symbols used from libc to
19570       # always be unresolved, which means just about no library would
19571       # ever link correctly.  If we're not using GNU ld we use -z text
19572       # though, which does catch some bad symbols but isn't as heavy-handed
19573       # as -z defs.
19574       no_undefined_flag_GCJ='${wl}-z,text'
19575       allow_undefined_flag_GCJ='${wl}-z,nodefs'
19576       archive_cmds_need_lc_GCJ=no
19577       hardcode_shlibpath_var_GCJ=no
19578       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19579       hardcode_libdir_separator_GCJ=':'
19580       link_all_deplibs_GCJ=yes
19581       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19582       runpath_var='LD_RUN_PATH'
19583
19584       if test "$GCC" = yes; then
19585         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19586         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19587       else
19588         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19589         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19590       fi
19591       ;;
19592
19593     uts4*)
19594       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19595       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19596       hardcode_shlibpath_var_GCJ=no
19597       ;;
19598
19599     *)
19600       ld_shlibs_GCJ=no
19601       ;;
19602     esac
19603   fi
19604
19605 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19606 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19607 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19608
19609 #
19610 # Do we need to explicitly link libc?
19611 #
19612 case "x$archive_cmds_need_lc_GCJ" in
19613 x|xyes)
19614   # Assume -lc should be added
19615   archive_cmds_need_lc_GCJ=yes
19616
19617   if test "$enable_shared" = yes && test "$GCC" = yes; then
19618     case $archive_cmds_GCJ in
19619     *'~'*)
19620       # FIXME: we may have to deal with multi-command sequences.
19621       ;;
19622     '$CC '*)
19623       # Test whether the compiler implicitly links with -lc since on some
19624       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19625       # to ld, don't add -lc before -lgcc.
19626       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19627 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19628       $rm conftest*
19629       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19630
19631       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19632   (eval $ac_compile) 2>&5
19633   ac_status=$?
19634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635   (exit $ac_status); } 2>conftest.err; then
19636         soname=conftest
19637         lib=conftest
19638         libobjs=conftest.$ac_objext
19639         deplibs=
19640         wl=$lt_prog_compiler_wl_GCJ
19641         pic_flag=$lt_prog_compiler_pic_GCJ
19642         compiler_flags=-v
19643         linker_flags=-v
19644         verstring=
19645         output_objdir=.
19646         libname=conftest
19647         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19648         allow_undefined_flag_GCJ=
19649         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19650   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19651   ac_status=$?
19652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); }
19654         then
19655           archive_cmds_need_lc_GCJ=no
19656         else
19657           archive_cmds_need_lc_GCJ=yes
19658         fi
19659         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19660       else
19661         cat conftest.err 1>&5
19662       fi
19663       $rm conftest*
19664       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19665 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19666       ;;
19667     esac
19668   fi
19669   ;;
19670 esac
19671
19672 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19673 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19674 library_names_spec=
19675 libname_spec='lib$name'
19676 soname_spec=
19677 shrext_cmds=".so"
19678 postinstall_cmds=
19679 postuninstall_cmds=
19680 finish_cmds=
19681 finish_eval=
19682 shlibpath_var=
19683 shlibpath_overrides_runpath=unknown
19684 version_type=none
19685 dynamic_linker="$host_os ld.so"
19686 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19687 if test "$GCC" = yes; then
19688   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19689   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19690     # if the path contains ";" then we assume it to be the separator
19691     # otherwise default to the standard path separator (i.e. ":") - it is
19692     # assumed that no part of a normal pathname contains ";" but that should
19693     # okay in the real world where ";" in dirpaths is itself problematic.
19694     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19695   else
19696     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19697   fi
19698 else
19699   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19700 fi
19701 need_lib_prefix=unknown
19702 hardcode_into_libs=no
19703
19704 # when you set need_version to no, make sure it does not cause -set_version
19705 # flags to be left without arguments
19706 need_version=unknown
19707
19708 case $host_os in
19709 aix3*)
19710   version_type=linux
19711   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19712   shlibpath_var=LIBPATH
19713
19714   # AIX 3 has no versioning support, so we append a major version to the name.
19715   soname_spec='${libname}${release}${shared_ext}$major'
19716   ;;
19717
19718 aix4* | aix5*)
19719   version_type=linux
19720   need_lib_prefix=no
19721   need_version=no
19722   hardcode_into_libs=yes
19723   if test "$host_cpu" = ia64; then
19724     # AIX 5 supports IA64
19725     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19726     shlibpath_var=LD_LIBRARY_PATH
19727   else
19728     # With GCC up to 2.95.x, collect2 would create an import file
19729     # for dependence libraries.  The import file would start with
19730     # the line `#! .'.  This would cause the generated library to
19731     # depend on `.', always an invalid library.  This was fixed in
19732     # development snapshots of GCC prior to 3.0.
19733     case $host_os in
19734       aix4 | aix4.[01] | aix4.[01].*)
19735       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19736            echo ' yes '
19737            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19738         :
19739       else
19740         can_build_shared=no
19741       fi
19742       ;;
19743     esac
19744     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19745     # soname into executable. Probably we can add versioning support to
19746     # collect2, so additional links can be useful in future.
19747     if test "$aix_use_runtimelinking" = yes; then
19748       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19749       # instead of lib<name>.a to let people know that these are not
19750       # typical AIX shared libraries.
19751       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19752     else
19753       # We preserve .a as extension for shared libraries through AIX4.2
19754       # and later when we are not doing run time linking.
19755       library_names_spec='${libname}${release}.a $libname.a'
19756       soname_spec='${libname}${release}${shared_ext}$major'
19757     fi
19758     shlibpath_var=LIBPATH
19759   fi
19760   ;;
19761
19762 amigaos*)
19763   library_names_spec='$libname.ixlibrary $libname.a'
19764   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19765   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'
19766   ;;
19767
19768 beos*)
19769   library_names_spec='${libname}${shared_ext}'
19770   dynamic_linker="$host_os ld.so"
19771   shlibpath_var=LIBRARY_PATH
19772   ;;
19773
19774 bsdi[45]*)
19775   version_type=linux
19776   need_version=no
19777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19778   soname_spec='${libname}${release}${shared_ext}$major'
19779   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19780   shlibpath_var=LD_LIBRARY_PATH
19781   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19782   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19783   # the default ld.so.conf also contains /usr/contrib/lib and
19784   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19785   # libtool to hard-code these into programs
19786   ;;
19787
19788 cygwin* | mingw* | pw32*)
19789   version_type=windows
19790   shrext_cmds=".dll"
19791   need_version=no
19792   need_lib_prefix=no
19793
19794   case $GCC,$host_os in
19795   yes,cygwin* | yes,mingw* | yes,pw32*)
19796     library_names_spec='$libname.dll.a'
19797     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19798     postinstall_cmds='base_file=`basename \${file}`~
19799       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19800       dldir=$destdir/`dirname \$dlpath`~
19801       test -d \$dldir || mkdir -p \$dldir~
19802       $install_prog $dir/$dlname \$dldir/$dlname~
19803       chmod a+x \$dldir/$dlname'
19804     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19805       dlpath=$dir/\$dldll~
19806        $rm \$dlpath'
19807     shlibpath_overrides_runpath=yes
19808
19809     case $host_os in
19810     cygwin*)
19811       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19812       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19813       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19814       ;;
19815     mingw*)
19816       # MinGW DLLs use traditional 'lib' prefix
19817       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19818       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19819       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19820         # It is most probably a Windows format PATH printed by
19821         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19822         # path with ; separators, and with drive letters. We can handle the
19823         # drive letters (cygwin fileutils understands them), so leave them,
19824         # especially as we might pass files found there to a mingw objdump,
19825         # which wouldn't understand a cygwinified path. Ahh.
19826         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19827       else
19828         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19829       fi
19830       ;;
19831     pw32*)
19832       # pw32 DLLs use 'pw' prefix rather than 'lib'
19833       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19834       ;;
19835     esac
19836     ;;
19837
19838   *)
19839     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19840     ;;
19841   esac
19842   dynamic_linker='Win32 ld.exe'
19843   # FIXME: first we should search . and the directory the executable is in
19844   shlibpath_var=PATH
19845   ;;
19846
19847 darwin* | rhapsody*)
19848   dynamic_linker="$host_os dyld"
19849   version_type=darwin
19850   need_lib_prefix=no
19851   need_version=no
19852   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19853   soname_spec='${libname}${release}${major}$shared_ext'
19854   shlibpath_overrides_runpath=yes
19855   shlibpath_var=DYLD_LIBRARY_PATH
19856   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19857   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19858   if test "$GCC" = yes; then
19859     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"`
19860   else
19861     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19862   fi
19863   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19864   ;;
19865
19866 dgux*)
19867   version_type=linux
19868   need_lib_prefix=no
19869   need_version=no
19870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19871   soname_spec='${libname}${release}${shared_ext}$major'
19872   shlibpath_var=LD_LIBRARY_PATH
19873   ;;
19874
19875 freebsd1*)
19876   dynamic_linker=no
19877   ;;
19878
19879 freebsd* | dragonfly*)
19880   # DragonFly does not have aout.  When/if they implement a new
19881   # versioning mechanism, adjust this.
19882   if test -x /usr/bin/objformat; then
19883     objformat=`/usr/bin/objformat`
19884   else
19885     case $host_os in
19886     freebsd[123]*) objformat=aout ;;
19887     *) objformat=elf ;;
19888     esac
19889   fi
19890   version_type=freebsd-$objformat
19891   case $version_type in
19892     freebsd-elf*)
19893       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19894       need_version=no
19895       need_lib_prefix=no
19896       ;;
19897     freebsd-*)
19898       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19899       need_version=yes
19900       ;;
19901   esac
19902   shlibpath_var=LD_LIBRARY_PATH
19903   case $host_os in
19904   freebsd2*)
19905     shlibpath_overrides_runpath=yes
19906     ;;
19907   freebsd3.[01]* | freebsdelf3.[01]*)
19908     shlibpath_overrides_runpath=yes
19909     hardcode_into_libs=yes
19910     ;;
19911   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19912   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19913     shlibpath_overrides_runpath=no
19914     hardcode_into_libs=yes
19915     ;;
19916   freebsd*) # from 4.6 on
19917     shlibpath_overrides_runpath=yes
19918     hardcode_into_libs=yes
19919     ;;
19920   esac
19921   ;;
19922
19923 gnu*)
19924   version_type=linux
19925   need_lib_prefix=no
19926   need_version=no
19927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19928   soname_spec='${libname}${release}${shared_ext}$major'
19929   shlibpath_var=LD_LIBRARY_PATH
19930   hardcode_into_libs=yes
19931   ;;
19932
19933 hpux9* | hpux10* | hpux11*)
19934   # Give a soname corresponding to the major version so that dld.sl refuses to
19935   # link against other versions.
19936   version_type=sunos
19937   need_lib_prefix=no
19938   need_version=no
19939   case $host_cpu in
19940   ia64*)
19941     shrext_cmds='.so'
19942     hardcode_into_libs=yes
19943     dynamic_linker="$host_os dld.so"
19944     shlibpath_var=LD_LIBRARY_PATH
19945     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19946     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19947     soname_spec='${libname}${release}${shared_ext}$major'
19948     if test "X$HPUX_IA64_MODE" = X32; then
19949       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19950     else
19951       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19952     fi
19953     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19954     ;;
19955    hppa*64*)
19956      shrext_cmds='.sl'
19957      hardcode_into_libs=yes
19958      dynamic_linker="$host_os dld.sl"
19959      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19960      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19961      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19962      soname_spec='${libname}${release}${shared_ext}$major'
19963      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19964      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19965      ;;
19966    *)
19967     shrext_cmds='.sl'
19968     dynamic_linker="$host_os dld.sl"
19969     shlibpath_var=SHLIB_PATH
19970     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19971     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19972     soname_spec='${libname}${release}${shared_ext}$major'
19973     ;;
19974   esac
19975   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19976   postinstall_cmds='chmod 555 $lib'
19977   ;;
19978
19979 interix3*)
19980   version_type=linux
19981   need_lib_prefix=no
19982   need_version=no
19983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19984   soname_spec='${libname}${release}${shared_ext}$major'
19985   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19986   shlibpath_var=LD_LIBRARY_PATH
19987   shlibpath_overrides_runpath=no
19988   hardcode_into_libs=yes
19989   ;;
19990
19991 irix5* | irix6* | nonstopux*)
19992   case $host_os in
19993     nonstopux*) version_type=nonstopux ;;
19994     *)
19995         if test "$lt_cv_prog_gnu_ld" = yes; then
19996                 version_type=linux
19997         else
19998                 version_type=irix
19999         fi ;;
20000   esac
20001   need_lib_prefix=no
20002   need_version=no
20003   soname_spec='${libname}${release}${shared_ext}$major'
20004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20005   case $host_os in
20006   irix5* | nonstopux*)
20007     libsuff= shlibsuff=
20008     ;;
20009   *)
20010     case $LD in # libtool.m4 will add one of these switches to LD
20011     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20012       libsuff= shlibsuff= libmagic=32-bit;;
20013     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20014       libsuff=32 shlibsuff=N32 libmagic=N32;;
20015     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20016       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20017     *) libsuff= shlibsuff= libmagic=never-match;;
20018     esac
20019     ;;
20020   esac
20021   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20022   shlibpath_overrides_runpath=no
20023   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20024   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20025   hardcode_into_libs=yes
20026   ;;
20027
20028 # No shared lib support for Linux oldld, aout, or coff.
20029 linux*oldld* | linux*aout* | linux*coff*)
20030   dynamic_linker=no
20031   ;;
20032
20033 # This must be Linux ELF.
20034 linux* | k*bsd*-gnu)
20035   version_type=linux
20036   need_lib_prefix=no
20037   need_version=no
20038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20039   soname_spec='${libname}${release}${shared_ext}$major'
20040   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20041   shlibpath_var=LD_LIBRARY_PATH
20042   shlibpath_overrides_runpath=no
20043   # This implies no fast_install, which is unacceptable.
20044   # Some rework will be needed to allow for fast_install
20045   # before this can be enabled.
20046   hardcode_into_libs=yes
20047
20048   # Append ld.so.conf contents to the search path
20049   if test -f /etc/ld.so.conf; then
20050     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' ' '`
20051     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20052   fi
20053
20054   # We used to test for /lib/ld.so.1 and disable shared libraries on
20055   # powerpc, because MkLinux only supported shared libraries with the
20056   # GNU dynamic linker.  Since this was broken with cross compilers,
20057   # most powerpc-linux boxes support dynamic linking these days and
20058   # people can always --disable-shared, the test was removed, and we
20059   # assume the GNU/Linux dynamic linker is in use.
20060   dynamic_linker='GNU/Linux ld.so'
20061   ;;
20062
20063 netbsdelf*-gnu)
20064   version_type=linux
20065   need_lib_prefix=no
20066   need_version=no
20067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20068   soname_spec='${libname}${release}${shared_ext}$major'
20069   shlibpath_var=LD_LIBRARY_PATH
20070   shlibpath_overrides_runpath=no
20071   hardcode_into_libs=yes
20072   dynamic_linker='NetBSD ld.elf_so'
20073   ;;
20074
20075 netbsd*)
20076   version_type=sunos
20077   need_lib_prefix=no
20078   need_version=no
20079   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20080     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20081     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20082     dynamic_linker='NetBSD (a.out) ld.so'
20083   else
20084     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20085     soname_spec='${libname}${release}${shared_ext}$major'
20086     dynamic_linker='NetBSD ld.elf_so'
20087   fi
20088   shlibpath_var=LD_LIBRARY_PATH
20089   shlibpath_overrides_runpath=yes
20090   hardcode_into_libs=yes
20091   ;;
20092
20093 newsos6)
20094   version_type=linux
20095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20096   shlibpath_var=LD_LIBRARY_PATH
20097   shlibpath_overrides_runpath=yes
20098   ;;
20099
20100 nto-qnx*)
20101   version_type=linux
20102   need_lib_prefix=no
20103   need_version=no
20104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20105   soname_spec='${libname}${release}${shared_ext}$major'
20106   shlibpath_var=LD_LIBRARY_PATH
20107   shlibpath_overrides_runpath=yes
20108   ;;
20109
20110 openbsd*)
20111   version_type=sunos
20112   sys_lib_dlsearch_path_spec="/usr/lib"
20113   need_lib_prefix=no
20114   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20115   case $host_os in
20116     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20117     *)                         need_version=no  ;;
20118   esac
20119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20120   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20121   shlibpath_var=LD_LIBRARY_PATH
20122   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20123     case $host_os in
20124       openbsd2.[89] | openbsd2.[89].*)
20125         shlibpath_overrides_runpath=no
20126         ;;
20127       *)
20128         shlibpath_overrides_runpath=yes
20129         ;;
20130       esac
20131   else
20132     shlibpath_overrides_runpath=yes
20133   fi
20134   ;;
20135
20136 os2*)
20137   libname_spec='$name'
20138   shrext_cmds=".dll"
20139   need_lib_prefix=no
20140   library_names_spec='$libname${shared_ext} $libname.a'
20141   dynamic_linker='OS/2 ld.exe'
20142   shlibpath_var=LIBPATH
20143   ;;
20144
20145 osf3* | osf4* | osf5*)
20146   version_type=osf
20147   need_lib_prefix=no
20148   need_version=no
20149   soname_spec='${libname}${release}${shared_ext}$major'
20150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20151   shlibpath_var=LD_LIBRARY_PATH
20152   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20153   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20154   ;;
20155
20156 solaris*)
20157   version_type=linux
20158   need_lib_prefix=no
20159   need_version=no
20160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20161   soname_spec='${libname}${release}${shared_ext}$major'
20162   shlibpath_var=LD_LIBRARY_PATH
20163   shlibpath_overrides_runpath=yes
20164   hardcode_into_libs=yes
20165   # ldd complains unless libraries are executable
20166   postinstall_cmds='chmod +x $lib'
20167   ;;
20168
20169 sunos4*)
20170   version_type=sunos
20171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20172   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20173   shlibpath_var=LD_LIBRARY_PATH
20174   shlibpath_overrides_runpath=yes
20175   if test "$with_gnu_ld" = yes; then
20176     need_lib_prefix=no
20177   fi
20178   need_version=yes
20179   ;;
20180
20181 sysv4 | sysv4.3*)
20182   version_type=linux
20183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20184   soname_spec='${libname}${release}${shared_ext}$major'
20185   shlibpath_var=LD_LIBRARY_PATH
20186   case $host_vendor in
20187     sni)
20188       shlibpath_overrides_runpath=no
20189       need_lib_prefix=no
20190       export_dynamic_flag_spec='${wl}-Blargedynsym'
20191       runpath_var=LD_RUN_PATH
20192       ;;
20193     siemens)
20194       need_lib_prefix=no
20195       ;;
20196     motorola)
20197       need_lib_prefix=no
20198       need_version=no
20199       shlibpath_overrides_runpath=no
20200       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20201       ;;
20202   esac
20203   ;;
20204
20205 sysv4*MP*)
20206   if test -d /usr/nec ;then
20207     version_type=linux
20208     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20209     soname_spec='$libname${shared_ext}.$major'
20210     shlibpath_var=LD_LIBRARY_PATH
20211   fi
20212   ;;
20213
20214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20215   version_type=freebsd-elf
20216   need_lib_prefix=no
20217   need_version=no
20218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20219   soname_spec='${libname}${release}${shared_ext}$major'
20220   shlibpath_var=LD_LIBRARY_PATH
20221   hardcode_into_libs=yes
20222   if test "$with_gnu_ld" = yes; then
20223     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20224     shlibpath_overrides_runpath=no
20225   else
20226     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20227     shlibpath_overrides_runpath=yes
20228     case $host_os in
20229       sco3.2v5*)
20230         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20231         ;;
20232     esac
20233   fi
20234   sys_lib_dlsearch_path_spec='/usr/lib'
20235   ;;
20236
20237 uts4*)
20238   version_type=linux
20239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20240   soname_spec='${libname}${release}${shared_ext}$major'
20241   shlibpath_var=LD_LIBRARY_PATH
20242   ;;
20243
20244 *)
20245   dynamic_linker=no
20246   ;;
20247 esac
20248 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20249 echo "${ECHO_T}$dynamic_linker" >&6; }
20250 test "$dynamic_linker" = no && can_build_shared=no
20251
20252 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20253 if test "$GCC" = yes; then
20254   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20255 fi
20256
20257 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20258 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20259 hardcode_action_GCJ=
20260 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20261    test -n "$runpath_var_GCJ" || \
20262    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20263
20264   # We can hardcode non-existant directories.
20265   if test "$hardcode_direct_GCJ" != no &&
20266      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20267      # have to relink, otherwise we might link with an installed library
20268      # when we should be linking with a yet-to-be-installed one
20269      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20270      test "$hardcode_minus_L_GCJ" != no; then
20271     # Linking always hardcodes the temporary library directory.
20272     hardcode_action_GCJ=relink
20273   else
20274     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20275     hardcode_action_GCJ=immediate
20276   fi
20277 else
20278   # We cannot hardcode anything, or else we can only hardcode existing
20279   # directories.
20280   hardcode_action_GCJ=unsupported
20281 fi
20282 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20283 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20284
20285 if test "$hardcode_action_GCJ" = relink; then
20286   # Fast installation is not supported
20287   enable_fast_install=no
20288 elif test "$shlibpath_overrides_runpath" = yes ||
20289      test "$enable_shared" = no; then
20290   # Fast installation is not necessary
20291   enable_fast_install=needless
20292 fi
20293
20294
20295 # The else clause should only fire when bootstrapping the
20296 # libtool distribution, otherwise you forgot to ship ltmain.sh
20297 # with your package, and you will get complaints that there are
20298 # no rules to generate ltmain.sh.
20299 if test -f "$ltmain"; then
20300   # See if we are running on zsh, and set the options which allow our commands through
20301   # without removal of \ escapes.
20302   if test -n "${ZSH_VERSION+set}" ; then
20303     setopt NO_GLOB_SUBST
20304   fi
20305   # Now quote all the things that may contain metacharacters while being
20306   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20307   # variables and quote the copies for generation of the libtool script.
20308   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20309     SED SHELL STRIP \
20310     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20311     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20312     deplibs_check_method reload_flag reload_cmds need_locks \
20313     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20314     lt_cv_sys_global_symbol_to_c_name_address \
20315     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20316     old_postinstall_cmds old_postuninstall_cmds \
20317     compiler_GCJ \
20318     CC_GCJ \
20319     LD_GCJ \
20320     lt_prog_compiler_wl_GCJ \
20321     lt_prog_compiler_pic_GCJ \
20322     lt_prog_compiler_static_GCJ \
20323     lt_prog_compiler_no_builtin_flag_GCJ \
20324     export_dynamic_flag_spec_GCJ \
20325     thread_safe_flag_spec_GCJ \
20326     whole_archive_flag_spec_GCJ \
20327     enable_shared_with_static_runtimes_GCJ \
20328     old_archive_cmds_GCJ \
20329     old_archive_from_new_cmds_GCJ \
20330     predep_objects_GCJ \
20331     postdep_objects_GCJ \
20332     predeps_GCJ \
20333     postdeps_GCJ \
20334     compiler_lib_search_path_GCJ \
20335     archive_cmds_GCJ \
20336     archive_expsym_cmds_GCJ \
20337     postinstall_cmds_GCJ \
20338     postuninstall_cmds_GCJ \
20339     old_archive_from_expsyms_cmds_GCJ \
20340     allow_undefined_flag_GCJ \
20341     no_undefined_flag_GCJ \
20342     export_symbols_cmds_GCJ \
20343     hardcode_libdir_flag_spec_GCJ \
20344     hardcode_libdir_flag_spec_ld_GCJ \
20345     hardcode_libdir_separator_GCJ \
20346     hardcode_automatic_GCJ \
20347     module_cmds_GCJ \
20348     module_expsym_cmds_GCJ \
20349     lt_cv_prog_compiler_c_o_GCJ \
20350     exclude_expsyms_GCJ \
20351     include_expsyms_GCJ; do
20352
20353     case $var in
20354     old_archive_cmds_GCJ | \
20355     old_archive_from_new_cmds_GCJ | \
20356     archive_cmds_GCJ | \
20357     archive_expsym_cmds_GCJ | \
20358     module_cmds_GCJ | \
20359     module_expsym_cmds_GCJ | \
20360     old_archive_from_expsyms_cmds_GCJ | \
20361     export_symbols_cmds_GCJ | \
20362     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20363     postinstall_cmds | postuninstall_cmds | \
20364     old_postinstall_cmds | old_postuninstall_cmds | \
20365     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20366       # Double-quote double-evaled strings.
20367       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20368       ;;
20369     *)
20370       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20371       ;;
20372     esac
20373   done
20374
20375   case $lt_echo in
20376   *'\$0 --fallback-echo"')
20377     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20378     ;;
20379   esac
20380
20381 cfgfile="$ofile"
20382
20383   cat <<__EOF__ >> "$cfgfile"
20384 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20385
20386 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20387
20388 # Shell to use when invoking shell scripts.
20389 SHELL=$lt_SHELL
20390
20391 # Whether or not to build shared libraries.
20392 build_libtool_libs=$enable_shared
20393
20394 # Whether or not to build static libraries.
20395 build_old_libs=$enable_static
20396
20397 # Whether or not to add -lc for building shared libraries.
20398 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20399
20400 # Whether or not to disallow shared libs when runtime libs are static
20401 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20402
20403 # Whether or not to optimize for fast installation.
20404 fast_install=$enable_fast_install
20405
20406 # The host system.
20407 host_alias=$host_alias
20408 host=$host
20409 host_os=$host_os
20410
20411 # The build system.
20412 build_alias=$build_alias
20413 build=$build
20414 build_os=$build_os
20415
20416 # An echo program that does not interpret backslashes.
20417 echo=$lt_echo
20418
20419 # The archiver.
20420 AR=$lt_AR
20421 AR_FLAGS=$lt_AR_FLAGS
20422
20423 # A C compiler.
20424 LTCC=$lt_LTCC
20425
20426 # LTCC compiler flags.
20427 LTCFLAGS=$lt_LTCFLAGS
20428
20429 # A language-specific compiler.
20430 CC=$lt_compiler_GCJ
20431
20432 # Is the compiler the GNU C compiler?
20433 with_gcc=$GCC_GCJ
20434
20435 # An ERE matcher.
20436 EGREP=$lt_EGREP
20437
20438 # The linker used to build libraries.
20439 LD=$lt_LD_GCJ
20440
20441 # Whether we need hard or soft links.
20442 LN_S=$lt_LN_S
20443
20444 # A BSD-compatible nm program.
20445 NM=$lt_NM
20446
20447 # A symbol stripping program
20448 STRIP=$lt_STRIP
20449
20450 # Used to examine libraries when file_magic_cmd begins "file"
20451 MAGIC_CMD=$MAGIC_CMD
20452
20453 # Used on cygwin: DLL creation program.
20454 DLLTOOL="$DLLTOOL"
20455
20456 # Used on cygwin: object dumper.
20457 OBJDUMP="$OBJDUMP"
20458
20459 # Used on cygwin: assembler.
20460 AS="$AS"
20461
20462 # The name of the directory that contains temporary libtool files.
20463 objdir=$objdir
20464
20465 # How to create reloadable object files.
20466 reload_flag=$lt_reload_flag
20467 reload_cmds=$lt_reload_cmds
20468
20469 # How to pass a linker flag through the compiler.
20470 wl=$lt_lt_prog_compiler_wl_GCJ
20471
20472 # Object file suffix (normally "o").
20473 objext="$ac_objext"
20474
20475 # Old archive suffix (normally "a").
20476 libext="$libext"
20477
20478 # Shared library suffix (normally ".so").
20479 shrext_cmds='$shrext_cmds'
20480
20481 # Executable file suffix (normally "").
20482 exeext="$exeext"
20483
20484 # Additional compiler flags for building library objects.
20485 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20486 pic_mode=$pic_mode
20487
20488 # What is the maximum length of a command?
20489 max_cmd_len=$lt_cv_sys_max_cmd_len
20490
20491 # Does compiler simultaneously support -c and -o options?
20492 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20493
20494 # Must we lock files when doing compilation?
20495 need_locks=$lt_need_locks
20496
20497 # Do we need the lib prefix for modules?
20498 need_lib_prefix=$need_lib_prefix
20499
20500 # Do we need a version for libraries?
20501 need_version=$need_version
20502
20503 # Whether dlopen is supported.
20504 dlopen_support=$enable_dlopen
20505
20506 # Whether dlopen of programs is supported.
20507 dlopen_self=$enable_dlopen_self
20508
20509 # Whether dlopen of statically linked programs is supported.
20510 dlopen_self_static=$enable_dlopen_self_static
20511
20512 # Compiler flag to prevent dynamic linking.
20513 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20514
20515 # Compiler flag to turn off builtin functions.
20516 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20517
20518 # Compiler flag to allow reflexive dlopens.
20519 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20520
20521 # Compiler flag to generate shared objects directly from archives.
20522 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20523
20524 # Compiler flag to generate thread-safe objects.
20525 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20526
20527 # Library versioning type.
20528 version_type=$version_type
20529
20530 # Format of library name prefix.
20531 libname_spec=$lt_libname_spec
20532
20533 # List of archive names.  First name is the real one, the rest are links.
20534 # The last name is the one that the linker finds with -lNAME.
20535 library_names_spec=$lt_library_names_spec
20536
20537 # The coded name of the library, if different from the real name.
20538 soname_spec=$lt_soname_spec
20539
20540 # Commands used to build and install an old-style archive.
20541 RANLIB=$lt_RANLIB
20542 old_archive_cmds=$lt_old_archive_cmds_GCJ
20543 old_postinstall_cmds=$lt_old_postinstall_cmds
20544 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20545
20546 # Create an old-style archive from a shared archive.
20547 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20548
20549 # Create a temporary old-style archive to link instead of a shared archive.
20550 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20551
20552 # Commands used to build and install a shared archive.
20553 archive_cmds=$lt_archive_cmds_GCJ
20554 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20555 postinstall_cmds=$lt_postinstall_cmds
20556 postuninstall_cmds=$lt_postuninstall_cmds
20557
20558 # Commands used to build a loadable module (assumed same as above if empty)
20559 module_cmds=$lt_module_cmds_GCJ
20560 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20561
20562 # Commands to strip libraries.
20563 old_striplib=$lt_old_striplib
20564 striplib=$lt_striplib
20565
20566 # Dependencies to place before the objects being linked to create a
20567 # shared library.
20568 predep_objects=$lt_predep_objects_GCJ
20569
20570 # Dependencies to place after the objects being linked to create a
20571 # shared library.
20572 postdep_objects=$lt_postdep_objects_GCJ
20573
20574 # Dependencies to place before the objects being linked to create a
20575 # shared library.
20576 predeps=$lt_predeps_GCJ
20577
20578 # Dependencies to place after the objects being linked to create a
20579 # shared library.
20580 postdeps=$lt_postdeps_GCJ
20581
20582 # The library search path used internally by the compiler when linking
20583 # a shared library.
20584 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20585
20586 # Method to check whether dependent libraries are shared objects.
20587 deplibs_check_method=$lt_deplibs_check_method
20588
20589 # Command to use when deplibs_check_method == file_magic.
20590 file_magic_cmd=$lt_file_magic_cmd
20591
20592 # Flag that allows shared libraries with undefined symbols to be built.
20593 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20594
20595 # Flag that forces no undefined symbols.
20596 no_undefined_flag=$lt_no_undefined_flag_GCJ
20597
20598 # Commands used to finish a libtool library installation in a directory.
20599 finish_cmds=$lt_finish_cmds
20600
20601 # Same as above, but a single script fragment to be evaled but not shown.
20602 finish_eval=$lt_finish_eval
20603
20604 # Take the output of nm and produce a listing of raw symbols and C names.
20605 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20606
20607 # Transform the output of nm in a proper C declaration
20608 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20609
20610 # Transform the output of nm in a C name address pair
20611 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20612
20613 # This is the shared library runtime path variable.
20614 runpath_var=$runpath_var
20615
20616 # This is the shared library path variable.
20617 shlibpath_var=$shlibpath_var
20618
20619 # Is shlibpath searched before the hard-coded library search path?
20620 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20621
20622 # How to hardcode a shared library path into an executable.
20623 hardcode_action=$hardcode_action_GCJ
20624
20625 # Whether we should hardcode library paths into libraries.
20626 hardcode_into_libs=$hardcode_into_libs
20627
20628 # Flag to hardcode \$libdir into a binary during linking.
20629 # This must work even if \$libdir does not exist.
20630 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20631
20632 # If ld is used when linking, flag to hardcode \$libdir into
20633 # a binary during linking. This must work even if \$libdir does
20634 # not exist.
20635 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20636
20637 # Whether we need a single -rpath flag with a separated argument.
20638 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20639
20640 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20641 # resulting binary.
20642 hardcode_direct=$hardcode_direct_GCJ
20643
20644 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20645 # resulting binary.
20646 hardcode_minus_L=$hardcode_minus_L_GCJ
20647
20648 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20649 # the resulting binary.
20650 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20651
20652 # Set to yes if building a shared library automatically hardcodes DIR into the library
20653 # and all subsequent libraries and executables linked against it.
20654 hardcode_automatic=$hardcode_automatic_GCJ
20655
20656 # Variables whose values should be saved in libtool wrapper scripts and
20657 # restored at relink time.
20658 variables_saved_for_relink="$variables_saved_for_relink"
20659
20660 # Whether libtool must link a program against all its dependency libraries.
20661 link_all_deplibs=$link_all_deplibs_GCJ
20662
20663 # Compile-time system search path for libraries
20664 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20665
20666 # Run-time system search path for libraries
20667 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20668
20669 # Fix the shell variable \$srcfile for the compiler.
20670 fix_srcfile_path="$fix_srcfile_path_GCJ"
20671
20672 # Set to yes if exported symbols are required.
20673 always_export_symbols=$always_export_symbols_GCJ
20674
20675 # The commands to list exported symbols.
20676 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20677
20678 # The commands to extract the exported symbol list from a shared archive.
20679 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20680
20681 # Symbols that should not be listed in the preloaded symbols.
20682 exclude_expsyms=$lt_exclude_expsyms_GCJ
20683
20684 # Symbols that must always be exported.
20685 include_expsyms=$lt_include_expsyms_GCJ
20686
20687 # ### END LIBTOOL TAG CONFIG: $tagname
20688
20689 __EOF__
20690
20691
20692 else
20693   # If there is no Makefile yet, we rely on a make rule to execute
20694   # `config.status --recheck' to rerun these tests and create the
20695   # libtool script then.
20696   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20697   if test -f "$ltmain_in"; then
20698     test -f Makefile && make "$ltmain"
20699   fi
20700 fi
20701
20702
20703 ac_ext=c
20704 ac_cpp='$CPP $CPPFLAGS'
20705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20708
20709 CC="$lt_save_CC"
20710
20711         else
20712           tagname=""
20713         fi
20714         ;;
20715
20716       RC)
20717
20718
20719 # Source file extension for RC test sources.
20720 ac_ext=rc
20721
20722 # Object file extension for compiled RC test sources.
20723 objext=o
20724 objext_RC=$objext
20725
20726 # Code to be used in simple compile tests
20727 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20728
20729 # Code to be used in simple link tests
20730 lt_simple_link_test_code="$lt_simple_compile_test_code"
20731
20732 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20733
20734 # If no C compiler was specified, use CC.
20735 LTCC=${LTCC-"$CC"}
20736
20737 # If no C compiler flags were specified, use CFLAGS.
20738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20739
20740 # Allow CC to be a program name with arguments.
20741 compiler=$CC
20742
20743
20744 # save warnings/boilerplate of simple test code
20745 ac_outfile=conftest.$ac_objext
20746 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20747 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20748 _lt_compiler_boilerplate=`cat conftest.err`
20749 $rm conftest*
20750
20751 ac_outfile=conftest.$ac_objext
20752 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20753 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20754 _lt_linker_boilerplate=`cat conftest.err`
20755 $rm conftest*
20756
20757
20758 # Allow CC to be a program name with arguments.
20759 lt_save_CC="$CC"
20760 CC=${RC-"windres"}
20761 compiler=$CC
20762 compiler_RC=$CC
20763 for cc_temp in $compiler""; do
20764   case $cc_temp in
20765     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20766     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20767     \-*) ;;
20768     *) break;;
20769   esac
20770 done
20771 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20772
20773 lt_cv_prog_compiler_c_o_RC=yes
20774
20775 # The else clause should only fire when bootstrapping the
20776 # libtool distribution, otherwise you forgot to ship ltmain.sh
20777 # with your package, and you will get complaints that there are
20778 # no rules to generate ltmain.sh.
20779 if test -f "$ltmain"; then
20780   # See if we are running on zsh, and set the options which allow our commands through
20781   # without removal of \ escapes.
20782   if test -n "${ZSH_VERSION+set}" ; then
20783     setopt NO_GLOB_SUBST
20784   fi
20785   # Now quote all the things that may contain metacharacters while being
20786   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20787   # variables and quote the copies for generation of the libtool script.
20788   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20789     SED SHELL STRIP \
20790     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20791     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20792     deplibs_check_method reload_flag reload_cmds need_locks \
20793     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20794     lt_cv_sys_global_symbol_to_c_name_address \
20795     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20796     old_postinstall_cmds old_postuninstall_cmds \
20797     compiler_RC \
20798     CC_RC \
20799     LD_RC \
20800     lt_prog_compiler_wl_RC \
20801     lt_prog_compiler_pic_RC \
20802     lt_prog_compiler_static_RC \
20803     lt_prog_compiler_no_builtin_flag_RC \
20804     export_dynamic_flag_spec_RC \
20805     thread_safe_flag_spec_RC \
20806     whole_archive_flag_spec_RC \
20807     enable_shared_with_static_runtimes_RC \
20808     old_archive_cmds_RC \
20809     old_archive_from_new_cmds_RC \
20810     predep_objects_RC \
20811     postdep_objects_RC \
20812     predeps_RC \
20813     postdeps_RC \
20814     compiler_lib_search_path_RC \
20815     archive_cmds_RC \
20816     archive_expsym_cmds_RC \
20817     postinstall_cmds_RC \
20818     postuninstall_cmds_RC \
20819     old_archive_from_expsyms_cmds_RC \
20820     allow_undefined_flag_RC \
20821     no_undefined_flag_RC \
20822     export_symbols_cmds_RC \
20823     hardcode_libdir_flag_spec_RC \
20824     hardcode_libdir_flag_spec_ld_RC \
20825     hardcode_libdir_separator_RC \
20826     hardcode_automatic_RC \
20827     module_cmds_RC \
20828     module_expsym_cmds_RC \
20829     lt_cv_prog_compiler_c_o_RC \
20830     exclude_expsyms_RC \
20831     include_expsyms_RC; do
20832
20833     case $var in
20834     old_archive_cmds_RC | \
20835     old_archive_from_new_cmds_RC | \
20836     archive_cmds_RC | \
20837     archive_expsym_cmds_RC | \
20838     module_cmds_RC | \
20839     module_expsym_cmds_RC | \
20840     old_archive_from_expsyms_cmds_RC | \
20841     export_symbols_cmds_RC | \
20842     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20843     postinstall_cmds | postuninstall_cmds | \
20844     old_postinstall_cmds | old_postuninstall_cmds | \
20845     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20846       # Double-quote double-evaled strings.
20847       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20848       ;;
20849     *)
20850       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20851       ;;
20852     esac
20853   done
20854
20855   case $lt_echo in
20856   *'\$0 --fallback-echo"')
20857     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20858     ;;
20859   esac
20860
20861 cfgfile="$ofile"
20862
20863   cat <<__EOF__ >> "$cfgfile"
20864 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20865
20866 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20867
20868 # Shell to use when invoking shell scripts.
20869 SHELL=$lt_SHELL
20870
20871 # Whether or not to build shared libraries.
20872 build_libtool_libs=$enable_shared
20873
20874 # Whether or not to build static libraries.
20875 build_old_libs=$enable_static
20876
20877 # Whether or not to add -lc for building shared libraries.
20878 build_libtool_need_lc=$archive_cmds_need_lc_RC
20879
20880 # Whether or not to disallow shared libs when runtime libs are static
20881 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20882
20883 # Whether or not to optimize for fast installation.
20884 fast_install=$enable_fast_install
20885
20886 # The host system.
20887 host_alias=$host_alias
20888 host=$host
20889 host_os=$host_os
20890
20891 # The build system.
20892 build_alias=$build_alias
20893 build=$build
20894 build_os=$build_os
20895
20896 # An echo program that does not interpret backslashes.
20897 echo=$lt_echo
20898
20899 # The archiver.
20900 AR=$lt_AR
20901 AR_FLAGS=$lt_AR_FLAGS
20902
20903 # A C compiler.
20904 LTCC=$lt_LTCC
20905
20906 # LTCC compiler flags.
20907 LTCFLAGS=$lt_LTCFLAGS
20908
20909 # A language-specific compiler.
20910 CC=$lt_compiler_RC
20911
20912 # Is the compiler the GNU C compiler?
20913 with_gcc=$GCC_RC
20914
20915 # An ERE matcher.
20916 EGREP=$lt_EGREP
20917
20918 # The linker used to build libraries.
20919 LD=$lt_LD_RC
20920
20921 # Whether we need hard or soft links.
20922 LN_S=$lt_LN_S
20923
20924 # A BSD-compatible nm program.
20925 NM=$lt_NM
20926
20927 # A symbol stripping program
20928 STRIP=$lt_STRIP
20929
20930 # Used to examine libraries when file_magic_cmd begins "file"
20931 MAGIC_CMD=$MAGIC_CMD
20932
20933 # Used on cygwin: DLL creation program.
20934 DLLTOOL="$DLLTOOL"
20935
20936 # Used on cygwin: object dumper.
20937 OBJDUMP="$OBJDUMP"
20938
20939 # Used on cygwin: assembler.
20940 AS="$AS"
20941
20942 # The name of the directory that contains temporary libtool files.
20943 objdir=$objdir
20944
20945 # How to create reloadable object files.
20946 reload_flag=$lt_reload_flag
20947 reload_cmds=$lt_reload_cmds
20948
20949 # How to pass a linker flag through the compiler.
20950 wl=$lt_lt_prog_compiler_wl_RC
20951
20952 # Object file suffix (normally "o").
20953 objext="$ac_objext"
20954
20955 # Old archive suffix (normally "a").
20956 libext="$libext"
20957
20958 # Shared library suffix (normally ".so").
20959 shrext_cmds='$shrext_cmds'
20960
20961 # Executable file suffix (normally "").
20962 exeext="$exeext"
20963
20964 # Additional compiler flags for building library objects.
20965 pic_flag=$lt_lt_prog_compiler_pic_RC
20966 pic_mode=$pic_mode
20967
20968 # What is the maximum length of a command?
20969 max_cmd_len=$lt_cv_sys_max_cmd_len
20970
20971 # Does compiler simultaneously support -c and -o options?
20972 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20973
20974 # Must we lock files when doing compilation?
20975 need_locks=$lt_need_locks
20976
20977 # Do we need the lib prefix for modules?
20978 need_lib_prefix=$need_lib_prefix
20979
20980 # Do we need a version for libraries?
20981 need_version=$need_version
20982
20983 # Whether dlopen is supported.
20984 dlopen_support=$enable_dlopen
20985
20986 # Whether dlopen of programs is supported.
20987 dlopen_self=$enable_dlopen_self
20988
20989 # Whether dlopen of statically linked programs is supported.
20990 dlopen_self_static=$enable_dlopen_self_static
20991
20992 # Compiler flag to prevent dynamic linking.
20993 link_static_flag=$lt_lt_prog_compiler_static_RC
20994
20995 # Compiler flag to turn off builtin functions.
20996 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20997
20998 # Compiler flag to allow reflexive dlopens.
20999 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21000
21001 # Compiler flag to generate shared objects directly from archives.
21002 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21003
21004 # Compiler flag to generate thread-safe objects.
21005 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21006
21007 # Library versioning type.
21008 version_type=$version_type
21009
21010 # Format of library name prefix.
21011 libname_spec=$lt_libname_spec
21012
21013 # List of archive names.  First name is the real one, the rest are links.
21014 # The last name is the one that the linker finds with -lNAME.
21015 library_names_spec=$lt_library_names_spec
21016
21017 # The coded name of the library, if different from the real name.
21018 soname_spec=$lt_soname_spec
21019
21020 # Commands used to build and install an old-style archive.
21021 RANLIB=$lt_RANLIB
21022 old_archive_cmds=$lt_old_archive_cmds_RC
21023 old_postinstall_cmds=$lt_old_postinstall_cmds
21024 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21025
21026 # Create an old-style archive from a shared archive.
21027 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21028
21029 # Create a temporary old-style archive to link instead of a shared archive.
21030 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21031
21032 # Commands used to build and install a shared archive.
21033 archive_cmds=$lt_archive_cmds_RC
21034 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21035 postinstall_cmds=$lt_postinstall_cmds
21036 postuninstall_cmds=$lt_postuninstall_cmds
21037
21038 # Commands used to build a loadable module (assumed same as above if empty)
21039 module_cmds=$lt_module_cmds_RC
21040 module_expsym_cmds=$lt_module_expsym_cmds_RC
21041
21042 # Commands to strip libraries.
21043 old_striplib=$lt_old_striplib
21044 striplib=$lt_striplib
21045
21046 # Dependencies to place before the objects being linked to create a
21047 # shared library.
21048 predep_objects=$lt_predep_objects_RC
21049
21050 # Dependencies to place after the objects being linked to create a
21051 # shared library.
21052 postdep_objects=$lt_postdep_objects_RC
21053
21054 # Dependencies to place before the objects being linked to create a
21055 # shared library.
21056 predeps=$lt_predeps_RC
21057
21058 # Dependencies to place after the objects being linked to create a
21059 # shared library.
21060 postdeps=$lt_postdeps_RC
21061
21062 # The library search path used internally by the compiler when linking
21063 # a shared library.
21064 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21065
21066 # Method to check whether dependent libraries are shared objects.
21067 deplibs_check_method=$lt_deplibs_check_method
21068
21069 # Command to use when deplibs_check_method == file_magic.
21070 file_magic_cmd=$lt_file_magic_cmd
21071
21072 # Flag that allows shared libraries with undefined symbols to be built.
21073 allow_undefined_flag=$lt_allow_undefined_flag_RC
21074
21075 # Flag that forces no undefined symbols.
21076 no_undefined_flag=$lt_no_undefined_flag_RC
21077
21078 # Commands used to finish a libtool library installation in a directory.
21079 finish_cmds=$lt_finish_cmds
21080
21081 # Same as above, but a single script fragment to be evaled but not shown.
21082 finish_eval=$lt_finish_eval
21083
21084 # Take the output of nm and produce a listing of raw symbols and C names.
21085 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21086
21087 # Transform the output of nm in a proper C declaration
21088 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21089
21090 # Transform the output of nm in a C name address pair
21091 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21092
21093 # This is the shared library runtime path variable.
21094 runpath_var=$runpath_var
21095
21096 # This is the shared library path variable.
21097 shlibpath_var=$shlibpath_var
21098
21099 # Is shlibpath searched before the hard-coded library search path?
21100 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21101
21102 # How to hardcode a shared library path into an executable.
21103 hardcode_action=$hardcode_action_RC
21104
21105 # Whether we should hardcode library paths into libraries.
21106 hardcode_into_libs=$hardcode_into_libs
21107
21108 # Flag to hardcode \$libdir into a binary during linking.
21109 # This must work even if \$libdir does not exist.
21110 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21111
21112 # If ld is used when linking, flag to hardcode \$libdir into
21113 # a binary during linking. This must work even if \$libdir does
21114 # not exist.
21115 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21116
21117 # Whether we need a single -rpath flag with a separated argument.
21118 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21119
21120 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21121 # resulting binary.
21122 hardcode_direct=$hardcode_direct_RC
21123
21124 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21125 # resulting binary.
21126 hardcode_minus_L=$hardcode_minus_L_RC
21127
21128 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21129 # the resulting binary.
21130 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21131
21132 # Set to yes if building a shared library automatically hardcodes DIR into the library
21133 # and all subsequent libraries and executables linked against it.
21134 hardcode_automatic=$hardcode_automatic_RC
21135
21136 # Variables whose values should be saved in libtool wrapper scripts and
21137 # restored at relink time.
21138 variables_saved_for_relink="$variables_saved_for_relink"
21139
21140 # Whether libtool must link a program against all its dependency libraries.
21141 link_all_deplibs=$link_all_deplibs_RC
21142
21143 # Compile-time system search path for libraries
21144 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21145
21146 # Run-time system search path for libraries
21147 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21148
21149 # Fix the shell variable \$srcfile for the compiler.
21150 fix_srcfile_path="$fix_srcfile_path_RC"
21151
21152 # Set to yes if exported symbols are required.
21153 always_export_symbols=$always_export_symbols_RC
21154
21155 # The commands to list exported symbols.
21156 export_symbols_cmds=$lt_export_symbols_cmds_RC
21157
21158 # The commands to extract the exported symbol list from a shared archive.
21159 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21160
21161 # Symbols that should not be listed in the preloaded symbols.
21162 exclude_expsyms=$lt_exclude_expsyms_RC
21163
21164 # Symbols that must always be exported.
21165 include_expsyms=$lt_include_expsyms_RC
21166
21167 # ### END LIBTOOL TAG CONFIG: $tagname
21168
21169 __EOF__
21170
21171
21172 else
21173   # If there is no Makefile yet, we rely on a make rule to execute
21174   # `config.status --recheck' to rerun these tests and create the
21175   # libtool script then.
21176   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21177   if test -f "$ltmain_in"; then
21178     test -f Makefile && make "$ltmain"
21179   fi
21180 fi
21181
21182
21183 ac_ext=c
21184 ac_cpp='$CPP $CPPFLAGS'
21185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21188
21189 CC="$lt_save_CC"
21190
21191         ;;
21192
21193       *)
21194         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21195 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21196    { (exit 1); exit 1; }; }
21197         ;;
21198       esac
21199
21200       # Append the new tag name to the list of available tags.
21201       if test -n "$tagname" ; then
21202       available_tags="$available_tags $tagname"
21203     fi
21204     fi
21205   done
21206   IFS="$lt_save_ifs"
21207
21208   # Now substitute the updated list of available tags.
21209   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21210     mv "${ofile}T" "$ofile"
21211     chmod +x "$ofile"
21212   else
21213     rm -f "${ofile}T"
21214     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21215 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21216    { (exit 1); exit 1; }; }
21217   fi
21218 fi
21219
21220
21221
21222 # This can be used to rebuild libtool when needed
21223 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21224
21225 # Always use our own libtool.
21226 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21227
21228 # Prevent multiple expansion
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250             # Check whether --enable-fortran was given.
21251 if test "${enable_fortran+set}" = set; then
21252   enableval=$enable_fortran;
21253 else
21254   enable_fortran=no
21255 fi
21256
21257
21258
21259 if test "x$enable_fortran" = xyes; then
21260   ENABLE_FORTRAN_TRUE=
21261   ENABLE_FORTRAN_FALSE='#'
21262 else
21263   ENABLE_FORTRAN_TRUE='#'
21264   ENABLE_FORTRAN_FALSE=
21265 fi
21266
21267
21268     if test "x$enable_fortran" = xyes
21269     then
21270         ac_ext=f
21271 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21272 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21273 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21274 if test -n "$ac_tool_prefix"; then
21275   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
21276   do
21277     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21281 if test "${ac_cv_prog_F77+set}" = set; then
21282   echo $ECHO_N "(cached) $ECHO_C" >&6
21283 else
21284   if test -n "$F77"; then
21285   ac_cv_prog_F77="$F77" # Let the user override the test.
21286 else
21287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21288 for as_dir in $PATH
21289 do
21290   IFS=$as_save_IFS
21291   test -z "$as_dir" && as_dir=.
21292   for ac_exec_ext in '' $ac_executable_extensions; do
21293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21294     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
21295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21296     break 2
21297   fi
21298 done
21299 done
21300 IFS=$as_save_IFS
21301
21302 fi
21303 fi
21304 F77=$ac_cv_prog_F77
21305 if test -n "$F77"; then
21306   { echo "$as_me:$LINENO: result: $F77" >&5
21307 echo "${ECHO_T}$F77" >&6; }
21308 else
21309   { echo "$as_me:$LINENO: result: no" >&5
21310 echo "${ECHO_T}no" >&6; }
21311 fi
21312
21313
21314     test -n "$F77" && break
21315   done
21316 fi
21317 if test -z "$F77"; then
21318   ac_ct_F77=$F77
21319   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
21320 do
21321   # Extract the first word of "$ac_prog", so it can be a program name with args.
21322 set dummy $ac_prog; ac_word=$2
21323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21325 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
21326   echo $ECHO_N "(cached) $ECHO_C" >&6
21327 else
21328   if test -n "$ac_ct_F77"; then
21329   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
21330 else
21331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21332 for as_dir in $PATH
21333 do
21334   IFS=$as_save_IFS
21335   test -z "$as_dir" && as_dir=.
21336   for ac_exec_ext in '' $ac_executable_extensions; do
21337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21338     ac_cv_prog_ac_ct_F77="$ac_prog"
21339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21340     break 2
21341   fi
21342 done
21343 done
21344 IFS=$as_save_IFS
21345
21346 fi
21347 fi
21348 ac_ct_F77=$ac_cv_prog_ac_ct_F77
21349 if test -n "$ac_ct_F77"; then
21350   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
21351 echo "${ECHO_T}$ac_ct_F77" >&6; }
21352 else
21353   { echo "$as_me:$LINENO: result: no" >&5
21354 echo "${ECHO_T}no" >&6; }
21355 fi
21356
21357
21358   test -n "$ac_ct_F77" && break
21359 done
21360
21361   if test "x$ac_ct_F77" = x; then
21362     F77=""
21363   else
21364     case $cross_compiling:$ac_tool_warned in
21365 yes:)
21366 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21367 whose name does not start with the host triplet.  If you think this
21368 configuration is useful to you, please write to autoconf@gnu.org." >&5
21369 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21370 whose name does not start with the host triplet.  If you think this
21371 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21372 ac_tool_warned=yes ;;
21373 esac
21374     F77=$ac_ct_F77
21375   fi
21376 fi
21377
21378
21379 # Provide some information about the compiler.
21380 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
21381 ac_compiler=`set X $ac_compile; echo $2`
21382 { (ac_try="$ac_compiler --version >&5"
21383 case "(($ac_try" in
21384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21385   *) ac_try_echo=$ac_try;;
21386 esac
21387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21388   (eval "$ac_compiler --version >&5") 2>&5
21389   ac_status=$?
21390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391   (exit $ac_status); }
21392 { (ac_try="$ac_compiler -v >&5"
21393 case "(($ac_try" in
21394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395   *) ac_try_echo=$ac_try;;
21396 esac
21397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21398   (eval "$ac_compiler -v >&5") 2>&5
21399   ac_status=$?
21400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401   (exit $ac_status); }
21402 { (ac_try="$ac_compiler -V >&5"
21403 case "(($ac_try" in
21404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21405   *) ac_try_echo=$ac_try;;
21406 esac
21407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21408   (eval "$ac_compiler -V >&5") 2>&5
21409   ac_status=$?
21410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411   (exit $ac_status); }
21412 rm -f a.out
21413
21414 # If we don't use `.F' as extension, the preprocessor is not run on the
21415 # input file.  (Note that this only needs to work for GNU compilers.)
21416 ac_save_ext=$ac_ext
21417 ac_ext=F
21418 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
21419 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
21420 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
21421   echo $ECHO_N "(cached) $ECHO_C" >&6
21422 else
21423   cat >conftest.$ac_ext <<_ACEOF
21424       program main
21425 #ifndef __GNUC__
21426        choke me
21427 #endif
21428
21429       end
21430 _ACEOF
21431 rm -f conftest.$ac_objext
21432 if { (ac_try="$ac_compile"
21433 case "(($ac_try" in
21434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435   *) ac_try_echo=$ac_try;;
21436 esac
21437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438   (eval "$ac_compile") 2>conftest.er1
21439   ac_status=$?
21440   grep -v '^ *+' conftest.er1 >conftest.err
21441   rm -f conftest.er1
21442   cat conftest.err >&5
21443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444   (exit $ac_status); } &&
21445          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21446   { (case "(($ac_try" in
21447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21448   *) ac_try_echo=$ac_try;;
21449 esac
21450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21451   (eval "$ac_try") 2>&5
21452   ac_status=$?
21453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454   (exit $ac_status); }; } &&
21455          { ac_try='test -s conftest.$ac_objext'
21456   { (case "(($ac_try" in
21457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21458   *) ac_try_echo=$ac_try;;
21459 esac
21460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21461   (eval "$ac_try") 2>&5
21462   ac_status=$?
21463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464   (exit $ac_status); }; }; then
21465   ac_compiler_gnu=yes
21466 else
21467   echo "$as_me: failed program was:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21469
21470         ac_compiler_gnu=no
21471 fi
21472
21473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21474 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
21475
21476 fi
21477 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
21478 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
21479 ac_ext=$ac_save_ext
21480 ac_test_FFLAGS=${FFLAGS+set}
21481 ac_save_FFLAGS=$FFLAGS
21482 FFLAGS=
21483 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
21484 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
21485 if test "${ac_cv_prog_f77_g+set}" = set; then
21486   echo $ECHO_N "(cached) $ECHO_C" >&6
21487 else
21488   FFLAGS=-g
21489 cat >conftest.$ac_ext <<_ACEOF
21490       program main
21491
21492       end
21493 _ACEOF
21494 rm -f conftest.$ac_objext
21495 if { (ac_try="$ac_compile"
21496 case "(($ac_try" in
21497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498   *) ac_try_echo=$ac_try;;
21499 esac
21500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21501   (eval "$ac_compile") 2>conftest.er1
21502   ac_status=$?
21503   grep -v '^ *+' conftest.er1 >conftest.err
21504   rm -f conftest.er1
21505   cat conftest.err >&5
21506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507   (exit $ac_status); } &&
21508          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21509   { (case "(($ac_try" in
21510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21511   *) ac_try_echo=$ac_try;;
21512 esac
21513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21514   (eval "$ac_try") 2>&5
21515   ac_status=$?
21516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517   (exit $ac_status); }; } &&
21518          { ac_try='test -s conftest.$ac_objext'
21519   { (case "(($ac_try" in
21520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521   *) ac_try_echo=$ac_try;;
21522 esac
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524   (eval "$ac_try") 2>&5
21525   ac_status=$?
21526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527   (exit $ac_status); }; }; then
21528   ac_cv_prog_f77_g=yes
21529 else
21530   echo "$as_me: failed program was:" >&5
21531 sed 's/^/| /' conftest.$ac_ext >&5
21532
21533         ac_cv_prog_f77_g=no
21534 fi
21535
21536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21537
21538 fi
21539 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
21540 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
21541 if test "$ac_test_FFLAGS" = set; then
21542   FFLAGS=$ac_save_FFLAGS
21543 elif test $ac_cv_prog_f77_g = yes; then
21544   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
21545     FFLAGS="-g -O2"
21546   else
21547     FFLAGS="-g"
21548   fi
21549 else
21550   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
21551     FFLAGS="-O2"
21552   else
21553     FFLAGS=
21554   fi
21555 fi
21556
21557 G77=`test $ac_compiler_gnu = yes && echo yes`
21558 ac_ext=c
21559 ac_cpp='$CPP $CPPFLAGS'
21560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21563
21564         ac_ext=f
21565 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21566 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21567 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21568 { echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
21569 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6; }
21570 if test "${ac_cv_prog_f77_v+set}" = set; then
21571   echo $ECHO_N "(cached) $ECHO_C" >&6
21572 else
21573   cat >conftest.$ac_ext <<_ACEOF
21574       program main
21575
21576       end
21577 _ACEOF
21578 rm -f conftest.$ac_objext
21579 if { (ac_try="$ac_compile"
21580 case "(($ac_try" in
21581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582   *) ac_try_echo=$ac_try;;
21583 esac
21584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585   (eval "$ac_compile") 2>conftest.er1
21586   ac_status=$?
21587   grep -v '^ *+' conftest.er1 >conftest.err
21588   rm -f conftest.er1
21589   cat conftest.err >&5
21590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591   (exit $ac_status); } &&
21592          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21593   { (case "(($ac_try" in
21594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21595   *) ac_try_echo=$ac_try;;
21596 esac
21597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21598   (eval "$ac_try") 2>&5
21599   ac_status=$?
21600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601   (exit $ac_status); }; } &&
21602          { ac_try='test -s conftest.$ac_objext'
21603   { (case "(($ac_try" in
21604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605   *) ac_try_echo=$ac_try;;
21606 esac
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608   (eval "$ac_try") 2>&5
21609   ac_status=$?
21610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611   (exit $ac_status); }; }; then
21612   ac_cv_prog_f77_v=
21613 # Try some options frequently used verbose output
21614 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
21615   cat >conftest.$ac_ext <<_ACEOF
21616       program main
21617
21618       end
21619 _ACEOF
21620
21621 # Compile and link our simple test program by passing a flag (argument
21622 # 1 to this macro) to the Fortran compiler in order to get
21623 # "verbose" output that we can then parse for the Fortran linker
21624 # flags.
21625 ac_save_FFLAGS=$FFLAGS
21626 FFLAGS="$FFLAGS $ac_verb"
21627 eval "set x $ac_link"
21628 shift
21629 echo "$as_me:$LINENO: $*" >&5
21630 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
21631 echo "$ac_f77_v_output" >&5
21632 FFLAGS=$ac_save_FFLAGS
21633
21634 rm -f conftest*
21635
21636 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
21637 # /foo, /bar, and /baz are search directories for the Fortran linker.
21638 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
21639 ac_f77_v_output="`echo $ac_f77_v_output |
21640         grep 'LPATH is:' |
21641         sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
21642
21643 # FIXME: we keep getting bitten by quoted arguments; a more general fix
21644 #        that detects unbalanced quotes in FLIBS should be implemented
21645 #        and (ugh) tested at some point.
21646 case $ac_f77_v_output in
21647   # If we are using xlf then replace all the commas with spaces.
21648   *xlfentry*)
21649     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
21650
21651   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
21652   # $LIBS confuse us, and the libraries appear later in the output anyway).
21653   *mGLOB_options_string*)
21654     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
21655
21656   # Portland Group compiler has singly- or doubly-quoted -cmdline argument
21657   # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
21658   # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
21659   *-cmdline\ * | *-ignore\ * | *-def\ *)
21660     ac_f77_v_output=`echo $ac_f77_v_output | sed "\
21661         s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
21662         s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
21663         s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
21664
21665   # If we are using Cray Fortran then delete quotes.
21666   *cft90*)
21667     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
21668 esac
21669
21670
21671   # look for -l* and *.a constructs in the output
21672   for ac_arg in $ac_f77_v_output; do
21673      case $ac_arg in
21674         [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
21675           ac_cv_prog_f77_v=$ac_verb
21676           break 2 ;;
21677      esac
21678   done
21679 done
21680 if test -z "$ac_cv_prog_f77_v"; then
21681    { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
21682 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
21683 fi
21684 else
21685   echo "$as_me: failed program was:" >&5
21686 sed 's/^/| /' conftest.$ac_ext >&5
21687
21688         { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
21689 echo "$as_me: WARNING: compilation failed" >&2;}
21690 fi
21691
21692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21693
21694 fi
21695 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
21696 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6; }
21697 { echo "$as_me:$LINENO: checking for Fortran 77 libraries of $F77" >&5
21698 echo $ECHO_N "checking for Fortran 77 libraries of $F77... $ECHO_C" >&6; }
21699 if test "${ac_cv_f77_libs+set}" = set; then
21700   echo $ECHO_N "(cached) $ECHO_C" >&6
21701 else
21702   if test "x$FLIBS" != "x"; then
21703   ac_cv_f77_libs="$FLIBS" # Let the user override the test.
21704 else
21705
21706 cat >conftest.$ac_ext <<_ACEOF
21707       program main
21708
21709       end
21710 _ACEOF
21711
21712 # Compile and link our simple test program by passing a flag (argument
21713 # 1 to this macro) to the Fortran compiler in order to get
21714 # "verbose" output that we can then parse for the Fortran linker
21715 # flags.
21716 ac_save_FFLAGS=$FFLAGS
21717 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
21718 eval "set x $ac_link"
21719 shift
21720 echo "$as_me:$LINENO: $*" >&5
21721 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
21722 echo "$ac_f77_v_output" >&5
21723 FFLAGS=$ac_save_FFLAGS
21724
21725 rm -f conftest*
21726
21727 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
21728 # /foo, /bar, and /baz are search directories for the Fortran linker.
21729 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
21730 ac_f77_v_output="`echo $ac_f77_v_output |
21731         grep 'LPATH is:' |
21732         sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
21733
21734 # FIXME: we keep getting bitten by quoted arguments; a more general fix
21735 #        that detects unbalanced quotes in FLIBS should be implemented
21736 #        and (ugh) tested at some point.
21737 case $ac_f77_v_output in
21738   # If we are using xlf then replace all the commas with spaces.
21739   *xlfentry*)
21740     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
21741
21742   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
21743   # $LIBS confuse us, and the libraries appear later in the output anyway).
21744   *mGLOB_options_string*)
21745     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
21746
21747   # Portland Group compiler has singly- or doubly-quoted -cmdline argument
21748   # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
21749   # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
21750   *-cmdline\ * | *-ignore\ * | *-def\ *)
21751     ac_f77_v_output=`echo $ac_f77_v_output | sed "\
21752         s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
21753         s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
21754         s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
21755
21756   # If we are using Cray Fortran then delete quotes.
21757   *cft90*)
21758     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
21759 esac
21760
21761
21762
21763 ac_cv_f77_libs=
21764
21765 # Save positional arguments (if any)
21766 ac_save_positional="$@"
21767
21768 set X $ac_f77_v_output
21769 while test $# != 1; do
21770   shift
21771   ac_arg=$1
21772   case $ac_arg in
21773         [\\/]*.a | ?:[\\/]*.a)
21774             ac_exists=false
21775   for ac_i in $ac_cv_f77_libs; do
21776     if test x"$ac_arg" = x"$ac_i"; then
21777       ac_exists=true
21778       break
21779     fi
21780   done
21781
21782   if test x"$ac_exists" = xtrue; then
21783   :
21784 else
21785   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21786 fi
21787
21788           ;;
21789         -bI:*)
21790             ac_exists=false
21791   for ac_i in $ac_cv_f77_libs; do
21792     if test x"$ac_arg" = x"$ac_i"; then
21793       ac_exists=true
21794       break
21795     fi
21796   done
21797
21798   if test x"$ac_exists" = xtrue; then
21799   :
21800 else
21801   if test "$ac_compiler_gnu" = yes; then
21802   for ac_link_opt in $ac_arg; do
21803     ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
21804   done
21805 else
21806   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21807 fi
21808 fi
21809
21810           ;;
21811           # Ignore these flags.
21812         -lang* | -lcrt*.o | -lc | -lgcc | -libmil | -LANG:=* | -LIST:* | -LNO:*)
21813           ;;
21814         -lkernel32)
21815           test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21816           ;;
21817         -[LRuYz])
21818           # These flags, when seen by themselves, take an argument.
21819           # We remove the space between option and argument and re-iterate
21820           # unless we find an empty arg or a new option (starting with -)
21821           case $2 in
21822              "" | -*);;
21823              *)
21824                 ac_arg="$ac_arg$2"
21825                 shift; shift
21826                 set X $ac_arg "$@"
21827                 ;;
21828           esac
21829           ;;
21830         -YP,*)
21831           for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
21832               ac_exists=false
21833   for ac_i in $ac_cv_f77_libs; do
21834     if test x"$ac_j" = x"$ac_i"; then
21835       ac_exists=true
21836       break
21837     fi
21838   done
21839
21840   if test x"$ac_exists" = xtrue; then
21841   :
21842 else
21843   ac_arg="$ac_arg $ac_j"
21844                                ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
21845 fi
21846
21847           done
21848           ;;
21849         -[lLR]*)
21850             ac_exists=false
21851   for ac_i in $ac_cv_f77_libs; do
21852     if test x"$ac_arg" = x"$ac_i"; then
21853       ac_exists=true
21854       break
21855     fi
21856   done
21857
21858   if test x"$ac_exists" = xtrue; then
21859   :
21860 else
21861   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21862 fi
21863
21864           ;;
21865         -zallextract*| -zdefaultextract)
21866           ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21867           ;;
21868           # Ignore everything else.
21869   esac
21870 done
21871 # restore positional arguments
21872 set X $ac_save_positional; shift
21873
21874 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
21875 # then we insist that the "run path" must be an absolute path (i.e. it
21876 # must begin with a "/").
21877 case `(uname -sr) 2>/dev/null` in
21878    "SunOS 5"*)
21879       ac_ld_run_path=`echo $ac_f77_v_output |
21880                         sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
21881       test "x$ac_ld_run_path" != x &&
21882         if test "$ac_compiler_gnu" = yes; then
21883   for ac_link_opt in $ac_ld_run_path; do
21884     ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
21885   done
21886 else
21887   ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
21888 fi
21889       ;;
21890 esac
21891 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
21892
21893 fi
21894 { echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
21895 echo "${ECHO_T}$ac_cv_f77_libs" >&6; }
21896 FLIBS="$ac_cv_f77_libs"
21897
21898
21899 ac_ext=c
21900 ac_cpp='$CPP $CPPFLAGS'
21901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21904
21905     fi
21906
21907
21908
21909
21910         no_undefined=""
21911         case "${host_os}" in
21912                 *mingw* | *cygwin*)
21913
21914                 # on MinGW/Cygwin extra LDFLAGS are required
21915                 no_undefined="-no-undefined"
21916                 ;;
21917         esac
21918         NO_UNDEFINED=$no_undefined
21919
21920
21921
21922
21923
21924         # Find any Python interpreter.
21925     if test -z "$PYTHON"; then
21926       for ac_prog in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
21927 do
21928   # Extract the first word of "$ac_prog", so it can be a program name with args.
21929 set dummy $ac_prog; ac_word=$2
21930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21932 if test "${ac_cv_path_PYTHON+set}" = set; then
21933   echo $ECHO_N "(cached) $ECHO_C" >&6
21934 else
21935   case $PYTHON in
21936   [\\/]* | ?:[\\/]*)
21937   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21938   ;;
21939   *)
21940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21941 for as_dir in $PATH
21942 do
21943   IFS=$as_save_IFS
21944   test -z "$as_dir" && as_dir=.
21945   for ac_exec_ext in '' $ac_executable_extensions; do
21946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21947     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21949     break 2
21950   fi
21951 done
21952 done
21953 IFS=$as_save_IFS
21954
21955   ;;
21956 esac
21957 fi
21958 PYTHON=$ac_cv_path_PYTHON
21959 if test -n "$PYTHON"; then
21960   { echo "$as_me:$LINENO: result: $PYTHON" >&5
21961 echo "${ECHO_T}$PYTHON" >&6; }
21962 else
21963   { echo "$as_me:$LINENO: result: no" >&5
21964 echo "${ECHO_T}no" >&6; }
21965 fi
21966
21967
21968   test -n "$PYTHON" && break
21969 done
21970 test -n "$PYTHON" || PYTHON=":"
21971
21972     fi
21973     am_display_PYTHON=python
21974
21975
21976   if test "$PYTHON" = :; then
21977       { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
21978 echo "$as_me: error: no suitable Python interpreter found" >&2;}
21979    { (exit 1); exit 1; }; }
21980   else
21981
21982
21983   { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
21984 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
21985 if test "${am_cv_python_version+set}" = set; then
21986   echo $ECHO_N "(cached) $ECHO_C" >&6
21987 else
21988   am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
21989 fi
21990 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
21991 echo "${ECHO_T}$am_cv_python_version" >&6; }
21992   PYTHON_VERSION=$am_cv_python_version
21993
21994
21995
21996   PYTHON_PREFIX='${prefix}'
21997
21998   PYTHON_EXEC_PREFIX='${exec_prefix}'
21999
22000
22001
22002   { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
22003 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
22004 if test "${am_cv_python_platform+set}" = set; then
22005   echo $ECHO_N "(cached) $ECHO_C" >&6
22006 else
22007   am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
22008 fi
22009 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
22010 echo "${ECHO_T}$am_cv_python_platform" >&6; }
22011   PYTHON_PLATFORM=$am_cv_python_platform
22012
22013
22014
22015
22016                 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
22017 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
22018 if test "${am_cv_python_pythondir+set}" = set; then
22019   echo $ECHO_N "(cached) $ECHO_C" >&6
22020 else
22021   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
22022      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
22023 fi
22024 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
22025 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
22026   pythondir=$am_cv_python_pythondir
22027
22028
22029
22030   pkgpythondir=\${pythondir}/$PACKAGE
22031
22032
22033             { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
22034 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
22035 if test "${am_cv_python_pyexecdir+set}" = set; then
22036   echo $ECHO_N "(cached) $ECHO_C" >&6
22037 else
22038   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
22039      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
22040 fi
22041 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
22042 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
22043   pyexecdir=$am_cv_python_pyexecdir
22044
22045
22046
22047   pkgpyexecdir=\${pyexecdir}/$PACKAGE
22048
22049
22050
22051   fi
22052
22053
22054
22055
22056
22057
22058         # Check for Python include path
22059         { echo "$as_me:$LINENO: checking for Python include path" >&5
22060 echo $ECHO_N "checking for Python include path... $ECHO_C" >&6; }
22061         if test -z "$PYTHON" ; then
22062                 { { echo "$as_me:$LINENO: error: cannot find Python path" >&5
22063 echo "$as_me: error: cannot find Python path" >&2;}
22064    { (exit 1); exit 1; }; }
22065         fi
22066
22067         # ask distutils which include path we should use
22068         python_cmd='
22069 import distutils.sysconfig
22070 import os
22071 path = distutils.sysconfig.get_python_inc(plat_specific=False)
22072 if os.sep == "\\":
22073   path = path.replace("\\", "/")
22074 print path
22075 '
22076         python_path=`$PYTHON -c "$python_cmd"`
22077         { echo "$as_me:$LINENO: result: $python_path" >&5
22078 echo "${ECHO_T}$python_path" >&6; }
22079         if test -z "$python_path" ; then
22080                 { { echo "$as_me:$LINENO: error: cannot find Python include path" >&5
22081 echo "$as_me: error: cannot find Python include path" >&2;}
22082    { (exit 1); exit 1; }; }
22083         fi
22084
22085         PYTHON_CPPFLAGS=-I$python_path
22086
22087
22088         # Check for Python headers usability
22089         python_save_CPPFLAGS=$CPPFLAGS
22090         CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
22091
22092 for ac_header in Python.h
22093 do
22094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22096   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22099   echo $ECHO_N "(cached) $ECHO_C" >&6
22100 fi
22101 ac_res=`eval echo '${'$as_ac_Header'}'`
22102                { echo "$as_me:$LINENO: result: $ac_res" >&5
22103 echo "${ECHO_T}$ac_res" >&6; }
22104 else
22105   # Is the header compilable?
22106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22108 cat >conftest.$ac_ext <<_ACEOF
22109 /* confdefs.h.  */
22110 _ACEOF
22111 cat confdefs.h >>conftest.$ac_ext
22112 cat >>conftest.$ac_ext <<_ACEOF
22113 /* end confdefs.h.  */
22114 $ac_includes_default
22115 #include <$ac_header>
22116 _ACEOF
22117 rm -f conftest.$ac_objext
22118 if { (ac_try="$ac_compile"
22119 case "(($ac_try" in
22120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121   *) ac_try_echo=$ac_try;;
22122 esac
22123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22124   (eval "$ac_compile") 2>conftest.er1
22125   ac_status=$?
22126   grep -v '^ *+' conftest.er1 >conftest.err
22127   rm -f conftest.er1
22128   cat conftest.err >&5
22129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130   (exit $ac_status); } &&
22131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22132   { (case "(($ac_try" in
22133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22134   *) ac_try_echo=$ac_try;;
22135 esac
22136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22137   (eval "$ac_try") 2>&5
22138   ac_status=$?
22139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140   (exit $ac_status); }; } &&
22141          { ac_try='test -s conftest.$ac_objext'
22142   { (case "(($ac_try" in
22143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144   *) ac_try_echo=$ac_try;;
22145 esac
22146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22147   (eval "$ac_try") 2>&5
22148   ac_status=$?
22149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150   (exit $ac_status); }; }; then
22151   ac_header_compiler=yes
22152 else
22153   echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.$ac_ext >&5
22155
22156         ac_header_compiler=no
22157 fi
22158
22159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22161 echo "${ECHO_T}$ac_header_compiler" >&6; }
22162
22163 # Is the header present?
22164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22166 cat >conftest.$ac_ext <<_ACEOF
22167 /* confdefs.h.  */
22168 _ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h.  */
22172 #include <$ac_header>
22173 _ACEOF
22174 if { (ac_try="$ac_cpp conftest.$ac_ext"
22175 case "(($ac_try" in
22176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177   *) ac_try_echo=$ac_try;;
22178 esac
22179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22180   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22181   ac_status=$?
22182   grep -v '^ *+' conftest.er1 >conftest.err
22183   rm -f conftest.er1
22184   cat conftest.err >&5
22185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186   (exit $ac_status); } >/dev/null; then
22187   if test -s conftest.err; then
22188     ac_cpp_err=$ac_c_preproc_warn_flag
22189     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22190   else
22191     ac_cpp_err=
22192   fi
22193 else
22194   ac_cpp_err=yes
22195 fi
22196 if test -z "$ac_cpp_err"; then
22197   ac_header_preproc=yes
22198 else
22199   echo "$as_me: failed program was:" >&5
22200 sed 's/^/| /' conftest.$ac_ext >&5
22201
22202   ac_header_preproc=no
22203 fi
22204
22205 rm -f conftest.err conftest.$ac_ext
22206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22207 echo "${ECHO_T}$ac_header_preproc" >&6; }
22208
22209 # So?  What about this header?
22210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22211   yes:no: )
22212     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22216     ac_header_preproc=yes
22217     ;;
22218   no:yes:* )
22219     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22221     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22222 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22223     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22225     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22226 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22229     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22231
22232     ;;
22233 esac
22234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22237   echo $ECHO_N "(cached) $ECHO_C" >&6
22238 else
22239   eval "$as_ac_Header=\$ac_header_preproc"
22240 fi
22241 ac_res=`eval echo '${'$as_ac_Header'}'`
22242                { echo "$as_me:$LINENO: result: $ac_res" >&5
22243 echo "${ECHO_T}$ac_res" >&6; }
22244
22245 fi
22246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22247   cat >>confdefs.h <<_ACEOF
22248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22249 _ACEOF
22250
22251 else
22252   { { echo "$as_me:$LINENO: error: cannot find usable Python headers" >&5
22253 echo "$as_me: error: cannot find usable Python headers" >&2;}
22254    { (exit 1); exit 1; }; }
22255 fi
22256
22257 done
22258
22259         CPPFLAGS="$python_save_CPPFLAGS"
22260
22261         # Only set this on mingw and cygwin hosts, (only implemented
22262         # for mingw host, for crosscompiling you need to trick this)
22263
22264         PYTHON_LDFLAGS=""
22265         case $host_os in
22266              *mingw* | *cygwin* )
22267           { echo "$as_me:$LINENO: checking for Python LDFLAGS" >&5
22268 echo $ECHO_N "checking for Python LDFLAGS... $ECHO_C" >&6; }
22269
22270         python_cmd='
22271 import distutils.sysconfig
22272 import os
22273 path = distutils.sysconfig.get_config_var("LIBPL")
22274 if path == None:
22275   path = distutils.sysconfig.PREFIX + "/libs"
22276 if os.sep == "\\":
22277   path = path.replace("\\", "/")
22278 print path
22279 '
22280           python_stdlib_path=`$PYTHON -c "$python_cmd"`
22281
22282           python_version_nodot=`echo $PYTHON_VERSION | sed "s,\.,,"`
22283           libpython_name="python$PYTHON_VERSION"
22284
22285           # Standard install of python for win32 has libpython24.a
22286           # instead of libpython2.4.a so we check for the library
22287           # without the dot in the version number.
22288
22289           python_stdlib_filename=`find $python_stdlib_path -type f -name libpython$python_version_nodot.* -print | sed "1q"`
22290           if test -n "$python_stdlib_filename" ; then
22291                 libpython_name="python$python_version_nodot"
22292           fi
22293
22294           PYTHON_LDFLAGS="-L$python_stdlib_path -l$libpython_name"
22295           { echo "$as_me:$LINENO: result: $PYTHON_LDFLAGS" >&5
22296 echo "${ECHO_T}$PYTHON_LDFLAGS" >&6; }
22297           # Replace all backslashes in PYTHON Paths with forward slashes
22298           { echo "$as_me:$LINENO: checking for pythondir" >&5
22299 echo $ECHO_N "checking for pythondir... $ECHO_C" >&6; }
22300           pythondir=`echo $pythondir |sed 's,\\\\,/,g'`
22301           { echo "$as_me:$LINENO: result: $pythondir" >&5
22302 echo "${ECHO_T}$pythondir" >&6; }
22303
22304           { echo "$as_me:$LINENO: checking for pkgpythondir" >&5
22305 echo $ECHO_N "checking for pkgpythondir... $ECHO_C" >&6; }
22306           pkgpythondir=`echo $pkgpythondir |sed 's,\\\\,/,g'`
22307           { echo "$as_me:$LINENO: result: $pkgpythondir" >&5
22308 echo "${ECHO_T}$pkgpythondir" >&6; }
22309
22310           { echo "$as_me:$LINENO: checking for pyexecdir" >&5
22311 echo $ECHO_N "checking for pyexecdir... $ECHO_C" >&6; }
22312           pyexecdir=`echo $pyexecdir |sed 's,\\\\,/,g'`
22313           { echo "$as_me:$LINENO: result: $pyexecdir" >&5
22314 echo "${ECHO_T}$pyexecdir" >&6; }
22315
22316           { echo "$as_me:$LINENO: checking for pkgpyexecdir" >&5
22317 echo $ECHO_N "checking for pkgpyexecdir... $ECHO_C" >&6; }
22318           pkgpyexecdir=`echo $pkgpyexecdir |sed 's,\\\\,/,g'`
22319           { echo "$as_me:$LINENO: result: $pkgpyexecdir" >&5
22320 echo "${ECHO_T}$pkgpyexecdir" >&6; }
22321
22322           ;;
22323         esac
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334         # Extract the first word of "swig", so it can be a program name with args.
22335 set dummy swig; ac_word=$2
22336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22338 if test "${ac_cv_prog_SWIG+set}" = set; then
22339   echo $ECHO_N "(cached) $ECHO_C" >&6
22340 else
22341   if test -n "$SWIG"; then
22342   ac_cv_prog_SWIG="$SWIG" # Let the user override the test.
22343 else
22344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22345 for as_dir in $PATH
22346 do
22347   IFS=$as_save_IFS
22348   test -z "$as_dir" && as_dir=.
22349   for ac_exec_ext in '' $ac_executable_extensions; do
22350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22351     ac_cv_prog_SWIG="`which swig`"
22352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22353     break 2
22354   fi
22355 done
22356 done
22357 IFS=$as_save_IFS
22358
22359 fi
22360 fi
22361 SWIG=$ac_cv_prog_SWIG
22362 if test -n "$SWIG"; then
22363   { echo "$as_me:$LINENO: result: $SWIG" >&5
22364 echo "${ECHO_T}$SWIG" >&6; }
22365 else
22366   { echo "$as_me:$LINENO: result: no" >&5
22367 echo "${ECHO_T}no" >&6; }
22368 fi
22369
22370
22371         if test -z "$SWIG" ; then
22372                 { { echo "$as_me:$LINENO: error: Cannot find 'swig' program.  SWIG version >= 1.3.23 required" >&5
22373 echo "$as_me: error: Cannot find 'swig' program.  SWIG version >= 1.3.23 required" >&2;}
22374    { (exit 1); exit 1; }; }
22375                 SWIG=false
22376         elif test -n "1.3.23" ; then
22377                 { echo "$as_me:$LINENO: checking for SWIG version" >&5
22378 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
22379                 swig_version=`$SWIG -version 2>&1 | \
22380                         awk '/^SWIG Version [0-9]+\.[0-9]+\.[0-9]+.*$/ { split($3,a,"[^.0-9]"); print a[1] }'`
22381                 { echo "$as_me:$LINENO: result: $swig_version" >&5
22382 echo "${ECHO_T}$swig_version" >&6; }
22383                 if test -n "$swig_version" ; then
22384                         swig_version=`echo $swig_version | \
22385                                 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
22386                         swig_required_version=`echo 1.3.23 | \
22387                                 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
22388                         if test $swig_required_version -gt $swig_version ; then
22389                                 { { echo "$as_me:$LINENO: error: SWIG version >= 1.3.23 required" >&5
22390 echo "$as_me: error: SWIG version >= 1.3.23 required" >&2;}
22391    { (exit 1); exit 1; }; }
22392                         fi
22393                 else
22394                         { { echo "$as_me:$LINENO: error: cannot determine SWIG version" >&5
22395 echo "$as_me: error: cannot determine SWIG version" >&2;}
22396    { (exit 1); exit 1; }; }
22397                 fi
22398         fi
22399
22400
22401
22402
22403         if test "$SWIG" != "false" ; then
22404                 SWIG="$SWIG -c++"
22405         fi
22406
22407
22408
22409
22410         if test "$SWIG" != "false" ; then
22411                 SWIG_PYTHON_LIB=-lswigpy
22412
22413                 SWIG_PYTHON_OPT=-python
22414
22415         fi
22416         SWIG_PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
22417
22418
22419
22420
22421 # Extract the first word of "xmlto", so it can be a program name with args.
22422 set dummy xmlto; ac_word=$2
22423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22425 if test "${ac_cv_prog_XMLTO+set}" = set; then
22426   echo $ECHO_N "(cached) $ECHO_C" >&6
22427 else
22428   if test -n "$XMLTO"; then
22429   ac_cv_prog_XMLTO="$XMLTO" # Let the user override the test.
22430 else
22431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22432 for as_dir in $PATH
22433 do
22434   IFS=$as_save_IFS
22435   test -z "$as_dir" && as_dir=.
22436   for ac_exec_ext in '' $ac_executable_extensions; do
22437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22438     ac_cv_prog_XMLTO="yes"
22439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22440     break 2
22441   fi
22442 done
22443 done
22444 IFS=$as_save_IFS
22445
22446 fi
22447 fi
22448 XMLTO=$ac_cv_prog_XMLTO
22449 if test -n "$XMLTO"; then
22450   { echo "$as_me:$LINENO: result: $XMLTO" >&5
22451 echo "${ECHO_T}$XMLTO" >&6; }
22452 else
22453   { echo "$as_me:$LINENO: result: no" >&5
22454 echo "${ECHO_T}no" >&6; }
22455 fi
22456
22457
22458
22459
22460 if test x$XMLTO = xyes; then
22461   HAS_XMLTO_TRUE=
22462   HAS_XMLTO_FALSE='#'
22463 else
22464   HAS_XMLTO_TRUE='#'
22465   HAS_XMLTO_FALSE=
22466 fi
22467
22468
22469
22470 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
22471 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
22472 if test "${ac_cv_lib_socket_socket+set}" = set; then
22473   echo $ECHO_N "(cached) $ECHO_C" >&6
22474 else
22475   ac_check_lib_save_LIBS=$LIBS
22476 LIBS="-lsocket  $LIBS"
22477 cat >conftest.$ac_ext <<_ACEOF
22478 /* confdefs.h.  */
22479 _ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h.  */
22483
22484 /* Override any GCC internal prototype to avoid an error.
22485    Use char because int might match the return type of a GCC
22486    builtin and then its argument prototype would still apply.  */
22487 #ifdef __cplusplus
22488 extern "C"
22489 #endif
22490 char socket ();
22491 int
22492 main ()
22493 {
22494 return socket ();
22495   ;
22496   return 0;
22497 }
22498 _ACEOF
22499 rm -f conftest.$ac_objext conftest$ac_exeext
22500 if { (ac_try="$ac_link"
22501 case "(($ac_try" in
22502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503   *) ac_try_echo=$ac_try;;
22504 esac
22505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22506   (eval "$ac_link") 2>conftest.er1
22507   ac_status=$?
22508   grep -v '^ *+' conftest.er1 >conftest.err
22509   rm -f conftest.er1
22510   cat conftest.err >&5
22511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512   (exit $ac_status); } &&
22513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22514   { (case "(($ac_try" in
22515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516   *) ac_try_echo=$ac_try;;
22517 esac
22518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22519   (eval "$ac_try") 2>&5
22520   ac_status=$?
22521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522   (exit $ac_status); }; } &&
22523          { ac_try='test -s conftest$ac_exeext'
22524   { (case "(($ac_try" in
22525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526   *) ac_try_echo=$ac_try;;
22527 esac
22528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529   (eval "$ac_try") 2>&5
22530   ac_status=$?
22531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532   (exit $ac_status); }; }; then
22533   ac_cv_lib_socket_socket=yes
22534 else
22535   echo "$as_me: failed program was:" >&5
22536 sed 's/^/| /' conftest.$ac_ext >&5
22537
22538         ac_cv_lib_socket_socket=no
22539 fi
22540
22541 rm -f core conftest.err conftest.$ac_objext \
22542       conftest$ac_exeext conftest.$ac_ext
22543 LIBS=$ac_check_lib_save_LIBS
22544 fi
22545 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
22546 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
22547 if test $ac_cv_lib_socket_socket = yes; then
22548   cat >>confdefs.h <<_ACEOF
22549 #define HAVE_LIBSOCKET 1
22550 _ACEOF
22551
22552   LIBS="-lsocket $LIBS"
22553
22554 fi
22555
22556
22557
22558   # Check first for POSIX
22559
22560
22561
22562 ac_ext=c
22563 ac_cpp='$CPP $CPPFLAGS'
22564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22567
22568 acx_pthread_ok=no
22569
22570 # We used to check for pthread.h first, but this fails if pthread.h
22571 # requires special compiler flags (e.g. on True64 or Sequent).
22572 # It gets checked for in the link test anyway.
22573
22574 # First of all, check if the user has set any of the PTHREAD_LIBS,
22575 # etcetera environment variables, and if threads linking works using
22576 # them:
22577 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22578         save_CFLAGS="$CFLAGS"
22579         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22580         save_LIBS="$LIBS"
22581         LIBS="$PTHREAD_LIBS $LIBS"
22582         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22583 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
22584         cat >conftest.$ac_ext <<_ACEOF
22585 /* confdefs.h.  */
22586 _ACEOF
22587 cat confdefs.h >>conftest.$ac_ext
22588 cat >>conftest.$ac_ext <<_ACEOF
22589 /* end confdefs.h.  */
22590
22591 /* Override any GCC internal prototype to avoid an error.
22592    Use char because int might match the return type of a GCC
22593    builtin and then its argument prototype would still apply.  */
22594 #ifdef __cplusplus
22595 extern "C"
22596 #endif
22597 char pthread_join ();
22598 int
22599 main ()
22600 {
22601 return pthread_join ();
22602   ;
22603   return 0;
22604 }
22605 _ACEOF
22606 rm -f conftest.$ac_objext conftest$ac_exeext
22607 if { (ac_try="$ac_link"
22608 case "(($ac_try" in
22609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22610   *) ac_try_echo=$ac_try;;
22611 esac
22612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22613   (eval "$ac_link") 2>conftest.er1
22614   ac_status=$?
22615   grep -v '^ *+' conftest.er1 >conftest.err
22616   rm -f conftest.er1
22617   cat conftest.err >&5
22618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619   (exit $ac_status); } &&
22620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22621   { (case "(($ac_try" in
22622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623   *) ac_try_echo=$ac_try;;
22624 esac
22625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22626   (eval "$ac_try") 2>&5
22627   ac_status=$?
22628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629   (exit $ac_status); }; } &&
22630          { ac_try='test -s conftest$ac_exeext'
22631   { (case "(($ac_try" in
22632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22633   *) ac_try_echo=$ac_try;;
22634 esac
22635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22636   (eval "$ac_try") 2>&5
22637   ac_status=$?
22638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639   (exit $ac_status); }; }; then
22640   acx_pthread_ok=yes
22641 else
22642   echo "$as_me: failed program was:" >&5
22643 sed 's/^/| /' conftest.$ac_ext >&5
22644
22645
22646 fi
22647
22648 rm -f core conftest.err conftest.$ac_objext \
22649       conftest$ac_exeext conftest.$ac_ext
22650         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22651 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22652         if test x"$acx_pthread_ok" = xno; then
22653                 PTHREAD_LIBS=""
22654                 PTHREAD_CFLAGS=""
22655         fi
22656         LIBS="$save_LIBS"
22657         CFLAGS="$save_CFLAGS"
22658 fi
22659
22660 # We must check for the threads library under a number of different
22661 # names; the ordering is very important because some systems
22662 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22663 # libraries is broken (non-POSIX).
22664
22665 # Create a list of thread flags to try.  Items starting with a "-" are
22666 # C compiler flags, and other items are library names, except for "none"
22667 # which indicates that we try without any flags at all.
22668
22669 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
22670
22671 # The ordering *is* (sometimes) important.  Some notes on the
22672 # individual items follow:
22673
22674 # pthreads: AIX (must check this before -lpthread)
22675 # none: in case threads are in libc; should be tried before -Kthread and
22676 #       other compiler flags to prevent continual compiler warnings
22677 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22678 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22679 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22680 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22681 # -pthreads: Solaris/gcc
22682 # -mthreads: Mingw32/gcc, Lynx/gcc
22683 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22684 #      doesn't hurt to check since this sometimes defines pthreads too;
22685 #      also defines -D_REENTRANT)
22686 # pthread: Linux, etcetera
22687 # --thread-safe: KAI C++
22688
22689 case "${host_cpu}-${host_os}" in
22690         *solaris*)
22691
22692         # On Solaris (at least, for some versions), libc contains stubbed
22693         # (non-functional) versions of the pthreads routines, so link-based
22694         # tests will erroneously succeed.  (We need to link with -pthread or
22695         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22696         # a function called by this macro, so we could check for that, but
22697         # who knows whether they'll stub that too in a future libc.)  So,
22698         # we'll just look for -pthreads and -lpthread first:
22699
22700         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22701         ;;
22702 esac
22703
22704 if test x"$acx_pthread_ok" = xno; then
22705 for flag in $acx_pthread_flags; do
22706
22707         case $flag in
22708                 none)
22709                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22710 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
22711                 ;;
22712
22713                 -*)
22714                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22715 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
22716                 PTHREAD_CFLAGS="$flag"
22717                 ;;
22718
22719                 *)
22720                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22721 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
22722                 PTHREAD_LIBS="-l$flag"
22723                 ;;
22724         esac
22725
22726         save_LIBS="$LIBS"
22727         save_CFLAGS="$CFLAGS"
22728         LIBS="$PTHREAD_LIBS $LIBS"
22729         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22730
22731         # Check for various functions.  We must include pthread.h,
22732         # since some functions may be macros.  (On the Sequent, we
22733         # need a special flag -Kthread to make this header compile.)
22734         # We check for pthread_join because it is in -lpthread on IRIX
22735         # while pthread_create is in libc.  We check for pthread_attr_init
22736         # due to DEC craziness with -lpthreads.  We check for
22737         # pthread_cleanup_push because it is one of the few pthread
22738         # functions on Solaris that doesn't have a non-functional libc stub.
22739         # We try pthread_create on general principles.
22740         cat >conftest.$ac_ext <<_ACEOF
22741 /* confdefs.h.  */
22742 _ACEOF
22743 cat confdefs.h >>conftest.$ac_ext
22744 cat >>conftest.$ac_ext <<_ACEOF
22745 /* end confdefs.h.  */
22746 #include <pthread.h>
22747 int
22748 main ()
22749 {
22750 pthread_t th; pthread_join(th, 0);
22751                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22752                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22753   ;
22754   return 0;
22755 }
22756 _ACEOF
22757 rm -f conftest.$ac_objext conftest$ac_exeext
22758 if { (ac_try="$ac_link"
22759 case "(($ac_try" in
22760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22761   *) ac_try_echo=$ac_try;;
22762 esac
22763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22764   (eval "$ac_link") 2>conftest.er1
22765   ac_status=$?
22766   grep -v '^ *+' conftest.er1 >conftest.err
22767   rm -f conftest.er1
22768   cat conftest.err >&5
22769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770   (exit $ac_status); } &&
22771          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22772   { (case "(($ac_try" in
22773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22774   *) ac_try_echo=$ac_try;;
22775 esac
22776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22777   (eval "$ac_try") 2>&5
22778   ac_status=$?
22779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780   (exit $ac_status); }; } &&
22781          { ac_try='test -s conftest$ac_exeext'
22782   { (case "(($ac_try" in
22783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784   *) ac_try_echo=$ac_try;;
22785 esac
22786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22787   (eval "$ac_try") 2>&5
22788   ac_status=$?
22789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790   (exit $ac_status); }; }; then
22791   acx_pthread_ok=yes
22792 else
22793   echo "$as_me: failed program was:" >&5
22794 sed 's/^/| /' conftest.$ac_ext >&5
22795
22796
22797 fi
22798
22799 rm -f core conftest.err conftest.$ac_objext \
22800       conftest$ac_exeext conftest.$ac_ext
22801
22802         LIBS="$save_LIBS"
22803         CFLAGS="$save_CFLAGS"
22804
22805         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22806 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22807         if test "x$acx_pthread_ok" = xyes; then
22808                 break;
22809         fi
22810
22811         PTHREAD_LIBS=""
22812         PTHREAD_CFLAGS=""
22813 done
22814 fi
22815
22816 # Various other checks:
22817 if test "x$acx_pthread_ok" = xyes; then
22818         save_LIBS="$LIBS"
22819         LIBS="$PTHREAD_LIBS $LIBS"
22820         save_CFLAGS="$CFLAGS"
22821         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22822
22823         # Detect AIX lossage: threads are created detached by default
22824         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22825         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22826 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
22827         cat >conftest.$ac_ext <<_ACEOF
22828 /* confdefs.h.  */
22829 _ACEOF
22830 cat confdefs.h >>conftest.$ac_ext
22831 cat >>conftest.$ac_ext <<_ACEOF
22832 /* end confdefs.h.  */
22833 #include <pthread.h>
22834 int
22835 main ()
22836 {
22837 int attr=PTHREAD_CREATE_JOINABLE;
22838   ;
22839   return 0;
22840 }
22841 _ACEOF
22842 rm -f conftest.$ac_objext conftest$ac_exeext
22843 if { (ac_try="$ac_link"
22844 case "(($ac_try" in
22845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22846   *) ac_try_echo=$ac_try;;
22847 esac
22848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22849   (eval "$ac_link") 2>conftest.er1
22850   ac_status=$?
22851   grep -v '^ *+' conftest.er1 >conftest.err
22852   rm -f conftest.er1
22853   cat conftest.err >&5
22854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855   (exit $ac_status); } &&
22856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22857   { (case "(($ac_try" in
22858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22859   *) ac_try_echo=$ac_try;;
22860 esac
22861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22862   (eval "$ac_try") 2>&5
22863   ac_status=$?
22864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865   (exit $ac_status); }; } &&
22866          { ac_try='test -s conftest$ac_exeext'
22867   { (case "(($ac_try" in
22868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22869   *) ac_try_echo=$ac_try;;
22870 esac
22871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22872   (eval "$ac_try") 2>&5
22873   ac_status=$?
22874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875   (exit $ac_status); }; }; then
22876   ok=PTHREAD_CREATE_JOINABLE
22877 else
22878   echo "$as_me: failed program was:" >&5
22879 sed 's/^/| /' conftest.$ac_ext >&5
22880
22881         ok=unknown
22882 fi
22883
22884 rm -f core conftest.err conftest.$ac_objext \
22885       conftest$ac_exeext conftest.$ac_ext
22886         if test x"$ok" = xunknown; then
22887                 cat >conftest.$ac_ext <<_ACEOF
22888 /* confdefs.h.  */
22889 _ACEOF
22890 cat confdefs.h >>conftest.$ac_ext
22891 cat >>conftest.$ac_ext <<_ACEOF
22892 /* end confdefs.h.  */
22893 #include <pthread.h>
22894 int
22895 main ()
22896 {
22897 int attr=PTHREAD_CREATE_UNDETACHED;
22898   ;
22899   return 0;
22900 }
22901 _ACEOF
22902 rm -f conftest.$ac_objext conftest$ac_exeext
22903 if { (ac_try="$ac_link"
22904 case "(($ac_try" in
22905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22906   *) ac_try_echo=$ac_try;;
22907 esac
22908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22909   (eval "$ac_link") 2>conftest.er1
22910   ac_status=$?
22911   grep -v '^ *+' conftest.er1 >conftest.err
22912   rm -f conftest.er1
22913   cat conftest.err >&5
22914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915   (exit $ac_status); } &&
22916          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22917   { (case "(($ac_try" in
22918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22919   *) ac_try_echo=$ac_try;;
22920 esac
22921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22922   (eval "$ac_try") 2>&5
22923   ac_status=$?
22924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925   (exit $ac_status); }; } &&
22926          { ac_try='test -s conftest$ac_exeext'
22927   { (case "(($ac_try" in
22928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22929   *) ac_try_echo=$ac_try;;
22930 esac
22931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22932   (eval "$ac_try") 2>&5
22933   ac_status=$?
22934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935   (exit $ac_status); }; }; then
22936   ok=PTHREAD_CREATE_UNDETACHED
22937 else
22938   echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22940
22941         ok=unknown
22942 fi
22943
22944 rm -f core conftest.err conftest.$ac_objext \
22945       conftest$ac_exeext conftest.$ac_ext
22946         fi
22947         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22948
22949 cat >>confdefs.h <<\_ACEOF
22950 #define PTHREAD_CREATE_JOINABLE $ok
22951 _ACEOF
22952
22953         fi
22954         { echo "$as_me:$LINENO: result: ${ok}" >&5
22955 echo "${ECHO_T}${ok}" >&6; }
22956         if test x"$ok" = xunknown; then
22957                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22958 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22959         fi
22960
22961         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22962 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
22963         flag=no
22964         case "${host_cpu}-${host_os}" in
22965                 *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
22966                 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22967         esac
22968         { echo "$as_me:$LINENO: result: ${flag}" >&5
22969 echo "${ECHO_T}${flag}" >&6; }
22970         if test "x$flag" != xno; then
22971                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22972         fi
22973
22974         LIBS="$save_LIBS"
22975         CFLAGS="$save_CFLAGS"
22976
22977         # More AIX lossage: must compile with cc_r
22978         # Extract the first word of "cc_r", so it can be a program name with args.
22979 set dummy cc_r; ac_word=$2
22980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22982 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22983   echo $ECHO_N "(cached) $ECHO_C" >&6
22984 else
22985   if test -n "$PTHREAD_CC"; then
22986   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22987 else
22988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22989 for as_dir in $PATH
22990 do
22991   IFS=$as_save_IFS
22992   test -z "$as_dir" && as_dir=.
22993   for ac_exec_ext in '' $ac_executable_extensions; do
22994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22995     ac_cv_prog_PTHREAD_CC="cc_r"
22996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22997     break 2
22998   fi
22999 done
23000 done
23001 IFS=$as_save_IFS
23002
23003   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23004 fi
23005 fi
23006 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23007 if test -n "$PTHREAD_CC"; then
23008   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23009 echo "${ECHO_T}$PTHREAD_CC" >&6; }
23010 else
23011   { echo "$as_me:$LINENO: result: no" >&5
23012 echo "${ECHO_T}no" >&6; }
23013 fi
23014
23015
23016 else
23017         PTHREAD_CC="$CC"
23018 fi
23019
23020
23021
23022
23023
23024 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23025 if test x"$acx_pthread_ok" = xyes; then
23026          ot_posix="yes"
23027
23028 cat >>confdefs.h <<\_ACEOF
23029 #define OMNITHREAD_POSIX 1
23030 _ACEOF
23031
23032
23033         :
23034 else
23035         acx_pthread_ok=no
23036
23037     # If no POSIX support found, then check for NT threads
23038     { echo "$as_me:$LINENO: checking for NT threads" >&5
23039 echo $ECHO_N "checking for NT threads... $ECHO_C" >&6; }
23040
23041     cat >conftest.$ac_ext <<_ACEOF
23042
23043         #include <windows.h>
23044         #include <winbase.h>
23045         int main() { InitializeCriticalSection(NULL); return 0; }
23046
23047 _ACEOF
23048 rm -f conftest.$ac_objext conftest$ac_exeext
23049 if { (ac_try="$ac_link"
23050 case "(($ac_try" in
23051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23052   *) ac_try_echo=$ac_try;;
23053 esac
23054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23055   (eval "$ac_link") 2>conftest.er1
23056   ac_status=$?
23057   grep -v '^ *+' conftest.er1 >conftest.err
23058   rm -f conftest.er1
23059   cat conftest.err >&5
23060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061   (exit $ac_status); } &&
23062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23063   { (case "(($ac_try" in
23064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065   *) ac_try_echo=$ac_try;;
23066 esac
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068   (eval "$ac_try") 2>&5
23069   ac_status=$?
23070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071   (exit $ac_status); }; } &&
23072          { ac_try='test -s conftest$ac_exeext'
23073   { (case "(($ac_try" in
23074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075   *) ac_try_echo=$ac_try;;
23076 esac
23077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23078   (eval "$ac_try") 2>&5
23079   ac_status=$?
23080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081   (exit $ac_status); }; }; then
23082
23083         ot_nt="yes"
23084
23085 cat >>confdefs.h <<\_ACEOF
23086 #define OMNITHREAD_NT 1
23087 _ACEOF
23088
23089
23090 else
23091   echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23093
23094         { { echo "$as_me:$LINENO: error: GNU Radio requires POSIX threads.  pthreads not found.
23095 See \`config.log' for more details." >&5
23096 echo "$as_me: error: GNU Radio requires POSIX threads.  pthreads not found.
23097 See \`config.log' for more details." >&2;}
23098    { (exit 1); exit 1; }; }
23099
23100 fi
23101
23102 rm -f core conftest.err conftest.$ac_objext \
23103       conftest$ac_exeext conftest.$ac_ext
23104     { echo "$as_me:$LINENO: result: yes" >&5
23105 echo "${ECHO_T}yes" >&6; }
23106
23107 fi
23108 ac_ext=c
23109 ac_cpp='$CPP $CPPFLAGS'
23110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23113
23114
23115
23116
23117 if test "x$ot_posix" = xyes; then
23118   OMNITHREAD_POSIX_TRUE=
23119   OMNITHREAD_POSIX_FALSE='#'
23120 else
23121   OMNITHREAD_POSIX_TRUE='#'
23122   OMNITHREAD_POSIX_FALSE=
23123 fi
23124
23125
23126
23127 if test "x$ot_nt" = xyes; then
23128   OMNITHREAD_NT_TRUE=
23129   OMNITHREAD_NT_FALSE='#'
23130 else
23131   OMNITHREAD_NT_TRUE='#'
23132   OMNITHREAD_NT_FALSE=
23133 fi
23134
23135
23136   save_LIBS="$LIBS"
23137   { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
23138 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
23139 if test "${ac_cv_search_clock_gettime+set}" = set; then
23140   echo $ECHO_N "(cached) $ECHO_C" >&6
23141 else
23142   ac_func_search_save_LIBS=$LIBS
23143 cat >conftest.$ac_ext <<_ACEOF
23144 /* confdefs.h.  */
23145 _ACEOF
23146 cat confdefs.h >>conftest.$ac_ext
23147 cat >>conftest.$ac_ext <<_ACEOF
23148 /* end confdefs.h.  */
23149
23150 /* Override any GCC internal prototype to avoid an error.
23151    Use char because int might match the return type of a GCC
23152    builtin and then its argument prototype would still apply.  */
23153 #ifdef __cplusplus
23154 extern "C"
23155 #endif
23156 char clock_gettime ();
23157 int
23158 main ()
23159 {
23160 return clock_gettime ();
23161   ;
23162   return 0;
23163 }
23164 _ACEOF
23165 for ac_lib in '' rt; do
23166   if test -z "$ac_lib"; then
23167     ac_res="none required"
23168   else
23169     ac_res=-l$ac_lib
23170     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23171   fi
23172   rm -f conftest.$ac_objext conftest$ac_exeext
23173 if { (ac_try="$ac_link"
23174 case "(($ac_try" in
23175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23176   *) ac_try_echo=$ac_try;;
23177 esac
23178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23179   (eval "$ac_link") 2>conftest.er1
23180   ac_status=$?
23181   grep -v '^ *+' conftest.er1 >conftest.err
23182   rm -f conftest.er1
23183   cat conftest.err >&5
23184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185   (exit $ac_status); } &&
23186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23187   { (case "(($ac_try" in
23188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23189   *) ac_try_echo=$ac_try;;
23190 esac
23191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23192   (eval "$ac_try") 2>&5
23193   ac_status=$?
23194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195   (exit $ac_status); }; } &&
23196          { ac_try='test -s conftest$ac_exeext'
23197   { (case "(($ac_try" in
23198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23199   *) ac_try_echo=$ac_try;;
23200 esac
23201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23202   (eval "$ac_try") 2>&5
23203   ac_status=$?
23204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205   (exit $ac_status); }; }; then
23206   ac_cv_search_clock_gettime=$ac_res
23207 else
23208   echo "$as_me: failed program was:" >&5
23209 sed 's/^/| /' conftest.$ac_ext >&5
23210
23211
23212 fi
23213
23214 rm -f core conftest.err conftest.$ac_objext \
23215       conftest$ac_exeext
23216   if test "${ac_cv_search_clock_gettime+set}" = set; then
23217   break
23218 fi
23219 done
23220 if test "${ac_cv_search_clock_gettime+set}" = set; then
23221   :
23222 else
23223   ac_cv_search_clock_gettime=no
23224 fi
23225 rm conftest.$ac_ext
23226 LIBS=$ac_func_search_save_LIBS
23227 fi
23228 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
23229 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
23230 ac_res=$ac_cv_search_clock_gettime
23231 if test "$ac_res" != no; then
23232   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23233   PTHREAD_LIBS="$PTHREAD_LIBS $LIBS"
23234 fi
23235
23236
23237
23238
23239 for ac_func in clock_gettime gettimeofday nanosleep
23240 do
23241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23242 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23244 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23245   echo $ECHO_N "(cached) $ECHO_C" >&6
23246 else
23247   cat >conftest.$ac_ext <<_ACEOF
23248 /* confdefs.h.  */
23249 _ACEOF
23250 cat confdefs.h >>conftest.$ac_ext
23251 cat >>conftest.$ac_ext <<_ACEOF
23252 /* end confdefs.h.  */
23253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23254    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23255 #define $ac_func innocuous_$ac_func
23256
23257 /* System header to define __stub macros and hopefully few prototypes,
23258     which can conflict with char $ac_func (); below.
23259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23260     <limits.h> exists even on freestanding compilers.  */
23261
23262 #ifdef __STDC__
23263 # include <limits.h>
23264 #else
23265 # include <assert.h>
23266 #endif
23267
23268 #undef $ac_func
23269
23270 /* Override any GCC internal prototype to avoid an error.
23271    Use char because int might match the return type of a GCC
23272    builtin and then its argument prototype would still apply.  */
23273 #ifdef __cplusplus
23274 extern "C"
23275 #endif
23276 char $ac_func ();
23277 /* The GNU C library defines this for functions which it implements
23278     to always fail with ENOSYS.  Some functions are actually named
23279     something starting with __ and the normal name is an alias.  */
23280 #if defined __stub_$ac_func || defined __stub___$ac_func
23281 choke me
23282 #endif
23283
23284 int
23285 main ()
23286 {
23287 return $ac_func ();
23288   ;
23289   return 0;
23290 }
23291 _ACEOF
23292 rm -f conftest.$ac_objext conftest$ac_exeext
23293 if { (ac_try="$ac_link"
23294 case "(($ac_try" in
23295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23296   *) ac_try_echo=$ac_try;;
23297 esac
23298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23299   (eval "$ac_link") 2>conftest.er1
23300   ac_status=$?
23301   grep -v '^ *+' conftest.er1 >conftest.err
23302   rm -f conftest.er1
23303   cat conftest.err >&5
23304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305   (exit $ac_status); } &&
23306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23307   { (case "(($ac_try" in
23308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23309   *) ac_try_echo=$ac_try;;
23310 esac
23311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23312   (eval "$ac_try") 2>&5
23313   ac_status=$?
23314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315   (exit $ac_status); }; } &&
23316          { ac_try='test -s conftest$ac_exeext'
23317   { (case "(($ac_try" in
23318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23319   *) ac_try_echo=$ac_try;;
23320 esac
23321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23322   (eval "$ac_try") 2>&5
23323   ac_status=$?
23324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325   (exit $ac_status); }; }; then
23326   eval "$as_ac_var=yes"
23327 else
23328   echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23330
23331         eval "$as_ac_var=no"
23332 fi
23333
23334 rm -f core conftest.err conftest.$ac_objext \
23335       conftest$ac_exeext conftest.$ac_ext
23336 fi
23337 ac_res=`eval echo '${'$as_ac_var'}'`
23338                { echo "$as_me:$LINENO: result: $ac_res" >&5
23339 echo "${ECHO_T}$ac_res" >&6; }
23340 if test `eval echo '${'$as_ac_var'}'` = yes; then
23341   cat >>confdefs.h <<_ACEOF
23342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23343 _ACEOF
23344
23345 fi
23346 done
23347
23348   LIBS="$save_LIBS"
23349
23350 #AC_SUBST(PTHREAD_CFLAGS)
23351 CFLAGS="${CFLAGS} $PTHREAD_CFLAGS"
23352 CXXFLAGS="${CXXFLAGS} $PTHREAD_CFLAGS"
23353
23354 if test "x$CXX_FOR_BUILD" = x
23355 then
23356   CXX_FOR_BUILD=${CXX}
23357 fi
23358
23359
23360
23361
23362         ac_ext=c
23363 ac_cpp='$CPP $CPPFLAGS'
23364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23367
23368
23369
23370
23371 for ac_header in sys/ipc.h sys/shm.h
23372 do
23373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23375   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23378   echo $ECHO_N "(cached) $ECHO_C" >&6
23379 fi
23380 ac_res=`eval echo '${'$as_ac_Header'}'`
23381                { echo "$as_me:$LINENO: result: $ac_res" >&5
23382 echo "${ECHO_T}$ac_res" >&6; }
23383 else
23384   # Is the header compilable?
23385 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23387 cat >conftest.$ac_ext <<_ACEOF
23388 /* confdefs.h.  */
23389 _ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h.  */
23393 $ac_includes_default
23394 #include <$ac_header>
23395 _ACEOF
23396 rm -f conftest.$ac_objext
23397 if { (ac_try="$ac_compile"
23398 case "(($ac_try" in
23399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23400   *) ac_try_echo=$ac_try;;
23401 esac
23402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23403   (eval "$ac_compile") 2>conftest.er1
23404   ac_status=$?
23405   grep -v '^ *+' conftest.er1 >conftest.err
23406   rm -f conftest.er1
23407   cat conftest.err >&5
23408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409   (exit $ac_status); } &&
23410          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23411   { (case "(($ac_try" in
23412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23413   *) ac_try_echo=$ac_try;;
23414 esac
23415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23416   (eval "$ac_try") 2>&5
23417   ac_status=$?
23418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419   (exit $ac_status); }; } &&
23420          { ac_try='test -s conftest.$ac_objext'
23421   { (case "(($ac_try" in
23422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23423   *) ac_try_echo=$ac_try;;
23424 esac
23425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23426   (eval "$ac_try") 2>&5
23427   ac_status=$?
23428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429   (exit $ac_status); }; }; then
23430   ac_header_compiler=yes
23431 else
23432   echo "$as_me: failed program was:" >&5
23433 sed 's/^/| /' conftest.$ac_ext >&5
23434
23435         ac_header_compiler=no
23436 fi
23437
23438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23440 echo "${ECHO_T}$ac_header_compiler" >&6; }
23441
23442 # Is the header present?
23443 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23445 cat >conftest.$ac_ext <<_ACEOF
23446 /* confdefs.h.  */
23447 _ACEOF
23448 cat confdefs.h >>conftest.$ac_ext
23449 cat >>conftest.$ac_ext <<_ACEOF
23450 /* end confdefs.h.  */
23451 #include <$ac_header>
23452 _ACEOF
23453 if { (ac_try="$ac_cpp conftest.$ac_ext"
23454 case "(($ac_try" in
23455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23456   *) ac_try_echo=$ac_try;;
23457 esac
23458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23459   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23460   ac_status=$?
23461   grep -v '^ *+' conftest.er1 >conftest.err
23462   rm -f conftest.er1
23463   cat conftest.err >&5
23464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465   (exit $ac_status); } >/dev/null; then
23466   if test -s conftest.err; then
23467     ac_cpp_err=$ac_c_preproc_warn_flag
23468     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23469   else
23470     ac_cpp_err=
23471   fi
23472 else
23473   ac_cpp_err=yes
23474 fi
23475 if test -z "$ac_cpp_err"; then
23476   ac_header_preproc=yes
23477 else
23478   echo "$as_me: failed program was:" >&5
23479 sed 's/^/| /' conftest.$ac_ext >&5
23480
23481   ac_header_preproc=no
23482 fi
23483
23484 rm -f conftest.err conftest.$ac_ext
23485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23486 echo "${ECHO_T}$ac_header_preproc" >&6; }
23487
23488 # So?  What about this header?
23489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23490   yes:no: )
23491     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23495     ac_header_preproc=yes
23496     ;;
23497   no:yes:* )
23498     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23500     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23501 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23502     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23504     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23505 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23508     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23510
23511     ;;
23512 esac
23513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23516   echo $ECHO_N "(cached) $ECHO_C" >&6
23517 else
23518   eval "$as_ac_Header=\$ac_header_preproc"
23519 fi
23520 ac_res=`eval echo '${'$as_ac_Header'}'`
23521                { echo "$as_me:$LINENO: result: $ac_res" >&5
23522 echo "${ECHO_T}$ac_res" >&6; }
23523
23524 fi
23525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23526   cat >>confdefs.h <<_ACEOF
23527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23528 _ACEOF
23529
23530 fi
23531
23532 done
23533
23534
23535         save_LIBS="$LIBS"
23536         { echo "$as_me:$LINENO: checking for library containing shmat" >&5
23537 echo $ECHO_N "checking for library containing shmat... $ECHO_C" >&6; }
23538 if test "${ac_cv_search_shmat+set}" = set; then
23539   echo $ECHO_N "(cached) $ECHO_C" >&6
23540 else
23541   ac_func_search_save_LIBS=$LIBS
23542 cat >conftest.$ac_ext <<_ACEOF
23543 /* confdefs.h.  */
23544 _ACEOF
23545 cat confdefs.h >>conftest.$ac_ext
23546 cat >>conftest.$ac_ext <<_ACEOF
23547 /* end confdefs.h.  */
23548
23549 /* Override any GCC internal prototype to avoid an error.
23550    Use char because int might match the return type of a GCC
23551    builtin and then its argument prototype would still apply.  */
23552 #ifdef __cplusplus
23553 extern "C"
23554 #endif
23555 char shmat ();
23556 int
23557 main ()
23558 {
23559 return shmat ();
23560   ;
23561   return 0;
23562 }
23563 _ACEOF
23564 for ac_lib in '' cygipc ipc; do
23565   if test -z "$ac_lib"; then
23566     ac_res="none required"
23567   else
23568     ac_res=-l$ac_lib
23569     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23570   fi
23571   rm -f conftest.$ac_objext conftest$ac_exeext
23572 if { (ac_try="$ac_link"
23573 case "(($ac_try" in
23574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23575   *) ac_try_echo=$ac_try;;
23576 esac
23577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23578   (eval "$ac_link") 2>conftest.er1
23579   ac_status=$?
23580   grep -v '^ *+' conftest.er1 >conftest.err
23581   rm -f conftest.er1
23582   cat conftest.err >&5
23583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584   (exit $ac_status); } &&
23585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23586   { (case "(($ac_try" in
23587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23588   *) ac_try_echo=$ac_try;;
23589 esac
23590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23591   (eval "$ac_try") 2>&5
23592   ac_status=$?
23593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594   (exit $ac_status); }; } &&
23595          { ac_try='test -s conftest$ac_exeext'
23596   { (case "(($ac_try" in
23597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23598   *) ac_try_echo=$ac_try;;
23599 esac
23600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23601   (eval "$ac_try") 2>&5
23602   ac_status=$?
23603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604   (exit $ac_status); }; }; then
23605   ac_cv_search_shmat=$ac_res
23606 else
23607   echo "$as_me: failed program was:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23609
23610
23611 fi
23612
23613 rm -f core conftest.err conftest.$ac_objext \
23614       conftest$ac_exeext
23615   if test "${ac_cv_search_shmat+set}" = set; then
23616   break
23617 fi
23618 done
23619 if test "${ac_cv_search_shmat+set}" = set; then
23620   :
23621 else
23622   ac_cv_search_shmat=no
23623 fi
23624 rm conftest.$ac_ext
23625 LIBS=$ac_func_search_save_LIBS
23626 fi
23627 { echo "$as_me:$LINENO: result: $ac_cv_search_shmat" >&5
23628 echo "${ECHO_T}$ac_cv_search_shmat" >&6; }
23629 ac_res=$ac_cv_search_shmat
23630 if test "$ac_res" != no; then
23631   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23632    IPC_LIBS="$LIBS"
23633 else
23634    { echo "$as_me:$LINENO: WARNING: SystemV IPC support not found. " >&5
23635 echo "$as_me: WARNING: SystemV IPC support not found. " >&2;}
23636
23637 fi
23638
23639         LIBS="$save_LIBS"
23640
23641         ac_ext=c
23642 ac_cpp='$CPP $CPPFLAGS'
23643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23646
23647
23648
23649
23650 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23651 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
23652 if test "${ac_cv_header_stdc+set}" = set; then
23653   echo $ECHO_N "(cached) $ECHO_C" >&6
23654 else
23655   cat >conftest.$ac_ext <<_ACEOF
23656 /* confdefs.h.  */
23657 _ACEOF
23658 cat confdefs.h >>conftest.$ac_ext
23659 cat >>conftest.$ac_ext <<_ACEOF
23660 /* end confdefs.h.  */
23661 #include <stdlib.h>
23662 #include <stdarg.h>
23663 #include <string.h>
23664 #include <float.h>
23665
23666 int
23667 main ()
23668 {
23669
23670   ;
23671   return 0;
23672 }
23673 _ACEOF
23674 rm -f conftest.$ac_objext
23675 if { (ac_try="$ac_compile"
23676 case "(($ac_try" in
23677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23678   *) ac_try_echo=$ac_try;;
23679 esac
23680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23681   (eval "$ac_compile") 2>conftest.er1
23682   ac_status=$?
23683   grep -v '^ *+' conftest.er1 >conftest.err
23684   rm -f conftest.er1
23685   cat conftest.err >&5
23686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687   (exit $ac_status); } &&
23688          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23689   { (case "(($ac_try" in
23690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23691   *) ac_try_echo=$ac_try;;
23692 esac
23693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23694   (eval "$ac_try") 2>&5
23695   ac_status=$?
23696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697   (exit $ac_status); }; } &&
23698          { ac_try='test -s conftest.$ac_objext'
23699   { (case "(($ac_try" in
23700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23701   *) ac_try_echo=$ac_try;;
23702 esac
23703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23704   (eval "$ac_try") 2>&5
23705   ac_status=$?
23706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707   (exit $ac_status); }; }; then
23708   ac_cv_header_stdc=yes
23709 else
23710   echo "$as_me: failed program was:" >&5
23711 sed 's/^/| /' conftest.$ac_ext >&5
23712
23713         ac_cv_header_stdc=no
23714 fi
23715
23716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23717
23718 if test $ac_cv_header_stdc = yes; then
23719   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23720   cat >conftest.$ac_ext <<_ACEOF
23721 /* confdefs.h.  */
23722 _ACEOF
23723 cat confdefs.h >>conftest.$ac_ext
23724 cat >>conftest.$ac_ext <<_ACEOF
23725 /* end confdefs.h.  */
23726 #include <string.h>
23727
23728 _ACEOF
23729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23730   $EGREP "memchr" >/dev/null 2>&1; then
23731   :
23732 else
23733   ac_cv_header_stdc=no
23734 fi
23735 rm -f conftest*
23736
23737 fi
23738
23739 if test $ac_cv_header_stdc = yes; then
23740   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23741   cat >conftest.$ac_ext <<_ACEOF
23742 /* confdefs.h.  */
23743 _ACEOF
23744 cat confdefs.h >>conftest.$ac_ext
23745 cat >>conftest.$ac_ext <<_ACEOF
23746 /* end confdefs.h.  */
23747 #include <stdlib.h>
23748
23749 _ACEOF
23750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23751   $EGREP "free" >/dev/null 2>&1; then
23752   :
23753 else
23754   ac_cv_header_stdc=no
23755 fi
23756 rm -f conftest*
23757
23758 fi
23759
23760 if test $ac_cv_header_stdc = yes; then
23761   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23762   if test "$cross_compiling" = yes; then
23763   :
23764 else
23765   cat >conftest.$ac_ext <<_ACEOF
23766 /* confdefs.h.  */
23767 _ACEOF
23768 cat confdefs.h >>conftest.$ac_ext
23769 cat >>conftest.$ac_ext <<_ACEOF
23770 /* end confdefs.h.  */
23771 #include <ctype.h>
23772 #include <stdlib.h>
23773 #if ((' ' & 0x0FF) == 0x020)
23774 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23775 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23776 #else
23777 # define ISLOWER(c) \
23778                    (('a' <= (c) && (c) <= 'i') \
23779                      || ('j' <= (c) && (c) <= 'r') \
23780                      || ('s' <= (c) && (c) <= 'z'))
23781 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23782 #endif
23783
23784 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23785 int
23786 main ()
23787 {
23788   int i;
23789   for (i = 0; i < 256; i++)
23790     if (XOR (islower (i), ISLOWER (i))
23791         || toupper (i) != TOUPPER (i))
23792       return 2;
23793   return 0;
23794 }
23795 _ACEOF
23796 rm -f conftest$ac_exeext
23797 if { (ac_try="$ac_link"
23798 case "(($ac_try" in
23799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23800   *) ac_try_echo=$ac_try;;
23801 esac
23802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23803   (eval "$ac_link") 2>&5
23804   ac_status=$?
23805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23807   { (case "(($ac_try" in
23808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23809   *) ac_try_echo=$ac_try;;
23810 esac
23811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23812   (eval "$ac_try") 2>&5
23813   ac_status=$?
23814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815   (exit $ac_status); }; }; then
23816   :
23817 else
23818   echo "$as_me: program exited with status $ac_status" >&5
23819 echo "$as_me: failed program was:" >&5
23820 sed 's/^/| /' conftest.$ac_ext >&5
23821
23822 ( exit $ac_status )
23823 ac_cv_header_stdc=no
23824 fi
23825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23826 fi
23827
23828
23829 fi
23830 fi
23831 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
23832 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
23833 if test $ac_cv_header_stdc = yes; then
23834
23835 cat >>confdefs.h <<\_ACEOF
23836 #define STDC_HEADERS 1
23837 _ACEOF
23838
23839 fi
23840
23841 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23842 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
23843 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23844   echo $ECHO_N "(cached) $ECHO_C" >&6
23845 else
23846   cat >conftest.$ac_ext <<_ACEOF
23847 /* confdefs.h.  */
23848 _ACEOF
23849 cat confdefs.h >>conftest.$ac_ext
23850 cat >>conftest.$ac_ext <<_ACEOF
23851 /* end confdefs.h.  */
23852 #include <sys/types.h>
23853 #include <sys/wait.h>
23854 #ifndef WEXITSTATUS
23855 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
23856 #endif
23857 #ifndef WIFEXITED
23858 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23859 #endif
23860
23861 int
23862 main ()
23863 {
23864   int s;
23865   wait (&s);
23866   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23867   ;
23868   return 0;
23869 }
23870 _ACEOF
23871 rm -f conftest.$ac_objext
23872 if { (ac_try="$ac_compile"
23873 case "(($ac_try" in
23874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23875   *) ac_try_echo=$ac_try;;
23876 esac
23877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23878   (eval "$ac_compile") 2>conftest.er1
23879   ac_status=$?
23880   grep -v '^ *+' conftest.er1 >conftest.err
23881   rm -f conftest.er1
23882   cat conftest.err >&5
23883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884   (exit $ac_status); } &&
23885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23886   { (case "(($ac_try" in
23887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23888   *) ac_try_echo=$ac_try;;
23889 esac
23890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23891   (eval "$ac_try") 2>&5
23892   ac_status=$?
23893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894   (exit $ac_status); }; } &&
23895          { ac_try='test -s conftest.$ac_objext'
23896   { (case "(($ac_try" in
23897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898   *) ac_try_echo=$ac_try;;
23899 esac
23900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23901   (eval "$ac_try") 2>&5
23902   ac_status=$?
23903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904   (exit $ac_status); }; }; then
23905   ac_cv_header_sys_wait_h=yes
23906 else
23907   echo "$as_me: failed program was:" >&5
23908 sed 's/^/| /' conftest.$ac_ext >&5
23909
23910         ac_cv_header_sys_wait_h=no
23911 fi
23912
23913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23914 fi
23915 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23916 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
23917 if test $ac_cv_header_sys_wait_h = yes; then
23918
23919 cat >>confdefs.h <<\_ACEOF
23920 #define HAVE_SYS_WAIT_H 1
23921 _ACEOF
23922
23923 fi
23924
23925
23926
23927
23928
23929
23930
23931
23932 for ac_header in fcntl.h limits.h strings.h time.h sys/ioctl.h sys/time.h unistd.h
23933 do
23934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23936   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23939   echo $ECHO_N "(cached) $ECHO_C" >&6
23940 fi
23941 ac_res=`eval echo '${'$as_ac_Header'}'`
23942                { echo "$as_me:$LINENO: result: $ac_res" >&5
23943 echo "${ECHO_T}$ac_res" >&6; }
23944 else
23945   # Is the header compilable?
23946 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23948 cat >conftest.$ac_ext <<_ACEOF
23949 /* confdefs.h.  */
23950 _ACEOF
23951 cat confdefs.h >>conftest.$ac_ext
23952 cat >>conftest.$ac_ext <<_ACEOF
23953 /* end confdefs.h.  */
23954 $ac_includes_default
23955 #include <$ac_header>
23956 _ACEOF
23957 rm -f conftest.$ac_objext
23958 if { (ac_try="$ac_compile"
23959 case "(($ac_try" in
23960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23961   *) ac_try_echo=$ac_try;;
23962 esac
23963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23964   (eval "$ac_compile") 2>conftest.er1
23965   ac_status=$?
23966   grep -v '^ *+' conftest.er1 >conftest.err
23967   rm -f conftest.er1
23968   cat conftest.err >&5
23969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970   (exit $ac_status); } &&
23971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23972   { (case "(($ac_try" in
23973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23974   *) ac_try_echo=$ac_try;;
23975 esac
23976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23977   (eval "$ac_try") 2>&5
23978   ac_status=$?
23979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980   (exit $ac_status); }; } &&
23981          { ac_try='test -s conftest.$ac_objext'
23982   { (case "(($ac_try" in
23983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23984   *) ac_try_echo=$ac_try;;
23985 esac
23986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23987   (eval "$ac_try") 2>&5
23988   ac_status=$?
23989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990   (exit $ac_status); }; }; then
23991   ac_header_compiler=yes
23992 else
23993   echo "$as_me: failed program was:" >&5
23994 sed 's/^/| /' conftest.$ac_ext >&5
23995
23996         ac_header_compiler=no
23997 fi
23998
23999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24000 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24001 echo "${ECHO_T}$ac_header_compiler" >&6; }
24002
24003 # Is the header present?
24004 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24006 cat >conftest.$ac_ext <<_ACEOF
24007 /* confdefs.h.  */
24008 _ACEOF
24009 cat confdefs.h >>conftest.$ac_ext
24010 cat >>conftest.$ac_ext <<_ACEOF
24011 /* end confdefs.h.  */
24012 #include <$ac_header>
24013 _ACEOF
24014 if { (ac_try="$ac_cpp conftest.$ac_ext"
24015 case "(($ac_try" in
24016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24017   *) ac_try_echo=$ac_try;;
24018 esac
24019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24020   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24021   ac_status=$?
24022   grep -v '^ *+' conftest.er1 >conftest.err
24023   rm -f conftest.er1
24024   cat conftest.err >&5
24025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026   (exit $ac_status); } >/dev/null; then
24027   if test -s conftest.err; then
24028     ac_cpp_err=$ac_c_preproc_warn_flag
24029     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24030   else
24031     ac_cpp_err=
24032   fi
24033 else
24034   ac_cpp_err=yes
24035 fi
24036 if test -z "$ac_cpp_err"; then
24037   ac_header_preproc=yes
24038 else
24039   echo "$as_me: failed program was:" >&5
24040 sed 's/^/| /' conftest.$ac_ext >&5
24041
24042   ac_header_preproc=no
24043 fi
24044
24045 rm -f conftest.err conftest.$ac_ext
24046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24047 echo "${ECHO_T}$ac_header_preproc" >&6; }
24048
24049 # So?  What about this header?
24050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24051   yes:no: )
24052     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24056     ac_header_preproc=yes
24057     ;;
24058   no:yes:* )
24059     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24061     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24062 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24063     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24065     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24066 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24069     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24071
24072     ;;
24073 esac
24074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24077   echo $ECHO_N "(cached) $ECHO_C" >&6
24078 else
24079   eval "$as_ac_Header=\$ac_header_preproc"
24080 fi
24081 ac_res=`eval echo '${'$as_ac_Header'}'`
24082                { echo "$as_me:$LINENO: result: $ac_res" >&5
24083 echo "${ECHO_T}$ac_res" >&6; }
24084
24085 fi
24086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24087   cat >>confdefs.h <<_ACEOF
24088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24089 _ACEOF
24090
24091 fi
24092
24093 done
24094
24095
24096
24097
24098
24099 for ac_header in linux/ppdev.h sys/mman.h sys/select.h sys/types.h
24100 do
24101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24103   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24106   echo $ECHO_N "(cached) $ECHO_C" >&6
24107 fi
24108 ac_res=`eval echo '${'$as_ac_Header'}'`
24109                { echo "$as_me:$LINENO: result: $ac_res" >&5
24110 echo "${ECHO_T}$ac_res" >&6; }
24111 else
24112   # Is the header compilable?
24113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24115 cat >conftest.$ac_ext <<_ACEOF
24116 /* confdefs.h.  */
24117 _ACEOF
24118 cat confdefs.h >>conftest.$ac_ext
24119 cat >>conftest.$ac_ext <<_ACEOF
24120 /* end confdefs.h.  */
24121 $ac_includes_default
24122 #include <$ac_header>
24123 _ACEOF
24124 rm -f conftest.$ac_objext
24125 if { (ac_try="$ac_compile"
24126 case "(($ac_try" in
24127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24128   *) ac_try_echo=$ac_try;;
24129 esac
24130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24131   (eval "$ac_compile") 2>conftest.er1
24132   ac_status=$?
24133   grep -v '^ *+' conftest.er1 >conftest.err
24134   rm -f conftest.er1
24135   cat conftest.err >&5
24136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137   (exit $ac_status); } &&
24138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24139   { (case "(($ac_try" in
24140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24141   *) ac_try_echo=$ac_try;;
24142 esac
24143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24144   (eval "$ac_try") 2>&5
24145   ac_status=$?
24146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147   (exit $ac_status); }; } &&
24148          { ac_try='test -s conftest.$ac_objext'
24149   { (case "(($ac_try" in
24150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24151   *) ac_try_echo=$ac_try;;
24152 esac
24153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24154   (eval "$ac_try") 2>&5
24155   ac_status=$?
24156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157   (exit $ac_status); }; }; then
24158   ac_header_compiler=yes
24159 else
24160   echo "$as_me: failed program was:" >&5
24161 sed 's/^/| /' conftest.$ac_ext >&5
24162
24163         ac_header_compiler=no
24164 fi
24165
24166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24168 echo "${ECHO_T}$ac_header_compiler" >&6; }
24169
24170 # Is the header present?
24171 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24173 cat >conftest.$ac_ext <<_ACEOF
24174 /* confdefs.h.  */
24175 _ACEOF
24176 cat confdefs.h >>conftest.$ac_ext
24177 cat >>conftest.$ac_ext <<_ACEOF
24178 /* end confdefs.h.  */
24179 #include <$ac_header>
24180 _ACEOF
24181 if { (ac_try="$ac_cpp conftest.$ac_ext"
24182 case "(($ac_try" in
24183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24184   *) ac_try_echo=$ac_try;;
24185 esac
24186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24187   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24188   ac_status=$?
24189   grep -v '^ *+' conftest.er1 >conftest.err
24190   rm -f conftest.er1
24191   cat conftest.err >&5
24192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193   (exit $ac_status); } >/dev/null; then
24194   if test -s conftest.err; then
24195     ac_cpp_err=$ac_c_preproc_warn_flag
24196     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24197   else
24198     ac_cpp_err=
24199   fi
24200 else
24201   ac_cpp_err=yes
24202 fi
24203 if test -z "$ac_cpp_err"; then
24204   ac_header_preproc=yes
24205 else
24206   echo "$as_me: failed program was:" >&5
24207 sed 's/^/| /' conftest.$ac_ext >&5
24208
24209   ac_header_preproc=no
24210 fi
24211
24212 rm -f conftest.err conftest.$ac_ext
24213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24214 echo "${ECHO_T}$ac_header_preproc" >&6; }
24215
24216 # So?  What about this header?
24217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24218   yes:no: )
24219     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24223     ac_header_preproc=yes
24224     ;;
24225   no:yes:* )
24226     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24228     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24229 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24230     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24232     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24233 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24234     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24236     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24238
24239     ;;
24240 esac
24241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24244   echo $ECHO_N "(cached) $ECHO_C" >&6
24245 else
24246   eval "$as_ac_Header=\$ac_header_preproc"
24247 fi
24248 ac_res=`eval echo '${'$as_ac_Header'}'`
24249                { echo "$as_me:$LINENO: result: $ac_res" >&5
24250 echo "${ECHO_T}$ac_res" >&6; }
24251
24252 fi
24253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24254   cat >>confdefs.h <<_ACEOF
24255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24256 _ACEOF
24257
24258 fi
24259
24260 done
24261
24262
24263
24264
24265 for ac_header in sys/resource.h stdint.h sched.h
24266 do
24267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24269   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24272   echo $ECHO_N "(cached) $ECHO_C" >&6
24273 fi
24274 ac_res=`eval echo '${'$as_ac_Header'}'`
24275                { echo "$as_me:$LINENO: result: $ac_res" >&5
24276 echo "${ECHO_T}$ac_res" >&6; }
24277 else
24278   # Is the header compilable?
24279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24281 cat >conftest.$ac_ext <<_ACEOF
24282 /* confdefs.h.  */
24283 _ACEOF
24284 cat confdefs.h >>conftest.$ac_ext
24285 cat >>conftest.$ac_ext <<_ACEOF
24286 /* end confdefs.h.  */
24287 $ac_includes_default
24288 #include <$ac_header>
24289 _ACEOF
24290 rm -f conftest.$ac_objext
24291 if { (ac_try="$ac_compile"
24292 case "(($ac_try" in
24293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294   *) ac_try_echo=$ac_try;;
24295 esac
24296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297   (eval "$ac_compile") 2>conftest.er1
24298   ac_status=$?
24299   grep -v '^ *+' conftest.er1 >conftest.err
24300   rm -f conftest.er1
24301   cat conftest.err >&5
24302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303   (exit $ac_status); } &&
24304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24305   { (case "(($ac_try" in
24306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24307   *) ac_try_echo=$ac_try;;
24308 esac
24309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24310   (eval "$ac_try") 2>&5
24311   ac_status=$?
24312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313   (exit $ac_status); }; } &&
24314          { ac_try='test -s conftest.$ac_objext'
24315   { (case "(($ac_try" in
24316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24317   *) ac_try_echo=$ac_try;;
24318 esac
24319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24320   (eval "$ac_try") 2>&5
24321   ac_status=$?
24322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323   (exit $ac_status); }; }; then
24324   ac_header_compiler=yes
24325 else
24326   echo "$as_me: failed program was:" >&5
24327 sed 's/^/| /' conftest.$ac_ext >&5
24328
24329         ac_header_compiler=no
24330 fi
24331
24332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24334 echo "${ECHO_T}$ac_header_compiler" >&6; }
24335
24336 # Is the header present?
24337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24339 cat >conftest.$ac_ext <<_ACEOF
24340 /* confdefs.h.  */
24341 _ACEOF
24342 cat confdefs.h >>conftest.$ac_ext
24343 cat >>conftest.$ac_ext <<_ACEOF
24344 /* end confdefs.h.  */
24345 #include <$ac_header>
24346 _ACEOF
24347 if { (ac_try="$ac_cpp conftest.$ac_ext"
24348 case "(($ac_try" in
24349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24350   *) ac_try_echo=$ac_try;;
24351 esac
24352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24353   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24354   ac_status=$?
24355   grep -v '^ *+' conftest.er1 >conftest.err
24356   rm -f conftest.er1
24357   cat conftest.err >&5
24358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359   (exit $ac_status); } >/dev/null; then
24360   if test -s conftest.err; then
24361     ac_cpp_err=$ac_c_preproc_warn_flag
24362     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24363   else
24364     ac_cpp_err=
24365   fi
24366 else
24367   ac_cpp_err=yes
24368 fi
24369 if test -z "$ac_cpp_err"; then
24370   ac_header_preproc=yes
24371 else
24372   echo "$as_me: failed program was:" >&5
24373 sed 's/^/| /' conftest.$ac_ext >&5
24374
24375   ac_header_preproc=no
24376 fi
24377
24378 rm -f conftest.err conftest.$ac_ext
24379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24380 echo "${ECHO_T}$ac_header_preproc" >&6; }
24381
24382 # So?  What about this header?
24383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24384   yes:no: )
24385     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24389     ac_header_preproc=yes
24390     ;;
24391   no:yes:* )
24392     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24394     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24395 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24396     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24398     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24399 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24402     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24404
24405     ;;
24406 esac
24407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24410   echo $ECHO_N "(cached) $ECHO_C" >&6
24411 else
24412   eval "$as_ac_Header=\$ac_header_preproc"
24413 fi
24414 ac_res=`eval echo '${'$as_ac_Header'}'`
24415                { echo "$as_me:$LINENO: result: $ac_res" >&5
24416 echo "${ECHO_T}$ac_res" >&6; }
24417
24418 fi
24419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24420   cat >>confdefs.h <<_ACEOF
24421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24422 _ACEOF
24423
24424 fi
24425
24426 done
24427
24428
24429 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24430 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24431 if test "${ac_cv_c_const+set}" = set; then
24432   echo $ECHO_N "(cached) $ECHO_C" >&6
24433 else
24434   cat >conftest.$ac_ext <<_ACEOF
24435 /* confdefs.h.  */
24436 _ACEOF
24437 cat confdefs.h >>conftest.$ac_ext
24438 cat >>conftest.$ac_ext <<_ACEOF
24439 /* end confdefs.h.  */
24440
24441 int
24442 main ()
24443 {
24444 /* FIXME: Include the comments suggested by Paul. */
24445 #ifndef __cplusplus
24446   /* Ultrix mips cc rejects this.  */
24447   typedef int charset[2];
24448   const charset x;
24449   /* SunOS 4.1.1 cc rejects this.  */
24450   char const *const *ccp;
24451   char **p;
24452   /* NEC SVR4.0.2 mips cc rejects this.  */
24453   struct point {int x, y;};
24454   static struct point const zero = {0,0};
24455   /* AIX XL C 1.02.0.0 rejects this.
24456      It does not let you subtract one const X* pointer from another in
24457      an arm of an if-expression whose if-part is not a constant
24458      expression */
24459   const char *g = "string";
24460   ccp = &g + (g ? g-g : 0);
24461   /* HPUX 7.0 cc rejects these. */
24462   ++ccp;
24463   p = (char**) ccp;
24464   ccp = (char const *const *) p;
24465   { /* SCO 3.2v4 cc rejects this.  */
24466     char *t;
24467     char const *s = 0 ? (char *) 0 : (char const *) 0;
24468
24469     *t++ = 0;
24470     if (s) return 0;
24471   }
24472   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24473     int x[] = {25, 17};
24474     const int *foo = &x[0];
24475     ++foo;
24476   }
24477   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24478     typedef const int *iptr;
24479     iptr p = 0;
24480     ++p;
24481   }
24482   { /* AIX XL C 1.02.0.0 rejects this saying
24483        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24484     struct s { int j; const int *ap[3]; };
24485     struct s *b; b->j = 5;
24486   }
24487   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24488     const int foo = 10;
24489     if (!foo) return 0;
24490   }
24491   return !x[0] && !zero.x;
24492 #endif
24493
24494   ;
24495   return 0;
24496 }
24497 _ACEOF
24498 rm -f conftest.$ac_objext
24499 if { (ac_try="$ac_compile"
24500 case "(($ac_try" in
24501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24502   *) ac_try_echo=$ac_try;;
24503 esac
24504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24505   (eval "$ac_compile") 2>conftest.er1
24506   ac_status=$?
24507   grep -v '^ *+' conftest.er1 >conftest.err
24508   rm -f conftest.er1
24509   cat conftest.err >&5
24510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511   (exit $ac_status); } &&
24512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24513   { (case "(($ac_try" in
24514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24515   *) ac_try_echo=$ac_try;;
24516 esac
24517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24518   (eval "$ac_try") 2>&5
24519   ac_status=$?
24520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521   (exit $ac_status); }; } &&
24522          { ac_try='test -s conftest.$ac_objext'
24523   { (case "(($ac_try" in
24524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24525   *) ac_try_echo=$ac_try;;
24526 esac
24527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24528   (eval "$ac_try") 2>&5
24529   ac_status=$?
24530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531   (exit $ac_status); }; }; then
24532   ac_cv_c_const=yes
24533 else
24534   echo "$as_me: failed program was:" >&5
24535 sed 's/^/| /' conftest.$ac_ext >&5
24536
24537         ac_cv_c_const=no
24538 fi
24539
24540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24541 fi
24542 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24543 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24544 if test $ac_cv_c_const = no; then
24545
24546 cat >>confdefs.h <<\_ACEOF
24547 #define const
24548 _ACEOF
24549
24550 fi
24551
24552 { echo "$as_me:$LINENO: checking for inline" >&5
24553 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24554 if test "${ac_cv_c_inline+set}" = set; then
24555   echo $ECHO_N "(cached) $ECHO_C" >&6
24556 else
24557   ac_cv_c_inline=no
24558 for ac_kw in inline __inline__ __inline; do
24559   cat >conftest.$ac_ext <<_ACEOF
24560 /* confdefs.h.  */
24561 _ACEOF
24562 cat confdefs.h >>conftest.$ac_ext
24563 cat >>conftest.$ac_ext <<_ACEOF
24564 /* end confdefs.h.  */
24565 #ifndef __cplusplus
24566 typedef int foo_t;
24567 static $ac_kw foo_t static_foo () {return 0; }
24568 $ac_kw foo_t foo () {return 0; }
24569 #endif
24570
24571 _ACEOF
24572 rm -f conftest.$ac_objext
24573 if { (ac_try="$ac_compile"
24574 case "(($ac_try" in
24575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24576   *) ac_try_echo=$ac_try;;
24577 esac
24578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24579   (eval "$ac_compile") 2>conftest.er1
24580   ac_status=$?
24581   grep -v '^ *+' conftest.er1 >conftest.err
24582   rm -f conftest.er1
24583   cat conftest.err >&5
24584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585   (exit $ac_status); } &&
24586          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24587   { (case "(($ac_try" in
24588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24589   *) ac_try_echo=$ac_try;;
24590 esac
24591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24592   (eval "$ac_try") 2>&5
24593   ac_status=$?
24594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595   (exit $ac_status); }; } &&
24596          { ac_try='test -s conftest.$ac_objext'
24597   { (case "(($ac_try" in
24598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599   *) ac_try_echo=$ac_try;;
24600 esac
24601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24602   (eval "$ac_try") 2>&5
24603   ac_status=$?
24604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605   (exit $ac_status); }; }; then
24606   ac_cv_c_inline=$ac_kw
24607 else
24608   echo "$as_me: failed program was:" >&5
24609 sed 's/^/| /' conftest.$ac_ext >&5
24610
24611
24612 fi
24613
24614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24615   test "$ac_cv_c_inline" != no && break
24616 done
24617
24618 fi
24619 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24620 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24621
24622
24623 case $ac_cv_c_inline in
24624   inline | yes) ;;
24625   *)
24626     case $ac_cv_c_inline in
24627       no) ac_val=;;
24628       *) ac_val=$ac_cv_c_inline;;
24629     esac
24630     cat >>confdefs.h <<_ACEOF
24631 #ifndef __cplusplus
24632 #define inline $ac_val
24633 #endif
24634 _ACEOF
24635     ;;
24636 esac
24637
24638 { echo "$as_me:$LINENO: checking for size_t" >&5
24639 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24640 if test "${ac_cv_type_size_t+set}" = set; then
24641   echo $ECHO_N "(cached) $ECHO_C" >&6
24642 else
24643   cat >conftest.$ac_ext <<_ACEOF
24644 /* confdefs.h.  */
24645 _ACEOF
24646 cat confdefs.h >>conftest.$ac_ext
24647 cat >>conftest.$ac_ext <<_ACEOF
24648 /* end confdefs.h.  */
24649 $ac_includes_default
24650 typedef size_t ac__type_new_;
24651 int
24652 main ()
24653 {
24654 if ((ac__type_new_ *) 0)
24655   return 0;
24656 if (sizeof (ac__type_new_))
24657   return 0;
24658   ;
24659   return 0;
24660 }
24661 _ACEOF
24662 rm -f conftest.$ac_objext
24663 if { (ac_try="$ac_compile"
24664 case "(($ac_try" in
24665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24666   *) ac_try_echo=$ac_try;;
24667 esac
24668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24669   (eval "$ac_compile") 2>conftest.er1
24670   ac_status=$?
24671   grep -v '^ *+' conftest.er1 >conftest.err
24672   rm -f conftest.er1
24673   cat conftest.err >&5
24674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675   (exit $ac_status); } &&
24676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24677   { (case "(($ac_try" in
24678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24679   *) ac_try_echo=$ac_try;;
24680 esac
24681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24682   (eval "$ac_try") 2>&5
24683   ac_status=$?
24684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685   (exit $ac_status); }; } &&
24686          { ac_try='test -s conftest.$ac_objext'
24687   { (case "(($ac_try" in
24688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24689   *) ac_try_echo=$ac_try;;
24690 esac
24691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24692   (eval "$ac_try") 2>&5
24693   ac_status=$?
24694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24695   (exit $ac_status); }; }; then
24696   ac_cv_type_size_t=yes
24697 else
24698   echo "$as_me: failed program was:" >&5
24699 sed 's/^/| /' conftest.$ac_ext >&5
24700
24701         ac_cv_type_size_t=no
24702 fi
24703
24704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24705 fi
24706 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24707 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24708 if test $ac_cv_type_size_t = yes; then
24709   :
24710 else
24711
24712 cat >>confdefs.h <<_ACEOF
24713 #define size_t unsigned int
24714 _ACEOF
24715
24716 fi
24717
24718 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24719 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24720 if test "${ac_cv_header_time+set}" = set; then
24721   echo $ECHO_N "(cached) $ECHO_C" >&6
24722 else
24723   cat >conftest.$ac_ext <<_ACEOF
24724 /* confdefs.h.  */
24725 _ACEOF
24726 cat confdefs.h >>conftest.$ac_ext
24727 cat >>conftest.$ac_ext <<_ACEOF
24728 /* end confdefs.h.  */
24729 #include <sys/types.h>
24730 #include <sys/time.h>
24731 #include <time.h>
24732
24733 int
24734 main ()
24735 {
24736 if ((struct tm *) 0)
24737 return 0;
24738   ;
24739   return 0;
24740 }
24741 _ACEOF
24742 rm -f conftest.$ac_objext
24743 if { (ac_try="$ac_compile"
24744 case "(($ac_try" in
24745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24746   *) ac_try_echo=$ac_try;;
24747 esac
24748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24749   (eval "$ac_compile") 2>conftest.er1
24750   ac_status=$?
24751   grep -v '^ *+' conftest.er1 >conftest.err
24752   rm -f conftest.er1
24753   cat conftest.err >&5
24754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755   (exit $ac_status); } &&
24756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24757   { (case "(($ac_try" in
24758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24759   *) ac_try_echo=$ac_try;;
24760 esac
24761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24762   (eval "$ac_try") 2>&5
24763   ac_status=$?
24764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765   (exit $ac_status); }; } &&
24766          { ac_try='test -s conftest.$ac_objext'
24767   { (case "(($ac_try" in
24768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24769   *) ac_try_echo=$ac_try;;
24770 esac
24771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24772   (eval "$ac_try") 2>&5
24773   ac_status=$?
24774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775   (exit $ac_status); }; }; then
24776   ac_cv_header_time=yes
24777 else
24778   echo "$as_me: failed program was:" >&5
24779 sed 's/^/| /' conftest.$ac_ext >&5
24780
24781         ac_cv_header_time=no
24782 fi
24783
24784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24785 fi
24786 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24787 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24788 if test $ac_cv_header_time = yes; then
24789
24790 cat >>confdefs.h <<\_ACEOF
24791 #define TIME_WITH_SYS_TIME 1
24792 _ACEOF
24793
24794 fi
24795
24796 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24797 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24798 if test "${ac_cv_c_bigendian+set}" = set; then
24799   echo $ECHO_N "(cached) $ECHO_C" >&6
24800 else
24801   # See if sys/param.h defines the BYTE_ORDER macro.
24802 cat >conftest.$ac_ext <<_ACEOF
24803 /* confdefs.h.  */
24804 _ACEOF
24805 cat confdefs.h >>conftest.$ac_ext
24806 cat >>conftest.$ac_ext <<_ACEOF
24807 /* end confdefs.h.  */
24808 #include <sys/types.h>
24809 #include <sys/param.h>
24810
24811 int
24812 main ()
24813 {
24814 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24815  bogus endian macros
24816 #endif
24817
24818   ;
24819   return 0;
24820 }
24821 _ACEOF
24822 rm -f conftest.$ac_objext
24823 if { (ac_try="$ac_compile"
24824 case "(($ac_try" in
24825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24826   *) ac_try_echo=$ac_try;;
24827 esac
24828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24829   (eval "$ac_compile") 2>conftest.er1
24830   ac_status=$?
24831   grep -v '^ *+' conftest.er1 >conftest.err
24832   rm -f conftest.er1
24833   cat conftest.err >&5
24834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835   (exit $ac_status); } &&
24836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24837   { (case "(($ac_try" in
24838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24839   *) ac_try_echo=$ac_try;;
24840 esac
24841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24842   (eval "$ac_try") 2>&5
24843   ac_status=$?
24844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845   (exit $ac_status); }; } &&
24846          { ac_try='test -s conftest.$ac_objext'
24847   { (case "(($ac_try" in
24848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24849   *) ac_try_echo=$ac_try;;
24850 esac
24851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24852   (eval "$ac_try") 2>&5
24853   ac_status=$?
24854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24855   (exit $ac_status); }; }; then
24856   # It does; now see whether it defined to BIG_ENDIAN or not.
24857 cat >conftest.$ac_ext <<_ACEOF
24858 /* confdefs.h.  */
24859 _ACEOF
24860 cat confdefs.h >>conftest.$ac_ext
24861 cat >>conftest.$ac_ext <<_ACEOF
24862 /* end confdefs.h.  */
24863 #include <sys/types.h>
24864 #include <sys/param.h>
24865
24866 int
24867 main ()
24868 {
24869 #if BYTE_ORDER != BIG_ENDIAN
24870  not big endian
24871 #endif
24872
24873   ;
24874   return 0;
24875 }
24876 _ACEOF
24877 rm -f conftest.$ac_objext
24878 if { (ac_try="$ac_compile"
24879 case "(($ac_try" in
24880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24881   *) ac_try_echo=$ac_try;;
24882 esac
24883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24884   (eval "$ac_compile") 2>conftest.er1
24885   ac_status=$?
24886   grep -v '^ *+' conftest.er1 >conftest.err
24887   rm -f conftest.er1
24888   cat conftest.err >&5
24889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890   (exit $ac_status); } &&
24891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24892   { (case "(($ac_try" in
24893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24894   *) ac_try_echo=$ac_try;;
24895 esac
24896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24897   (eval "$ac_try") 2>&5
24898   ac_status=$?
24899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900   (exit $ac_status); }; } &&
24901          { ac_try='test -s conftest.$ac_objext'
24902   { (case "(($ac_try" in
24903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24904   *) ac_try_echo=$ac_try;;
24905 esac
24906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24907   (eval "$ac_try") 2>&5
24908   ac_status=$?
24909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910   (exit $ac_status); }; }; then
24911   ac_cv_c_bigendian=yes
24912 else
24913   echo "$as_me: failed program was:" >&5
24914 sed 's/^/| /' conftest.$ac_ext >&5
24915
24916         ac_cv_c_bigendian=no
24917 fi
24918
24919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24920 else
24921   echo "$as_me: failed program was:" >&5
24922 sed 's/^/| /' conftest.$ac_ext >&5
24923
24924         # It does not; compile a test program.
24925 if test "$cross_compiling" = yes; then
24926   # try to guess the endianness by grepping values into an object file
24927   ac_cv_c_bigendian=unknown
24928   cat >conftest.$ac_ext <<_ACEOF
24929 /* confdefs.h.  */
24930 _ACEOF
24931 cat confdefs.h >>conftest.$ac_ext
24932 cat >>conftest.$ac_ext <<_ACEOF
24933 /* end confdefs.h.  */
24934 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24935 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24936 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
24937 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24938 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24939 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
24940 int
24941 main ()
24942 {
24943  _ascii (); _ebcdic ();
24944   ;
24945   return 0;
24946 }
24947 _ACEOF
24948 rm -f conftest.$ac_objext
24949 if { (ac_try="$ac_compile"
24950 case "(($ac_try" in
24951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24952   *) ac_try_echo=$ac_try;;
24953 esac
24954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24955   (eval "$ac_compile") 2>conftest.er1
24956   ac_status=$?
24957   grep -v '^ *+' conftest.er1 >conftest.err
24958   rm -f conftest.er1
24959   cat conftest.err >&5
24960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961   (exit $ac_status); } &&
24962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24963   { (case "(($ac_try" in
24964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24965   *) ac_try_echo=$ac_try;;
24966 esac
24967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24968   (eval "$ac_try") 2>&5
24969   ac_status=$?
24970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971   (exit $ac_status); }; } &&
24972          { ac_try='test -s conftest.$ac_objext'
24973   { (case "(($ac_try" in
24974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24975   *) ac_try_echo=$ac_try;;
24976 esac
24977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24978   (eval "$ac_try") 2>&5
24979   ac_status=$?
24980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981   (exit $ac_status); }; }; then
24982   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
24983   ac_cv_c_bigendian=yes
24984 fi
24985 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24986   if test "$ac_cv_c_bigendian" = unknown; then
24987     ac_cv_c_bigendian=no
24988   else
24989     # finding both strings is unlikely to happen, but who knows?
24990     ac_cv_c_bigendian=unknown
24991   fi
24992 fi
24993 else
24994   echo "$as_me: failed program was:" >&5
24995 sed 's/^/| /' conftest.$ac_ext >&5
24996
24997
24998 fi
24999
25000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25001 else
25002   cat >conftest.$ac_ext <<_ACEOF
25003 /* confdefs.h.  */
25004 _ACEOF
25005 cat confdefs.h >>conftest.$ac_ext
25006 cat >>conftest.$ac_ext <<_ACEOF
25007 /* end confdefs.h.  */
25008 $ac_includes_default
25009 int
25010 main ()
25011 {
25012
25013   /* Are we little or big endian?  From Harbison&Steele.  */
25014   union
25015   {
25016     long int l;
25017     char c[sizeof (long int)];
25018   } u;
25019   u.l = 1;
25020   return u.c[sizeof (long int) - 1] == 1;
25021
25022   ;
25023   return 0;
25024 }
25025 _ACEOF
25026 rm -f conftest$ac_exeext
25027 if { (ac_try="$ac_link"
25028 case "(($ac_try" in
25029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030   *) ac_try_echo=$ac_try;;
25031 esac
25032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033   (eval "$ac_link") 2>&5
25034   ac_status=$?
25035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25037   { (case "(($ac_try" in
25038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25039   *) ac_try_echo=$ac_try;;
25040 esac
25041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25042   (eval "$ac_try") 2>&5
25043   ac_status=$?
25044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045   (exit $ac_status); }; }; then
25046   ac_cv_c_bigendian=no
25047 else
25048   echo "$as_me: program exited with status $ac_status" >&5
25049 echo "$as_me: failed program was:" >&5
25050 sed 's/^/| /' conftest.$ac_ext >&5
25051
25052 ( exit $ac_status )
25053 ac_cv_c_bigendian=yes
25054 fi
25055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25056 fi
25057
25058
25059 fi
25060
25061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25062 fi
25063 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25064 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25065 case $ac_cv_c_bigendian in
25066   yes)
25067
25068 cat >>confdefs.h <<\_ACEOF
25069 #define WORDS_BIGENDIAN 1
25070 _ACEOF
25071  ;;
25072   no)
25073      ;;
25074   *)
25075     { { echo "$as_me:$LINENO: error: unknown endianness
25076 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
25077 echo "$as_me: error: unknown endianness
25078 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
25079    { (exit 1); exit 1; }; } ;;
25080 esac
25081
25082 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25083 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25084 if test "${ac_cv_struct_tm+set}" = set; then
25085   echo $ECHO_N "(cached) $ECHO_C" >&6
25086 else
25087   cat >conftest.$ac_ext <<_ACEOF
25088 /* confdefs.h.  */
25089 _ACEOF
25090 cat confdefs.h >>conftest.$ac_ext
25091 cat >>conftest.$ac_ext <<_ACEOF
25092 /* end confdefs.h.  */
25093 #include <sys/types.h>
25094 #include <time.h>
25095
25096 int
25097 main ()
25098 {
25099 struct tm *tp; tp->tm_sec;
25100   ;
25101   return 0;
25102 }
25103 _ACEOF
25104 rm -f conftest.$ac_objext
25105 if { (ac_try="$ac_compile"
25106 case "(($ac_try" in
25107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25108   *) ac_try_echo=$ac_try;;
25109 esac
25110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25111   (eval "$ac_compile") 2>conftest.er1
25112   ac_status=$?
25113   grep -v '^ *+' conftest.er1 >conftest.err
25114   rm -f conftest.er1
25115   cat conftest.err >&5
25116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117   (exit $ac_status); } &&
25118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25119   { (case "(($ac_try" in
25120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25121   *) ac_try_echo=$ac_try;;
25122 esac
25123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25124   (eval "$ac_try") 2>&5
25125   ac_status=$?
25126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127   (exit $ac_status); }; } &&
25128          { ac_try='test -s conftest.$ac_objext'
25129   { (case "(($ac_try" in
25130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25131   *) ac_try_echo=$ac_try;;
25132 esac
25133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25134   (eval "$ac_try") 2>&5
25135   ac_status=$?
25136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137   (exit $ac_status); }; }; then
25138   ac_cv_struct_tm=time.h
25139 else
25140   echo "$as_me: failed program was:" >&5
25141 sed 's/^/| /' conftest.$ac_ext >&5
25142
25143         ac_cv_struct_tm=sys/time.h
25144 fi
25145
25146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25147 fi
25148 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25149 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25150 if test $ac_cv_struct_tm = sys/time.h; then
25151
25152 cat >>confdefs.h <<\_ACEOF
25153 #define TM_IN_SYS_TIME 1
25154 _ACEOF
25155
25156 fi
25157
25158
25159 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
25160 # for constant arguments.  Useless!
25161 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
25162 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
25163 if test "${ac_cv_working_alloca_h+set}" = set; then
25164   echo $ECHO_N "(cached) $ECHO_C" >&6
25165 else
25166   cat >conftest.$ac_ext <<_ACEOF
25167 /* confdefs.h.  */
25168 _ACEOF
25169 cat confdefs.h >>conftest.$ac_ext
25170 cat >>conftest.$ac_ext <<_ACEOF
25171 /* end confdefs.h.  */
25172 #include <alloca.h>
25173 int
25174 main ()
25175 {
25176 char *p = (char *) alloca (2 * sizeof (int));
25177                           if (p) return 0;
25178   ;
25179   return 0;
25180 }
25181 _ACEOF
25182 rm -f conftest.$ac_objext conftest$ac_exeext
25183 if { (ac_try="$ac_link"
25184 case "(($ac_try" in
25185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25186   *) ac_try_echo=$ac_try;;
25187 esac
25188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25189   (eval "$ac_link") 2>conftest.er1
25190   ac_status=$?
25191   grep -v '^ *+' conftest.er1 >conftest.err
25192   rm -f conftest.er1
25193   cat conftest.err >&5
25194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195   (exit $ac_status); } &&
25196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25197   { (case "(($ac_try" in
25198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25199   *) ac_try_echo=$ac_try;;
25200 esac
25201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25202   (eval "$ac_try") 2>&5
25203   ac_status=$?
25204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205   (exit $ac_status); }; } &&
25206          { ac_try='test -s conftest$ac_exeext'
25207   { (case "(($ac_try" in
25208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25209   *) ac_try_echo=$ac_try;;
25210 esac
25211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25212   (eval "$ac_try") 2>&5
25213   ac_status=$?
25214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215   (exit $ac_status); }; }; then
25216   ac_cv_working_alloca_h=yes
25217 else
25218   echo "$as_me: failed program was:" >&5
25219 sed 's/^/| /' conftest.$ac_ext >&5
25220
25221         ac_cv_working_alloca_h=no
25222 fi
25223
25224 rm -f core conftest.err conftest.$ac_objext \
25225       conftest$ac_exeext conftest.$ac_ext
25226 fi
25227 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
25228 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
25229 if test $ac_cv_working_alloca_h = yes; then
25230
25231 cat >>confdefs.h <<\_ACEOF
25232 #define HAVE_ALLOCA_H 1
25233 _ACEOF
25234
25235 fi
25236
25237 { echo "$as_me:$LINENO: checking for alloca" >&5
25238 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
25239 if test "${ac_cv_func_alloca_works+set}" = set; then
25240   echo $ECHO_N "(cached) $ECHO_C" >&6
25241 else
25242   cat >conftest.$ac_ext <<_ACEOF
25243 /* confdefs.h.  */
25244 _ACEOF
25245 cat confdefs.h >>conftest.$ac_ext
25246 cat >>conftest.$ac_ext <<_ACEOF
25247 /* end confdefs.h.  */
25248 #ifdef __GNUC__
25249 # define alloca __builtin_alloca
25250 #else
25251 # ifdef _MSC_VER
25252 #  include <malloc.h>
25253 #  define alloca _alloca
25254 # else
25255 #  if HAVE_ALLOCA_H
25256 #   include <alloca.h>
25257 #  else
25258 #   ifdef _AIX
25259  #pragma alloca
25260 #   else
25261 #    ifndef alloca /* predefined by HP cc +Olibcalls */
25262 char *alloca ();
25263 #    endif
25264 #   endif
25265 #  endif
25266 # endif
25267 #endif
25268
25269 int
25270 main ()
25271 {
25272 char *p = (char *) alloca (1);
25273                                     if (p) return 0;
25274   ;
25275   return 0;
25276 }
25277 _ACEOF
25278 rm -f conftest.$ac_objext conftest$ac_exeext
25279 if { (ac_try="$ac_link"
25280 case "(($ac_try" in
25281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25282   *) ac_try_echo=$ac_try;;
25283 esac
25284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25285   (eval "$ac_link") 2>conftest.er1
25286   ac_status=$?
25287   grep -v '^ *+' conftest.er1 >conftest.err
25288   rm -f conftest.er1
25289   cat conftest.err >&5
25290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291   (exit $ac_status); } &&
25292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25293   { (case "(($ac_try" in
25294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25295   *) ac_try_echo=$ac_try;;
25296 esac
25297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25298   (eval "$ac_try") 2>&5
25299   ac_status=$?
25300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301   (exit $ac_status); }; } &&
25302          { ac_try='test -s conftest$ac_exeext'
25303   { (case "(($ac_try" in
25304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25305   *) ac_try_echo=$ac_try;;
25306 esac
25307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25308   (eval "$ac_try") 2>&5
25309   ac_status=$?
25310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311   (exit $ac_status); }; }; then
25312   ac_cv_func_alloca_works=yes
25313 else
25314   echo "$as_me: failed program was:" >&5
25315 sed 's/^/| /' conftest.$ac_ext >&5
25316
25317         ac_cv_func_alloca_works=no
25318 fi
25319
25320 rm -f core conftest.err conftest.$ac_objext \
25321       conftest$ac_exeext conftest.$ac_ext
25322 fi
25323 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
25324 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
25325
25326 if test $ac_cv_func_alloca_works = yes; then
25327
25328 cat >>confdefs.h <<\_ACEOF
25329 #define HAVE_ALLOCA 1
25330 _ACEOF
25331
25332 else
25333   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25334 # that cause trouble.  Some versions do not even contain alloca or
25335 # contain a buggy version.  If you still want to use their alloca,
25336 # use ar to extract alloca.o from them instead of compiling alloca.c.
25337
25338 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25339
25340 cat >>confdefs.h <<\_ACEOF
25341 #define C_ALLOCA 1
25342 _ACEOF
25343
25344
25345 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
25346 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
25347 if test "${ac_cv_os_cray+set}" = set; then
25348   echo $ECHO_N "(cached) $ECHO_C" >&6
25349 else
25350   cat >conftest.$ac_ext <<_ACEOF
25351 /* confdefs.h.  */
25352 _ACEOF
25353 cat confdefs.h >>conftest.$ac_ext
25354 cat >>conftest.$ac_ext <<_ACEOF
25355 /* end confdefs.h.  */
25356 #if defined CRAY && ! defined CRAY2
25357 webecray
25358 #else
25359 wenotbecray
25360 #endif
25361
25362 _ACEOF
25363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25364   $EGREP "webecray" >/dev/null 2>&1; then
25365   ac_cv_os_cray=yes
25366 else
25367   ac_cv_os_cray=no
25368 fi
25369 rm -f conftest*
25370
25371 fi
25372 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25373 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25374 if test $ac_cv_os_cray = yes; then
25375   for ac_func in _getb67 GETB67 getb67; do
25376     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25380   echo $ECHO_N "(cached) $ECHO_C" >&6
25381 else
25382   cat >conftest.$ac_ext <<_ACEOF
25383 /* confdefs.h.  */
25384 _ACEOF
25385 cat confdefs.h >>conftest.$ac_ext
25386 cat >>conftest.$ac_ext <<_ACEOF
25387 /* end confdefs.h.  */
25388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25390 #define $ac_func innocuous_$ac_func
25391
25392 /* System header to define __stub macros and hopefully few prototypes,
25393     which can conflict with char $ac_func (); below.
25394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25395     <limits.h> exists even on freestanding compilers.  */
25396
25397 #ifdef __STDC__
25398 # include <limits.h>
25399 #else
25400 # include <assert.h>
25401 #endif
25402
25403 #undef $ac_func
25404
25405 /* Override any GCC internal prototype to avoid an error.
25406    Use char because int might match the return type of a GCC
25407    builtin and then its argument prototype would still apply.  */
25408 #ifdef __cplusplus
25409 extern "C"
25410 #endif
25411 char $ac_func ();
25412 /* The GNU C library defines this for functions which it implements
25413     to always fail with ENOSYS.  Some functions are actually named
25414     something starting with __ and the normal name is an alias.  */
25415 #if defined __stub_$ac_func || defined __stub___$ac_func
25416 choke me
25417 #endif
25418
25419 int
25420 main ()
25421 {
25422 return $ac_func ();
25423   ;
25424   return 0;
25425 }
25426 _ACEOF
25427 rm -f conftest.$ac_objext conftest$ac_exeext
25428 if { (ac_try="$ac_link"
25429 case "(($ac_try" in
25430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25431   *) ac_try_echo=$ac_try;;
25432 esac
25433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25434   (eval "$ac_link") 2>conftest.er1
25435   ac_status=$?
25436   grep -v '^ *+' conftest.er1 >conftest.err
25437   rm -f conftest.er1
25438   cat conftest.err >&5
25439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440   (exit $ac_status); } &&
25441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25442   { (case "(($ac_try" in
25443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25444   *) ac_try_echo=$ac_try;;
25445 esac
25446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25447   (eval "$ac_try") 2>&5
25448   ac_status=$?
25449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450   (exit $ac_status); }; } &&
25451          { ac_try='test -s conftest$ac_exeext'
25452   { (case "(($ac_try" in
25453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25454   *) ac_try_echo=$ac_try;;
25455 esac
25456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25457   (eval "$ac_try") 2>&5
25458   ac_status=$?
25459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460   (exit $ac_status); }; }; then
25461   eval "$as_ac_var=yes"
25462 else
25463   echo "$as_me: failed program was:" >&5
25464 sed 's/^/| /' conftest.$ac_ext >&5
25465
25466         eval "$as_ac_var=no"
25467 fi
25468
25469 rm -f core conftest.err conftest.$ac_objext \
25470       conftest$ac_exeext conftest.$ac_ext
25471 fi
25472 ac_res=`eval echo '${'$as_ac_var'}'`
25473                { echo "$as_me:$LINENO: result: $ac_res" >&5
25474 echo "${ECHO_T}$ac_res" >&6; }
25475 if test `eval echo '${'$as_ac_var'}'` = yes; then
25476
25477 cat >>confdefs.h <<_ACEOF
25478 #define CRAY_STACKSEG_END $ac_func
25479 _ACEOF
25480
25481     break
25482 fi
25483
25484   done
25485 fi
25486
25487 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25488 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25489 if test "${ac_cv_c_stack_direction+set}" = set; then
25490   echo $ECHO_N "(cached) $ECHO_C" >&6
25491 else
25492   if test "$cross_compiling" = yes; then
25493   ac_cv_c_stack_direction=0
25494 else
25495   cat >conftest.$ac_ext <<_ACEOF
25496 /* confdefs.h.  */
25497 _ACEOF
25498 cat confdefs.h >>conftest.$ac_ext
25499 cat >>conftest.$ac_ext <<_ACEOF
25500 /* end confdefs.h.  */
25501 $ac_includes_default
25502 int
25503 find_stack_direction ()
25504 {
25505   static char *addr = 0;
25506   auto char dummy;
25507   if (addr == 0)
25508     {
25509       addr = &dummy;
25510       return find_stack_direction ();
25511     }
25512   else
25513     return (&dummy > addr) ? 1 : -1;
25514 }
25515
25516 int
25517 main ()
25518 {
25519   return find_stack_direction () < 0;
25520 }
25521 _ACEOF
25522 rm -f conftest$ac_exeext
25523 if { (ac_try="$ac_link"
25524 case "(($ac_try" in
25525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25526   *) ac_try_echo=$ac_try;;
25527 esac
25528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25529   (eval "$ac_link") 2>&5
25530   ac_status=$?
25531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25533   { (case "(($ac_try" in
25534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25535   *) ac_try_echo=$ac_try;;
25536 esac
25537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25538   (eval "$ac_try") 2>&5
25539   ac_status=$?
25540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541   (exit $ac_status); }; }; then
25542   ac_cv_c_stack_direction=1
25543 else
25544   echo "$as_me: program exited with status $ac_status" >&5
25545 echo "$as_me: failed program was:" >&5
25546 sed 's/^/| /' conftest.$ac_ext >&5
25547
25548 ( exit $ac_status )
25549 ac_cv_c_stack_direction=-1
25550 fi
25551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25552 fi
25553
25554
25555 fi
25556 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25557 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25558
25559 cat >>confdefs.h <<_ACEOF
25560 #define STACK_DIRECTION $ac_cv_c_stack_direction
25561 _ACEOF
25562
25563
25564 fi
25565
25566 { echo "$as_me:$LINENO: checking for function prototypes" >&5
25567 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
25568 if test "$ac_cv_prog_cc_c89" != no; then
25569   { echo "$as_me:$LINENO: result: yes" >&5
25570 echo "${ECHO_T}yes" >&6; }
25571
25572 cat >>confdefs.h <<\_ACEOF
25573 #define PROTOTYPES 1
25574 _ACEOF
25575
25576
25577 cat >>confdefs.h <<\_ACEOF
25578 #define __PROTOTYPES 1
25579 _ACEOF
25580
25581 else
25582   { echo "$as_me:$LINENO: result: no" >&5
25583 echo "${ECHO_T}no" >&6; }
25584 fi
25585
25586 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
25587 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
25588 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
25589   echo $ECHO_N "(cached) $ECHO_C" >&6
25590 else
25591   ac_cv_func_setvbuf_reversed=no
25592    cat >conftest.$ac_ext <<_ACEOF
25593 /* confdefs.h.  */
25594 _ACEOF
25595 cat confdefs.h >>conftest.$ac_ext
25596 cat >>conftest.$ac_ext <<_ACEOF
25597 /* end confdefs.h.  */
25598 #include <stdio.h>
25599 #         if PROTOTYPES
25600            int (setvbuf) (FILE *, int, char *, size_t);
25601 #         endif
25602 int
25603 main ()
25604 {
25605 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
25606   ;
25607   return 0;
25608 }
25609 _ACEOF
25610 rm -f conftest.$ac_objext conftest$ac_exeext
25611 if { (ac_try="$ac_link"
25612 case "(($ac_try" in
25613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25614   *) ac_try_echo=$ac_try;;
25615 esac
25616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25617   (eval "$ac_link") 2>conftest.er1
25618   ac_status=$?
25619   grep -v '^ *+' conftest.er1 >conftest.err
25620   rm -f conftest.er1
25621   cat conftest.err >&5
25622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623   (exit $ac_status); } &&
25624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25625   { (case "(($ac_try" in
25626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25627   *) ac_try_echo=$ac_try;;
25628 esac
25629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25630   (eval "$ac_try") 2>&5
25631   ac_status=$?
25632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633   (exit $ac_status); }; } &&
25634          { ac_try='test -s conftest$ac_exeext'
25635   { (case "(($ac_try" in
25636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25637   *) ac_try_echo=$ac_try;;
25638 esac
25639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25640   (eval "$ac_try") 2>&5
25641   ac_status=$?
25642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643   (exit $ac_status); }; }; then
25644   cat >conftest.$ac_ext <<_ACEOF
25645 /* confdefs.h.  */
25646 _ACEOF
25647 cat confdefs.h >>conftest.$ac_ext
25648 cat >>conftest.$ac_ext <<_ACEOF
25649 /* end confdefs.h.  */
25650 #include <stdio.h>
25651 #            if PROTOTYPES
25652               int (setvbuf) (FILE *, int, char *, size_t);
25653 #            endif
25654 int
25655 main ()
25656 {
25657 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
25658   ;
25659   return 0;
25660 }
25661 _ACEOF
25662 rm -f conftest.$ac_objext conftest$ac_exeext
25663 if { (ac_try="$ac_link"
25664 case "(($ac_try" in
25665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25666   *) ac_try_echo=$ac_try;;
25667 esac
25668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25669   (eval "$ac_link") 2>conftest.er1
25670   ac_status=$?
25671   grep -v '^ *+' conftest.er1 >conftest.err
25672   rm -f conftest.er1
25673   cat conftest.err >&5
25674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675   (exit $ac_status); } &&
25676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25677   { (case "(($ac_try" in
25678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25679   *) ac_try_echo=$ac_try;;
25680 esac
25681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25682   (eval "$ac_try") 2>&5
25683   ac_status=$?
25684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685   (exit $ac_status); }; } &&
25686          { ac_try='test -s conftest$ac_exeext'
25687   { (case "(($ac_try" in
25688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25689   *) ac_try_echo=$ac_try;;
25690 esac
25691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25692   (eval "$ac_try") 2>&5
25693   ac_status=$?
25694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695   (exit $ac_status); }; }; then
25696   # It compiles and links either way, so it must not be declared
25697          # with a prototype and most likely this is a K&R C compiler.
25698          # Try running it.
25699          if test "$cross_compiling" = yes; then
25700   : # Assume setvbuf is not reversed when cross-compiling.
25701 else
25702   cat >conftest.$ac_ext <<_ACEOF
25703 /* confdefs.h.  */
25704 _ACEOF
25705 cat confdefs.h >>conftest.$ac_ext
25706 cat >>conftest.$ac_ext <<_ACEOF
25707 /* end confdefs.h.  */
25708 $ac_includes_default
25709 int
25710 main ()
25711 {
25712 /* This call has the arguments reversed.
25713                    A reversed system may check and see that the address of buf
25714                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
25715                 char buf;
25716                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
25717                   return 1;
25718                 putchar ('\r');
25719                 return 0; /* Non-reversed systems SEGV here.  */
25720   ;
25721   return 0;
25722 }
25723 _ACEOF
25724 rm -f conftest$ac_exeext
25725 if { (ac_try="$ac_link"
25726 case "(($ac_try" in
25727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25728   *) ac_try_echo=$ac_try;;
25729 esac
25730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25731   (eval "$ac_link") 2>&5
25732   ac_status=$?
25733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25735   { (case "(($ac_try" in
25736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25737   *) ac_try_echo=$ac_try;;
25738 esac
25739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25740   (eval "$ac_try") 2>&5
25741   ac_status=$?
25742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743   (exit $ac_status); }; }; then
25744   ac_cv_func_setvbuf_reversed=yes
25745 else
25746   echo "$as_me: program exited with status $ac_status" >&5
25747 echo "$as_me: failed program was:" >&5
25748 sed 's/^/| /' conftest.$ac_ext >&5
25749
25750 fi
25751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25752 fi
25753
25754
25755         ac_cv_func_setvbuf_reversed=yes
25756 else
25757   echo "$as_me: failed program was:" >&5
25758 sed 's/^/| /' conftest.$ac_ext >&5
25759
25760
25761 fi
25762
25763 rm -f core conftest.err conftest.$ac_objext \
25764       conftest$ac_exeext conftest.$ac_ext
25765 else
25766   echo "$as_me: failed program was:" >&5
25767 sed 's/^/| /' conftest.$ac_ext >&5
25768
25769
25770 fi
25771
25772 rm -f core conftest.err conftest.$ac_objext \
25773       conftest$ac_exeext conftest.$ac_ext
25774 fi
25775 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
25776 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
25777 if test $ac_cv_func_setvbuf_reversed = yes; then
25778
25779 cat >>confdefs.h <<\_ACEOF
25780 #define SETVBUF_REVERSED 1
25781 _ACEOF
25782
25783 fi
25784
25785
25786 for ac_func in vprintf
25787 do
25788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25792   echo $ECHO_N "(cached) $ECHO_C" >&6
25793 else
25794   cat >conftest.$ac_ext <<_ACEOF
25795 /* confdefs.h.  */
25796 _ACEOF
25797 cat confdefs.h >>conftest.$ac_ext
25798 cat >>conftest.$ac_ext <<_ACEOF
25799 /* end confdefs.h.  */
25800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25802 #define $ac_func innocuous_$ac_func
25803
25804 /* System header to define __stub macros and hopefully few prototypes,
25805     which can conflict with char $ac_func (); below.
25806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25807     <limits.h> exists even on freestanding compilers.  */
25808
25809 #ifdef __STDC__
25810 # include <limits.h>
25811 #else
25812 # include <assert.h>
25813 #endif
25814
25815 #undef $ac_func
25816
25817 /* Override any GCC internal prototype to avoid an error.
25818    Use char because int might match the return type of a GCC
25819    builtin and then its argument prototype would still apply.  */
25820 #ifdef __cplusplus
25821 extern "C"
25822 #endif
25823 char $ac_func ();
25824 /* The GNU C library defines this for functions which it implements
25825     to always fail with ENOSYS.  Some functions are actually named
25826     something starting with __ and the normal name is an alias.  */
25827 #if defined __stub_$ac_func || defined __stub___$ac_func
25828 choke me
25829 #endif
25830
25831 int
25832 main ()
25833 {
25834 return $ac_func ();
25835   ;
25836   return 0;
25837 }
25838 _ACEOF
25839 rm -f conftest.$ac_objext conftest$ac_exeext
25840 if { (ac_try="$ac_link"
25841 case "(($ac_try" in
25842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25843   *) ac_try_echo=$ac_try;;
25844 esac
25845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25846   (eval "$ac_link") 2>conftest.er1
25847   ac_status=$?
25848   grep -v '^ *+' conftest.er1 >conftest.err
25849   rm -f conftest.er1
25850   cat conftest.err >&5
25851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852   (exit $ac_status); } &&
25853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25854   { (case "(($ac_try" in
25855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25856   *) ac_try_echo=$ac_try;;
25857 esac
25858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25859   (eval "$ac_try") 2>&5
25860   ac_status=$?
25861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862   (exit $ac_status); }; } &&
25863          { ac_try='test -s conftest$ac_exeext'
25864   { (case "(($ac_try" in
25865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25866   *) ac_try_echo=$ac_try;;
25867 esac
25868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25869   (eval "$ac_try") 2>&5
25870   ac_status=$?
25871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872   (exit $ac_status); }; }; then
25873   eval "$as_ac_var=yes"
25874 else
25875   echo "$as_me: failed program was:" >&5
25876 sed 's/^/| /' conftest.$ac_ext >&5
25877
25878         eval "$as_ac_var=no"
25879 fi
25880
25881 rm -f core conftest.err conftest.$ac_objext \
25882       conftest$ac_exeext conftest.$ac_ext
25883 fi
25884 ac_res=`eval echo '${'$as_ac_var'}'`
25885                { echo "$as_me:$LINENO: result: $ac_res" >&5
25886 echo "${ECHO_T}$ac_res" >&6; }
25887 if test `eval echo '${'$as_ac_var'}'` = yes; then
25888   cat >>confdefs.h <<_ACEOF
25889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25890 _ACEOF
25891
25892 { echo "$as_me:$LINENO: checking for _doprnt" >&5
25893 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
25894 if test "${ac_cv_func__doprnt+set}" = set; then
25895   echo $ECHO_N "(cached) $ECHO_C" >&6
25896 else
25897   cat >conftest.$ac_ext <<_ACEOF
25898 /* confdefs.h.  */
25899 _ACEOF
25900 cat confdefs.h >>conftest.$ac_ext
25901 cat >>conftest.$ac_ext <<_ACEOF
25902 /* end confdefs.h.  */
25903 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25904    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25905 #define _doprnt innocuous__doprnt
25906
25907 /* System header to define __stub macros and hopefully few prototypes,
25908     which can conflict with char _doprnt (); below.
25909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25910     <limits.h> exists even on freestanding compilers.  */
25911
25912 #ifdef __STDC__
25913 # include <limits.h>
25914 #else
25915 # include <assert.h>
25916 #endif
25917
25918 #undef _doprnt
25919
25920 /* Override any GCC internal prototype to avoid an error.
25921    Use char because int might match the return type of a GCC
25922    builtin and then its argument prototype would still apply.  */
25923 #ifdef __cplusplus
25924 extern "C"
25925 #endif
25926 char _doprnt ();
25927 /* The GNU C library defines this for functions which it implements
25928     to always fail with ENOSYS.  Some functions are actually named
25929     something starting with __ and the normal name is an alias.  */
25930 #if defined __stub__doprnt || defined __stub____doprnt
25931 choke me
25932 #endif
25933
25934 int
25935 main ()
25936 {
25937 return _doprnt ();
25938   ;
25939   return 0;
25940 }
25941 _ACEOF
25942 rm -f conftest.$ac_objext conftest$ac_exeext
25943 if { (ac_try="$ac_link"
25944 case "(($ac_try" in
25945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25946   *) ac_try_echo=$ac_try;;
25947 esac
25948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25949   (eval "$ac_link") 2>conftest.er1
25950   ac_status=$?
25951   grep -v '^ *+' conftest.er1 >conftest.err
25952   rm -f conftest.er1
25953   cat conftest.err >&5
25954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955   (exit $ac_status); } &&
25956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25957   { (case "(($ac_try" in
25958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25959   *) ac_try_echo=$ac_try;;
25960 esac
25961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25962   (eval "$ac_try") 2>&5
25963   ac_status=$?
25964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965   (exit $ac_status); }; } &&
25966          { ac_try='test -s conftest$ac_exeext'
25967   { (case "(($ac_try" in
25968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25969   *) ac_try_echo=$ac_try;;
25970 esac
25971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25972   (eval "$ac_try") 2>&5
25973   ac_status=$?
25974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975   (exit $ac_status); }; }; then
25976   ac_cv_func__doprnt=yes
25977 else
25978   echo "$as_me: failed program was:" >&5
25979 sed 's/^/| /' conftest.$ac_ext >&5
25980
25981         ac_cv_func__doprnt=no
25982 fi
25983
25984 rm -f core conftest.err conftest.$ac_objext \
25985       conftest$ac_exeext conftest.$ac_ext
25986 fi
25987 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25988 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
25989 if test $ac_cv_func__doprnt = yes; then
25990
25991 cat >>confdefs.h <<\_ACEOF
25992 #define HAVE_DOPRNT 1
25993 _ACEOF
25994
25995 fi
25996
25997 fi
25998 done
25999
26000
26001
26002
26003
26004
26005
26006
26007
26008
26009 for ac_func in mmap select socket strcspn strerror strspn getpagesize sysconf
26010 do
26011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26012 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26015   echo $ECHO_N "(cached) $ECHO_C" >&6
26016 else
26017   cat >conftest.$ac_ext <<_ACEOF
26018 /* confdefs.h.  */
26019 _ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h.  */
26023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26025 #define $ac_func innocuous_$ac_func
26026
26027 /* System header to define __stub macros and hopefully few prototypes,
26028     which can conflict with char $ac_func (); below.
26029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26030     <limits.h> exists even on freestanding compilers.  */
26031
26032 #ifdef __STDC__
26033 # include <limits.h>
26034 #else
26035 # include <assert.h>
26036 #endif
26037
26038 #undef $ac_func
26039
26040 /* Override any GCC internal prototype to avoid an error.
26041    Use char because int might match the return type of a GCC
26042    builtin and then its argument prototype would still apply.  */
26043 #ifdef __cplusplus
26044 extern "C"
26045 #endif
26046 char $ac_func ();
26047 /* The GNU C library defines this for functions which it implements
26048     to always fail with ENOSYS.  Some functions are actually named
26049     something starting with __ and the normal name is an alias.  */
26050 #if defined __stub_$ac_func || defined __stub___$ac_func
26051 choke me
26052 #endif
26053
26054 int
26055 main ()
26056 {
26057 return $ac_func ();
26058   ;
26059   return 0;
26060 }
26061 _ACEOF
26062 rm -f conftest.$ac_objext conftest$ac_exeext
26063 if { (ac_try="$ac_link"
26064 case "(($ac_try" in
26065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26066   *) ac_try_echo=$ac_try;;
26067 esac
26068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26069   (eval "$ac_link") 2>conftest.er1
26070   ac_status=$?
26071   grep -v '^ *+' conftest.er1 >conftest.err
26072   rm -f conftest.er1
26073   cat conftest.err >&5
26074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075   (exit $ac_status); } &&
26076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26077   { (case "(($ac_try" in
26078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26079   *) ac_try_echo=$ac_try;;
26080 esac
26081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26082   (eval "$ac_try") 2>&5
26083   ac_status=$?
26084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085   (exit $ac_status); }; } &&
26086          { ac_try='test -s conftest$ac_exeext'
26087   { (case "(($ac_try" in
26088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26089   *) ac_try_echo=$ac_try;;
26090 esac
26091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26092   (eval "$ac_try") 2>&5
26093   ac_status=$?
26094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095   (exit $ac_status); }; }; then
26096   eval "$as_ac_var=yes"
26097 else
26098   echo "$as_me: failed program was:" >&5
26099 sed 's/^/| /' conftest.$ac_ext >&5
26100
26101         eval "$as_ac_var=no"
26102 fi
26103
26104 rm -f core conftest.err conftest.$ac_objext \
26105       conftest$ac_exeext conftest.$ac_ext
26106 fi
26107 ac_res=`eval echo '${'$as_ac_var'}'`
26108                { echo "$as_me:$LINENO: result: $ac_res" >&5
26109 echo "${ECHO_T}$ac_res" >&6; }
26110 if test `eval echo '${'$as_ac_var'}'` = yes; then
26111   cat >>confdefs.h <<_ACEOF
26112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26113 _ACEOF
26114
26115 fi
26116 done
26117
26118
26119
26120
26121
26122 for ac_func in snprintf gettimeofday nanosleep sched_setscheduler
26123 do
26124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26128   echo $ECHO_N "(cached) $ECHO_C" >&6
26129 else
26130   cat >conftest.$ac_ext <<_ACEOF
26131 /* confdefs.h.  */
26132 _ACEOF
26133 cat confdefs.h >>conftest.$ac_ext
26134 cat >>conftest.$ac_ext <<_ACEOF
26135 /* end confdefs.h.  */
26136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26138 #define $ac_func innocuous_$ac_func
26139
26140 /* System header to define __stub macros and hopefully few prototypes,
26141     which can conflict with char $ac_func (); below.
26142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26143     <limits.h> exists even on freestanding compilers.  */
26144
26145 #ifdef __STDC__
26146 # include <limits.h>
26147 #else
26148 # include <assert.h>
26149 #endif
26150
26151 #undef $ac_func
26152
26153 /* Override any GCC internal prototype to avoid an error.
26154    Use char because int might match the return type of a GCC
26155    builtin and then its argument prototype would still apply.  */
26156 #ifdef __cplusplus
26157 extern "C"
26158 #endif
26159 char $ac_func ();
26160 /* The GNU C library defines this for functions which it implements
26161     to always fail with ENOSYS.  Some functions are actually named
26162     something starting with __ and the normal name is an alias.  */
26163 #if defined __stub_$ac_func || defined __stub___$ac_func
26164 choke me
26165 #endif
26166
26167 int
26168 main ()
26169 {
26170 return $ac_func ();
26171   ;
26172   return 0;
26173 }
26174 _ACEOF
26175 rm -f conftest.$ac_objext conftest$ac_exeext
26176 if { (ac_try="$ac_link"
26177 case "(($ac_try" in
26178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26179   *) ac_try_echo=$ac_try;;
26180 esac
26181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26182   (eval "$ac_link") 2>conftest.er1
26183   ac_status=$?
26184   grep -v '^ *+' conftest.er1 >conftest.err
26185   rm -f conftest.er1
26186   cat conftest.err >&5
26187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188   (exit $ac_status); } &&
26189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26190   { (case "(($ac_try" in
26191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26192   *) ac_try_echo=$ac_try;;
26193 esac
26194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26195   (eval "$ac_try") 2>&5
26196   ac_status=$?
26197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198   (exit $ac_status); }; } &&
26199          { ac_try='test -s conftest$ac_exeext'
26200   { (case "(($ac_try" in
26201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26202   *) ac_try_echo=$ac_try;;
26203 esac
26204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26205   (eval "$ac_try") 2>&5
26206   ac_status=$?
26207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208   (exit $ac_status); }; }; then
26209   eval "$as_ac_var=yes"
26210 else
26211   echo "$as_me: failed program was:" >&5
26212 sed 's/^/| /' conftest.$ac_ext >&5
26213
26214         eval "$as_ac_var=no"
26215 fi
26216
26217 rm -f core conftest.err conftest.$ac_objext \
26218       conftest$ac_exeext conftest.$ac_ext
26219 fi
26220 ac_res=`eval echo '${'$as_ac_var'}'`
26221                { echo "$as_me:$LINENO: result: $ac_res" >&5
26222 echo "${ECHO_T}$ac_res" >&6; }
26223 if test `eval echo '${'$as_ac_var'}'` = yes; then
26224   cat >>confdefs.h <<_ACEOF
26225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26226 _ACEOF
26227
26228 fi
26229 done
26230
26231
26232
26233 for ac_func in modf sqrt
26234 do
26235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26236 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26238 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26239   echo $ECHO_N "(cached) $ECHO_C" >&6
26240 else
26241   cat >conftest.$ac_ext <<_ACEOF
26242 /* confdefs.h.  */
26243 _ACEOF
26244 cat confdefs.h >>conftest.$ac_ext
26245 cat >>conftest.$ac_ext <<_ACEOF
26246 /* end confdefs.h.  */
26247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26249 #define $ac_func innocuous_$ac_func
26250
26251 /* System header to define __stub macros and hopefully few prototypes,
26252     which can conflict with char $ac_func (); below.
26253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26254     <limits.h> exists even on freestanding compilers.  */
26255
26256 #ifdef __STDC__
26257 # include <limits.h>
26258 #else
26259 # include <assert.h>
26260 #endif
26261
26262 #undef $ac_func
26263
26264 /* Override any GCC internal prototype to avoid an error.
26265    Use char because int might match the return type of a GCC
26266    builtin and then its argument prototype would still apply.  */
26267 #ifdef __cplusplus
26268 extern "C"
26269 #endif
26270 char $ac_func ();
26271 /* The GNU C library defines this for functions which it implements
26272     to always fail with ENOSYS.  Some functions are actually named
26273     something starting with __ and the normal name is an alias.  */
26274 #if defined __stub_$ac_func || defined __stub___$ac_func
26275 choke me
26276 #endif
26277
26278 int
26279 main ()
26280 {
26281 return $ac_func ();
26282   ;
26283   return 0;
26284 }
26285 _ACEOF
26286 rm -f conftest.$ac_objext conftest$ac_exeext
26287 if { (ac_try="$ac_link"
26288 case "(($ac_try" in
26289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26290   *) ac_try_echo=$ac_try;;
26291 esac
26292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26293   (eval "$ac_link") 2>conftest.er1
26294   ac_status=$?
26295   grep -v '^ *+' conftest.er1 >conftest.err
26296   rm -f conftest.er1
26297   cat conftest.err >&5
26298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299   (exit $ac_status); } &&
26300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26301   { (case "(($ac_try" in
26302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26303   *) ac_try_echo=$ac_try;;
26304 esac
26305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26306   (eval "$ac_try") 2>&5
26307   ac_status=$?
26308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309   (exit $ac_status); }; } &&
26310          { ac_try='test -s conftest$ac_exeext'
26311   { (case "(($ac_try" in
26312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26313   *) ac_try_echo=$ac_try;;
26314 esac
26315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26316   (eval "$ac_try") 2>&5
26317   ac_status=$?
26318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319   (exit $ac_status); }; }; then
26320   eval "$as_ac_var=yes"
26321 else
26322   echo "$as_me: failed program was:" >&5
26323 sed 's/^/| /' conftest.$ac_ext >&5
26324
26325         eval "$as_ac_var=no"
26326 fi
26327
26328 rm -f core conftest.err conftest.$ac_objext \
26329       conftest$ac_exeext conftest.$ac_ext
26330 fi
26331 ac_res=`eval echo '${'$as_ac_var'}'`
26332                { echo "$as_me:$LINENO: result: $ac_res" >&5
26333 echo "${ECHO_T}$ac_res" >&6; }
26334 if test `eval echo '${'$as_ac_var'}'` = yes; then
26335   cat >>confdefs.h <<_ACEOF
26336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26337 _ACEOF
26338
26339 fi
26340 done
26341
26342
26343 { echo "$as_me:$LINENO: checking for sincos in -lm" >&5
26344 echo $ECHO_N "checking for sincos in -lm... $ECHO_C" >&6; }
26345 if test "${ac_cv_lib_m_sincos+set}" = set; then
26346   echo $ECHO_N "(cached) $ECHO_C" >&6
26347 else
26348   ac_check_lib_save_LIBS=$LIBS
26349 LIBS="-lm  $LIBS"
26350 cat >conftest.$ac_ext <<_ACEOF
26351 /* confdefs.h.  */
26352 _ACEOF
26353 cat confdefs.h >>conftest.$ac_ext
26354 cat >>conftest.$ac_ext <<_ACEOF
26355 /* end confdefs.h.  */
26356
26357 /* Override any GCC internal prototype to avoid an error.
26358    Use char because int might match the return type of a GCC
26359    builtin and then its argument prototype would still apply.  */
26360 #ifdef __cplusplus
26361 extern "C"
26362 #endif
26363 char sincos ();
26364 int
26365 main ()
26366 {
26367 return sincos ();
26368   ;
26369   return 0;
26370 }
26371 _ACEOF
26372 rm -f conftest.$ac_objext conftest$ac_exeext
26373 if { (ac_try="$ac_link"
26374 case "(($ac_try" in
26375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26376   *) ac_try_echo=$ac_try;;
26377 esac
26378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26379   (eval "$ac_link") 2>conftest.er1
26380   ac_status=$?
26381   grep -v '^ *+' conftest.er1 >conftest.err
26382   rm -f conftest.er1
26383   cat conftest.err >&5
26384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385   (exit $ac_status); } &&
26386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26387   { (case "(($ac_try" in
26388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26389   *) ac_try_echo=$ac_try;;
26390 esac
26391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26392   (eval "$ac_try") 2>&5
26393   ac_status=$?
26394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395   (exit $ac_status); }; } &&
26396          { ac_try='test -s conftest$ac_exeext'
26397   { (case "(($ac_try" in
26398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26399   *) ac_try_echo=$ac_try;;
26400 esac
26401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26402   (eval "$ac_try") 2>&5
26403   ac_status=$?
26404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405   (exit $ac_status); }; }; then
26406   ac_cv_lib_m_sincos=yes
26407 else
26408   echo "$as_me: failed program was:" >&5
26409 sed 's/^/| /' conftest.$ac_ext >&5
26410
26411         ac_cv_lib_m_sincos=no
26412 fi
26413
26414 rm -f core conftest.err conftest.$ac_objext \
26415       conftest$ac_exeext conftest.$ac_ext
26416 LIBS=$ac_check_lib_save_LIBS
26417 fi
26418 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sincos" >&5
26419 echo "${ECHO_T}$ac_cv_lib_m_sincos" >&6; }
26420 if test $ac_cv_lib_m_sincos = yes; then
26421
26422 cat >>confdefs.h <<\_ACEOF
26423 #define HAVE_SINCOS 1
26424 _ACEOF
26425
26426 fi
26427
26428 { echo "$as_me:$LINENO: checking for sincosf in -lm" >&5
26429 echo $ECHO_N "checking for sincosf in -lm... $ECHO_C" >&6; }
26430 if test "${ac_cv_lib_m_sincosf+set}" = set; then
26431   echo $ECHO_N "(cached) $ECHO_C" >&6
26432 else
26433   ac_check_lib_save_LIBS=$LIBS
26434 LIBS="-lm  $LIBS"
26435 cat >conftest.$ac_ext <<_ACEOF
26436 /* confdefs.h.  */
26437 _ACEOF
26438 cat confdefs.h >>conftest.$ac_ext
26439 cat >>conftest.$ac_ext <<_ACEOF
26440 /* end confdefs.h.  */
26441
26442 /* Override any GCC internal prototype to avoid an error.
26443    Use char because int might match the return type of a GCC
26444    builtin and then its argument prototype would still apply.  */
26445 #ifdef __cplusplus
26446 extern "C"
26447 #endif
26448 char sincosf ();
26449 int
26450 main ()
26451 {
26452 return sincosf ();
26453   ;
26454   return 0;
26455 }
26456 _ACEOF
26457 rm -f conftest.$ac_objext conftest$ac_exeext
26458 if { (ac_try="$ac_link"
26459 case "(($ac_try" in
26460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26461   *) ac_try_echo=$ac_try;;
26462 esac
26463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26464   (eval "$ac_link") 2>conftest.er1
26465   ac_status=$?
26466   grep -v '^ *+' conftest.er1 >conftest.err
26467   rm -f conftest.er1
26468   cat conftest.err >&5
26469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26470   (exit $ac_status); } &&
26471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26472   { (case "(($ac_try" in
26473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26474   *) ac_try_echo=$ac_try;;
26475 esac
26476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26477   (eval "$ac_try") 2>&5
26478   ac_status=$?
26479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480   (exit $ac_status); }; } &&
26481          { ac_try='test -s conftest$ac_exeext'
26482   { (case "(($ac_try" in
26483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26484   *) ac_try_echo=$ac_try;;
26485 esac
26486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26487   (eval "$ac_try") 2>&5
26488   ac_status=$?
26489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490   (exit $ac_status); }; }; then
26491   ac_cv_lib_m_sincosf=yes
26492 else
26493   echo "$as_me: failed program was:" >&5
26494 sed 's/^/| /' conftest.$ac_ext >&5
26495
26496         ac_cv_lib_m_sincosf=no
26497 fi
26498
26499 rm -f core conftest.err conftest.$ac_objext \
26500       conftest$ac_exeext conftest.$ac_ext
26501 LIBS=$ac_check_lib_save_LIBS
26502 fi
26503 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sincosf" >&5
26504 echo "${ECHO_T}$ac_cv_lib_m_sincosf" >&6; }
26505 if test $ac_cv_lib_m_sincosf = yes; then
26506
26507 cat >>confdefs.h <<\_ACEOF
26508 #define HAVE_SINCOSF 1
26509 _ACEOF
26510
26511 fi
26512
26513 { echo "$as_me:$LINENO: checking for sinf in -lm" >&5
26514 echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6; }
26515 if test "${ac_cv_lib_m_sinf+set}" = set; then
26516   echo $ECHO_N "(cached) $ECHO_C" >&6
26517 else
26518   ac_check_lib_save_LIBS=$LIBS
26519 LIBS="-lm  $LIBS"
26520 cat >conftest.$ac_ext <<_ACEOF
26521 /* confdefs.h.  */
26522 _ACEOF
26523 cat confdefs.h >>conftest.$ac_ext
26524 cat >>conftest.$ac_ext <<_ACEOF
26525 /* end confdefs.h.  */
26526
26527 /* Override any GCC internal prototype to avoid an error.
26528    Use char because int might match the return type of a GCC
26529    builtin and then its argument prototype would still apply.  */
26530 #ifdef __cplusplus
26531 extern "C"
26532 #endif
26533 char sinf ();
26534 int
26535 main ()
26536 {
26537 return sinf ();
26538   ;
26539   return 0;
26540 }
26541 _ACEOF
26542 rm -f conftest.$ac_objext conftest$ac_exeext
26543 if { (ac_try="$ac_link"
26544 case "(($ac_try" in
26545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26546   *) ac_try_echo=$ac_try;;
26547 esac
26548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26549   (eval "$ac_link") 2>conftest.er1
26550   ac_status=$?
26551   grep -v '^ *+' conftest.er1 >conftest.err
26552   rm -f conftest.er1
26553   cat conftest.err >&5
26554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555   (exit $ac_status); } &&
26556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26557   { (case "(($ac_try" in
26558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26559   *) ac_try_echo=$ac_try;;
26560 esac
26561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26562   (eval "$ac_try") 2>&5
26563   ac_status=$?
26564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565   (exit $ac_status); }; } &&
26566          { ac_try='test -s conftest$ac_exeext'
26567   { (case "(($ac_try" in
26568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26569   *) ac_try_echo=$ac_try;;
26570 esac
26571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26572   (eval "$ac_try") 2>&5
26573   ac_status=$?
26574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575   (exit $ac_status); }; }; then
26576   ac_cv_lib_m_sinf=yes
26577 else
26578   echo "$as_me: failed program was:" >&5
26579 sed 's/^/| /' conftest.$ac_ext >&5
26580
26581         ac_cv_lib_m_sinf=no
26582 fi
26583
26584 rm -f core conftest.err conftest.$ac_objext \
26585       conftest$ac_exeext conftest.$ac_ext
26586 LIBS=$ac_check_lib_save_LIBS
26587 fi
26588 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
26589 echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6; }
26590 if test $ac_cv_lib_m_sinf = yes; then
26591
26592 cat >>confdefs.h <<\_ACEOF
26593 #define HAVE_SINF 1
26594 _ACEOF
26595
26596 fi
26597
26598 { echo "$as_me:$LINENO: checking for cosf in -lm" >&5
26599 echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6; }
26600 if test "${ac_cv_lib_m_cosf+set}" = set; then
26601   echo $ECHO_N "(cached) $ECHO_C" >&6
26602 else
26603   ac_check_lib_save_LIBS=$LIBS
26604 LIBS="-lm  $LIBS"
26605 cat >conftest.$ac_ext <<_ACEOF
26606 /* confdefs.h.  */
26607 _ACEOF
26608 cat confdefs.h >>conftest.$ac_ext
26609 cat >>conftest.$ac_ext <<_ACEOF
26610 /* end confdefs.h.  */
26611
26612 /* Override any GCC internal prototype to avoid an error.
26613    Use char because int might match the return type of a GCC
26614    builtin and then its argument prototype would still apply.  */
26615 #ifdef __cplusplus
26616 extern "C"
26617 #endif
26618 char cosf ();
26619 int
26620 main ()
26621 {
26622 return cosf ();
26623   ;
26624   return 0;
26625 }
26626 _ACEOF
26627 rm -f conftest.$ac_objext conftest$ac_exeext
26628 if { (ac_try="$ac_link"
26629 case "(($ac_try" in
26630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26631   *) ac_try_echo=$ac_try;;
26632 esac
26633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26634   (eval "$ac_link") 2>conftest.er1
26635   ac_status=$?
26636   grep -v '^ *+' conftest.er1 >conftest.err
26637   rm -f conftest.er1
26638   cat conftest.err >&5
26639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640   (exit $ac_status); } &&
26641          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26642   { (case "(($ac_try" in
26643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26644   *) ac_try_echo=$ac_try;;
26645 esac
26646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26647   (eval "$ac_try") 2>&5
26648   ac_status=$?
26649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650   (exit $ac_status); }; } &&
26651          { ac_try='test -s conftest$ac_exeext'
26652   { (case "(($ac_try" in
26653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26654   *) ac_try_echo=$ac_try;;
26655 esac
26656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26657   (eval "$ac_try") 2>&5
26658   ac_status=$?
26659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26660   (exit $ac_status); }; }; then
26661   ac_cv_lib_m_cosf=yes
26662 else
26663   echo "$as_me: failed program was:" >&5
26664 sed 's/^/| /' conftest.$ac_ext >&5
26665
26666         ac_cv_lib_m_cosf=no
26667 fi
26668
26669 rm -f core conftest.err conftest.$ac_objext \
26670       conftest$ac_exeext conftest.$ac_ext
26671 LIBS=$ac_check_lib_save_LIBS
26672 fi
26673 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
26674 echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6; }
26675 if test $ac_cv_lib_m_cosf = yes; then
26676
26677 cat >>confdefs.h <<\_ACEOF
26678 #define HAVE_COSF 1
26679 _ACEOF
26680
26681 fi
26682
26683 { echo "$as_me:$LINENO: checking for trunc in -lm" >&5
26684 echo $ECHO_N "checking for trunc in -lm... $ECHO_C" >&6; }
26685 if test "${ac_cv_lib_m_trunc+set}" = set; then
26686   echo $ECHO_N "(cached) $ECHO_C" >&6
26687 else
26688   ac_check_lib_save_LIBS=$LIBS
26689 LIBS="-lm  $LIBS"
26690 cat >conftest.$ac_ext <<_ACEOF
26691 /* confdefs.h.  */
26692 _ACEOF
26693 cat confdefs.h >>conftest.$ac_ext
26694 cat >>conftest.$ac_ext <<_ACEOF
26695 /* end confdefs.h.  */
26696
26697 /* Override any GCC internal prototype to avoid an error.
26698    Use char because int might match the return type of a GCC
26699    builtin and then its argument prototype would still apply.  */
26700 #ifdef __cplusplus
26701 extern "C"
26702 #endif
26703 char trunc ();
26704 int
26705 main ()
26706 {
26707 return trunc ();
26708   ;
26709   return 0;
26710 }
26711 _ACEOF
26712 rm -f conftest.$ac_objext conftest$ac_exeext
26713 if { (ac_try="$ac_link"
26714 case "(($ac_try" in
26715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26716   *) ac_try_echo=$ac_try;;
26717 esac
26718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26719   (eval "$ac_link") 2>conftest.er1
26720   ac_status=$?
26721   grep -v '^ *+' conftest.er1 >conftest.err
26722   rm -f conftest.er1
26723   cat conftest.err >&5
26724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725   (exit $ac_status); } &&
26726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26727   { (case "(($ac_try" in
26728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26729   *) ac_try_echo=$ac_try;;
26730 esac
26731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26732   (eval "$ac_try") 2>&5
26733   ac_status=$?
26734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735   (exit $ac_status); }; } &&
26736          { ac_try='test -s conftest$ac_exeext'
26737   { (case "(($ac_try" in
26738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26739   *) ac_try_echo=$ac_try;;
26740 esac
26741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26742   (eval "$ac_try") 2>&5
26743   ac_status=$?
26744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745   (exit $ac_status); }; }; then
26746   ac_cv_lib_m_trunc=yes
26747 else
26748   echo "$as_me: failed program was:" >&5
26749 sed 's/^/| /' conftest.$ac_ext >&5
26750
26751         ac_cv_lib_m_trunc=no
26752 fi
26753
26754 rm -f core conftest.err conftest.$ac_objext \
26755       conftest$ac_exeext conftest.$ac_ext
26756 LIBS=$ac_check_lib_save_LIBS
26757 fi
26758 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5
26759 echo "${ECHO_T}$ac_cv_lib_m_trunc" >&6; }
26760 if test $ac_cv_lib_m_trunc = yes; then
26761
26762 cat >>confdefs.h <<\_ACEOF
26763 #define HAVE_TRUNC 1
26764 _ACEOF
26765
26766 fi
26767
26768 { echo "$as_me:$LINENO: checking for exp10 in -lm" >&5
26769 echo $ECHO_N "checking for exp10 in -lm... $ECHO_C" >&6; }
26770 if test "${ac_cv_lib_m_exp10+set}" = set; then
26771   echo $ECHO_N "(cached) $ECHO_C" >&6
26772 else
26773   ac_check_lib_save_LIBS=$LIBS
26774 LIBS="-lm  $LIBS"
26775 cat >conftest.$ac_ext <<_ACEOF
26776 /* confdefs.h.  */
26777 _ACEOF
26778 cat confdefs.h >>conftest.$ac_ext
26779 cat >>conftest.$ac_ext <<_ACEOF
26780 /* end confdefs.h.  */
26781
26782 /* Override any GCC internal prototype to avoid an error.
26783    Use char because int might match the return type of a GCC
26784    builtin and then its argument prototype would still apply.  */
26785 #ifdef __cplusplus
26786 extern "C"
26787 #endif
26788 char exp10 ();
26789 int
26790 main ()
26791 {
26792 return exp10 ();
26793   ;
26794   return 0;
26795 }
26796 _ACEOF
26797 rm -f conftest.$ac_objext conftest$ac_exeext
26798 if { (ac_try="$ac_link"
26799 case "(($ac_try" in
26800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26801   *) ac_try_echo=$ac_try;;
26802 esac
26803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26804   (eval "$ac_link") 2>conftest.er1
26805   ac_status=$?
26806   grep -v '^ *+' conftest.er1 >conftest.err
26807   rm -f conftest.er1
26808   cat conftest.err >&5
26809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810   (exit $ac_status); } &&
26811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26812   { (case "(($ac_try" in
26813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26814   *) ac_try_echo=$ac_try;;
26815 esac
26816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26817   (eval "$ac_try") 2>&5
26818   ac_status=$?
26819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820   (exit $ac_status); }; } &&
26821          { ac_try='test -s conftest$ac_exeext'
26822   { (case "(($ac_try" in
26823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26824   *) ac_try_echo=$ac_try;;
26825 esac
26826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26827   (eval "$ac_try") 2>&5
26828   ac_status=$?
26829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830   (exit $ac_status); }; }; then
26831   ac_cv_lib_m_exp10=yes
26832 else
26833   echo "$as_me: failed program was:" >&5
26834 sed 's/^/| /' conftest.$ac_ext >&5
26835
26836         ac_cv_lib_m_exp10=no
26837 fi
26838
26839 rm -f core conftest.err conftest.$ac_objext \
26840       conftest$ac_exeext conftest.$ac_ext
26841 LIBS=$ac_check_lib_save_LIBS
26842 fi
26843 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_exp10" >&5
26844 echo "${ECHO_T}$ac_cv_lib_m_exp10" >&6; }
26845 if test $ac_cv_lib_m_exp10 = yes; then
26846
26847 cat >>confdefs.h <<\_ACEOF
26848 #define HAVE_EXP10 1
26849 _ACEOF
26850
26851 fi
26852
26853 #AC_FUNC_MKTIME
26854
26855
26856
26857
26858
26859   SHM_OPEN_LIBS=""
26860   save_LIBS="$LIBS"
26861   { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26862 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26863 if test "${ac_cv_search_shm_open+set}" = set; then
26864   echo $ECHO_N "(cached) $ECHO_C" >&6
26865 else
26866   ac_func_search_save_LIBS=$LIBS
26867 cat >conftest.$ac_ext <<_ACEOF
26868 /* confdefs.h.  */
26869 _ACEOF
26870 cat confdefs.h >>conftest.$ac_ext
26871 cat >>conftest.$ac_ext <<_ACEOF
26872 /* end confdefs.h.  */
26873
26874 /* Override any GCC internal prototype to avoid an error.
26875    Use char because int might match the return type of a GCC
26876    builtin and then its argument prototype would still apply.  */
26877 #ifdef __cplusplus
26878 extern "C"
26879 #endif
26880 char shm_open ();
26881 int
26882 main ()
26883 {
26884 return shm_open ();
26885   ;
26886   return 0;
26887 }
26888 _ACEOF
26889 for ac_lib in '' rt; do
26890   if test -z "$ac_lib"; then
26891     ac_res="none required"
26892   else
26893     ac_res=-l$ac_lib
26894     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26895   fi
26896   rm -f conftest.$ac_objext conftest$ac_exeext
26897 if { (ac_try="$ac_link"
26898 case "(($ac_try" in
26899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26900   *) ac_try_echo=$ac_try;;
26901 esac
26902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26903   (eval "$ac_link") 2>conftest.er1
26904   ac_status=$?
26905   grep -v '^ *+' conftest.er1 >conftest.err
26906   rm -f conftest.er1
26907   cat conftest.err >&5
26908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909   (exit $ac_status); } &&
26910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26911   { (case "(($ac_try" in
26912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26913   *) ac_try_echo=$ac_try;;
26914 esac
26915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26916   (eval "$ac_try") 2>&5
26917   ac_status=$?
26918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919   (exit $ac_status); }; } &&
26920          { ac_try='test -s conftest$ac_exeext'
26921   { (case "(($ac_try" in
26922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26923   *) ac_try_echo=$ac_try;;
26924 esac
26925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26926   (eval "$ac_try") 2>&5
26927   ac_status=$?
26928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929   (exit $ac_status); }; }; then
26930   ac_cv_search_shm_open=$ac_res
26931 else
26932   echo "$as_me: failed program was:" >&5
26933 sed 's/^/| /' conftest.$ac_ext >&5
26934
26935
26936 fi
26937
26938 rm -f core conftest.err conftest.$ac_objext \
26939       conftest$ac_exeext
26940   if test "${ac_cv_search_shm_open+set}" = set; then
26941   break
26942 fi
26943 done
26944 if test "${ac_cv_search_shm_open+set}" = set; then
26945   :
26946 else
26947   ac_cv_search_shm_open=no
26948 fi
26949 rm conftest.$ac_ext
26950 LIBS=$ac_func_search_save_LIBS
26951 fi
26952 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26953 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26954 ac_res=$ac_cv_search_shm_open
26955 if test "$ac_res" != no; then
26956   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26957   SHM_OPEN_LIBS="$LIBS"
26958 fi
26959
26960
26961 for ac_func in shm_open
26962 do
26963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26964 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26966 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26967   echo $ECHO_N "(cached) $ECHO_C" >&6
26968 else
26969   cat >conftest.$ac_ext <<_ACEOF
26970 /* confdefs.h.  */
26971 _ACEOF
26972 cat confdefs.h >>conftest.$ac_ext
26973 cat >>conftest.$ac_ext <<_ACEOF
26974 /* end confdefs.h.  */
26975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26976    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26977 #define $ac_func innocuous_$ac_func
26978
26979 /* System header to define __stub macros and hopefully few prototypes,
26980     which can conflict with char $ac_func (); below.
26981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26982     <limits.h> exists even on freestanding compilers.  */
26983
26984 #ifdef __STDC__
26985 # include <limits.h>
26986 #else
26987 # include <assert.h>
26988 #endif
26989
26990 #undef $ac_func
26991
26992 /* Override any GCC internal prototype to avoid an error.
26993    Use char because int might match the return type of a GCC
26994    builtin and then its argument prototype would still apply.  */
26995 #ifdef __cplusplus
26996 extern "C"
26997 #endif
26998 char $ac_func ();
26999 /* The GNU C library defines this for functions which it implements
27000     to always fail with ENOSYS.  Some functions are actually named
27001     something starting with __ and the normal name is an alias.  */
27002 #if defined __stub_$ac_func || defined __stub___$ac_func
27003 choke me
27004 #endif
27005
27006 int
27007 main ()
27008 {
27009 return $ac_func ();
27010   ;
27011   return 0;
27012 }
27013 _ACEOF
27014 rm -f conftest.$ac_objext conftest$ac_exeext
27015 if { (ac_try="$ac_link"
27016 case "(($ac_try" in
27017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27018   *) ac_try_echo=$ac_try;;
27019 esac
27020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27021   (eval "$ac_link") 2>conftest.er1
27022   ac_status=$?
27023   grep -v '^ *+' conftest.er1 >conftest.err
27024   rm -f conftest.er1
27025   cat conftest.err >&5
27026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027   (exit $ac_status); } &&
27028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27029   { (case "(($ac_try" in
27030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27031   *) ac_try_echo=$ac_try;;
27032 esac
27033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27034   (eval "$ac_try") 2>&5
27035   ac_status=$?
27036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037   (exit $ac_status); }; } &&
27038          { ac_try='test -s conftest$ac_exeext'
27039   { (case "(($ac_try" in
27040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27041   *) ac_try_echo=$ac_try;;
27042 esac
27043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27044   (eval "$ac_try") 2>&5
27045   ac_status=$?
27046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047   (exit $ac_status); }; }; then
27048   eval "$as_ac_var=yes"
27049 else
27050   echo "$as_me: failed program was:" >&5
27051 sed 's/^/| /' conftest.$ac_ext >&5
27052
27053         eval "$as_ac_var=no"
27054 fi
27055
27056 rm -f core conftest.err conftest.$ac_objext \
27057       conftest$ac_exeext conftest.$ac_ext
27058 fi
27059 ac_res=`eval echo '${'$as_ac_var'}'`
27060                { echo "$as_me:$LINENO: result: $ac_res" >&5
27061 echo "${ECHO_T}$ac_res" >&6; }
27062 if test `eval echo '${'$as_ac_var'}'` = yes; then
27063   cat >>confdefs.h <<_ACEOF
27064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27065 _ACEOF
27066
27067 fi
27068 done
27069
27070   LIBS="$save_LIBS"
27071
27072
27073
27074
27075 # on Mingw32 extra LDFLAGS are required to ease global variable linking
27076 LIBGNURADIO_CORE_EXTRA_LDFLAGS=""
27077
27078 { echo "$as_me:$LINENO: checking whether $LD accepts --enable-runtime-pseudo-reloc" >&5
27079 echo $ECHO_N "checking whether $LD accepts --enable-runtime-pseudo-reloc... $ECHO_C" >&6; }
27080 if ${LD} --enable-runtime-pseudo-reloc --version >/dev/null 2>&1
27081 then
27082         # libtool requires the quotes
27083         LIBGNURADIO_CORE_EXTRA_LDFLAGS="\"-Wl,--enable-runtime-pseudo-reloc\""
27084         { echo "$as_me:$LINENO: result: yes" >&5
27085 echo "${ECHO_T}yes" >&6; }
27086 else
27087         { echo "$as_me:$LINENO: result: no" >&5
27088 echo "${ECHO_T}no" >&6; }
27089 fi
27090
27091
27092
27093
27094
27095   { echo "$as_me:$LINENO: checking for CreateFileMapping function" >&5
27096 echo $ECHO_N "checking for CreateFileMapping function... $ECHO_C" >&6; }
27097   cat >conftest.$ac_ext <<_ACEOF
27098
27099 #include <windows.h>
27100 int main (int argc, char **argv)
27101 {
27102     HANDLE handle;
27103     int size;
27104     char                seg_name[1024];
27105     handle = CreateFileMapping(
27106                      INVALID_HANDLE_VALUE,    // use paging file
27107                      NULL,                    // default security
27108                      PAGE_READWRITE,          // read/write access
27109                      0,                       // max. object size
27110                      size,                // buffer size
27111                      seg_name);                 // name of mapping object
27112     return 0;
27113 }
27114
27115 _ACEOF
27116 rm -f conftest.$ac_objext
27117 if { (ac_try="$ac_compile"
27118 case "(($ac_try" in
27119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27120   *) ac_try_echo=$ac_try;;
27121 esac
27122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27123   (eval "$ac_compile") 2>conftest.er1
27124   ac_status=$?
27125   grep -v '^ *+' conftest.er1 >conftest.err
27126   rm -f conftest.er1
27127   cat conftest.err >&5
27128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129   (exit $ac_status); } &&
27130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27131   { (case "(($ac_try" in
27132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27133   *) ac_try_echo=$ac_try;;
27134 esac
27135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27136   (eval "$ac_try") 2>&5
27137   ac_status=$?
27138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139   (exit $ac_status); }; } &&
27140          { ac_try='test -s conftest.$ac_objext'
27141   { (case "(($ac_try" in
27142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27143   *) ac_try_echo=$ac_try;;
27144 esac
27145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27146   (eval "$ac_try") 2>&5
27147   ac_status=$?
27148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149   (exit $ac_status); }; }; then
27150   HAVE_CREATEFILEMAPPING=yes
27151
27152 cat >>confdefs.h <<\_ACEOF
27153 #define HAVE_CREATEFILEMAPPING 1
27154 _ACEOF
27155
27156 else
27157   echo "$as_me: failed program was:" >&5
27158 sed 's/^/| /' conftest.$ac_ext >&5
27159
27160         HAVE_CREATEFILEMAPPING=no
27161 fi
27162
27163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27164
27165   { echo "$as_me:$LINENO: result: $HAVE_CREATEFILEMAPPING" >&5
27166 echo "${ECHO_T}$HAVE_CREATEFILEMAPPING" >&6; }
27167
27168
27169 if test x$HAVE_CREATEFILEMAPPING = xyes; then
27170   HAVE_CREATEFILEMAPPING_TRUE=
27171   HAVE_CREATEFILEMAPPING_FALSE='#'
27172 else
27173   HAVE_CREATEFILEMAPPING_TRUE='#'
27174   HAVE_CREATEFILEMAPPING_FALSE=
27175 fi
27176
27177
27178
27179
27180
27181
27182
27183
27184 for ac_header in sys/types.h fcntl.h io.h
27185 do
27186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27188   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27191   echo $ECHO_N "(cached) $ECHO_C" >&6
27192 fi
27193 ac_res=`eval echo '${'$as_ac_Header'}'`
27194                { echo "$as_me:$LINENO: result: $ac_res" >&5
27195 echo "${ECHO_T}$ac_res" >&6; }
27196 else
27197   # Is the header compilable?
27198 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27200 cat >conftest.$ac_ext <<_ACEOF
27201 /* confdefs.h.  */
27202 _ACEOF
27203 cat confdefs.h >>conftest.$ac_ext
27204 cat >>conftest.$ac_ext <<_ACEOF
27205 /* end confdefs.h.  */
27206 $ac_includes_default
27207 #include <$ac_header>
27208 _ACEOF
27209 rm -f conftest.$ac_objext
27210 if { (ac_try="$ac_compile"
27211 case "(($ac_try" in
27212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27213   *) ac_try_echo=$ac_try;;
27214 esac
27215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27216   (eval "$ac_compile") 2>conftest.er1
27217   ac_status=$?
27218   grep -v '^ *+' conftest.er1 >conftest.err
27219   rm -f conftest.er1
27220   cat conftest.err >&5
27221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222   (exit $ac_status); } &&
27223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27224   { (case "(($ac_try" in
27225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27226   *) ac_try_echo=$ac_try;;
27227 esac
27228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27229   (eval "$ac_try") 2>&5
27230   ac_status=$?
27231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232   (exit $ac_status); }; } &&
27233          { ac_try='test -s conftest.$ac_objext'
27234   { (case "(($ac_try" in
27235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27236   *) ac_try_echo=$ac_try;;
27237 esac
27238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27239   (eval "$ac_try") 2>&5
27240   ac_status=$?
27241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242   (exit $ac_status); }; }; then
27243   ac_header_compiler=yes
27244 else
27245   echo "$as_me: failed program was:" >&5
27246 sed 's/^/| /' conftest.$ac_ext >&5
27247
27248         ac_header_compiler=no
27249 fi
27250
27251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27252 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27253 echo "${ECHO_T}$ac_header_compiler" >&6; }
27254
27255 # Is the header present?
27256 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27257 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27258 cat >conftest.$ac_ext <<_ACEOF
27259 /* confdefs.h.  */
27260 _ACEOF
27261 cat confdefs.h >>conftest.$ac_ext
27262 cat >>conftest.$ac_ext <<_ACEOF
27263 /* end confdefs.h.  */
27264 #include <$ac_header>
27265 _ACEOF
27266 if { (ac_try="$ac_cpp conftest.$ac_ext"
27267 case "(($ac_try" in
27268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27269   *) ac_try_echo=$ac_try;;
27270 esac
27271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27272   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27273   ac_status=$?
27274   grep -v '^ *+' conftest.er1 >conftest.err
27275   rm -f conftest.er1
27276   cat conftest.err >&5
27277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278   (exit $ac_status); } >/dev/null; then
27279   if test -s conftest.err; then
27280     ac_cpp_err=$ac_c_preproc_warn_flag
27281     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27282   else
27283     ac_cpp_err=
27284   fi
27285 else
27286   ac_cpp_err=yes
27287 fi
27288 if test -z "$ac_cpp_err"; then
27289   ac_header_preproc=yes
27290 else
27291   echo "$as_me: failed program was:" >&5
27292 sed 's/^/| /' conftest.$ac_ext >&5
27293
27294   ac_header_preproc=no
27295 fi
27296
27297 rm -f conftest.err conftest.$ac_ext
27298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27299 echo "${ECHO_T}$ac_header_preproc" >&6; }
27300
27301 # So?  What about this header?
27302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27303   yes:no: )
27304     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27308     ac_header_preproc=yes
27309     ;;
27310   no:yes:* )
27311     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27313     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27314 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27315     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27317     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27318 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27319     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27321     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27323
27324     ;;
27325 esac
27326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27329   echo $ECHO_N "(cached) $ECHO_C" >&6
27330 else
27331   eval "$as_ac_Header=\$ac_header_preproc"
27332 fi
27333 ac_res=`eval echo '${'$as_ac_Header'}'`
27334                { echo "$as_me:$LINENO: result: $ac_res" >&5
27335 echo "${ECHO_T}$ac_res" >&6; }
27336
27337 fi
27338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27339   cat >>confdefs.h <<_ACEOF
27340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27341 _ACEOF
27342
27343 fi
27344
27345 done
27346
27347
27348 for ac_header in windows.h
27349 do
27350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27352   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27355   echo $ECHO_N "(cached) $ECHO_C" >&6
27356 fi
27357 ac_res=`eval echo '${'$as_ac_Header'}'`
27358                { echo "$as_me:$LINENO: result: $ac_res" >&5
27359 echo "${ECHO_T}$ac_res" >&6; }
27360 else
27361   # Is the header compilable?
27362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27364 cat >conftest.$ac_ext <<_ACEOF
27365 /* confdefs.h.  */
27366 _ACEOF
27367 cat confdefs.h >>conftest.$ac_ext
27368 cat >>conftest.$ac_ext <<_ACEOF
27369 /* end confdefs.h.  */
27370 $ac_includes_default
27371 #include <$ac_header>
27372 _ACEOF
27373 rm -f conftest.$ac_objext
27374 if { (ac_try="$ac_compile"
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_compile") 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); } &&
27387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27388   { (case "(($ac_try" in
27389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27390   *) ac_try_echo=$ac_try;;
27391 esac
27392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27393   (eval "$ac_try") 2>&5
27394   ac_status=$?
27395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396   (exit $ac_status); }; } &&
27397          { ac_try='test -s conftest.$ac_objext'
27398   { (case "(($ac_try" in
27399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27400   *) ac_try_echo=$ac_try;;
27401 esac
27402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27403   (eval "$ac_try") 2>&5
27404   ac_status=$?
27405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406   (exit $ac_status); }; }; then
27407   ac_header_compiler=yes
27408 else
27409   echo "$as_me: failed program was:" >&5
27410 sed 's/^/| /' conftest.$ac_ext >&5
27411
27412         ac_header_compiler=no
27413 fi
27414
27415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27417 echo "${ECHO_T}$ac_header_compiler" >&6; }
27418
27419 # Is the header present?
27420 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27422 cat >conftest.$ac_ext <<_ACEOF
27423 /* confdefs.h.  */
27424 _ACEOF
27425 cat confdefs.h >>conftest.$ac_ext
27426 cat >>conftest.$ac_ext <<_ACEOF
27427 /* end confdefs.h.  */
27428 #include <$ac_header>
27429 _ACEOF
27430 if { (ac_try="$ac_cpp conftest.$ac_ext"
27431 case "(($ac_try" in
27432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27433   *) ac_try_echo=$ac_try;;
27434 esac
27435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27436   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27437   ac_status=$?
27438   grep -v '^ *+' conftest.er1 >conftest.err
27439   rm -f conftest.er1
27440   cat conftest.err >&5
27441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442   (exit $ac_status); } >/dev/null; then
27443   if test -s conftest.err; then
27444     ac_cpp_err=$ac_c_preproc_warn_flag
27445     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27446   else
27447     ac_cpp_err=
27448   fi
27449 else
27450   ac_cpp_err=yes
27451 fi
27452 if test -z "$ac_cpp_err"; then
27453   ac_header_preproc=yes
27454 else
27455   echo "$as_me: failed program was:" >&5
27456 sed 's/^/| /' conftest.$ac_ext >&5
27457
27458   ac_header_preproc=no
27459 fi
27460
27461 rm -f conftest.err conftest.$ac_ext
27462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27463 echo "${ECHO_T}$ac_header_preproc" >&6; }
27464
27465 # So?  What about this header?
27466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27467   yes:no: )
27468     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27472     ac_header_preproc=yes
27473     ;;
27474   no:yes:* )
27475     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27477     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27478 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27479     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27481     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27482 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27485     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27487
27488     ;;
27489 esac
27490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27493   echo $ECHO_N "(cached) $ECHO_C" >&6
27494 else
27495   eval "$as_ac_Header=\$ac_header_preproc"
27496 fi
27497 ac_res=`eval echo '${'$as_ac_Header'}'`
27498                { echo "$as_me:$LINENO: result: $ac_res" >&5
27499 echo "${ECHO_T}$ac_res" >&6; }
27500
27501 fi
27502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27503   cat >>confdefs.h <<_ACEOF
27504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27505 _ACEOF
27506
27507 fi
27508
27509 done
27510
27511
27512
27513 for ac_header in winioctl.h winbase.h
27514 do
27515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27519   echo $ECHO_N "(cached) $ECHO_C" >&6
27520 else
27521   cat >conftest.$ac_ext <<_ACEOF
27522 /* confdefs.h.  */
27523 _ACEOF
27524 cat confdefs.h >>conftest.$ac_ext
27525 cat >>conftest.$ac_ext <<_ACEOF
27526 /* end confdefs.h.  */
27527
27528         #if HAVE_WINDOWS_H
27529         #include <windows.h>
27530         #endif
27531
27532
27533 #include <$ac_header>
27534 _ACEOF
27535 rm -f conftest.$ac_objext
27536 if { (ac_try="$ac_compile"
27537 case "(($ac_try" in
27538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27539   *) ac_try_echo=$ac_try;;
27540 esac
27541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27542   (eval "$ac_compile") 2>conftest.er1
27543   ac_status=$?
27544   grep -v '^ *+' conftest.er1 >conftest.err
27545   rm -f conftest.er1
27546   cat conftest.err >&5
27547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27548   (exit $ac_status); } &&
27549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27550   { (case "(($ac_try" in
27551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27552   *) ac_try_echo=$ac_try;;
27553 esac
27554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27555   (eval "$ac_try") 2>&5
27556   ac_status=$?
27557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558   (exit $ac_status); }; } &&
27559          { ac_try='test -s conftest.$ac_objext'
27560   { (case "(($ac_try" in
27561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27562   *) ac_try_echo=$ac_try;;
27563 esac
27564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27565   (eval "$ac_try") 2>&5
27566   ac_status=$?
27567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568   (exit $ac_status); }; }; then
27569   eval "$as_ac_Header=yes"
27570 else
27571   echo "$as_me: failed program was:" >&5
27572 sed 's/^/| /' conftest.$ac_ext >&5
27573
27574         eval "$as_ac_Header=no"
27575 fi
27576
27577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27578 fi
27579 ac_res=`eval echo '${'$as_ac_Header'}'`
27580                { echo "$as_me:$LINENO: result: $ac_res" >&5
27581 echo "${ECHO_T}$ac_res" >&6; }
27582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27583   cat >>confdefs.h <<_ACEOF
27584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27585 _ACEOF
27586
27587 fi
27588
27589 done
27590
27591
27592
27593
27594
27595
27596
27597
27598
27599
27600
27601
27602 for ac_func in getopt usleep gettimeofday nanosleep rand srand random srandom sleep sigaction
27603 do
27604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27608   echo $ECHO_N "(cached) $ECHO_C" >&6
27609 else
27610   cat >conftest.$ac_ext <<_ACEOF
27611 /* confdefs.h.  */
27612 _ACEOF
27613 cat confdefs.h >>conftest.$ac_ext
27614 cat >>conftest.$ac_ext <<_ACEOF
27615 /* end confdefs.h.  */
27616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27618 #define $ac_func innocuous_$ac_func
27619
27620 /* System header to define __stub macros and hopefully few prototypes,
27621     which can conflict with char $ac_func (); below.
27622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27623     <limits.h> exists even on freestanding compilers.  */
27624
27625 #ifdef __STDC__
27626 # include <limits.h>
27627 #else
27628 # include <assert.h>
27629 #endif
27630
27631 #undef $ac_func
27632
27633 /* Override any GCC internal prototype to avoid an error.
27634    Use char because int might match the return type of a GCC
27635    builtin and then its argument prototype would still apply.  */
27636 #ifdef __cplusplus
27637 extern "C"
27638 #endif
27639 char $ac_func ();
27640 /* The GNU C library defines this for functions which it implements
27641     to always fail with ENOSYS.  Some functions are actually named
27642     something starting with __ and the normal name is an alias.  */
27643 #if defined __stub_$ac_func || defined __stub___$ac_func
27644 choke me
27645 #endif
27646
27647 int
27648 main ()
27649 {
27650 return $ac_func ();
27651   ;
27652   return 0;
27653 }
27654 _ACEOF
27655 rm -f conftest.$ac_objext conftest$ac_exeext
27656 if { (ac_try="$ac_link"
27657 case "(($ac_try" in
27658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27659   *) ac_try_echo=$ac_try;;
27660 esac
27661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27662   (eval "$ac_link") 2>conftest.er1
27663   ac_status=$?
27664   grep -v '^ *+' conftest.er1 >conftest.err
27665   rm -f conftest.er1
27666   cat conftest.err >&5
27667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668   (exit $ac_status); } &&
27669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27670   { (case "(($ac_try" in
27671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27672   *) ac_try_echo=$ac_try;;
27673 esac
27674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27675   (eval "$ac_try") 2>&5
27676   ac_status=$?
27677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678   (exit $ac_status); }; } &&
27679          { ac_try='test -s conftest$ac_exeext'
27680   { (case "(($ac_try" in
27681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27682   *) ac_try_echo=$ac_try;;
27683 esac
27684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27685   (eval "$ac_try") 2>&5
27686   ac_status=$?
27687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688   (exit $ac_status); }; }; then
27689   eval "$as_ac_var=yes"
27690 else
27691   echo "$as_me: failed program was:" >&5
27692 sed 's/^/| /' conftest.$ac_ext >&5
27693
27694         eval "$as_ac_var=no"
27695 fi
27696
27697 rm -f core conftest.err conftest.$ac_objext \
27698       conftest$ac_exeext conftest.$ac_ext
27699 fi
27700 ac_res=`eval echo '${'$as_ac_var'}'`
27701                { echo "$as_me:$LINENO: result: $ac_res" >&5
27702 echo "${ECHO_T}$ac_res" >&6; }
27703 if test `eval echo '${'$as_ac_var'}'` = yes; then
27704   cat >>confdefs.h <<_ACEOF
27705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27706 _ACEOF
27707
27708 fi
27709 done
27710
27711 { echo "$as_me:$LINENO: checking for struct timezone" >&5
27712 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6; }
27713 if test "${ac_cv_type_struct_timezone+set}" = set; then
27714   echo $ECHO_N "(cached) $ECHO_C" >&6
27715 else
27716   cat >conftest.$ac_ext <<_ACEOF
27717 /* confdefs.h.  */
27718 _ACEOF
27719 cat confdefs.h >>conftest.$ac_ext
27720 cat >>conftest.$ac_ext <<_ACEOF
27721 /* end confdefs.h.  */
27722
27723      #if HAVE_SYS_TYPES_H
27724      # include <sys/types.h>
27725      #endif
27726      #if TIME_WITH_SYS_TIME
27727      # include <sys/time.h>
27728      # include <time.h>
27729      #else
27730      # if HAVE_SYS_TIME_H
27731      #  include <sys/time.h>
27732      # else
27733      #  include <time.h>
27734      # endif
27735      #endif
27736
27737
27738 typedef struct timezone ac__type_new_;
27739 int
27740 main ()
27741 {
27742 if ((ac__type_new_ *) 0)
27743   return 0;
27744 if (sizeof (ac__type_new_))
27745   return 0;
27746   ;
27747   return 0;
27748 }
27749 _ACEOF
27750 rm -f conftest.$ac_objext
27751 if { (ac_try="$ac_compile"
27752 case "(($ac_try" in
27753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27754   *) ac_try_echo=$ac_try;;
27755 esac
27756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27757   (eval "$ac_compile") 2>conftest.er1
27758   ac_status=$?
27759   grep -v '^ *+' conftest.er1 >conftest.err
27760   rm -f conftest.er1
27761   cat conftest.err >&5
27762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763   (exit $ac_status); } &&
27764          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27765   { (case "(($ac_try" in
27766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27767   *) ac_try_echo=$ac_try;;
27768 esac
27769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27770   (eval "$ac_try") 2>&5
27771   ac_status=$?
27772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773   (exit $ac_status); }; } &&
27774          { ac_try='test -s conftest.$ac_objext'
27775   { (case "(($ac_try" in
27776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27777   *) ac_try_echo=$ac_try;;
27778 esac
27779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27780   (eval "$ac_try") 2>&5
27781   ac_status=$?
27782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783   (exit $ac_status); }; }; then
27784   ac_cv_type_struct_timezone=yes
27785 else
27786   echo "$as_me: failed program was:" >&5
27787 sed 's/^/| /' conftest.$ac_ext >&5
27788
27789         ac_cv_type_struct_timezone=no
27790 fi
27791
27792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27793 fi
27794 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timezone" >&5
27795 echo "${ECHO_T}$ac_cv_type_struct_timezone" >&6; }
27796 if test $ac_cv_type_struct_timezone = yes; then
27797
27798 cat >>confdefs.h <<_ACEOF
27799 #define HAVE_STRUCT_TIMEZONE 1
27800 _ACEOF
27801
27802
27803 fi
27804 { echo "$as_me:$LINENO: checking for struct timespec" >&5
27805 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
27806 if test "${ac_cv_type_struct_timespec+set}" = set; then
27807   echo $ECHO_N "(cached) $ECHO_C" >&6
27808 else
27809   cat >conftest.$ac_ext <<_ACEOF
27810 /* confdefs.h.  */
27811 _ACEOF
27812 cat confdefs.h >>conftest.$ac_ext
27813 cat >>conftest.$ac_ext <<_ACEOF
27814 /* end confdefs.h.  */
27815
27816      #if HAVE_SYS_TYPES_H
27817      # include <sys/types.h>
27818      #endif
27819      #if TIME_WITH_SYS_TIME
27820      # include <sys/time.h>
27821      # include <time.h>
27822      #else
27823      # if HAVE_SYS_TIME_H
27824      #  include <sys/time.h>
27825      # else
27826      #  include <time.h>
27827      # endif
27828      #endif
27829
27830
27831 typedef struct timespec ac__type_new_;
27832 int
27833 main ()
27834 {
27835 if ((ac__type_new_ *) 0)
27836   return 0;
27837 if (sizeof (ac__type_new_))
27838   return 0;
27839   ;
27840   return 0;
27841 }
27842 _ACEOF
27843 rm -f conftest.$ac_objext
27844 if { (ac_try="$ac_compile"
27845 case "(($ac_try" in
27846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27847   *) ac_try_echo=$ac_try;;
27848 esac
27849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27850   (eval "$ac_compile") 2>conftest.er1
27851   ac_status=$?
27852   grep -v '^ *+' conftest.er1 >conftest.err
27853   rm -f conftest.er1
27854   cat conftest.err >&5
27855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856   (exit $ac_status); } &&
27857          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27858   { (case "(($ac_try" in
27859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27860   *) ac_try_echo=$ac_try;;
27861 esac
27862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27863   (eval "$ac_try") 2>&5
27864   ac_status=$?
27865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866   (exit $ac_status); }; } &&
27867          { ac_try='test -s conftest.$ac_objext'
27868   { (case "(($ac_try" in
27869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870   *) ac_try_echo=$ac_try;;
27871 esac
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873   (eval "$ac_try") 2>&5
27874   ac_status=$?
27875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876   (exit $ac_status); }; }; then
27877   ac_cv_type_struct_timespec=yes
27878 else
27879   echo "$as_me: failed program was:" >&5
27880 sed 's/^/| /' conftest.$ac_ext >&5
27881
27882         ac_cv_type_struct_timespec=no
27883 fi
27884
27885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27886 fi
27887 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
27888 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
27889 if test $ac_cv_type_struct_timespec = yes; then
27890
27891 cat >>confdefs.h <<_ACEOF
27892 #define HAVE_STRUCT_TIMESPEC 1
27893 _ACEOF
27894
27895
27896 fi
27897 { echo "$as_me:$LINENO: checking for ssize_t" >&5
27898 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
27899 if test "${ac_cv_type_ssize_t+set}" = set; then
27900   echo $ECHO_N "(cached) $ECHO_C" >&6
27901 else
27902   cat >conftest.$ac_ext <<_ACEOF
27903 /* confdefs.h.  */
27904 _ACEOF
27905 cat confdefs.h >>conftest.$ac_ext
27906 cat >>conftest.$ac_ext <<_ACEOF
27907 /* end confdefs.h.  */
27908
27909      #if HAVE_SYS_TYPES_H
27910      # include <sys/types.h>
27911      #endif
27912      #if TIME_WITH_SYS_TIME
27913      # include <sys/time.h>
27914      # include <time.h>
27915      #else
27916      # if HAVE_SYS_TIME_H
27917      #  include <sys/time.h>
27918      # else
27919      #  include <time.h>
27920      # endif
27921      #endif
27922
27923
27924 typedef ssize_t ac__type_new_;
27925 int
27926 main ()
27927 {
27928 if ((ac__type_new_ *) 0)
27929   return 0;
27930 if (sizeof (ac__type_new_))
27931   return 0;
27932   ;
27933   return 0;
27934 }
27935 _ACEOF
27936 rm -f conftest.$ac_objext
27937 if { (ac_try="$ac_compile"
27938 case "(($ac_try" in
27939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27940   *) ac_try_echo=$ac_try;;
27941 esac
27942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27943   (eval "$ac_compile") 2>conftest.er1
27944   ac_status=$?
27945   grep -v '^ *+' conftest.er1 >conftest.err
27946   rm -f conftest.er1
27947   cat conftest.err >&5
27948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949   (exit $ac_status); } &&
27950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27951   { (case "(($ac_try" in
27952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27953   *) ac_try_echo=$ac_try;;
27954 esac
27955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27956   (eval "$ac_try") 2>&5
27957   ac_status=$?
27958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959   (exit $ac_status); }; } &&
27960          { ac_try='test -s conftest.$ac_objext'
27961   { (case "(($ac_try" in
27962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27963   *) ac_try_echo=$ac_try;;
27964 esac
27965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27966   (eval "$ac_try") 2>&5
27967   ac_status=$?
27968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969   (exit $ac_status); }; }; then
27970   ac_cv_type_ssize_t=yes
27971 else
27972   echo "$as_me: failed program was:" >&5
27973 sed 's/^/| /' conftest.$ac_ext >&5
27974
27975         ac_cv_type_ssize_t=no
27976 fi
27977
27978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27979 fi
27980 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
27981 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
27982 if test $ac_cv_type_ssize_t = yes; then
27983
27984 cat >>confdefs.h <<_ACEOF
27985 #define HAVE_SSIZE_T 1
27986 _ACEOF
27987
27988
27989 fi
27990
27991
27992
27993
27994
27995 for ac_func in getopt usleep gettimeofday
27996 do
27997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27998 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28001   echo $ECHO_N "(cached) $ECHO_C" >&6
28002 else
28003   cat >conftest.$ac_ext <<_ACEOF
28004 /* confdefs.h.  */
28005 _ACEOF
28006 cat confdefs.h >>conftest.$ac_ext
28007 cat >>conftest.$ac_ext <<_ACEOF
28008 /* end confdefs.h.  */
28009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28011 #define $ac_func innocuous_$ac_func
28012
28013 /* System header to define __stub macros and hopefully few prototypes,
28014     which can conflict with char $ac_func (); below.
28015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28016     <limits.h> exists even on freestanding compilers.  */
28017
28018 #ifdef __STDC__
28019 # include <limits.h>
28020 #else
28021 # include <assert.h>
28022 #endif
28023
28024 #undef $ac_func
28025
28026 /* Override any GCC internal prototype to avoid an error.
28027    Use char because int might match the return type of a GCC
28028    builtin and then its argument prototype would still apply.  */
28029 #ifdef __cplusplus
28030 extern "C"
28031 #endif
28032 char $ac_func ();
28033 /* The GNU C library defines this for functions which it implements
28034     to always fail with ENOSYS.  Some functions are actually named
28035     something starting with __ and the normal name is an alias.  */
28036 #if defined __stub_$ac_func || defined __stub___$ac_func
28037 choke me
28038 #endif
28039
28040 int
28041 main ()
28042 {
28043 return $ac_func ();
28044   ;
28045   return 0;
28046 }
28047 _ACEOF
28048 rm -f conftest.$ac_objext conftest$ac_exeext
28049 if { (ac_try="$ac_link"
28050 case "(($ac_try" in
28051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28052   *) ac_try_echo=$ac_try;;
28053 esac
28054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28055   (eval "$ac_link") 2>conftest.er1
28056   ac_status=$?
28057   grep -v '^ *+' conftest.er1 >conftest.err
28058   rm -f conftest.er1
28059   cat conftest.err >&5
28060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061   (exit $ac_status); } &&
28062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28063   { (case "(($ac_try" in
28064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28065   *) ac_try_echo=$ac_try;;
28066 esac
28067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28068   (eval "$ac_try") 2>&5
28069   ac_status=$?
28070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071   (exit $ac_status); }; } &&
28072          { ac_try='test -s conftest$ac_exeext'
28073   { (case "(($ac_try" in
28074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28075   *) ac_try_echo=$ac_try;;
28076 esac
28077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28078   (eval "$ac_try") 2>&5
28079   ac_status=$?
28080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081   (exit $ac_status); }; }; then
28082   eval "$as_ac_var=yes"
28083 else
28084   echo "$as_me: failed program was:" >&5
28085 sed 's/^/| /' conftest.$ac_ext >&5
28086
28087         eval "$as_ac_var=no"
28088 fi
28089
28090 rm -f core conftest.err conftest.$ac_objext \
28091       conftest$ac_exeext conftest.$ac_ext
28092 fi
28093 ac_res=`eval echo '${'$as_ac_var'}'`
28094                { echo "$as_me:$LINENO: result: $ac_res" >&5
28095 echo "${ECHO_T}$ac_res" >&6; }
28096 if test `eval echo '${'$as_ac_var'}'` = yes; then
28097   cat >>confdefs.h <<_ACEOF
28098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28099 _ACEOF
28100
28101 else
28102   case " $LIBOBJS " in
28103   *" $ac_func.$ac_objext "* ) ;;
28104   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
28105  ;;
28106 esac
28107
28108 fi
28109 done
28110
28111
28112
28113
28114 { echo "$as_me:$LINENO: checking for Sleep" >&5
28115 echo $ECHO_N "checking for Sleep... $ECHO_C" >&6; }
28116 cat >conftest.$ac_ext <<_ACEOF
28117 /* confdefs.h.  */
28118 _ACEOF
28119 cat confdefs.h >>conftest.$ac_ext
28120 cat >>conftest.$ac_ext <<_ACEOF
28121 /* end confdefs.h.  */
28122    #include <windows.h>
28123                 #include <winbase.h>
28124
28125 int
28126 main ()
28127 {
28128  Sleep(0);
28129   ;
28130   return 0;
28131 }
28132 _ACEOF
28133 rm -f conftest.$ac_objext conftest$ac_exeext
28134 if { (ac_try="$ac_link"
28135 case "(($ac_try" in
28136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28137   *) ac_try_echo=$ac_try;;
28138 esac
28139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28140   (eval "$ac_link") 2>conftest.er1
28141   ac_status=$?
28142   grep -v '^ *+' conftest.er1 >conftest.err
28143   rm -f conftest.er1
28144   cat conftest.err >&5
28145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146   (exit $ac_status); } &&
28147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28148   { (case "(($ac_try" in
28149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28150   *) ac_try_echo=$ac_try;;
28151 esac
28152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28153   (eval "$ac_try") 2>&5
28154   ac_status=$?
28155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156   (exit $ac_status); }; } &&
28157          { ac_try='test -s conftest$ac_exeext'
28158   { (case "(($ac_try" in
28159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28160   *) ac_try_echo=$ac_try;;
28161 esac
28162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28163   (eval "$ac_try") 2>&5
28164   ac_status=$?
28165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28166   (exit $ac_status); }; }; then
28167
28168 cat >>confdefs.h <<\_ACEOF
28169 #define HAVE_SSLEEP 1
28170 _ACEOF
28171
28172                 { echo "$as_me:$LINENO: result: yes" >&5
28173 echo "${ECHO_T}yes" >&6; }
28174 else
28175   echo "$as_me: failed program was:" >&5
28176 sed 's/^/| /' conftest.$ac_ext >&5
28177
28178         { echo "$as_me:$LINENO: result: no" >&5
28179 echo "${ECHO_T}no" >&6; }
28180
28181 fi
28182
28183 rm -f core conftest.err conftest.$ac_objext \
28184       conftest$ac_exeext conftest.$ac_ext
28185
28186 { echo "$as_me:$LINENO: checking whether mkdir accepts only one arg" >&5
28187 echo $ECHO_N "checking whether mkdir accepts only one arg... $ECHO_C" >&6; }
28188 cat >conftest.$ac_ext <<_ACEOF
28189 /* confdefs.h.  */
28190 _ACEOF
28191 cat confdefs.h >>conftest.$ac_ext
28192 cat >>conftest.$ac_ext <<_ACEOF
28193 /* end confdefs.h.  */
28194 #include <sys/types.h>
28195        #include <sys/stat.h>
28196        #include <fcntl.h>
28197 int
28198 main ()
28199 {
28200
28201        mkdir("")
28202
28203   ;
28204   return 0;
28205 }
28206 _ACEOF
28207 rm -f conftest.$ac_objext
28208 if { (ac_try="$ac_compile"
28209 case "(($ac_try" in
28210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28211   *) ac_try_echo=$ac_try;;
28212 esac
28213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28214   (eval "$ac_compile") 2>conftest.er1
28215   ac_status=$?
28216   grep -v '^ *+' conftest.er1 >conftest.err
28217   rm -f conftest.er1
28218   cat conftest.err >&5
28219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220   (exit $ac_status); } &&
28221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28222   { (case "(($ac_try" in
28223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28224   *) ac_try_echo=$ac_try;;
28225 esac
28226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28227   (eval "$ac_try") 2>&5
28228   ac_status=$?
28229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230   (exit $ac_status); }; } &&
28231          { ac_try='test -s conftest.$ac_objext'
28232   { (case "(($ac_try" in
28233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28234   *) ac_try_echo=$ac_try;;
28235 esac
28236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28237   (eval "$ac_try") 2>&5
28238   ac_status=$?
28239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240   (exit $ac_status); }; }; then
28241    { echo "$as_me:$LINENO: result: yes" >&5
28242 echo "${ECHO_T}yes" >&6; }
28243
28244 cat >>confdefs.h <<\_ACEOF
28245 #define MKDIR_TAKES_ONE_ARG
28246 _ACEOF
28247
28248 else
28249   echo "$as_me: failed program was:" >&5
28250 sed 's/^/| /' conftest.$ac_ext >&5
28251
28252          { echo "$as_me:$LINENO: result: no" >&5
28253 echo "${ECHO_T}no" >&6; }
28254
28255 fi
28256
28257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28258
28259
28260
28261
28262
28263
28264
28265 # Extract the first word of "dot", so it can be a program name with args.
28266 set dummy dot; ac_word=$2
28267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28269 if test "${ac_cv_prog_HAVE_DOT+set}" = set; then
28270   echo $ECHO_N "(cached) $ECHO_C" >&6
28271 else
28272   if test -n "$HAVE_DOT"; then
28273   ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
28274 else
28275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28276 for as_dir in $PATH
28277 do
28278   IFS=$as_save_IFS
28279   test -z "$as_dir" && as_dir=.
28280   for ac_exec_ext in '' $ac_executable_extensions; do
28281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28282     ac_cv_prog_HAVE_DOT="YES"
28283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28284     break 2
28285   fi
28286 done
28287 done
28288 IFS=$as_save_IFS
28289
28290   test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="NO"
28291 fi
28292 fi
28293 HAVE_DOT=$ac_cv_prog_HAVE_DOT
28294 if test -n "$HAVE_DOT"; then
28295   { echo "$as_me:$LINENO: result: $HAVE_DOT" >&5
28296 echo "${ECHO_T}$HAVE_DOT" >&6; }
28297 else
28298   { echo "$as_me:$LINENO: result: no" >&5
28299 echo "${ECHO_T}no" >&6; }
28300 fi
28301
28302
28303
28304
28305   succeeded=no
28306
28307   if test -z "$PKG_CONFIG"; then
28308     # Extract the first word of "pkg-config", so it can be a program name with args.
28309 set dummy pkg-config; ac_word=$2
28310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28312 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28313   echo $ECHO_N "(cached) $ECHO_C" >&6
28314 else
28315   case $PKG_CONFIG in
28316   [\\/]* | ?:[\\/]*)
28317   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28318   ;;
28319   *)
28320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28321 for as_dir in $PATH
28322 do
28323   IFS=$as_save_IFS
28324   test -z "$as_dir" && as_dir=.
28325   for ac_exec_ext in '' $ac_executable_extensions; do
28326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28327     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28329     break 2
28330   fi
28331 done
28332 done
28333 IFS=$as_save_IFS
28334
28335   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28336   ;;
28337 esac
28338 fi
28339 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28340 if test -n "$PKG_CONFIG"; then
28341   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28342 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28343 else
28344   { echo "$as_me:$LINENO: result: no" >&5
28345 echo "${ECHO_T}no" >&6; }
28346 fi
28347
28348
28349   fi
28350
28351   if test "$PKG_CONFIG" = "no" ; then
28352      echo "*** The pkg-config script could not be found. Make sure it is"
28353      echo "*** in your path, or set the PKG_CONFIG environment variable"
28354      echo "*** to the full path to pkg-config."
28355      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28356   else
28357                     if test -z "$PKG_CONFIG_PATH"; then
28358         export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
28359      fi
28360
28361      PKG_CONFIG_MIN_VERSION=0.9.0
28362      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28363         { echo "$as_me:$LINENO: checking for fftw3f >= 3.0" >&5
28364 echo $ECHO_N "checking for fftw3f >= 3.0... $ECHO_C" >&6; }
28365
28366         if $PKG_CONFIG --exists "fftw3f >= 3.0" ; then
28367             { echo "$as_me:$LINENO: result: yes" >&5
28368 echo "${ECHO_T}yes" >&6; }
28369             succeeded=yes
28370
28371             { echo "$as_me:$LINENO: checking FFTW3F_CFLAGS" >&5
28372 echo $ECHO_N "checking FFTW3F_CFLAGS... $ECHO_C" >&6; }
28373             FFTW3F_CFLAGS=`$PKG_CONFIG --cflags "fftw3f >= 3.0"`
28374             { echo "$as_me:$LINENO: result: $FFTW3F_CFLAGS" >&5
28375 echo "${ECHO_T}$FFTW3F_CFLAGS" >&6; }
28376
28377             { echo "$as_me:$LINENO: checking FFTW3F_LIBS" >&5
28378 echo $ECHO_N "checking FFTW3F_LIBS... $ECHO_C" >&6; }
28379             FFTW3F_LIBS=`$PKG_CONFIG --libs "fftw3f >= 3.0"`
28380             { echo "$as_me:$LINENO: result: $FFTW3F_LIBS" >&5
28381 echo "${ECHO_T}$FFTW3F_LIBS" >&6; }
28382
28383             { echo "$as_me:$LINENO: checking FFTW3F_INCLUDEDIR" >&5
28384 echo $ECHO_N "checking FFTW3F_INCLUDEDIR... $ECHO_C" >&6; }
28385             FFTW3F_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "fftw3f >= 3.0"`
28386             { echo "$as_me:$LINENO: result: $FFTW3F_INCLUDEDIR" >&5
28387 echo "${ECHO_T}$FFTW3F_INCLUDEDIR" >&6; }
28388         else
28389             FFTW3F_CFLAGS=""
28390             FFTW3F_LIBS=""
28391             ## If we have a custom action on failure, don't print errors, but
28392             ## do set a variable so people can do so.
28393             FFTW3F_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3f >= 3.0"`
28394             echo $FFTW3F_PKG_ERRORS
28395         fi
28396
28397
28398
28399
28400      else
28401         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28402         echo "*** See http://www.freedesktop.org/software/pkgconfig"
28403      fi
28404   fi
28405
28406   if test $succeeded = yes; then
28407      :
28408   else
28409      { { 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
28410 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;}
28411    { (exit 1); exit 1; }; }
28412   fi
28413
28414
28415
28416
28417   # Check whether --enable-doxygen was given.
28418 if test "${enable_doxygen+set}" = set; then
28419   enableval=$enable_doxygen;
28420 fi
28421
28422   # Check whether --enable-dot was given.
28423 if test "${enable_dot+set}" = set; then
28424   enableval=$enable_dot;
28425 fi
28426
28427   # Check whether --enable-html-docs was given.
28428 if test "${enable_html_docs+set}" = set; then
28429   enableval=$enable_html_docs;
28430 else
28431    enable_html_docs=yes
28432 fi
28433
28434   # Check whether --enable-latex-docs was given.
28435 if test "${enable_latex_docs+set}" = set; then
28436   enableval=$enable_latex_docs;
28437 else
28438    enable_latex_docs=no
28439 fi
28440
28441
28442   if test "x$enable_doxygen" = xyes; then
28443         # Extract the first word of "doxygen", so it can be a program name with args.
28444 set dummy doxygen; ac_word=$2
28445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28447 if test "${ac_cv_path_DOXYGEN+set}" = set; then
28448   echo $ECHO_N "(cached) $ECHO_C" >&6
28449 else
28450   case $DOXYGEN in
28451   [\\/]* | ?:[\\/]*)
28452   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
28453   ;;
28454   *)
28455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28456 for as_dir in $PATH
28457 do
28458   IFS=$as_save_IFS
28459   test -z "$as_dir" && as_dir=.
28460   for ac_exec_ext in '' $ac_executable_extensions; do
28461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28462     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
28463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28464     break 2
28465   fi
28466 done
28467 done
28468 IFS=$as_save_IFS
28469
28470   ;;
28471 esac
28472 fi
28473 DOXYGEN=$ac_cv_path_DOXYGEN
28474 if test -n "$DOXYGEN"; then
28475   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
28476 echo "${ECHO_T}$DOXYGEN" >&6; }
28477 else
28478   { echo "$as_me:$LINENO: result: no" >&5
28479 echo "${ECHO_T}no" >&6; }
28480 fi
28481
28482
28483         if test x$DOXYGEN = x; then
28484                 if test "x$enable_doxygen" = xyes; then
28485                         { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
28486 echo "$as_me: error: could not find doxygen" >&2;}
28487    { (exit 1); exit 1; }; }
28488                 fi
28489                 enable_doc=no
28490                 generate_docs=
28491         else
28492                 enable_doc=yes
28493                 generate_docs=docs
28494                 # Extract the first word of "dot", so it can be a program name with args.
28495 set dummy dot; ac_word=$2
28496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28498 if test "${ac_cv_path_DOT+set}" = set; then
28499   echo $ECHO_N "(cached) $ECHO_C" >&6
28500 else
28501   case $DOT in
28502   [\\/]* | ?:[\\/]*)
28503   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
28504   ;;
28505   *)
28506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28507 for as_dir in $PATH
28508 do
28509   IFS=$as_save_IFS
28510   test -z "$as_dir" && as_dir=.
28511   for ac_exec_ext in '' $ac_executable_extensions; do
28512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28513     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
28514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28515     break 2
28516   fi
28517 done
28518 done
28519 IFS=$as_save_IFS
28520
28521   ;;
28522 esac
28523 fi
28524 DOT=$ac_cv_path_DOT
28525 if test -n "$DOT"; then
28526   { echo "$as_me:$LINENO: result: $DOT" >&5
28527 echo "${ECHO_T}$DOT" >&6; }
28528 else
28529   { echo "$as_me:$LINENO: result: no" >&5
28530 echo "${ECHO_T}no" >&6; }
28531 fi
28532
28533
28534         fi
28535   else
28536         enable_doc=no
28537   fi
28538
28539
28540
28541 if test x$enable_doc = xyes; then
28542   DOC_TRUE=
28543   DOC_FALSE='#'
28544 else
28545   DOC_TRUE='#'
28546   DOC_FALSE=
28547 fi
28548
28549
28550   if test x$DOT = x; then
28551         if test "x$enable_dot" = xyes; then
28552                 { { echo "$as_me:$LINENO: error: could not find dot" >&5
28553 echo "$as_me: error: could not find dot" >&2;}
28554    { (exit 1); exit 1; }; }
28555         fi
28556         enable_dot=no
28557   else
28558         enable_dot=yes
28559   fi
28560
28561
28562
28563
28564
28565
28566
28567
28568 # Check whether --with-md-cpu was given.
28569 if test "${with_md_cpu+set}" = set; then
28570   withval=$with_md_cpu; cf_with_md_cpu="$withval"
28571 else
28572   cf_with_md_cpu="$host_cpu"
28573 fi
28574
28575
28576   { echo "$as_me:$LINENO: checking for machine dependent speedups" >&5
28577 echo $ECHO_N "checking for machine dependent speedups... $ECHO_C" >&6; }
28578   case "$cf_with_md_cpu" in
28579    x86 | i[3-7]86)      MD_CPU=x86      MD_SUBCPU=x86   ;;
28580    x86_64)              MD_CPU=x86      MD_SUBCPU=x86_64        ;;
28581 #  sparc)       MD_CPU=sparc     ;;
28582    *)           MD_CPU=generic   ;;
28583   esac
28584   { echo "$as_me:$LINENO: result: $MD_CPU" >&5
28585 echo "${ECHO_T}$MD_CPU" >&6; }
28586
28587
28588
28589
28590
28591 if test "$MD_CPU" = "x86"; then
28592   MD_CPU_x86_TRUE=
28593   MD_CPU_x86_FALSE='#'
28594 else
28595   MD_CPU_x86_TRUE='#'
28596   MD_CPU_x86_FALSE=
28597 fi
28598
28599
28600
28601 if test "$MD_SUBCPU" = "x86_64"; then
28602   MD_SUBCPU_x86_64_TRUE=
28603   MD_SUBCPU_x86_64_FALSE='#'
28604 else
28605   MD_SUBCPU_x86_64_TRUE='#'
28606   MD_SUBCPU_x86_64_FALSE=
28607 fi
28608
28609
28610
28611 if test "$MD_CPU" = "generic"; then
28612   MD_CPU_generic_TRUE=
28613   MD_CPU_generic_FALSE='#'
28614 else
28615   MD_CPU_generic_TRUE='#'
28616   MD_CPU_generic_FALSE=
28617 fi
28618
28619
28620
28621
28622
28623
28624 # Check whether --with-cppunit-prefix was given.
28625 if test "${with_cppunit_prefix+set}" = set; then
28626   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
28627 else
28628   cppunit_config_prefix=""
28629 fi
28630
28631
28632 # Check whether --with-cppunit-exec-prefix was given.
28633 if test "${with_cppunit_exec_prefix+set}" = set; then
28634   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
28635 else
28636   cppunit_config_exec_prefix=""
28637 fi
28638
28639
28640   if test x$cppunit_config_exec_prefix != x ; then
28641      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
28642      if test x${CPPUNIT_CONFIG+set} != xset ; then
28643         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
28644      fi
28645   fi
28646   if test x$cppunit_config_prefix != x ; then
28647      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
28648      if test x${CPPUNIT_CONFIG+set} != xset ; then
28649         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
28650      fi
28651   fi
28652
28653   # Extract the first word of "cppunit-config", so it can be a program name with args.
28654 set dummy cppunit-config; ac_word=$2
28655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28657 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
28658   echo $ECHO_N "(cached) $ECHO_C" >&6
28659 else
28660   case $CPPUNIT_CONFIG in
28661   [\\/]* | ?:[\\/]*)
28662   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
28663   ;;
28664   *)
28665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28666 for as_dir in $PATH
28667 do
28668   IFS=$as_save_IFS
28669   test -z "$as_dir" && as_dir=.
28670   for ac_exec_ext in '' $ac_executable_extensions; do
28671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28672     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28674     break 2
28675   fi
28676 done
28677 done
28678 IFS=$as_save_IFS
28679
28680   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
28681   ;;
28682 esac
28683 fi
28684 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
28685 if test -n "$CPPUNIT_CONFIG"; then
28686   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
28687 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
28688 else
28689   { echo "$as_me:$LINENO: result: no" >&5
28690 echo "${ECHO_T}no" >&6; }
28691 fi
28692
28693
28694   cppunit_version_min=1.9.14
28695
28696   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
28697 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
28698   no_cppunit=""
28699   if test "$CPPUNIT_CONFIG" = "no" ; then
28700     no_cppunit=yes
28701   else
28702     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
28703     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
28704     cppunit_version=`$CPPUNIT_CONFIG --version`
28705
28706     cppunit_major_version=`echo $cppunit_version | \
28707            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28708     cppunit_minor_version=`echo $cppunit_version | \
28709            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28710     cppunit_micro_version=`echo $cppunit_version | \
28711            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28712
28713     cppunit_major_min=`echo $cppunit_version_min | \
28714            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28715     cppunit_minor_min=`echo $cppunit_version_min | \
28716            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28717     cppunit_micro_min=`echo $cppunit_version_min | \
28718            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28719
28720     cppunit_version_proper=`expr \
28721         $cppunit_major_version \> $cppunit_major_min \| \
28722         $cppunit_major_version \= $cppunit_major_min \& \
28723         $cppunit_minor_version \> $cppunit_minor_min \| \
28724         $cppunit_major_version \= $cppunit_major_min \& \
28725         $cppunit_minor_version \= $cppunit_minor_min \& \
28726         $cppunit_micro_version \>= $cppunit_micro_min `
28727
28728     if test "$cppunit_version_proper" = "1" ; then
28729       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
28730 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
28731     else
28732       { echo "$as_me:$LINENO: result: no" >&5
28733 echo "${ECHO_T}no" >&6; }
28734       no_cppunit=yes
28735     fi
28736   fi
28737
28738   if test "x$no_cppunit" = x ; then
28739      :
28740   else
28741      CPPUNIT_CFLAGS=""
28742      CPPUNIT_LIBS=""
28743      { { echo "$as_me:$LINENO: error: GNU Radio requires cppunit.  Stop" >&5
28744 echo "$as_me: error: GNU Radio requires cppunit.  Stop" >&2;}
28745    { (exit 1); exit 1; }; }
28746   fi
28747
28748
28749
28750
28751
28752 CPPUNIT_INCLUDES=$CPPUNIT_CFLAGS
28753
28754
28755
28756
28757   ac_ext=cpp
28758 ac_cpp='$CXXCPP $CPPFLAGS'
28759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28762
28763   gr_boost_include_dir=
28764
28765 # Check whether --with-boost-include-dir was given.
28766 if test "${with_boost_include_dir+set}" = set; then
28767   withval=$with_boost_include_dir;
28768       # "yes" and "no" are bogus answers
28769       if test x"$with_boost_include_dir" == xyes ||
28770          test x"$with_boost_include_dir" == xno; then
28771         gr_boost_include_dir=
28772       else
28773         gr_boost_include_dir=$with_boost_include_dir
28774       fi
28775
28776 fi
28777
28778   echo "gr_boost_include_dir = $gr_boost_include_dir"
28779   if test x$gr_boost_include_dir != x; then
28780     #
28781     # If the user specified a directory, then we use it
28782     #
28783     OLD_CPPFLAGS=$CPPFLAGS
28784     CPPFLAGS="$CPPFLAGS -I$gr_boost_include_dir"
28785     if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28786   { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
28787 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
28788 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28789   echo $ECHO_N "(cached) $ECHO_C" >&6
28790 fi
28791 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
28792 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
28793 else
28794   # Is the header compilable?
28795 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
28796 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
28797 cat >conftest.$ac_ext <<_ACEOF
28798 /* confdefs.h.  */
28799 _ACEOF
28800 cat confdefs.h >>conftest.$ac_ext
28801 cat >>conftest.$ac_ext <<_ACEOF
28802 /* end confdefs.h.  */
28803 $ac_includes_default
28804 #include <boost/shared_ptr.hpp>
28805 _ACEOF
28806 rm -f conftest.$ac_objext
28807 if { (ac_try="$ac_compile"
28808 case "(($ac_try" in
28809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28810   *) ac_try_echo=$ac_try;;
28811 esac
28812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28813   (eval "$ac_compile") 2>conftest.er1
28814   ac_status=$?
28815   grep -v '^ *+' conftest.er1 >conftest.err
28816   rm -f conftest.er1
28817   cat conftest.err >&5
28818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28819   (exit $ac_status); } &&
28820          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28821   { (case "(($ac_try" in
28822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28823   *) ac_try_echo=$ac_try;;
28824 esac
28825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28826   (eval "$ac_try") 2>&5
28827   ac_status=$?
28828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829   (exit $ac_status); }; } &&
28830          { ac_try='test -s conftest.$ac_objext'
28831   { (case "(($ac_try" in
28832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28833   *) ac_try_echo=$ac_try;;
28834 esac
28835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28836   (eval "$ac_try") 2>&5
28837   ac_status=$?
28838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28839   (exit $ac_status); }; }; then
28840   ac_header_compiler=yes
28841 else
28842   echo "$as_me: failed program was:" >&5
28843 sed 's/^/| /' conftest.$ac_ext >&5
28844
28845         ac_header_compiler=no
28846 fi
28847
28848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28850 echo "${ECHO_T}$ac_header_compiler" >&6; }
28851
28852 # Is the header present?
28853 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
28854 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
28855 cat >conftest.$ac_ext <<_ACEOF
28856 /* confdefs.h.  */
28857 _ACEOF
28858 cat confdefs.h >>conftest.$ac_ext
28859 cat >>conftest.$ac_ext <<_ACEOF
28860 /* end confdefs.h.  */
28861 #include <boost/shared_ptr.hpp>
28862 _ACEOF
28863 if { (ac_try="$ac_cpp conftest.$ac_ext"
28864 case "(($ac_try" in
28865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28866   *) ac_try_echo=$ac_try;;
28867 esac
28868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28869   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28870   ac_status=$?
28871   grep -v '^ *+' conftest.er1 >conftest.err
28872   rm -f conftest.er1
28873   cat conftest.err >&5
28874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875   (exit $ac_status); } >/dev/null; then
28876   if test -s conftest.err; then
28877     ac_cpp_err=$ac_cxx_preproc_warn_flag
28878     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28879   else
28880     ac_cpp_err=
28881   fi
28882 else
28883   ac_cpp_err=yes
28884 fi
28885 if test -z "$ac_cpp_err"; then
28886   ac_header_preproc=yes
28887 else
28888   echo "$as_me: failed program was:" >&5
28889 sed 's/^/| /' conftest.$ac_ext >&5
28890
28891   ac_header_preproc=no
28892 fi
28893
28894 rm -f conftest.err conftest.$ac_ext
28895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28896 echo "${ECHO_T}$ac_header_preproc" >&6; }
28897
28898 # So?  What about this header?
28899 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28900   yes:no: )
28901     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
28902 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
28903     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
28904 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
28905     ac_header_preproc=yes
28906     ;;
28907   no:yes:* )
28908     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
28909 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
28910     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&5
28911 echo "$as_me: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&2;}
28912     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
28913 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
28914     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&5
28915 echo "$as_me: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
28916     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
28917 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
28918     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
28919 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
28920
28921     ;;
28922 esac
28923 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
28924 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
28925 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28926   echo $ECHO_N "(cached) $ECHO_C" >&6
28927 else
28928   ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
28929 fi
28930 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
28931 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
28932
28933 fi
28934 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
28935   BOOST_CFLAGS="-I$gr_boost_include_dir"
28936 else
28937   { { echo "$as_me:$LINENO: error: Failed to locate boost/shared_ptr.hpp.
28938 Try using --with-boost-include-dir=<path>,
28939 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&5
28940 echo "$as_me: error: Failed to locate boost/shared_ptr.hpp.
28941 Try using --with-boost-include-dir=<path>,
28942 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&2;}
28943    { (exit 1); exit 1; }; }
28944 fi
28945
28946
28947     CPPFLAGS=$OLD_CPPFLAGS
28948   else
28949     #
28950     # Otherwise we check in the default places
28951     #
28952     if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28953   { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
28954 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
28955 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28956   echo $ECHO_N "(cached) $ECHO_C" >&6
28957 fi
28958 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
28959 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
28960 else
28961   # Is the header compilable?
28962 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
28963 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
28964 cat >conftest.$ac_ext <<_ACEOF
28965 /* confdefs.h.  */
28966 _ACEOF
28967 cat confdefs.h >>conftest.$ac_ext
28968 cat >>conftest.$ac_ext <<_ACEOF
28969 /* end confdefs.h.  */
28970 $ac_includes_default
28971 #include <boost/shared_ptr.hpp>
28972 _ACEOF
28973 rm -f conftest.$ac_objext
28974 if { (ac_try="$ac_compile"
28975 case "(($ac_try" in
28976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28977   *) ac_try_echo=$ac_try;;
28978 esac
28979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28980   (eval "$ac_compile") 2>conftest.er1
28981   ac_status=$?
28982   grep -v '^ *+' conftest.er1 >conftest.err
28983   rm -f conftest.er1
28984   cat conftest.err >&5
28985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986   (exit $ac_status); } &&
28987          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28988   { (case "(($ac_try" in
28989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28990   *) ac_try_echo=$ac_try;;
28991 esac
28992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28993   (eval "$ac_try") 2>&5
28994   ac_status=$?
28995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996   (exit $ac_status); }; } &&
28997          { ac_try='test -s conftest.$ac_objext'
28998   { (case "(($ac_try" in
28999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29000   *) ac_try_echo=$ac_try;;
29001 esac
29002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29003   (eval "$ac_try") 2>&5
29004   ac_status=$?
29005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29006   (exit $ac_status); }; }; then
29007   ac_header_compiler=yes
29008 else
29009   echo "$as_me: failed program was:" >&5
29010 sed 's/^/| /' conftest.$ac_ext >&5
29011
29012         ac_header_compiler=no
29013 fi
29014
29015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29016 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29017 echo "${ECHO_T}$ac_header_compiler" >&6; }
29018
29019 # Is the header present?
29020 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
29021 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
29022 cat >conftest.$ac_ext <<_ACEOF
29023 /* confdefs.h.  */
29024 _ACEOF
29025 cat confdefs.h >>conftest.$ac_ext
29026 cat >>conftest.$ac_ext <<_ACEOF
29027 /* end confdefs.h.  */
29028 #include <boost/shared_ptr.hpp>
29029 _ACEOF
29030 if { (ac_try="$ac_cpp conftest.$ac_ext"
29031 case "(($ac_try" in
29032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29033   *) ac_try_echo=$ac_try;;
29034 esac
29035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29036   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29037   ac_status=$?
29038   grep -v '^ *+' conftest.er1 >conftest.err
29039   rm -f conftest.er1
29040   cat conftest.err >&5
29041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042   (exit $ac_status); } >/dev/null; then
29043   if test -s conftest.err; then
29044     ac_cpp_err=$ac_cxx_preproc_warn_flag
29045     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29046   else
29047     ac_cpp_err=
29048   fi
29049 else
29050   ac_cpp_err=yes
29051 fi
29052 if test -z "$ac_cpp_err"; then
29053   ac_header_preproc=yes
29054 else
29055   echo "$as_me: failed program was:" >&5
29056 sed 's/^/| /' conftest.$ac_ext >&5
29057
29058   ac_header_preproc=no
29059 fi
29060
29061 rm -f conftest.err conftest.$ac_ext
29062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29063 echo "${ECHO_T}$ac_header_preproc" >&6; }
29064
29065 # So?  What about this header?
29066 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29067   yes:no: )
29068     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
29069 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
29070     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
29071 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
29072     ac_header_preproc=yes
29073     ;;
29074   no:yes:* )
29075     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
29076 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
29077     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&5
29078 echo "$as_me: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&2;}
29079     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
29080 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
29081     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&5
29082 echo "$as_me: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
29083     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
29084 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
29085     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
29086 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
29087
29088     ;;
29089 esac
29090 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
29091 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
29092 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29093   echo $ECHO_N "(cached) $ECHO_C" >&6
29094 else
29095   ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
29096 fi
29097 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
29098 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
29099
29100 fi
29101 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
29102   BOOST_CFLAGS=""
29103 else
29104    # Nope, look for latest version if any in $prefix/include/boost-*
29105
29106         # Wipe out cached value.  KLUDGE: AC should have API for this
29107         unset ac_cv_header_boost_shared_ptr_hpp
29108
29109         boost_last_match(){
29110           #echo "boost_last_match: [$]*"
29111           pattern="$1"
29112           shift
29113           if test "$pattern" = "$1"
29114           then
29115             LM=''
29116           else
29117             shift `expr $# - 1`
29118             LM=$1
29119           fi
29120           #echo "LM(1)='[$]LM'"
29121         }
29122
29123         pattern="/usr/local/include/boost-*"
29124         boost_last_match "$pattern" $pattern
29125         #echo "LM(2)='$LM'"
29126
29127         OLD_CPPFLAGS=$CPP_FLAGS
29128         CPPFLAGS="$CPPFLAGS -I$LM"
29129         if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29130   { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
29131 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
29132 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29133   echo $ECHO_N "(cached) $ECHO_C" >&6
29134 fi
29135 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
29136 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
29137 else
29138   # Is the header compilable?
29139 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
29140 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
29141 cat >conftest.$ac_ext <<_ACEOF
29142 /* confdefs.h.  */
29143 _ACEOF
29144 cat confdefs.h >>conftest.$ac_ext
29145 cat >>conftest.$ac_ext <<_ACEOF
29146 /* end confdefs.h.  */
29147 $ac_includes_default
29148 #include <boost/shared_ptr.hpp>
29149 _ACEOF
29150 rm -f conftest.$ac_objext
29151 if { (ac_try="$ac_compile"
29152 case "(($ac_try" in
29153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29154   *) ac_try_echo=$ac_try;;
29155 esac
29156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29157   (eval "$ac_compile") 2>conftest.er1
29158   ac_status=$?
29159   grep -v '^ *+' conftest.er1 >conftest.err
29160   rm -f conftest.er1
29161   cat conftest.err >&5
29162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163   (exit $ac_status); } &&
29164          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29165   { (case "(($ac_try" in
29166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29167   *) ac_try_echo=$ac_try;;
29168 esac
29169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29170   (eval "$ac_try") 2>&5
29171   ac_status=$?
29172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173   (exit $ac_status); }; } &&
29174          { ac_try='test -s conftest.$ac_objext'
29175   { (case "(($ac_try" in
29176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29177   *) ac_try_echo=$ac_try;;
29178 esac
29179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29180   (eval "$ac_try") 2>&5
29181   ac_status=$?
29182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183   (exit $ac_status); }; }; then
29184   ac_header_compiler=yes
29185 else
29186   echo "$as_me: failed program was:" >&5
29187 sed 's/^/| /' conftest.$ac_ext >&5
29188
29189         ac_header_compiler=no
29190 fi
29191
29192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29194 echo "${ECHO_T}$ac_header_compiler" >&6; }
29195
29196 # Is the header present?
29197 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
29198 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
29199 cat >conftest.$ac_ext <<_ACEOF
29200 /* confdefs.h.  */
29201 _ACEOF
29202 cat confdefs.h >>conftest.$ac_ext
29203 cat >>conftest.$ac_ext <<_ACEOF
29204 /* end confdefs.h.  */
29205 #include <boost/shared_ptr.hpp>
29206 _ACEOF
29207 if { (ac_try="$ac_cpp conftest.$ac_ext"
29208 case "(($ac_try" in
29209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29210   *) ac_try_echo=$ac_try;;
29211 esac
29212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29213   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29214   ac_status=$?
29215   grep -v '^ *+' conftest.er1 >conftest.err
29216   rm -f conftest.er1
29217   cat conftest.err >&5
29218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219   (exit $ac_status); } >/dev/null; then
29220   if test -s conftest.err; then
29221     ac_cpp_err=$ac_cxx_preproc_warn_flag
29222     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29223   else
29224     ac_cpp_err=
29225   fi
29226 else
29227   ac_cpp_err=yes
29228 fi
29229 if test -z "$ac_cpp_err"; then
29230   ac_header_preproc=yes
29231 else
29232   echo "$as_me: failed program was:" >&5
29233 sed 's/^/| /' conftest.$ac_ext >&5
29234
29235   ac_header_preproc=no
29236 fi
29237
29238 rm -f conftest.err conftest.$ac_ext
29239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29240 echo "${ECHO_T}$ac_header_preproc" >&6; }
29241
29242 # So?  What about this header?
29243 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29244   yes:no: )
29245     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
29246 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
29247     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
29248 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
29249     ac_header_preproc=yes
29250     ;;
29251   no:yes:* )
29252     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
29253 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
29254     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&5
29255 echo "$as_me: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&2;}
29256     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
29257 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
29258     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&5
29259 echo "$as_me: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
29260     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
29261 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
29262     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
29263 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
29264
29265     ;;
29266 esac
29267 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
29268 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
29269 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29270   echo $ECHO_N "(cached) $ECHO_C" >&6
29271 else
29272   ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
29273 fi
29274 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
29275 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
29276
29277 fi
29278 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
29279   BOOST_CFLAGS="-I$LM"
29280 else
29281   { { echo "$as_me:$LINENO: error: Failed to locate boost/shared_ptr.hpp.
29282 Try using --with-boost-include-dir=<path>,
29283 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&5
29284 echo "$as_me: error: Failed to locate boost/shared_ptr.hpp.
29285 Try using --with-boost-include-dir=<path>,
29286 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&2;}
29287    { (exit 1); exit 1; }; }
29288 fi
29289
29290
29291         CPPFLAGS=$OLD_CPPFLAGS
29292
29293 fi
29294
29295
29296
29297    fi
29298    unset boost_last_match LM
29299    ac_ext=c
29300 ac_cpp='$CPP $CPPFLAGS'
29301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29304
29305
29306
29307
29308 DEFINES=""
29309
29310
29311 # Check whether --enable-all-components was given.
29312 if test "${enable_all_components+set}" = set; then
29313   enableval=$enable_all_components;
29314 fi
29315
29316
29317 build_dirs="config"
29318
29319
29320     # Check whether --enable-gnuradio-core was given.
29321 if test "${enable_gnuradio_core+set}" = set; then
29322   enableval=$enable_gnuradio_core;
29323 else
29324   enable_gnuradio_core=$enable_all_components
29325 fi
29326
29327
29328
29329     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"
29330
29331
29332     passed=yes
29333
29334     if test x$passed = xno; then
29335         skipped_dirs="$skipped_dirs gnuradio-core"
29336         if test x$enable_gnuradio_core = xyes; then
29337             { { echo "$as_me:$LINENO: error: Component gnuradio-core has errors, stopping." >&5
29338 echo "$as_me: error: Component gnuradio-core has errors, stopping." >&2;}
29339    { (exit 1); exit 1; }; }
29340         else
29341             { echo "$as_me:$LINENO: result: Not building component gnuradio-core." >&5
29342 echo "${ECHO_T}Not building component gnuradio-core." >&6; }
29343         fi
29344     else
29345         if test x$enable_gnuradio_core != xno; then
29346
29347                 ac_config_commands="$ac_config_commands run_tests_core"
29348
29349
29350                 ac_config_commands="$ac_config_commands swig_deps"
29351
29352
29353             build_dirs="$build_dirs gnuradio-core"
29354             { echo "$as_me:$LINENO: result: Component gnuradio-core passed configuration checks, building." >&5
29355 echo "${ECHO_T}Component gnuradio-core passed configuration checks, building." >&6; }
29356         else
29357             skipped_dirs="$skipped_dirs gnuradio-core"
29358             { echo "$as_me:$LINENO: result: Component gnuradio-core passed configuration checks, but not building." >&5
29359 echo "${ECHO_T}Component gnuradio-core passed configuration checks, but not building." >&6; }
29360         fi
29361     fi
29362
29363
29364
29365
29366     # Check whether --enable-gnuradio-examples was given.
29367 if test "${enable_gnuradio_examples+set}" = set; then
29368   enableval=$enable_gnuradio_examples;
29369 else
29370   enable_gnuradio_examples=$enable_all_components
29371 fi
29372
29373
29374
29375     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"
29376
29377
29378     passed=yes
29379
29380     if test x$passed = xno; then
29381         skipped_dirs="$skipped_dirs gnuradio-examples"
29382         if test x$enable_gnuradio_examples = xyes; then
29383             { { echo "$as_me:$LINENO: error: Component gnuradio-examples has errors, stopping." >&5
29384 echo "$as_me: error: Component gnuradio-examples has errors, stopping." >&2;}
29385    { (exit 1); exit 1; }; }
29386         else
29387             { echo "$as_me:$LINENO: result: Not building component gnuradio-examples." >&5
29388 echo "${ECHO_T}Not building component gnuradio-examples." >&6; }
29389         fi
29390     else
29391         if test x$enable_gnuradio_examples != xno; then
29392
29393             build_dirs="$build_dirs gnuradio-examples"
29394             { echo "$as_me:$LINENO: result: Component gnuradio-examples passed configuration checks, building." >&5
29395 echo "${ECHO_T}Component gnuradio-examples passed configuration checks, building." >&6; }
29396         else
29397             skipped_dirs="$skipped_dirs gnuradio-examples"
29398             { echo "$as_me:$LINENO: result: Component gnuradio-examples passed configuration checks, but not building." >&5
29399 echo "${ECHO_T}Component gnuradio-examples passed configuration checks, but not building." >&6; }
29400         fi
29401     fi
29402
29403
29404 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29405 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29406 if test "${ac_cv_header_stat_broken+set}" = set; then
29407   echo $ECHO_N "(cached) $ECHO_C" >&6
29408 else
29409   cat >conftest.$ac_ext <<_ACEOF
29410 /* confdefs.h.  */
29411 _ACEOF
29412 cat confdefs.h >>conftest.$ac_ext
29413 cat >>conftest.$ac_ext <<_ACEOF
29414 /* end confdefs.h.  */
29415 #include <sys/types.h>
29416 #include <sys/stat.h>
29417
29418 #if defined S_ISBLK && defined S_IFDIR
29419 # if S_ISBLK (S_IFDIR)
29420 You lose.
29421 # endif
29422 #endif
29423
29424 #if defined S_ISBLK && defined S_IFCHR
29425 # if S_ISBLK (S_IFCHR)
29426 You lose.
29427 # endif
29428 #endif
29429
29430 #if defined S_ISLNK && defined S_IFREG
29431 # if S_ISLNK (S_IFREG)
29432 You lose.
29433 # endif
29434 #endif
29435
29436 #if defined S_ISSOCK && defined S_IFREG
29437 # if S_ISSOCK (S_IFREG)
29438 You lose.
29439 # endif
29440 #endif
29441
29442 _ACEOF
29443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29444   $EGREP "You lose" >/dev/null 2>&1; then
29445   ac_cv_header_stat_broken=yes
29446 else
29447   ac_cv_header_stat_broken=no
29448 fi
29449 rm -f conftest*
29450
29451 fi
29452 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29453 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29454 if test $ac_cv_header_stat_broken = yes; then
29455
29456 cat >>confdefs.h <<\_ACEOF
29457 #define STAT_MACROS_BROKEN 1
29458 _ACEOF
29459
29460 fi
29461
29462
29463
29464 for ac_header in fcntl.h
29465 do
29466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29468   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29471   echo $ECHO_N "(cached) $ECHO_C" >&6
29472 fi
29473 ac_res=`eval echo '${'$as_ac_Header'}'`
29474                { echo "$as_me:$LINENO: result: $ac_res" >&5
29475 echo "${ECHO_T}$ac_res" >&6; }
29476 else
29477   # Is the header compilable?
29478 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29480 cat >conftest.$ac_ext <<_ACEOF
29481 /* confdefs.h.  */
29482 _ACEOF
29483 cat confdefs.h >>conftest.$ac_ext
29484 cat >>conftest.$ac_ext <<_ACEOF
29485 /* end confdefs.h.  */
29486 $ac_includes_default
29487 #include <$ac_header>
29488 _ACEOF
29489 rm -f conftest.$ac_objext
29490 if { (ac_try="$ac_compile"
29491 case "(($ac_try" in
29492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29493   *) ac_try_echo=$ac_try;;
29494 esac
29495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29496   (eval "$ac_compile") 2>conftest.er1
29497   ac_status=$?
29498   grep -v '^ *+' conftest.er1 >conftest.err
29499   rm -f conftest.er1
29500   cat conftest.err >&5
29501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502   (exit $ac_status); } &&
29503          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29504   { (case "(($ac_try" in
29505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29506   *) ac_try_echo=$ac_try;;
29507 esac
29508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29509   (eval "$ac_try") 2>&5
29510   ac_status=$?
29511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512   (exit $ac_status); }; } &&
29513          { ac_try='test -s conftest.$ac_objext'
29514   { (case "(($ac_try" in
29515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29516   *) ac_try_echo=$ac_try;;
29517 esac
29518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29519   (eval "$ac_try") 2>&5
29520   ac_status=$?
29521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522   (exit $ac_status); }; }; then
29523   ac_header_compiler=yes
29524 else
29525   echo "$as_me: failed program was:" >&5
29526 sed 's/^/| /' conftest.$ac_ext >&5
29527
29528         ac_header_compiler=no
29529 fi
29530
29531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29533 echo "${ECHO_T}$ac_header_compiler" >&6; }
29534
29535 # Is the header present?
29536 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29538 cat >conftest.$ac_ext <<_ACEOF
29539 /* confdefs.h.  */
29540 _ACEOF
29541 cat confdefs.h >>conftest.$ac_ext
29542 cat >>conftest.$ac_ext <<_ACEOF
29543 /* end confdefs.h.  */
29544 #include <$ac_header>
29545 _ACEOF
29546 if { (ac_try="$ac_cpp conftest.$ac_ext"
29547 case "(($ac_try" in
29548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29549   *) ac_try_echo=$ac_try;;
29550 esac
29551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29552   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29553   ac_status=$?
29554   grep -v '^ *+' conftest.er1 >conftest.err
29555   rm -f conftest.er1
29556   cat conftest.err >&5
29557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558   (exit $ac_status); } >/dev/null; then
29559   if test -s conftest.err; then
29560     ac_cpp_err=$ac_c_preproc_warn_flag
29561     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29562   else
29563     ac_cpp_err=
29564   fi
29565 else
29566   ac_cpp_err=yes
29567 fi
29568 if test -z "$ac_cpp_err"; then
29569   ac_header_preproc=yes
29570 else
29571   echo "$as_me: failed program was:" >&5
29572 sed 's/^/| /' conftest.$ac_ext >&5
29573
29574   ac_header_preproc=no
29575 fi
29576
29577 rm -f conftest.err conftest.$ac_ext
29578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29579 echo "${ECHO_T}$ac_header_preproc" >&6; }
29580
29581 # So?  What about this header?
29582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29583   yes:no: )
29584     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29588     ac_header_preproc=yes
29589     ;;
29590   no:yes:* )
29591     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29593     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29594 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29595     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29597     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29598 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29599     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29601     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29603
29604     ;;
29605 esac
29606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29609   echo $ECHO_N "(cached) $ECHO_C" >&6
29610 else
29611   eval "$as_ac_Header=\$ac_header_preproc"
29612 fi
29613 ac_res=`eval echo '${'$as_ac_Header'}'`
29614                { echo "$as_me:$LINENO: result: $ac_res" >&5
29615 echo "${ECHO_T}$ac_res" >&6; }
29616
29617 fi
29618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29619   cat >>confdefs.h <<_ACEOF
29620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29621 _ACEOF
29622
29623 fi
29624
29625 done
29626
29627
29628
29629
29630 for ac_header in sys/time.h
29631 do
29632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29634   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29637   echo $ECHO_N "(cached) $ECHO_C" >&6
29638 fi
29639 ac_res=`eval echo '${'$as_ac_Header'}'`
29640                { echo "$as_me:$LINENO: result: $ac_res" >&5
29641 echo "${ECHO_T}$ac_res" >&6; }
29642 else
29643   # Is the header compilable?
29644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29646 cat >conftest.$ac_ext <<_ACEOF
29647 /* confdefs.h.  */
29648 _ACEOF
29649 cat confdefs.h >>conftest.$ac_ext
29650 cat >>conftest.$ac_ext <<_ACEOF
29651 /* end confdefs.h.  */
29652 $ac_includes_default
29653 #include <$ac_header>
29654 _ACEOF
29655 rm -f conftest.$ac_objext
29656 if { (ac_try="$ac_compile"
29657 case "(($ac_try" in
29658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29659   *) ac_try_echo=$ac_try;;
29660 esac
29661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29662   (eval "$ac_compile") 2>conftest.er1
29663   ac_status=$?
29664   grep -v '^ *+' conftest.er1 >conftest.err
29665   rm -f conftest.er1
29666   cat conftest.err >&5
29667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668   (exit $ac_status); } &&
29669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29670   { (case "(($ac_try" in
29671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29672   *) ac_try_echo=$ac_try;;
29673 esac
29674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29675   (eval "$ac_try") 2>&5
29676   ac_status=$?
29677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678   (exit $ac_status); }; } &&
29679          { ac_try='test -s conftest.$ac_objext'
29680   { (case "(($ac_try" in
29681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29682   *) ac_try_echo=$ac_try;;
29683 esac
29684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29685   (eval "$ac_try") 2>&5
29686   ac_status=$?
29687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688   (exit $ac_status); }; }; then
29689   ac_header_compiler=yes
29690 else
29691   echo "$as_me: failed program was:" >&5
29692 sed 's/^/| /' conftest.$ac_ext >&5
29693
29694         ac_header_compiler=no
29695 fi
29696
29697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29699 echo "${ECHO_T}$ac_header_compiler" >&6; }
29700
29701 # Is the header present?
29702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29704 cat >conftest.$ac_ext <<_ACEOF
29705 /* confdefs.h.  */
29706 _ACEOF
29707 cat confdefs.h >>conftest.$ac_ext
29708 cat >>conftest.$ac_ext <<_ACEOF
29709 /* end confdefs.h.  */
29710 #include <$ac_header>
29711 _ACEOF
29712 if { (ac_try="$ac_cpp conftest.$ac_ext"
29713 case "(($ac_try" in
29714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29715   *) ac_try_echo=$ac_try;;
29716 esac
29717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29718   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29719   ac_status=$?
29720   grep -v '^ *+' conftest.er1 >conftest.err
29721   rm -f conftest.er1
29722   cat conftest.err >&5
29723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724   (exit $ac_status); } >/dev/null; then
29725   if test -s conftest.err; then
29726     ac_cpp_err=$ac_c_preproc_warn_flag
29727     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29728   else
29729     ac_cpp_err=
29730   fi
29731 else
29732   ac_cpp_err=yes
29733 fi
29734 if test -z "$ac_cpp_err"; then
29735   ac_header_preproc=yes
29736 else
29737   echo "$as_me: failed program was:" >&5
29738 sed 's/^/| /' conftest.$ac_ext >&5
29739
29740   ac_header_preproc=no
29741 fi
29742
29743 rm -f conftest.err conftest.$ac_ext
29744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29745 echo "${ECHO_T}$ac_header_preproc" >&6; }
29746
29747 # So?  What about this header?
29748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29749   yes:no: )
29750     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29754     ac_header_preproc=yes
29755     ;;
29756   no:yes:* )
29757     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29759     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29760 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29761     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29763     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29764 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29767     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29769
29770     ;;
29771 esac
29772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29775   echo $ECHO_N "(cached) $ECHO_C" >&6
29776 else
29777   eval "$as_ac_Header=\$ac_header_preproc"
29778 fi
29779 ac_res=`eval echo '${'$as_ac_Header'}'`
29780                { echo "$as_me:$LINENO: result: $ac_res" >&5
29781 echo "${ECHO_T}$ac_res" >&6; }
29782
29783 fi
29784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29785   cat >>confdefs.h <<_ACEOF
29786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29787 _ACEOF
29788
29789 fi
29790
29791 done
29792
29793
29794
29795
29796 for ac_header in unistd.h
29797 do
29798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29800   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29803   echo $ECHO_N "(cached) $ECHO_C" >&6
29804 fi
29805 ac_res=`eval echo '${'$as_ac_Header'}'`
29806                { echo "$as_me:$LINENO: result: $ac_res" >&5
29807 echo "${ECHO_T}$ac_res" >&6; }
29808 else
29809   # Is the header compilable?
29810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29812 cat >conftest.$ac_ext <<_ACEOF
29813 /* confdefs.h.  */
29814 _ACEOF
29815 cat confdefs.h >>conftest.$ac_ext
29816 cat >>conftest.$ac_ext <<_ACEOF
29817 /* end confdefs.h.  */
29818 $ac_includes_default
29819 #include <$ac_header>
29820 _ACEOF
29821 rm -f conftest.$ac_objext
29822 if { (ac_try="$ac_compile"
29823 case "(($ac_try" in
29824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29825   *) ac_try_echo=$ac_try;;
29826 esac
29827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29828   (eval "$ac_compile") 2>conftest.er1
29829   ac_status=$?
29830   grep -v '^ *+' conftest.er1 >conftest.err
29831   rm -f conftest.er1
29832   cat conftest.err >&5
29833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834   (exit $ac_status); } &&
29835          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29836   { (case "(($ac_try" in
29837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29838   *) ac_try_echo=$ac_try;;
29839 esac
29840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29841   (eval "$ac_try") 2>&5
29842   ac_status=$?
29843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844   (exit $ac_status); }; } &&
29845          { ac_try='test -s conftest.$ac_objext'
29846   { (case "(($ac_try" in
29847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29848   *) ac_try_echo=$ac_try;;
29849 esac
29850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29851   (eval "$ac_try") 2>&5
29852   ac_status=$?
29853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854   (exit $ac_status); }; }; then
29855   ac_header_compiler=yes
29856 else
29857   echo "$as_me: failed program was:" >&5
29858 sed 's/^/| /' conftest.$ac_ext >&5
29859
29860         ac_header_compiler=no
29861 fi
29862
29863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29865 echo "${ECHO_T}$ac_header_compiler" >&6; }
29866
29867 # Is the header present?
29868 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29870 cat >conftest.$ac_ext <<_ACEOF
29871 /* confdefs.h.  */
29872 _ACEOF
29873 cat confdefs.h >>conftest.$ac_ext
29874 cat >>conftest.$ac_ext <<_ACEOF
29875 /* end confdefs.h.  */
29876 #include <$ac_header>
29877 _ACEOF
29878 if { (ac_try="$ac_cpp conftest.$ac_ext"
29879 case "(($ac_try" in
29880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29881   *) ac_try_echo=$ac_try;;
29882 esac
29883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29884   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29885   ac_status=$?
29886   grep -v '^ *+' conftest.er1 >conftest.err
29887   rm -f conftest.er1
29888   cat conftest.err >&5
29889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890   (exit $ac_status); } >/dev/null; then
29891   if test -s conftest.err; then
29892     ac_cpp_err=$ac_c_preproc_warn_flag
29893     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29894   else
29895     ac_cpp_err=
29896   fi
29897 else
29898   ac_cpp_err=yes
29899 fi
29900 if test -z "$ac_cpp_err"; then
29901   ac_header_preproc=yes
29902 else
29903   echo "$as_me: failed program was:" >&5
29904 sed 's/^/| /' conftest.$ac_ext >&5
29905
29906   ac_header_preproc=no
29907 fi
29908
29909 rm -f conftest.err conftest.$ac_ext
29910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29911 echo "${ECHO_T}$ac_header_preproc" >&6; }
29912
29913 # So?  What about this header?
29914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29915   yes:no: )
29916     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29920     ac_header_preproc=yes
29921     ;;
29922   no:yes:* )
29923     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29925     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29926 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29927     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29929     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29930 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29933     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29935
29936     ;;
29937 esac
29938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29941   echo $ECHO_N "(cached) $ECHO_C" >&6
29942 else
29943   eval "$as_ac_Header=\$ac_header_preproc"
29944 fi
29945 ac_res=`eval echo '${'$as_ac_Header'}'`
29946                { echo "$as_me:$LINENO: result: $ac_res" >&5
29947 echo "${ECHO_T}$ac_res" >&6; }
29948
29949 fi
29950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29951   cat >>confdefs.h <<_ACEOF
29952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29953 _ACEOF
29954
29955 fi
29956
29957 done
29958
29959
29960
29961       { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
29962 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
29963 if test "${ac_cv_have_decl_getenv+set}" = set; then
29964   echo $ECHO_N "(cached) $ECHO_C" >&6
29965 else
29966   cat >conftest.$ac_ext <<_ACEOF
29967 /* confdefs.h.  */
29968 _ACEOF
29969 cat confdefs.h >>conftest.$ac_ext
29970 cat >>conftest.$ac_ext <<_ACEOF
29971 /* end confdefs.h.  */
29972 $ac_includes_default
29973 int
29974 main ()
29975 {
29976 #ifndef getenv
29977   char *p = (char *) getenv;
29978   return !p;
29979 #endif
29980
29981   ;
29982   return 0;
29983 }
29984 _ACEOF
29985 rm -f conftest.$ac_objext
29986 if { (ac_try="$ac_compile"
29987 case "(($ac_try" in
29988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29989   *) ac_try_echo=$ac_try;;
29990 esac
29991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29992   (eval "$ac_compile") 2>conftest.er1
29993   ac_status=$?
29994   grep -v '^ *+' conftest.er1 >conftest.err
29995   rm -f conftest.er1
29996   cat conftest.err >&5
29997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998   (exit $ac_status); } &&
29999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30000   { (case "(($ac_try" in
30001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30002   *) ac_try_echo=$ac_try;;
30003 esac
30004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30005   (eval "$ac_try") 2>&5
30006   ac_status=$?
30007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008   (exit $ac_status); }; } &&
30009          { ac_try='test -s conftest.$ac_objext'
30010   { (case "(($ac_try" in
30011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30012   *) ac_try_echo=$ac_try;;
30013 esac
30014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30015   (eval "$ac_try") 2>&5
30016   ac_status=$?
30017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018   (exit $ac_status); }; }; then
30019   ac_cv_have_decl_getenv=yes
30020 else
30021   echo "$as_me: failed program was:" >&5
30022 sed 's/^/| /' conftest.$ac_ext >&5
30023
30024         ac_cv_have_decl_getenv=no
30025 fi
30026
30027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30028 fi
30029 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
30030 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
30031 if test $ac_cv_have_decl_getenv = yes; then
30032
30033 cat >>confdefs.h <<_ACEOF
30034 #define HAVE_DECL_GETENV 1
30035 _ACEOF
30036
30037
30038 else
30039   cat >>confdefs.h <<_ACEOF
30040 #define HAVE_DECL_GETENV 0
30041 _ACEOF
30042
30043
30044 fi
30045
30046
30047
30048
30049
30050     # Check whether --enable-usrp was given.
30051 if test "${enable_usrp+set}" = set; then
30052   enableval=$enable_usrp;
30053 else
30054   enable_usrp=$enable_all_components
30055 fi
30056
30057
30058
30059     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"
30060
30061
30062     # gnulib.
30063     # FIXME: this needs to fail gracefully and continue, not implemented yet
30064
30065 for ac_func in mkstemp
30066 do
30067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30071   echo $ECHO_N "(cached) $ECHO_C" >&6
30072 else
30073   cat >conftest.$ac_ext <<_ACEOF
30074 /* confdefs.h.  */
30075 _ACEOF
30076 cat confdefs.h >>conftest.$ac_ext
30077 cat >>conftest.$ac_ext <<_ACEOF
30078 /* end confdefs.h.  */
30079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30081 #define $ac_func innocuous_$ac_func
30082
30083 /* System header to define __stub macros and hopefully few prototypes,
30084     which can conflict with char $ac_func (); below.
30085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30086     <limits.h> exists even on freestanding compilers.  */
30087
30088 #ifdef __STDC__
30089 # include <limits.h>
30090 #else
30091 # include <assert.h>
30092 #endif
30093
30094 #undef $ac_func
30095
30096 /* Override any GCC internal prototype to avoid an error.
30097    Use char because int might match the return type of a GCC
30098    builtin and then its argument prototype would still apply.  */
30099 #ifdef __cplusplus
30100 extern "C"
30101 #endif
30102 char $ac_func ();
30103 /* The GNU C library defines this for functions which it implements
30104     to always fail with ENOSYS.  Some functions are actually named
30105     something starting with __ and the normal name is an alias.  */
30106 #if defined __stub_$ac_func || defined __stub___$ac_func
30107 choke me
30108 #endif
30109
30110 int
30111 main ()
30112 {
30113 return $ac_func ();
30114   ;
30115   return 0;
30116 }
30117 _ACEOF
30118 rm -f conftest.$ac_objext conftest$ac_exeext
30119 if { (ac_try="$ac_link"
30120 case "(($ac_try" in
30121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30122   *) ac_try_echo=$ac_try;;
30123 esac
30124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30125   (eval "$ac_link") 2>conftest.er1
30126   ac_status=$?
30127   grep -v '^ *+' conftest.er1 >conftest.err
30128   rm -f conftest.er1
30129   cat conftest.err >&5
30130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131   (exit $ac_status); } &&
30132          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30133   { (case "(($ac_try" in
30134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30135   *) ac_try_echo=$ac_try;;
30136 esac
30137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30138   (eval "$ac_try") 2>&5
30139   ac_status=$?
30140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141   (exit $ac_status); }; } &&
30142          { ac_try='test -s conftest$ac_exeext'
30143   { (case "(($ac_try" in
30144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30145   *) ac_try_echo=$ac_try;;
30146 esac
30147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30148   (eval "$ac_try") 2>&5
30149   ac_status=$?
30150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151   (exit $ac_status); }; }; then
30152   eval "$as_ac_var=yes"
30153 else
30154   echo "$as_me: failed program was:" >&5
30155 sed 's/^/| /' conftest.$ac_ext >&5
30156
30157         eval "$as_ac_var=no"
30158 fi
30159
30160 rm -f core conftest.err conftest.$ac_objext \
30161       conftest$ac_exeext conftest.$ac_ext
30162 fi
30163 ac_res=`eval echo '${'$as_ac_var'}'`
30164                { echo "$as_me:$LINENO: result: $ac_res" >&5
30165 echo "${ECHO_T}$ac_res" >&6; }
30166 if test `eval echo '${'$as_ac_var'}'` = yes; then
30167   cat >>confdefs.h <<_ACEOF
30168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30169 _ACEOF
30170
30171 else
30172   case " $LIBOBJS " in
30173   *" $ac_func.$ac_objext "* ) ;;
30174   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
30175  ;;
30176 esac
30177
30178 fi
30179 done
30180
30181
30182   if test $ac_cv_func_mkstemp = no; then
30183     utils_cv_func_mkstemp_limitations=yes
30184   else
30185     { echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
30186 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6; }
30187 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
30188   echo $ECHO_N "(cached) $ECHO_C" >&6
30189 else
30190
30191         if test "$cross_compiling" = yes; then
30192   utils_cv_func_mkstemp_limitations=yes
30193
30194 else
30195   cat >conftest.$ac_ext <<_ACEOF
30196 /* confdefs.h.  */
30197 _ACEOF
30198 cat confdefs.h >>conftest.$ac_ext
30199 cat >>conftest.$ac_ext <<_ACEOF
30200 /* end confdefs.h.  */
30201
30202 #         include <stdlib.h>
30203           int main ()
30204           {
30205             int i;
30206             for (i = 0; i < 70; i++)
30207               {
30208                 char template[] = "conftestXXXXXX";
30209                 int fd = mkstemp (template);
30210                 if (fd == -1)
30211                   exit (1);
30212                 close (fd);
30213               }
30214             exit (0);
30215           }
30216
30217 _ACEOF
30218 rm -f conftest$ac_exeext
30219 if { (ac_try="$ac_link"
30220 case "(($ac_try" in
30221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30222   *) ac_try_echo=$ac_try;;
30223 esac
30224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30225   (eval "$ac_link") 2>&5
30226   ac_status=$?
30227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30229   { (case "(($ac_try" in
30230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30231   *) ac_try_echo=$ac_try;;
30232 esac
30233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30234   (eval "$ac_try") 2>&5
30235   ac_status=$?
30236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237   (exit $ac_status); }; }; then
30238   utils_cv_func_mkstemp_limitations=no
30239 else
30240   echo "$as_me: program exited with status $ac_status" >&5
30241 echo "$as_me: failed program was:" >&5
30242 sed 's/^/| /' conftest.$ac_ext >&5
30243
30244 ( exit $ac_status )
30245 utils_cv_func_mkstemp_limitations=yes
30246 fi
30247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30248 fi
30249
30250
30251
30252
30253 fi
30254 { echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
30255 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6; }
30256   fi
30257
30258   if test $utils_cv_func_mkstemp_limitations = yes; then
30259     case " $LIBOBJS " in
30260   *" mkstemp.$ac_objext "* ) ;;
30261   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
30262  ;;
30263 esac
30264
30265     case " $LIBOBJS " in
30266   *" tempname.$ac_objext "* ) ;;
30267   *) LIBOBJS="$LIBOBJS tempname.$ac_objext"
30268  ;;
30269 esac
30270
30271
30272 cat >>confdefs.h <<\_ACEOF
30273 #define mkstemp rpl_mkstemp
30274 _ACEOF
30275
30276
30277
30278
30279
30280
30281
30282
30283   :
30284
30285
30286
30287
30288
30289
30290
30291
30292
30293
30294
30295
30296 for ac_header in stdint.h
30297 do
30298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30300   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30303   echo $ECHO_N "(cached) $ECHO_C" >&6
30304 fi
30305 ac_res=`eval echo '${'$as_ac_Header'}'`
30306                { echo "$as_me:$LINENO: result: $ac_res" >&5
30307 echo "${ECHO_T}$ac_res" >&6; }
30308 else
30309   # Is the header compilable?
30310 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30312 cat >conftest.$ac_ext <<_ACEOF
30313 /* confdefs.h.  */
30314 _ACEOF
30315 cat confdefs.h >>conftest.$ac_ext
30316 cat >>conftest.$ac_ext <<_ACEOF
30317 /* end confdefs.h.  */
30318 $ac_includes_default
30319 #include <$ac_header>
30320 _ACEOF
30321 rm -f conftest.$ac_objext
30322 if { (ac_try="$ac_compile"
30323 case "(($ac_try" in
30324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30325   *) ac_try_echo=$ac_try;;
30326 esac
30327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30328   (eval "$ac_compile") 2>conftest.er1
30329   ac_status=$?
30330   grep -v '^ *+' conftest.er1 >conftest.err
30331   rm -f conftest.er1
30332   cat conftest.err >&5
30333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334   (exit $ac_status); } &&
30335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30336   { (case "(($ac_try" in
30337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30338   *) ac_try_echo=$ac_try;;
30339 esac
30340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30341   (eval "$ac_try") 2>&5
30342   ac_status=$?
30343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30344   (exit $ac_status); }; } &&
30345          { ac_try='test -s conftest.$ac_objext'
30346   { (case "(($ac_try" in
30347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30348   *) ac_try_echo=$ac_try;;
30349 esac
30350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30351   (eval "$ac_try") 2>&5
30352   ac_status=$?
30353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354   (exit $ac_status); }; }; then
30355   ac_header_compiler=yes
30356 else
30357   echo "$as_me: failed program was:" >&5
30358 sed 's/^/| /' conftest.$ac_ext >&5
30359
30360         ac_header_compiler=no
30361 fi
30362
30363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30364 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30365 echo "${ECHO_T}$ac_header_compiler" >&6; }
30366
30367 # Is the header present?
30368 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30370 cat >conftest.$ac_ext <<_ACEOF
30371 /* confdefs.h.  */
30372 _ACEOF
30373 cat confdefs.h >>conftest.$ac_ext
30374 cat >>conftest.$ac_ext <<_ACEOF
30375 /* end confdefs.h.  */
30376 #include <$ac_header>
30377 _ACEOF
30378 if { (ac_try="$ac_cpp conftest.$ac_ext"
30379 case "(($ac_try" in
30380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30381   *) ac_try_echo=$ac_try;;
30382 esac
30383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30384   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30385   ac_status=$?
30386   grep -v '^ *+' conftest.er1 >conftest.err
30387   rm -f conftest.er1
30388   cat conftest.err >&5
30389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30390   (exit $ac_status); } >/dev/null; then
30391   if test -s conftest.err; then
30392     ac_cpp_err=$ac_c_preproc_warn_flag
30393     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30394   else
30395     ac_cpp_err=
30396   fi
30397 else
30398   ac_cpp_err=yes
30399 fi
30400 if test -z "$ac_cpp_err"; then
30401   ac_header_preproc=yes
30402 else
30403   echo "$as_me: failed program was:" >&5
30404 sed 's/^/| /' conftest.$ac_ext >&5
30405
30406   ac_header_preproc=no
30407 fi
30408
30409 rm -f conftest.err conftest.$ac_ext
30410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30411 echo "${ECHO_T}$ac_header_preproc" >&6; }
30412
30413 # So?  What about this header?
30414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30415   yes:no: )
30416     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30420     ac_header_preproc=yes
30421     ;;
30422   no:yes:* )
30423     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30425     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30426 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30427     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30429     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30430 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30433     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30435
30436     ;;
30437 esac
30438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30441   echo $ECHO_N "(cached) $ECHO_C" >&6
30442 else
30443   eval "$as_ac_Header=\$ac_header_preproc"
30444 fi
30445 ac_res=`eval echo '${'$as_ac_Header'}'`
30446                { echo "$as_me:$LINENO: result: $ac_res" >&5
30447 echo "${ECHO_T}$ac_res" >&6; }
30448
30449 fi
30450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30451   cat >>confdefs.h <<_ACEOF
30452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30453 _ACEOF
30454
30455 fi
30456
30457 done
30458
30459
30460
30461
30462 for ac_func in __secure_getenv gettimeofday lstat
30463 do
30464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30465 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30467 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30468   echo $ECHO_N "(cached) $ECHO_C" >&6
30469 else
30470   cat >conftest.$ac_ext <<_ACEOF
30471 /* confdefs.h.  */
30472 _ACEOF
30473 cat confdefs.h >>conftest.$ac_ext
30474 cat >>conftest.$ac_ext <<_ACEOF
30475 /* end confdefs.h.  */
30476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30477    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30478 #define $ac_func innocuous_$ac_func
30479
30480 /* System header to define __stub macros and hopefully few prototypes,
30481     which can conflict with char $ac_func (); below.
30482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30483     <limits.h> exists even on freestanding compilers.  */
30484
30485 #ifdef __STDC__
30486 # include <limits.h>
30487 #else
30488 # include <assert.h>
30489 #endif
30490
30491 #undef $ac_func
30492
30493 /* Override any GCC internal prototype to avoid an error.
30494    Use char because int might match the return type of a GCC
30495    builtin and then its argument prototype would still apply.  */
30496 #ifdef __cplusplus
30497 extern "C"
30498 #endif
30499 char $ac_func ();
30500 /* The GNU C library defines this for functions which it implements
30501     to always fail with ENOSYS.  Some functions are actually named
30502     something starting with __ and the normal name is an alias.  */
30503 #if defined __stub_$ac_func || defined __stub___$ac_func
30504 choke me
30505 #endif
30506
30507 int
30508 main ()
30509 {
30510 return $ac_func ();
30511   ;
30512   return 0;
30513 }
30514 _ACEOF
30515 rm -f conftest.$ac_objext conftest$ac_exeext
30516 if { (ac_try="$ac_link"
30517 case "(($ac_try" in
30518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30519   *) ac_try_echo=$ac_try;;
30520 esac
30521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30522   (eval "$ac_link") 2>conftest.er1
30523   ac_status=$?
30524   grep -v '^ *+' conftest.er1 >conftest.err
30525   rm -f conftest.er1
30526   cat conftest.err >&5
30527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528   (exit $ac_status); } &&
30529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30530   { (case "(($ac_try" in
30531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30532   *) ac_try_echo=$ac_try;;
30533 esac
30534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30535   (eval "$ac_try") 2>&5
30536   ac_status=$?
30537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30538   (exit $ac_status); }; } &&
30539          { ac_try='test -s conftest$ac_exeext'
30540   { (case "(($ac_try" in
30541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30542   *) ac_try_echo=$ac_try;;
30543 esac
30544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30545   (eval "$ac_try") 2>&5
30546   ac_status=$?
30547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548   (exit $ac_status); }; }; then
30549   eval "$as_ac_var=yes"
30550 else
30551   echo "$as_me: failed program was:" >&5
30552 sed 's/^/| /' conftest.$ac_ext >&5
30553
30554         eval "$as_ac_var=no"
30555 fi
30556
30557 rm -f core conftest.err conftest.$ac_objext \
30558       conftest$ac_exeext conftest.$ac_ext
30559 fi
30560 ac_res=`eval echo '${'$as_ac_var'}'`
30561                { echo "$as_me:$LINENO: result: $ac_res" >&5
30562 echo "${ECHO_T}$ac_res" >&6; }
30563 if test `eval echo '${'$as_ac_var'}'` = yes; then
30564   cat >>confdefs.h <<_ACEOF
30565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30566 _ACEOF
30567
30568 fi
30569 done
30570
30571
30572   :
30573
30574
30575
30576
30577
30578   # AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
30579
30580     { echo "$as_me:$LINENO: checking whether mkdir accepts only one arg" >&5
30581 echo $ECHO_N "checking whether mkdir accepts only one arg... $ECHO_C" >&6; }
30582   cat >conftest.$ac_ext <<_ACEOF
30583 /* confdefs.h.  */
30584 _ACEOF
30585 cat confdefs.h >>conftest.$ac_ext
30586 cat >>conftest.$ac_ext <<_ACEOF
30587 /* end confdefs.h.  */
30588 #include <sys/types.h>
30589        #include <sys/stat.h>
30590        #include <fcntl.h>
30591 int
30592 main ()
30593 {
30594
30595        mkdir("")
30596
30597   ;
30598   return 0;
30599 }
30600 _ACEOF
30601 rm -f conftest.$ac_objext
30602 if { (ac_try="$ac_compile"
30603 case "(($ac_try" in
30604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30605   *) ac_try_echo=$ac_try;;
30606 esac
30607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30608   (eval "$ac_compile") 2>conftest.er1
30609   ac_status=$?
30610   grep -v '^ *+' conftest.er1 >conftest.err
30611   rm -f conftest.er1
30612   cat conftest.err >&5
30613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30614   (exit $ac_status); } &&
30615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30616   { (case "(($ac_try" in
30617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30618   *) ac_try_echo=$ac_try;;
30619 esac
30620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30621   (eval "$ac_try") 2>&5
30622   ac_status=$?
30623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624   (exit $ac_status); }; } &&
30625          { ac_try='test -s conftest.$ac_objext'
30626   { (case "(($ac_try" in
30627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30628   *) ac_try_echo=$ac_try;;
30629 esac
30630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30631   (eval "$ac_try") 2>&5
30632   ac_status=$?
30633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634   (exit $ac_status); }; }; then
30635    { echo "$as_me:$LINENO: result: yes" >&5
30636 echo "${ECHO_T}yes" >&6; }
30637
30638 cat >>confdefs.h <<\_ACEOF
30639 #define MKDIR_TAKES_ONE_ARG
30640 _ACEOF
30641
30642 else
30643   echo "$as_me: failed program was:" >&5
30644 sed 's/^/| /' conftest.$ac_ext >&5
30645
30646          { echo "$as_me:$LINENO: result: no" >&5
30647 echo "${ECHO_T}no" >&6; }
30648
30649 fi
30650
30651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30652
30653   fi
30654
30655
30656     # These checks don't fail
30657     { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
30658 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
30659 if test "${ac_cv_c_bigendian+set}" = set; then
30660   echo $ECHO_N "(cached) $ECHO_C" >&6
30661 else
30662   # See if sys/param.h defines the BYTE_ORDER macro.
30663 cat >conftest.$ac_ext <<_ACEOF
30664 /* confdefs.h.  */
30665 _ACEOF
30666 cat confdefs.h >>conftest.$ac_ext
30667 cat >>conftest.$ac_ext <<_ACEOF
30668 /* end confdefs.h.  */
30669 #include <sys/types.h>
30670 #include <sys/param.h>
30671
30672 int
30673 main ()
30674 {
30675 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
30676  bogus endian macros
30677 #endif
30678
30679   ;
30680   return 0;
30681 }
30682 _ACEOF
30683 rm -f conftest.$ac_objext
30684 if { (ac_try="$ac_compile"
30685 case "(($ac_try" in
30686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30687   *) ac_try_echo=$ac_try;;
30688 esac
30689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30690   (eval "$ac_compile") 2>conftest.er1
30691   ac_status=$?
30692   grep -v '^ *+' conftest.er1 >conftest.err
30693   rm -f conftest.er1
30694   cat conftest.err >&5
30695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30696   (exit $ac_status); } &&
30697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30698   { (case "(($ac_try" in
30699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30700   *) ac_try_echo=$ac_try;;
30701 esac
30702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30703   (eval "$ac_try") 2>&5
30704   ac_status=$?
30705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706   (exit $ac_status); }; } &&
30707          { ac_try='test -s conftest.$ac_objext'
30708   { (case "(($ac_try" in
30709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30710   *) ac_try_echo=$ac_try;;
30711 esac
30712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30713   (eval "$ac_try") 2>&5
30714   ac_status=$?
30715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30716   (exit $ac_status); }; }; then
30717   # It does; now see whether it defined to BIG_ENDIAN or not.
30718 cat >conftest.$ac_ext <<_ACEOF
30719 /* confdefs.h.  */
30720 _ACEOF
30721 cat confdefs.h >>conftest.$ac_ext
30722 cat >>conftest.$ac_ext <<_ACEOF
30723 /* end confdefs.h.  */
30724 #include <sys/types.h>
30725 #include <sys/param.h>
30726
30727 int
30728 main ()
30729 {
30730 #if BYTE_ORDER != BIG_ENDIAN
30731  not big endian
30732 #endif
30733
30734   ;
30735   return 0;
30736 }
30737 _ACEOF
30738 rm -f conftest.$ac_objext
30739 if { (ac_try="$ac_compile"
30740 case "(($ac_try" in
30741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30742   *) ac_try_echo=$ac_try;;
30743 esac
30744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30745   (eval "$ac_compile") 2>conftest.er1
30746   ac_status=$?
30747   grep -v '^ *+' conftest.er1 >conftest.err
30748   rm -f conftest.er1
30749   cat conftest.err >&5
30750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30751   (exit $ac_status); } &&
30752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30753   { (case "(($ac_try" in
30754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30755   *) ac_try_echo=$ac_try;;
30756 esac
30757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30758   (eval "$ac_try") 2>&5
30759   ac_status=$?
30760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761   (exit $ac_status); }; } &&
30762          { ac_try='test -s conftest.$ac_objext'
30763   { (case "(($ac_try" in
30764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30765   *) ac_try_echo=$ac_try;;
30766 esac
30767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30768   (eval "$ac_try") 2>&5
30769   ac_status=$?
30770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771   (exit $ac_status); }; }; then
30772   ac_cv_c_bigendian=yes
30773 else
30774   echo "$as_me: failed program was:" >&5
30775 sed 's/^/| /' conftest.$ac_ext >&5
30776
30777         ac_cv_c_bigendian=no
30778 fi
30779
30780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30781 else
30782   echo "$as_me: failed program was:" >&5
30783 sed 's/^/| /' conftest.$ac_ext >&5
30784
30785         # It does not; compile a test program.
30786 if test "$cross_compiling" = yes; then
30787   # try to guess the endianness by grepping values into an object file
30788   ac_cv_c_bigendian=unknown
30789   cat >conftest.$ac_ext <<_ACEOF
30790 /* confdefs.h.  */
30791 _ACEOF
30792 cat confdefs.h >>conftest.$ac_ext
30793 cat >>conftest.$ac_ext <<_ACEOF
30794 /* end confdefs.h.  */
30795 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
30796 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
30797 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
30798 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
30799 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
30800 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
30801 int
30802 main ()
30803 {
30804  _ascii (); _ebcdic ();
30805   ;
30806   return 0;
30807 }
30808 _ACEOF
30809 rm -f conftest.$ac_objext
30810 if { (ac_try="$ac_compile"
30811 case "(($ac_try" in
30812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30813   *) ac_try_echo=$ac_try;;
30814 esac
30815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30816   (eval "$ac_compile") 2>conftest.er1
30817   ac_status=$?
30818   grep -v '^ *+' conftest.er1 >conftest.err
30819   rm -f conftest.er1
30820   cat conftest.err >&5
30821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30822   (exit $ac_status); } &&
30823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30824   { (case "(($ac_try" in
30825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30826   *) ac_try_echo=$ac_try;;
30827 esac
30828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30829   (eval "$ac_try") 2>&5
30830   ac_status=$?
30831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832   (exit $ac_status); }; } &&
30833          { ac_try='test -s conftest.$ac_objext'
30834   { (case "(($ac_try" in
30835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30836   *) ac_try_echo=$ac_try;;
30837 esac
30838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30839   (eval "$ac_try") 2>&5
30840   ac_status=$?
30841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30842   (exit $ac_status); }; }; then
30843   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
30844   ac_cv_c_bigendian=yes
30845 fi
30846 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
30847   if test "$ac_cv_c_bigendian" = unknown; then
30848     ac_cv_c_bigendian=no
30849   else
30850     # finding both strings is unlikely to happen, but who knows?
30851     ac_cv_c_bigendian=unknown
30852   fi
30853 fi
30854 else
30855   echo "$as_me: failed program was:" >&5
30856 sed 's/^/| /' conftest.$ac_ext >&5
30857
30858
30859 fi
30860
30861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30862 else
30863   cat >conftest.$ac_ext <<_ACEOF
30864 /* confdefs.h.  */
30865 _ACEOF
30866 cat confdefs.h >>conftest.$ac_ext
30867 cat >>conftest.$ac_ext <<_ACEOF
30868 /* end confdefs.h.  */
30869 $ac_includes_default
30870 int
30871 main ()
30872 {
30873
30874   /* Are we little or big endian?  From Harbison&Steele.  */
30875   union
30876   {
30877     long int l;
30878     char c[sizeof (long int)];
30879   } u;
30880   u.l = 1;
30881   return u.c[sizeof (long int) - 1] == 1;
30882
30883   ;
30884   return 0;
30885 }
30886 _ACEOF
30887 rm -f conftest$ac_exeext
30888 if { (ac_try="$ac_link"
30889 case "(($ac_try" in
30890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30891   *) ac_try_echo=$ac_try;;
30892 esac
30893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30894   (eval "$ac_link") 2>&5
30895   ac_status=$?
30896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30898   { (case "(($ac_try" in
30899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30900   *) ac_try_echo=$ac_try;;
30901 esac
30902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30903   (eval "$ac_try") 2>&5
30904   ac_status=$?
30905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906   (exit $ac_status); }; }; then
30907   ac_cv_c_bigendian=no
30908 else
30909   echo "$as_me: program exited with status $ac_status" >&5
30910 echo "$as_me: failed program was:" >&5
30911 sed 's/^/| /' conftest.$ac_ext >&5
30912
30913 ( exit $ac_status )
30914 ac_cv_c_bigendian=yes
30915 fi
30916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30917 fi
30918
30919
30920 fi
30921
30922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30923 fi
30924 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
30925 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
30926 case $ac_cv_c_bigendian in
30927   yes)
30928
30929 cat >>confdefs.h <<\_ACEOF
30930 #define WORDS_BIGENDIAN 1
30931 _ACEOF
30932  ;;
30933   no)
30934      ;;
30935   *)
30936     { { echo "$as_me:$LINENO: error: unknown endianness
30937 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
30938 echo "$as_me: error: unknown endianness
30939 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
30940    { (exit 1); exit 1; }; } ;;
30941 esac
30942
30943
30944 for ac_header in byteswap.h
30945 do
30946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30948   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30951   echo $ECHO_N "(cached) $ECHO_C" >&6
30952 fi
30953 ac_res=`eval echo '${'$as_ac_Header'}'`
30954                { echo "$as_me:$LINENO: result: $ac_res" >&5
30955 echo "${ECHO_T}$ac_res" >&6; }
30956 else
30957   # Is the header compilable?
30958 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30960 cat >conftest.$ac_ext <<_ACEOF
30961 /* confdefs.h.  */
30962 _ACEOF
30963 cat confdefs.h >>conftest.$ac_ext
30964 cat >>conftest.$ac_ext <<_ACEOF
30965 /* end confdefs.h.  */
30966 $ac_includes_default
30967 #include <$ac_header>
30968 _ACEOF
30969 rm -f conftest.$ac_objext
30970 if { (ac_try="$ac_compile"
30971 case "(($ac_try" in
30972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30973   *) ac_try_echo=$ac_try;;
30974 esac
30975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30976   (eval "$ac_compile") 2>conftest.er1
30977   ac_status=$?
30978   grep -v '^ *+' conftest.er1 >conftest.err
30979   rm -f conftest.er1
30980   cat conftest.err >&5
30981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30982   (exit $ac_status); } &&
30983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30984   { (case "(($ac_try" in
30985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30986   *) ac_try_echo=$ac_try;;
30987 esac
30988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30989   (eval "$ac_try") 2>&5
30990   ac_status=$?
30991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992   (exit $ac_status); }; } &&
30993          { ac_try='test -s conftest.$ac_objext'
30994   { (case "(($ac_try" in
30995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30996   *) ac_try_echo=$ac_try;;
30997 esac
30998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30999   (eval "$ac_try") 2>&5
31000   ac_status=$?
31001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002   (exit $ac_status); }; }; then
31003   ac_header_compiler=yes
31004 else
31005   echo "$as_me: failed program was:" >&5
31006 sed 's/^/| /' conftest.$ac_ext >&5
31007
31008         ac_header_compiler=no
31009 fi
31010
31011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31013 echo "${ECHO_T}$ac_header_compiler" >&6; }
31014
31015 # Is the header present?
31016 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31018 cat >conftest.$ac_ext <<_ACEOF
31019 /* confdefs.h.  */
31020 _ACEOF
31021 cat confdefs.h >>conftest.$ac_ext
31022 cat >>conftest.$ac_ext <<_ACEOF
31023 /* end confdefs.h.  */
31024 #include <$ac_header>
31025 _ACEOF
31026 if { (ac_try="$ac_cpp conftest.$ac_ext"
31027 case "(($ac_try" in
31028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31029   *) ac_try_echo=$ac_try;;
31030 esac
31031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31032   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31033   ac_status=$?
31034   grep -v '^ *+' conftest.er1 >conftest.err
31035   rm -f conftest.er1
31036   cat conftest.err >&5
31037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31038   (exit $ac_status); } >/dev/null; then
31039   if test -s conftest.err; then
31040     ac_cpp_err=$ac_c_preproc_warn_flag
31041     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31042   else
31043     ac_cpp_err=
31044   fi
31045 else
31046   ac_cpp_err=yes
31047 fi
31048 if test -z "$ac_cpp_err"; then
31049   ac_header_preproc=yes
31050 else
31051   echo "$as_me: failed program was:" >&5
31052 sed 's/^/| /' conftest.$ac_ext >&5
31053
31054   ac_header_preproc=no
31055 fi
31056
31057 rm -f conftest.err conftest.$ac_ext
31058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31059 echo "${ECHO_T}$ac_header_preproc" >&6; }
31060
31061 # So?  What about this header?
31062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31063   yes:no: )
31064     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31068     ac_header_preproc=yes
31069     ;;
31070   no:yes:* )
31071     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31073     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31074 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31075     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31077     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31078 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31079     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31081     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31083
31084     ;;
31085 esac
31086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31089   echo $ECHO_N "(cached) $ECHO_C" >&6
31090 else
31091   eval "$as_ac_Header=\$ac_header_preproc"
31092 fi
31093 ac_res=`eval echo '${'$as_ac_Header'}'`
31094                { echo "$as_me:$LINENO: result: $ac_res" >&5
31095 echo "${ECHO_T}$ac_res" >&6; }
31096
31097 fi
31098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31099   cat >>confdefs.h <<_ACEOF
31100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31101 _ACEOF
31102
31103 fi
31104
31105 done
31106
31107
31108
31109 for ac_func in getrusage sched_setscheduler
31110 do
31111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31112 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31114 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31115   echo $ECHO_N "(cached) $ECHO_C" >&6
31116 else
31117   cat >conftest.$ac_ext <<_ACEOF
31118 /* confdefs.h.  */
31119 _ACEOF
31120 cat confdefs.h >>conftest.$ac_ext
31121 cat >>conftest.$ac_ext <<_ACEOF
31122 /* end confdefs.h.  */
31123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31125 #define $ac_func innocuous_$ac_func
31126
31127 /* System header to define __stub macros and hopefully few prototypes,
31128     which can conflict with char $ac_func (); below.
31129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31130     <limits.h> exists even on freestanding compilers.  */
31131
31132 #ifdef __STDC__
31133 # include <limits.h>
31134 #else
31135 # include <assert.h>
31136 #endif
31137
31138 #undef $ac_func
31139
31140 /* Override any GCC internal prototype to avoid an error.
31141    Use char because int might match the return type of a GCC
31142    builtin and then its argument prototype would still apply.  */
31143 #ifdef __cplusplus
31144 extern "C"
31145 #endif
31146 char $ac_func ();
31147 /* The GNU C library defines this for functions which it implements
31148     to always fail with ENOSYS.  Some functions are actually named
31149     something starting with __ and the normal name is an alias.  */
31150 #if defined __stub_$ac_func || defined __stub___$ac_func
31151 choke me
31152 #endif
31153
31154 int
31155 main ()
31156 {
31157 return $ac_func ();
31158   ;
31159   return 0;
31160 }
31161 _ACEOF
31162 rm -f conftest.$ac_objext conftest$ac_exeext
31163 if { (ac_try="$ac_link"
31164 case "(($ac_try" in
31165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31166   *) ac_try_echo=$ac_try;;
31167 esac
31168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31169   (eval "$ac_link") 2>conftest.er1
31170   ac_status=$?
31171   grep -v '^ *+' conftest.er1 >conftest.err
31172   rm -f conftest.er1
31173   cat conftest.err >&5
31174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31175   (exit $ac_status); } &&
31176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31177   { (case "(($ac_try" in
31178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31179   *) ac_try_echo=$ac_try;;
31180 esac
31181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31182   (eval "$ac_try") 2>&5
31183   ac_status=$?
31184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185   (exit $ac_status); }; } &&
31186          { ac_try='test -s conftest$ac_exeext'
31187   { (case "(($ac_try" in
31188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31189   *) ac_try_echo=$ac_try;;
31190 esac
31191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31192   (eval "$ac_try") 2>&5
31193   ac_status=$?
31194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195   (exit $ac_status); }; }; then
31196   eval "$as_ac_var=yes"
31197 else
31198   echo "$as_me: failed program was:" >&5
31199 sed 's/^/| /' conftest.$ac_ext >&5
31200
31201         eval "$as_ac_var=no"
31202 fi
31203
31204 rm -f core conftest.err conftest.$ac_objext \
31205       conftest$ac_exeext conftest.$ac_ext
31206 fi
31207 ac_res=`eval echo '${'$as_ac_var'}'`
31208                { echo "$as_me:$LINENO: result: $ac_res" >&5
31209 echo "${ECHO_T}$ac_res" >&6; }
31210 if test `eval echo '${'$as_ac_var'}'` = yes; then
31211   cat >>confdefs.h <<_ACEOF
31212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31213 _ACEOF
31214
31215 fi
31216 done
31217
31218
31219
31220 for ac_func in sigaction snprintf
31221 do
31222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31223 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31226   echo $ECHO_N "(cached) $ECHO_C" >&6
31227 else
31228   cat >conftest.$ac_ext <<_ACEOF
31229 /* confdefs.h.  */
31230 _ACEOF
31231 cat confdefs.h >>conftest.$ac_ext
31232 cat >>conftest.$ac_ext <<_ACEOF
31233 /* end confdefs.h.  */
31234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31236 #define $ac_func innocuous_$ac_func
31237
31238 /* System header to define __stub macros and hopefully few prototypes,
31239     which can conflict with char $ac_func (); below.
31240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31241     <limits.h> exists even on freestanding compilers.  */
31242
31243 #ifdef __STDC__
31244 # include <limits.h>
31245 #else
31246 # include <assert.h>
31247 #endif
31248
31249 #undef $ac_func
31250
31251 /* Override any GCC internal prototype to avoid an error.
31252    Use char because int might match the return type of a GCC
31253    builtin and then its argument prototype would still apply.  */
31254 #ifdef __cplusplus
31255 extern "C"
31256 #endif
31257 char $ac_func ();
31258 /* The GNU C library defines this for functions which it implements
31259     to always fail with ENOSYS.  Some functions are actually named
31260     something starting with __ and the normal name is an alias.  */
31261 #if defined __stub_$ac_func || defined __stub___$ac_func
31262 choke me
31263 #endif
31264
31265 int
31266 main ()
31267 {
31268 return $ac_func ();
31269   ;
31270   return 0;
31271 }
31272 _ACEOF
31273 rm -f conftest.$ac_objext conftest$ac_exeext
31274 if { (ac_try="$ac_link"
31275 case "(($ac_try" in
31276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31277   *) ac_try_echo=$ac_try;;
31278 esac
31279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31280   (eval "$ac_link") 2>conftest.er1
31281   ac_status=$?
31282   grep -v '^ *+' conftest.er1 >conftest.err
31283   rm -f conftest.er1
31284   cat conftest.err >&5
31285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31286   (exit $ac_status); } &&
31287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31288   { (case "(($ac_try" in
31289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31290   *) ac_try_echo=$ac_try;;
31291 esac
31292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31293   (eval "$ac_try") 2>&5
31294   ac_status=$?
31295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296   (exit $ac_status); }; } &&
31297          { ac_try='test -s conftest$ac_exeext'
31298   { (case "(($ac_try" in
31299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300   *) ac_try_echo=$ac_try;;
31301 esac
31302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303   (eval "$ac_try") 2>&5
31304   ac_status=$?
31305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306   (exit $ac_status); }; }; then
31307   eval "$as_ac_var=yes"
31308 else
31309   echo "$as_me: failed program was:" >&5
31310 sed 's/^/| /' conftest.$ac_ext >&5
31311
31312         eval "$as_ac_var=no"
31313 fi
31314
31315 rm -f core conftest.err conftest.$ac_objext \
31316       conftest$ac_exeext conftest.$ac_ext
31317 fi
31318 ac_res=`eval echo '${'$as_ac_var'}'`
31319                { echo "$as_me:$LINENO: result: $ac_res" >&5
31320 echo "${ECHO_T}$ac_res" >&6; }
31321 if test `eval echo '${'$as_ac_var'}'` = yes; then
31322   cat >>confdefs.h <<_ACEOF
31323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31324 _ACEOF
31325
31326 fi
31327 done
31328
31329
31330     passed=yes
31331
31332         ac_ext=c
31333 ac_cpp='$CPP $CPPFLAGS'
31334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31337
31338
31339         libusbok=yes
31340
31341 for ac_header in usb.h
31342 do
31343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31345   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31348   echo $ECHO_N "(cached) $ECHO_C" >&6
31349 fi
31350 ac_res=`eval echo '${'$as_ac_Header'}'`
31351                { echo "$as_me:$LINENO: result: $ac_res" >&5
31352 echo "${ECHO_T}$ac_res" >&6; }
31353 else
31354   # Is the header compilable?
31355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31357 cat >conftest.$ac_ext <<_ACEOF
31358 /* confdefs.h.  */
31359 _ACEOF
31360 cat confdefs.h >>conftest.$ac_ext
31361 cat >>conftest.$ac_ext <<_ACEOF
31362 /* end confdefs.h.  */
31363 $ac_includes_default
31364 #include <$ac_header>
31365 _ACEOF
31366 rm -f conftest.$ac_objext
31367 if { (ac_try="$ac_compile"
31368 case "(($ac_try" in
31369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31370   *) ac_try_echo=$ac_try;;
31371 esac
31372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31373   (eval "$ac_compile") 2>conftest.er1
31374   ac_status=$?
31375   grep -v '^ *+' conftest.er1 >conftest.err
31376   rm -f conftest.er1
31377   cat conftest.err >&5
31378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31379   (exit $ac_status); } &&
31380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31381   { (case "(($ac_try" in
31382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31383   *) ac_try_echo=$ac_try;;
31384 esac
31385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31386   (eval "$ac_try") 2>&5
31387   ac_status=$?
31388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389   (exit $ac_status); }; } &&
31390          { ac_try='test -s conftest.$ac_objext'
31391   { (case "(($ac_try" in
31392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31393   *) ac_try_echo=$ac_try;;
31394 esac
31395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31396   (eval "$ac_try") 2>&5
31397   ac_status=$?
31398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399   (exit $ac_status); }; }; then
31400   ac_header_compiler=yes
31401 else
31402   echo "$as_me: failed program was:" >&5
31403 sed 's/^/| /' conftest.$ac_ext >&5
31404
31405         ac_header_compiler=no
31406 fi
31407
31408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31410 echo "${ECHO_T}$ac_header_compiler" >&6; }
31411
31412 # Is the header present?
31413 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31415 cat >conftest.$ac_ext <<_ACEOF
31416 /* confdefs.h.  */
31417 _ACEOF
31418 cat confdefs.h >>conftest.$ac_ext
31419 cat >>conftest.$ac_ext <<_ACEOF
31420 /* end confdefs.h.  */
31421 #include <$ac_header>
31422 _ACEOF
31423 if { (ac_try="$ac_cpp conftest.$ac_ext"
31424 case "(($ac_try" in
31425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31426   *) ac_try_echo=$ac_try;;
31427 esac
31428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31429   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31430   ac_status=$?
31431   grep -v '^ *+' conftest.er1 >conftest.err
31432   rm -f conftest.er1
31433   cat conftest.err >&5
31434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435   (exit $ac_status); } >/dev/null; then
31436   if test -s conftest.err; then
31437     ac_cpp_err=$ac_c_preproc_warn_flag
31438     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31439   else
31440     ac_cpp_err=
31441   fi
31442 else
31443   ac_cpp_err=yes
31444 fi
31445 if test -z "$ac_cpp_err"; then
31446   ac_header_preproc=yes
31447 else
31448   echo "$as_me: failed program was:" >&5
31449 sed 's/^/| /' conftest.$ac_ext >&5
31450
31451   ac_header_preproc=no
31452 fi
31453
31454 rm -f conftest.err conftest.$ac_ext
31455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31456 echo "${ECHO_T}$ac_header_preproc" >&6; }
31457
31458 # So?  What about this header?
31459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31460   yes:no: )
31461     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31465     ac_header_preproc=yes
31466     ;;
31467   no:yes:* )
31468     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31470     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31471 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31472     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31474     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31475 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31476     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31478     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31480
31481     ;;
31482 esac
31483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31486   echo $ECHO_N "(cached) $ECHO_C" >&6
31487 else
31488   eval "$as_ac_Header=\$ac_header_preproc"
31489 fi
31490 ac_res=`eval echo '${'$as_ac_Header'}'`
31491                { echo "$as_me:$LINENO: result: $ac_res" >&5
31492 echo "${ECHO_T}$ac_res" >&6; }
31493
31494 fi
31495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31496   cat >>confdefs.h <<_ACEOF
31497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31498 _ACEOF
31499
31500 else
31501   libusbok=no,
31502            { echo "$as_me:$LINENO: result: USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&5
31503 echo "${ECHO_T}USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&6; }
31504
31505 fi
31506
31507 done
31508
31509
31510         save_LIBS="$LIBS"
31511         case "$host_os" in
31512             darwin*)    LIBS="$LIBS -lIOKit" ;;
31513             *) ;;
31514         esac
31515         { echo "$as_me:$LINENO: checking for library containing usb_bulk_write" >&5
31516 echo $ECHO_N "checking for library containing usb_bulk_write... $ECHO_C" >&6; }
31517 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
31518   echo $ECHO_N "(cached) $ECHO_C" >&6
31519 else
31520   ac_func_search_save_LIBS=$LIBS
31521 cat >conftest.$ac_ext <<_ACEOF
31522 /* confdefs.h.  */
31523 _ACEOF
31524 cat confdefs.h >>conftest.$ac_ext
31525 cat >>conftest.$ac_ext <<_ACEOF
31526 /* end confdefs.h.  */
31527
31528 /* Override any GCC internal prototype to avoid an error.
31529    Use char because int might match the return type of a GCC
31530    builtin and then its argument prototype would still apply.  */
31531 #ifdef __cplusplus
31532 extern "C"
31533 #endif
31534 char usb_bulk_write ();
31535 int
31536 main ()
31537 {
31538 return usb_bulk_write ();
31539   ;
31540   return 0;
31541 }
31542 _ACEOF
31543 for ac_lib in '' usb; do
31544   if test -z "$ac_lib"; then
31545     ac_res="none required"
31546   else
31547     ac_res=-l$ac_lib
31548     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31549   fi
31550   rm -f conftest.$ac_objext conftest$ac_exeext
31551 if { (ac_try="$ac_link"
31552 case "(($ac_try" in
31553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31554   *) ac_try_echo=$ac_try;;
31555 esac
31556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31557   (eval "$ac_link") 2>conftest.er1
31558   ac_status=$?
31559   grep -v '^ *+' conftest.er1 >conftest.err
31560   rm -f conftest.er1
31561   cat conftest.err >&5
31562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563   (exit $ac_status); } &&
31564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31565   { (case "(($ac_try" in
31566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31567   *) ac_try_echo=$ac_try;;
31568 esac
31569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31570   (eval "$ac_try") 2>&5
31571   ac_status=$?
31572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573   (exit $ac_status); }; } &&
31574          { ac_try='test -s conftest$ac_exeext'
31575   { (case "(($ac_try" in
31576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31577   *) ac_try_echo=$ac_try;;
31578 esac
31579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31580   (eval "$ac_try") 2>&5
31581   ac_status=$?
31582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583   (exit $ac_status); }; }; then
31584   ac_cv_search_usb_bulk_write=$ac_res
31585 else
31586   echo "$as_me: failed program was:" >&5
31587 sed 's/^/| /' conftest.$ac_ext >&5
31588
31589
31590 fi
31591
31592 rm -f core conftest.err conftest.$ac_objext \
31593       conftest$ac_exeext
31594   if test "${ac_cv_search_usb_bulk_write+set}" = set; then
31595   break
31596 fi
31597 done
31598 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
31599   :
31600 else
31601   ac_cv_search_usb_bulk_write=no
31602 fi
31603 rm conftest.$ac_ext
31604 LIBS=$ac_func_search_save_LIBS
31605 fi
31606 { echo "$as_me:$LINENO: result: $ac_cv_search_usb_bulk_write" >&5
31607 echo "${ECHO_T}$ac_cv_search_usb_bulk_write" >&6; }
31608 ac_res=$ac_cv_search_usb_bulk_write
31609 if test "$ac_res" != no; then
31610   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31611   USB_LIBS="$LIBS"
31612 else
31613   libusbok=no,
31614            { echo "$as_me:$LINENO: result: USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&5
31615 echo "${ECHO_T}USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&6; }
31616
31617 fi
31618
31619         LIBS="$save_LIBS"
31620
31621         ac_ext=c
31622 ac_cpp='$CPP $CPPFLAGS'
31623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31626
31627
31628         if test $libusbok = yes; then
31629
31630             :
31631         else
31632             passed=no;{ echo "$as_me:$LINENO: result: Unable to configure USB dependency." >&5
31633 echo "${ECHO_T}Unable to configure USB dependency." >&6; }
31634         fi
31635
31636
31637
31638 # Check whether --with-fusb-tech was given.
31639 if test "${with_fusb_tech+set}" = set; then
31640   withval=$with_fusb_tech; cf_with_fusb_tech="$withval"
31641 else
31642   cf_with_fusb_tech="$host_os"
31643 fi
31644
31645
31646
31647   if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
31648   { echo "$as_me:$LINENO: checking for linux/usbdevice_fs.h" >&5
31649 echo $ECHO_N "checking for linux/usbdevice_fs.h... $ECHO_C" >&6; }
31650 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
31651   echo $ECHO_N "(cached) $ECHO_C" >&6
31652 fi
31653 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_usbdevice_fs_h" >&5
31654 echo "${ECHO_T}$ac_cv_header_linux_usbdevice_fs_h" >&6; }
31655 else
31656   # Is the header compilable?
31657 { echo "$as_me:$LINENO: checking linux/usbdevice_fs.h usability" >&5
31658 echo $ECHO_N "checking linux/usbdevice_fs.h usability... $ECHO_C" >&6; }
31659 cat >conftest.$ac_ext <<_ACEOF
31660 /* confdefs.h.  */
31661 _ACEOF
31662 cat confdefs.h >>conftest.$ac_ext
31663 cat >>conftest.$ac_ext <<_ACEOF
31664 /* end confdefs.h.  */
31665 $ac_includes_default
31666 #include <linux/usbdevice_fs.h>
31667 _ACEOF
31668 rm -f conftest.$ac_objext
31669 if { (ac_try="$ac_compile"
31670 case "(($ac_try" in
31671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31672   *) ac_try_echo=$ac_try;;
31673 esac
31674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31675   (eval "$ac_compile") 2>conftest.er1
31676   ac_status=$?
31677   grep -v '^ *+' conftest.er1 >conftest.err
31678   rm -f conftest.er1
31679   cat conftest.err >&5
31680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31681   (exit $ac_status); } &&
31682          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31683   { (case "(($ac_try" in
31684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31685   *) ac_try_echo=$ac_try;;
31686 esac
31687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31688   (eval "$ac_try") 2>&5
31689   ac_status=$?
31690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31691   (exit $ac_status); }; } &&
31692          { ac_try='test -s conftest.$ac_objext'
31693   { (case "(($ac_try" in
31694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31695   *) ac_try_echo=$ac_try;;
31696 esac
31697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31698   (eval "$ac_try") 2>&5
31699   ac_status=$?
31700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701   (exit $ac_status); }; }; then
31702   ac_header_compiler=yes
31703 else
31704   echo "$as_me: failed program was:" >&5
31705 sed 's/^/| /' conftest.$ac_ext >&5
31706
31707         ac_header_compiler=no
31708 fi
31709
31710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31712 echo "${ECHO_T}$ac_header_compiler" >&6; }
31713
31714 # Is the header present?
31715 { echo "$as_me:$LINENO: checking linux/usbdevice_fs.h presence" >&5
31716 echo $ECHO_N "checking linux/usbdevice_fs.h presence... $ECHO_C" >&6; }
31717 cat >conftest.$ac_ext <<_ACEOF
31718 /* confdefs.h.  */
31719 _ACEOF
31720 cat confdefs.h >>conftest.$ac_ext
31721 cat >>conftest.$ac_ext <<_ACEOF
31722 /* end confdefs.h.  */
31723 #include <linux/usbdevice_fs.h>
31724 _ACEOF
31725 if { (ac_try="$ac_cpp conftest.$ac_ext"
31726 case "(($ac_try" in
31727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31728   *) ac_try_echo=$ac_try;;
31729 esac
31730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31731   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31732   ac_status=$?
31733   grep -v '^ *+' conftest.er1 >conftest.err
31734   rm -f conftest.er1
31735   cat conftest.err >&5
31736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31737   (exit $ac_status); } >/dev/null; then
31738   if test -s conftest.err; then
31739     ac_cpp_err=$ac_c_preproc_warn_flag
31740     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31741   else
31742     ac_cpp_err=
31743   fi
31744 else
31745   ac_cpp_err=yes
31746 fi
31747 if test -z "$ac_cpp_err"; then
31748   ac_header_preproc=yes
31749 else
31750   echo "$as_me: failed program was:" >&5
31751 sed 's/^/| /' conftest.$ac_ext >&5
31752
31753   ac_header_preproc=no
31754 fi
31755
31756 rm -f conftest.err conftest.$ac_ext
31757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31758 echo "${ECHO_T}$ac_header_preproc" >&6; }
31759
31760 # So?  What about this header?
31761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31762   yes:no: )
31763     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
31764 echo "$as_me: WARNING: linux/usbdevice_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31765     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: proceeding with the compiler's result" >&5
31766 echo "$as_me: WARNING: linux/usbdevice_fs.h: proceeding with the compiler's result" >&2;}
31767     ac_header_preproc=yes
31768     ;;
31769   no:yes:* )
31770     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: present but cannot be compiled" >&5
31771 echo "$as_me: WARNING: linux/usbdevice_fs.h: present but cannot be compiled" >&2;}
31772     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h:     check for missing prerequisite headers?" >&5
31773 echo "$as_me: WARNING: linux/usbdevice_fs.h:     check for missing prerequisite headers?" >&2;}
31774     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: see the Autoconf documentation" >&5
31775 echo "$as_me: WARNING: linux/usbdevice_fs.h: see the Autoconf documentation" >&2;}
31776     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
31777 echo "$as_me: WARNING: linux/usbdevice_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31778     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: proceeding with the preprocessor's result" >&5
31779 echo "$as_me: WARNING: linux/usbdevice_fs.h: proceeding with the preprocessor's result" >&2;}
31780     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: in the future, the compiler will take precedence" >&5
31781 echo "$as_me: WARNING: linux/usbdevice_fs.h: in the future, the compiler will take precedence" >&2;}
31782
31783     ;;
31784 esac
31785 { echo "$as_me:$LINENO: checking for linux/usbdevice_fs.h" >&5
31786 echo $ECHO_N "checking for linux/usbdevice_fs.h... $ECHO_C" >&6; }
31787 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
31788   echo $ECHO_N "(cached) $ECHO_C" >&6
31789 else
31790   ac_cv_header_linux_usbdevice_fs_h=$ac_header_preproc
31791 fi
31792 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_usbdevice_fs_h" >&5
31793 echo "${ECHO_T}$ac_cv_header_linux_usbdevice_fs_h" >&6; }
31794
31795 fi
31796 if test $ac_cv_header_linux_usbdevice_fs_h = yes; then
31797   x_have_usbdevice_fs_h=yes
31798 else
31799   x_have_usbdevice_fs_h=no
31800 fi
31801
31802
31803
31804   { echo "$as_me:$LINENO: checking for fast usb technique to use" >&5
31805 echo $ECHO_N "checking for fast usb technique to use... $ECHO_C" >&6; }
31806   case "$cf_with_fusb_tech" in
31807     linux*)     if test x${x_have_usbdevice_fs_h} = xyes;
31808                 then
31809                   FUSB_TECH=linux
31810                 else
31811                   FUSB_TECH=generic
31812                 fi                      ;;
31813
31814     darwin*)    FUSB_TECH=darwin        ;;
31815     cygwin*|win*|mingw*)        FUSB_TECH=win32         ;;
31816     *bsd*)
31817                 { echo "$as_me:$LINENO: checking for RA/WB" >&5
31818 echo $ECHO_N "checking for RA/WB... $ECHO_C" >&6; }
31819                 cat >conftest.$ac_ext <<_ACEOF
31820 /* confdefs.h.  */
31821 _ACEOF
31822 cat confdefs.h >>conftest.$ac_ext
31823 cat >>conftest.$ac_ext <<_ACEOF
31824 /* end confdefs.h.  */
31825 #include <dev/usb/usb.h>
31826 int
31827 main ()
31828 {
31829 struct usb_bulk_ra_wb_opt o;
31830                                                      ioctl(0, USB_SET_BULK_RA, &o);
31831   ;
31832   return 0;
31833 }
31834 _ACEOF
31835 rm -f conftest.$ac_objext
31836 if { (ac_try="$ac_compile"
31837 case "(($ac_try" in
31838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31839   *) ac_try_echo=$ac_try;;
31840 esac
31841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31842   (eval "$ac_compile") 2>conftest.er1
31843   ac_status=$?
31844   grep -v '^ *+' conftest.er1 >conftest.err
31845   rm -f conftest.er1
31846   cat conftest.err >&5
31847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848   (exit $ac_status); } &&
31849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31850   { (case "(($ac_try" in
31851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31852   *) ac_try_echo=$ac_try;;
31853 esac
31854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31855   (eval "$ac_try") 2>&5
31856   ac_status=$?
31857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31858   (exit $ac_status); }; } &&
31859          { ac_try='test -s conftest.$ac_objext'
31860   { (case "(($ac_try" in
31861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31862   *) ac_try_echo=$ac_try;;
31863 esac
31864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31865   (eval "$ac_try") 2>&5
31866   ac_status=$?
31867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31868   (exit $ac_status); }; }; then
31869   FUSB_TECH=ra_wb
31870 else
31871   echo "$as_me: failed program was:" >&5
31872 sed 's/^/| /' conftest.$ac_ext >&5
31873
31874         FUSB_TECH=generic
31875 fi
31876
31877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext            ;;
31878     *)          FUSB_TECH=generic       ;;
31879   esac
31880
31881   { echo "$as_me:$LINENO: result: $FUSB_TECH" >&5
31882 echo "${ECHO_T}$FUSB_TECH" >&6; }
31883
31884
31885
31886
31887 if test $FUSB_TECH = darwin; then
31888   FUSB_TECH_darwin_TRUE=
31889   FUSB_TECH_darwin_FALSE='#'
31890 else
31891   FUSB_TECH_darwin_TRUE='#'
31892   FUSB_TECH_darwin_FALSE=
31893 fi
31894
31895
31896
31897 if test $FUSB_TECH = win32; then
31898   FUSB_TECH_win32_TRUE=
31899   FUSB_TECH_win32_FALSE='#'
31900 else
31901   FUSB_TECH_win32_TRUE='#'
31902   FUSB_TECH_win32_FALSE=
31903 fi
31904
31905
31906
31907 if test $FUSB_TECH = generic; then
31908   FUSB_TECH_generic_TRUE=
31909   FUSB_TECH_generic_FALSE='#'
31910 else
31911   FUSB_TECH_generic_TRUE='#'
31912   FUSB_TECH_generic_FALSE=
31913 fi
31914
31915
31916
31917 if test $FUSB_TECH = linux; then
31918   FUSB_TECH_linux_TRUE=
31919   FUSB_TECH_linux_FALSE='#'
31920 else
31921   FUSB_TECH_linux_TRUE='#'
31922   FUSB_TECH_linux_FALSE=
31923 fi
31924
31925
31926
31927 if test $FUSB_TECH = ra_wb; then
31928   FUSB_TECH_ra_wb_TRUE=
31929   FUSB_TECH_ra_wb_FALSE='#'
31930 else
31931   FUSB_TECH_ra_wb_TRUE='#'
31932   FUSB_TECH_ra_wb_FALSE=
31933 fi
31934
31935
31936
31937         sdccok=yes
31938         # Extract the first word of "sdcc", so it can be a program name with args.
31939 set dummy sdcc; ac_word=$2
31940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31942 if test "${ac_cv_prog_XCC+set}" = set; then
31943   echo $ECHO_N "(cached) $ECHO_C" >&6
31944 else
31945   if test -n "$XCC"; then
31946   ac_cv_prog_XCC="$XCC" # Let the user override the test.
31947 else
31948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31949 for as_dir in $PATH
31950 do
31951   IFS=$as_save_IFS
31952   test -z "$as_dir" && as_dir=.
31953   for ac_exec_ext in '' $ac_executable_extensions; do
31954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
31955     ac_cv_prog_XCC="sdcc -mmcs51 --no-xinit-opt"
31956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31957     break 2
31958   fi
31959 done
31960 done
31961 IFS=$as_save_IFS
31962
31963   test -z "$ac_cv_prog_XCC" && ac_cv_prog_XCC="no"
31964 fi
31965 fi
31966 XCC=$ac_cv_prog_XCC
31967 if test -n "$XCC"; then
31968   { echo "$as_me:$LINENO: result: $XCC" >&5
31969 echo "${ECHO_T}$XCC" >&6; }
31970 else
31971   { echo "$as_me:$LINENO: result: no" >&5
31972 echo "${ECHO_T}no" >&6; }
31973 fi
31974
31975
31976         # Extract the first word of "asx8051", so it can be a program name with args.
31977 set dummy asx8051; ac_word=$2
31978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31980 if test "${ac_cv_prog_XAS+set}" = set; then
31981   echo $ECHO_N "(cached) $ECHO_C" >&6
31982 else
31983   if test -n "$XAS"; then
31984   ac_cv_prog_XAS="$XAS" # Let the user override the test.
31985 else
31986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31987 for as_dir in $PATH
31988 do
31989   IFS=$as_save_IFS
31990   test -z "$as_dir" && as_dir=.
31991   for ac_exec_ext in '' $ac_executable_extensions; do
31992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
31993     ac_cv_prog_XAS="asx8051 -plosgff"
31994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31995     break 2
31996   fi
31997 done
31998 done
31999 IFS=$as_save_IFS
32000
32001   test -z "$ac_cv_prog_XAS" && ac_cv_prog_XAS="no"
32002 fi
32003 fi
32004 XAS=$ac_cv_prog_XAS
32005 if test -n "$XAS"; then
32006   { echo "$as_me:$LINENO: result: $XAS" >&5
32007 echo "${ECHO_T}$XAS" >&6; }
32008 else
32009   { echo "$as_me:$LINENO: result: no" >&5
32010 echo "${ECHO_T}no" >&6; }
32011 fi
32012
32013
32014
32015         if test "$XCC" = "no" -o "$XAS" = "no" ; then
32016                 { echo "$as_me:$LINENO: result: USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&5
32017 echo "${ECHO_T}USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&6; }
32018                 sdccok=no
32019         else
32020                 sdcc_version_min=2.4.0
32021
32022                 sdcc_version=`sdcc --version 2>&1 | \
32023                         sed  's/\(SDCC.* \)\([0-9]*\.[0-9]*\.[0-9]*\)\( .*$\)/\2/'`
32024
32025                 { echo "$as_me:$LINENO: checking sdcc_version \"$sdcc_version\"" >&5
32026 echo $ECHO_N "checking sdcc_version \"$sdcc_version\"... $ECHO_C" >&6; }
32027
32028                 sdcc_major_version=`echo $sdcc_version | \
32029                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
32030                 sdcc_minor_version=`echo $sdcc_version | \
32031                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
32032                 sdcc_micro_version=`echo $sdcc_version | \
32033                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
32034
32035                 sdcc_major_min=`echo $sdcc_version_min | \
32036                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
32037                 sdcc_minor_min=`echo $sdcc_version_min | \
32038                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
32039                 sdcc_micro_min=`echo $sdcc_version_min | \
32040                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
32041
32042                 sdcc_version_proper=`expr \
32043                         "$sdcc_major_version" \> "$sdcc_major_min" \| \
32044                         "$sdcc_major_version" \= "$sdcc_major_min" \& \
32045                         "$sdcc_minor_version" \> "$sdcc_minor_min" \| \
32046                         "$sdcc_major_version" \= "$sdcc_major_min" \& \
32047                         "$sdcc_minor_version" \= "$sdcc_minor_min" \& \
32048                         "$sdcc_micro_version" \>= "$sdcc_micro_min" `
32049
32050                 if test "$sdcc_version_proper" = "1" ; then
32051                         { echo "$as_me:$LINENO: result: $sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&5
32052 echo "${ECHO_T}$sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&6; }
32053                 else
32054                         sdccok=no
32055                         { echo "$as_me:$LINENO: result: USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net\"" >&5
32056 echo "${ECHO_T}USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net\"" >&6; }
32057                 fi
32058
32059
32060
32061         fi
32062
32063         if test $sdccok = yes; then
32064                 :
32065         else
32066                 passed=no;{ echo "$as_me:$LINENO: result: Unable to find firmware compiler." >&5
32067 echo "${ECHO_T}Unable to find firmware compiler." >&6; }
32068         fi
32069
32070
32071
32072     if test x$passed = xno; then
32073         skipped_dirs="$skipped_dirs usrp"
32074         if test x$enable_usrp = xyes; then
32075             { { echo "$as_me:$LINENO: error: Component usrp has errors, stopping." >&5
32076 echo "$as_me: error: Component usrp has errors, stopping." >&2;}
32077    { (exit 1); exit 1; }; }
32078         else
32079             { echo "$as_me:$LINENO: result: Not building component usrp." >&5
32080 echo "${ECHO_T}Not building component usrp." >&6; }
32081         fi
32082     else
32083         if test x$enable_usrp != xno; then
32084
32085             build_dirs="$build_dirs usrp"
32086             { echo "$as_me:$LINENO: result: Component usrp passed configuration checks, building." >&5
32087 echo "${ECHO_T}Component usrp passed configuration checks, building." >&6; }
32088         else
32089             skipped_dirs="$skipped_dirs usrp"
32090             { echo "$as_me:$LINENO: result: Component usrp passed configuration checks, but not building." >&5
32091 echo "${ECHO_T}Component usrp passed configuration checks, but not building." >&6; }
32092         fi
32093     fi
32094
32095
32096
32097
32098     # Check whether --enable-gr-usrp was given.
32099 if test "${enable_gr_usrp+set}" = set; then
32100   enableval=$enable_gr_usrp;
32101 else
32102   enable_gr_usrp=$enable_all_components
32103 fi
32104
32105
32106
32107     ac_config_files="$ac_config_files gr-usrp/Makefile gr-usrp/src/Makefile gr-usrp/src/run_tests"
32108
32109
32110     passed=yes
32111     # Don't do gr-usrp if usrp skipped
32112     # There *has* to be a better way to check if a value is in a string
32113     for dir in $skipped_dirs
32114     do
32115         if test x$dir = xusrp; then
32116             { echo "$as_me:$LINENO: result: Component gr-usrp requires usrp, which is not being built." >&5
32117 echo "${ECHO_T}Component gr-usrp requires usrp, which is not being built." >&6; }
32118             passed=no
32119         fi
32120     done
32121
32122
32123     if test x$passed = xno; then
32124         skipped_dirs="$skipped_dirs gr-usrp"
32125         if test x$enable_gr_usrp = xyes; then
32126             { { echo "$as_me:$LINENO: error: Component gr-usrp has errors, stopping." >&5
32127 echo "$as_me: error: Component gr-usrp has errors, stopping." >&2;}
32128    { (exit 1); exit 1; }; }
32129         else
32130             { echo "$as_me:$LINENO: result: Not building component gr-usrp." >&5
32131 echo "${ECHO_T}Not building component gr-usrp." >&6; }
32132         fi
32133     else
32134         if test x$enable_gr_usrp != xno; then
32135
32136                 ac_config_commands="$ac_config_commands run_tests_usrp"
32137
32138
32139             build_dirs="$build_dirs gr-usrp"
32140             { echo "$as_me:$LINENO: result: Component gr-usrp passed configuration checks, building." >&5
32141 echo "${ECHO_T}Component gr-usrp passed configuration checks, building." >&6; }
32142         else
32143             skipped_dirs="$skipped_dirs gr-usrp"
32144             { echo "$as_me:$LINENO: result: Component gr-usrp passed configuration checks, but not building." >&5
32145 echo "${ECHO_T}Component gr-usrp passed configuration checks, but not building." >&6; }
32146         fi
32147     fi
32148
32149
32150
32151     # Check whether --enable-gr-audio-alsa was given.
32152 if test "${enable_gr_audio_alsa+set}" = set; then
32153   enableval=$enable_gr_audio_alsa;
32154 else
32155   enable_gr_audio_alsa=$enable_all_components
32156 fi
32157
32158
32159
32160     ac_config_files="$ac_config_files gr-audio-alsa/Makefile gr-audio-alsa/src/Makefile gr-audio-alsa/src/run_tests"
32161
32162
32163     passed=yes
32164
32165   succeeded=no
32166
32167   if test -z "$PKG_CONFIG"; then
32168     # Extract the first word of "pkg-config", so it can be a program name with args.
32169 set dummy pkg-config; ac_word=$2
32170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32172 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32173   echo $ECHO_N "(cached) $ECHO_C" >&6
32174 else
32175   case $PKG_CONFIG in
32176   [\\/]* | ?:[\\/]*)
32177   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32178   ;;
32179   *)
32180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32181 for as_dir in $PATH
32182 do
32183   IFS=$as_save_IFS
32184   test -z "$as_dir" && as_dir=.
32185   for ac_exec_ext in '' $ac_executable_extensions; do
32186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
32187     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32189     break 2
32190   fi
32191 done
32192 done
32193 IFS=$as_save_IFS
32194
32195   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
32196   ;;
32197 esac
32198 fi
32199 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32200 if test -n "$PKG_CONFIG"; then
32201   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32202 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32203 else
32204   { echo "$as_me:$LINENO: result: no" >&5
32205 echo "${ECHO_T}no" >&6; }
32206 fi
32207
32208
32209   fi
32210
32211   if test "$PKG_CONFIG" = "no" ; then
32212      echo "*** The pkg-config script could not be found. Make sure it is"
32213      echo "*** in your path, or set the PKG_CONFIG environment variable"
32214      echo "*** to the full path to pkg-config."
32215      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
32216   else
32217                     if test -z "$PKG_CONFIG_PATH"; then
32218         export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
32219      fi
32220
32221      PKG_CONFIG_MIN_VERSION=0.9.0
32222      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
32223         { echo "$as_me:$LINENO: checking for alsa >= 0.9" >&5
32224 echo $ECHO_N "checking for alsa >= 0.9... $ECHO_C" >&6; }
32225
32226         if $PKG_CONFIG --exists "alsa >= 0.9" ; then
32227             { echo "$as_me:$LINENO: result: yes" >&5
32228 echo "${ECHO_T}yes" >&6; }
32229             succeeded=yes
32230
32231             { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
32232 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
32233             ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 0.9"`
32234             { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
32235 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
32236
32237             { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
32238 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
32239             ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= 0.9"`
32240             { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
32241 echo "${ECHO_T}$ALSA_LIBS" >&6; }
32242
32243             { echo "$as_me:$LINENO: checking ALSA_INCLUDEDIR" >&5
32244 echo $ECHO_N "checking ALSA_INCLUDEDIR... $ECHO_C" >&6; }
32245             ALSA_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "alsa >= 0.9"`
32246             { echo "$as_me:$LINENO: result: $ALSA_INCLUDEDIR" >&5
32247 echo "${ECHO_T}$ALSA_INCLUDEDIR" >&6; }
32248         else
32249             ALSA_CFLAGS=""
32250             ALSA_LIBS=""
32251             ## If we have a custom action on failure, don't print errors, but
32252             ## do set a variable so people can do so.
32253             ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa >= 0.9"`
32254
32255         fi
32256
32257
32258
32259
32260      else
32261         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
32262         echo "*** See http://www.freedesktop.org/software/pkgconfig"
32263      fi
32264   fi
32265
32266   if test $succeeded = yes; then
32267      :
32268   else
32269      passed=no;{ echo "$as_me:$LINENO: result: gr-audio-alsa requires package alsa, not found." >&5
32270 echo "${ECHO_T}gr-audio-alsa requires package alsa, not found." >&6; }
32271   fi
32272
32273
32274
32275     if test x$passed = xno; then
32276         skipped_dirs="$skipped_dirs gr-audio-alsa"
32277         if test x$enable_gr_audio_alsa = xyes; then
32278             { { echo "$as_me:$LINENO: error: Component gr-audio-alsa has errors, stopping." >&5
32279 echo "$as_me: error: Component gr-audio-alsa has errors, stopping." >&2;}
32280    { (exit 1); exit 1; }; }
32281         else
32282             { echo "$as_me:$LINENO: result: Not building component gr-audio-alsa." >&5
32283 echo "${ECHO_T}Not building component gr-audio-alsa." >&6; }
32284         fi
32285     else
32286         if test x$enable_gr_audio_alsa != xno; then
32287
32288
32289                 ac_config_commands="$ac_config_commands run_tests_alsa"
32290
32291
32292             build_dirs="$build_dirs gr-audio-alsa"
32293             { echo "$as_me:$LINENO: result: Component gr-audio-alsa passed configuration checks, building." >&5
32294 echo "${ECHO_T}Component gr-audio-alsa passed configuration checks, building." >&6; }
32295         else
32296             skipped_dirs="$skipped_dirs gr-audio-alsa"
32297             { echo "$as_me:$LINENO: result: Component gr-audio-alsa passed configuration checks, but not building." >&5
32298 echo "${ECHO_T}Component gr-audio-alsa passed configuration checks, but not building." >&6; }
32299         fi
32300     fi
32301
32302
32303
32304
32305     # Check whether --enable-gr-audio-jack was given.
32306 if test "${enable_gr_audio_jack+set}" = set; then
32307   enableval=$enable_gr_audio_jack;
32308 else
32309   enable_gr_audio_jack=$enable_all_components
32310 fi
32311
32312
32313
32314     ac_config_files="$ac_config_files gr-audio-jack/Makefile gr-audio-jack/src/Makefile gr-audio-jack/src/run_tests"
32315
32316
32317     passed=yes
32318
32319   succeeded=no
32320
32321   if test -z "$PKG_CONFIG"; then
32322     # Extract the first word of "pkg-config", so it can be a program name with args.
32323 set dummy pkg-config; ac_word=$2
32324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32326 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32327   echo $ECHO_N "(cached) $ECHO_C" >&6
32328 else
32329   case $PKG_CONFIG in
32330   [\\/]* | ?:[\\/]*)
32331   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32332   ;;
32333   *)
32334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32335 for as_dir in $PATH
32336 do
32337   IFS=$as_save_IFS
32338   test -z "$as_dir" && as_dir=.
32339   for ac_exec_ext in '' $ac_executable_extensions; do
32340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
32341     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32343     break 2
32344   fi
32345 done
32346 done
32347 IFS=$as_save_IFS
32348
32349   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
32350   ;;
32351 esac
32352 fi
32353 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32354 if test -n "$PKG_CONFIG"; then
32355   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32356 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32357 else
32358   { echo "$as_me:$LINENO: result: no" >&5
32359 echo "${ECHO_T}no" >&6; }
32360 fi
32361
32362
32363   fi
32364
32365   if test "$PKG_CONFIG" = "no" ; then
32366      echo "*** The pkg-config script could not be found. Make sure it is"
32367      echo "*** in your path, or set the PKG_CONFIG environment variable"
32368      echo "*** to the full path to pkg-config."
32369      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
32370   else
32371                     if test -z "$PKG_CONFIG_PATH"; then
32372         export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
32373      fi
32374
32375      PKG_CONFIG_MIN_VERSION=0.9.0
32376      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
32377         { echo "$as_me:$LINENO: checking for jack >= 0.8" >&5
32378 echo $ECHO_N "checking for jack >= 0.8... $ECHO_C" >&6; }
32379
32380         if $PKG_CONFIG --exists "jack >= 0.8" ; then
32381             { echo "$as_me:$LINENO: result: yes" >&5
32382 echo "${ECHO_T}yes" >&6; }
32383             succeeded=yes
32384
32385             { echo "$as_me:$LINENO: checking JACK_CFLAGS" >&5
32386 echo $ECHO_N "checking JACK_CFLAGS... $ECHO_C" >&6; }
32387             JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.8"`
32388             { echo "$as_me:$LINENO: result: $JACK_CFLAGS" >&5
32389 echo "${ECHO_T}$JACK_CFLAGS" >&6; }
32390
32391             { echo "$as_me:$LINENO: checking JACK_LIBS" >&5
32392 echo $ECHO_N "checking JACK_LIBS... $ECHO_C" >&6; }
32393             JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.8"`
32394             { echo "$as_me:$LINENO: result: $JACK_LIBS" >&5
32395 echo "${ECHO_T}$JACK_LIBS" >&6; }
32396
32397             { echo "$as_me:$LINENO: checking JACK_INCLUDEDIR" >&5
32398 echo $ECHO_N "checking JACK_INCLUDEDIR... $ECHO_C" >&6; }
32399             JACK_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "jack >= 0.8"`
32400             { echo "$as_me:$LINENO: result: $JACK_INCLUDEDIR" >&5
32401 echo "${ECHO_T}$JACK_INCLUDEDIR" >&6; }
32402         else
32403             JACK_CFLAGS=""
32404             JACK_LIBS=""
32405             ## If we have a custom action on failure, don't print errors, but
32406             ## do set a variable so people can do so.
32407             JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack >= 0.8"`
32408
32409         fi
32410
32411
32412
32413
32414      else
32415         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
32416         echo "*** See http://www.freedesktop.org/software/pkgconfig"
32417      fi
32418   fi
32419
32420   if test $succeeded = yes; then
32421      :
32422   else
32423      passed=no;{ echo "$as_me:$LINENO: result: gr-audio-jack requires package jack, not found." >&5
32424 echo "${ECHO_T}gr-audio-jack requires package jack, not found." >&6; }
32425   fi
32426
32427
32428
32429     if test x$passed = xno; then
32430         skipped_dirs="$skipped_dirs gr-audio-jack"
32431         if test x$enable_gr_audio_jack = xyes; then
32432             { { echo "$as_me:$LINENO: error: Component gr-audio-jack has errors, stopping." >&5
32433 echo "$as_me: error: Component gr-audio-jack has errors, stopping." >&2;}
32434    { (exit 1); exit 1; }; }
32435         else
32436             { echo "$as_me:$LINENO: result: Not building component gr-audio-jack." >&5
32437 echo "${ECHO_T}Not building component gr-audio-jack." >&6; }
32438         fi
32439     else
32440         if test x$enable_gr_audio_jack != xno; then
32441
32442
32443                 ac_config_commands="$ac_config_commands run_tests_jack"
32444
32445
32446             build_dirs="$build_dirs gr-audio-jack"
32447             { echo "$as_me:$LINENO: result: Component gr-audio-jack passed configuration checks, building." >&5
32448 echo "${ECHO_T}Component gr-audio-jack passed configuration checks, building." >&6; }
32449         else
32450             skipped_dirs="$skipped_dirs gr-audio-jack"
32451             { echo "$as_me:$LINENO: result: Component gr-audio-jack passed configuration checks, but not building." >&5
32452 echo "${ECHO_T}Component gr-audio-jack passed configuration checks, but not building." >&6; }
32453         fi
32454     fi
32455
32456
32457
32458
32459     # Check whether --enable-gr-audio-oss was given.
32460 if test "${enable_gr_audio_oss+set}" = set; then
32461   enableval=$enable_gr_audio_oss;
32462 else
32463   enable_gr_audio_oss=$enable_all_components
32464 fi
32465
32466
32467
32468     ac_config_files="$ac_config_files gr-audio-oss/Makefile gr-audio-oss/src/Makefile gr-audio-oss/src/run_tests"
32469
32470
32471     passed=yes
32472     case $target in
32473         *-*-netbsd*)
32474
32475 { echo "$as_me:$LINENO: checking for main in -lossaudio" >&5
32476 echo $ECHO_N "checking for main in -lossaudio... $ECHO_C" >&6; }
32477 if test "${ac_cv_lib_ossaudio_main+set}" = set; then
32478   echo $ECHO_N "(cached) $ECHO_C" >&6
32479 else
32480   ac_check_lib_save_LIBS=$LIBS
32481 LIBS="-lossaudio  $LIBS"
32482 cat >conftest.$ac_ext <<_ACEOF
32483 /* confdefs.h.  */
32484 _ACEOF
32485 cat confdefs.h >>conftest.$ac_ext
32486 cat >>conftest.$ac_ext <<_ACEOF
32487 /* end confdefs.h.  */
32488
32489
32490 int
32491 main ()
32492 {
32493 return main ();
32494   ;
32495   return 0;
32496 }
32497 _ACEOF
32498 rm -f conftest.$ac_objext conftest$ac_exeext
32499 if { (ac_try="$ac_link"
32500 case "(($ac_try" in
32501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32502   *) ac_try_echo=$ac_try;;
32503 esac
32504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32505   (eval "$ac_link") 2>conftest.er1
32506   ac_status=$?
32507   grep -v '^ *+' conftest.er1 >conftest.err
32508   rm -f conftest.er1
32509   cat conftest.err >&5
32510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511   (exit $ac_status); } &&
32512          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32513   { (case "(($ac_try" in
32514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32515   *) ac_try_echo=$ac_try;;
32516 esac
32517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32518   (eval "$ac_try") 2>&5
32519   ac_status=$?
32520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32521   (exit $ac_status); }; } &&
32522          { ac_try='test -s conftest$ac_exeext'
32523   { (case "(($ac_try" in
32524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32525   *) ac_try_echo=$ac_try;;
32526 esac
32527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32528   (eval "$ac_try") 2>&5
32529   ac_status=$?
32530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32531   (exit $ac_status); }; }; then
32532   ac_cv_lib_ossaudio_main=yes
32533 else
32534   echo "$as_me: failed program was:" >&5
32535 sed 's/^/| /' conftest.$ac_ext >&5
32536
32537         ac_cv_lib_ossaudio_main=no
32538 fi
32539
32540 rm -f core conftest.err conftest.$ac_objext \
32541       conftest$ac_exeext conftest.$ac_ext
32542 LIBS=$ac_check_lib_save_LIBS
32543 fi
32544 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_main" >&5
32545 echo "${ECHO_T}$ac_cv_lib_ossaudio_main" >&6; }
32546 if test $ac_cv_lib_ossaudio_main = yes; then
32547   cat >>confdefs.h <<_ACEOF
32548 #define HAVE_LIBOSSAUDIO 1
32549 _ACEOF
32550
32551   LIBS="-lossaudio $LIBS"
32552
32553 else
32554   passed=no;{ echo "$as_me:$LINENO: result: gr-audio-oss requires library ossaudio, not found." >&5
32555 echo "${ECHO_T}gr-audio-oss requires library ossaudio, not found." >&6; }
32556 fi
32557 ac_cv_lib_ossaudio=ac_cv_lib_ossaudio_main
32558
32559             if test x$passed != xno; then
32560                 OSS_LIBS=-lossaudio
32561                 { echo "$as_me:$LINENO: result: Using OSS library $OSS_LIBS" >&5
32562 echo "${ECHO_T}Using OSS library $OSS_LIBS" >&6; }
32563             fi
32564             ;;
32565         *)
32566             if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
32567   { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
32568 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
32569 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
32570   echo $ECHO_N "(cached) $ECHO_C" >&6
32571 fi
32572 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
32573 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
32574 else
32575   # Is the header compilable?
32576 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
32577 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
32578 cat >conftest.$ac_ext <<_ACEOF
32579 /* confdefs.h.  */
32580 _ACEOF
32581 cat confdefs.h >>conftest.$ac_ext
32582 cat >>conftest.$ac_ext <<_ACEOF
32583 /* end confdefs.h.  */
32584 $ac_includes_default
32585 #include <sys/soundcard.h>
32586 _ACEOF
32587 rm -f conftest.$ac_objext
32588 if { (ac_try="$ac_compile"
32589 case "(($ac_try" in
32590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32591   *) ac_try_echo=$ac_try;;
32592 esac
32593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32594   (eval "$ac_compile") 2>conftest.er1
32595   ac_status=$?
32596   grep -v '^ *+' conftest.er1 >conftest.err
32597   rm -f conftest.er1
32598   cat conftest.err >&5
32599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32600   (exit $ac_status); } &&
32601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32602   { (case "(($ac_try" in
32603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32604   *) ac_try_echo=$ac_try;;
32605 esac
32606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32607   (eval "$ac_try") 2>&5
32608   ac_status=$?
32609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32610   (exit $ac_status); }; } &&
32611          { ac_try='test -s conftest.$ac_objext'
32612   { (case "(($ac_try" in
32613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32614   *) ac_try_echo=$ac_try;;
32615 esac
32616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32617   (eval "$ac_try") 2>&5
32618   ac_status=$?
32619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32620   (exit $ac_status); }; }; then
32621   ac_header_compiler=yes
32622 else
32623   echo "$as_me: failed program was:" >&5
32624 sed 's/^/| /' conftest.$ac_ext >&5
32625
32626         ac_header_compiler=no
32627 fi
32628
32629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32631 echo "${ECHO_T}$ac_header_compiler" >&6; }
32632
32633 # Is the header present?
32634 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
32635 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
32636 cat >conftest.$ac_ext <<_ACEOF
32637 /* confdefs.h.  */
32638 _ACEOF
32639 cat confdefs.h >>conftest.$ac_ext
32640 cat >>conftest.$ac_ext <<_ACEOF
32641 /* end confdefs.h.  */
32642 #include <sys/soundcard.h>
32643 _ACEOF
32644 if { (ac_try="$ac_cpp conftest.$ac_ext"
32645 case "(($ac_try" in
32646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32647   *) ac_try_echo=$ac_try;;
32648 esac
32649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32650   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32651   ac_status=$?
32652   grep -v '^ *+' conftest.er1 >conftest.err
32653   rm -f conftest.er1
32654   cat conftest.err >&5
32655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32656   (exit $ac_status); } >/dev/null; then
32657   if test -s conftest.err; then
32658     ac_cpp_err=$ac_c_preproc_warn_flag
32659     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32660   else
32661     ac_cpp_err=
32662   fi
32663 else
32664   ac_cpp_err=yes
32665 fi
32666 if test -z "$ac_cpp_err"; then
32667   ac_header_preproc=yes
32668 else
32669   echo "$as_me: failed program was:" >&5
32670 sed 's/^/| /' conftest.$ac_ext >&5
32671
32672   ac_header_preproc=no
32673 fi
32674
32675 rm -f conftest.err conftest.$ac_ext
32676 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32677 echo "${ECHO_T}$ac_header_preproc" >&6; }
32678
32679 # So?  What about this header?
32680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32681   yes:no: )
32682     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
32683 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32684     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
32685 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
32686     ac_header_preproc=yes
32687     ;;
32688   no:yes:* )
32689     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
32690 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
32691     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h:     check for missing prerequisite headers?" >&5
32692 echo "$as_me: WARNING: sys/soundcard.h:     check for missing prerequisite headers?" >&2;}
32693     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
32694 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
32695     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h:     section \"Present But Cannot Be Compiled\"" >&5
32696 echo "$as_me: WARNING: sys/soundcard.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32697     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
32698 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
32699     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
32700 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
32701
32702     ;;
32703 esac
32704 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
32705 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
32706 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
32707   echo $ECHO_N "(cached) $ECHO_C" >&6
32708 else
32709   ac_cv_header_sys_soundcard_h=$ac_header_preproc
32710 fi
32711 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
32712 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
32713
32714 fi
32715 if test $ac_cv_header_sys_soundcard_h = yes; then
32716   :
32717 else
32718   passed=no;{ echo "$as_me:$LINENO: result: gr-audio-oss requires sys/soundcard.h, not found." >&5
32719 echo "${ECHO_T}gr-audio-oss requires sys/soundcard.h, not found." >&6; }
32720 fi
32721
32722
32723     esac
32724
32725
32726     if test x$passed = xno; then
32727         skipped_dirs="$skipped_dirs gr-audio-oss"
32728         if test x$enable_gr_audio_oss = xyes; then
32729             { { echo "$as_me:$LINENO: error: Component gr-audio-oss has errors, stopping." >&5
32730 echo "$as_me: error: Component gr-audio-oss has errors, stopping." >&2;}
32731    { (exit 1); exit 1; }; }
32732         else
32733             { echo "$as_me:$LINENO: result: Not building component gr-audio-oss." >&5
32734 echo "${ECHO_T}Not building component gr-audio-oss." >&6; }
32735         fi
32736     else
32737         if test x$enable_gr_audio_oss != xno; then
32738
32739
32740                 ac_config_commands="$ac_config_commands run_tests_oss"
32741
32742
32743             build_dirs="$build_dirs gr-audio-oss"
32744             { echo "$as_me:$LINENO: result: Component gr-audio-oss passed configuration checks, building." >&5
32745 echo "${ECHO_T}Component gr-audio-oss passed configuration checks, building." >&6; }
32746         else
32747             skipped_dirs="$skipped_dirs gr-audio-oss"
32748             { echo "$as_me:$LINENO: result: Component gr-audio-oss passed configuration checks, but not building." >&5
32749 echo "${ECHO_T}Component gr-audio-oss passed configuration checks, but not building." >&6; }
32750         fi
32751     fi
32752
32753
32754
32755
32756     # Check whether --enable-gr-audio-osx was given.
32757 if test "${enable_gr_audio_osx+set}" = set; then
32758   enableval=$enable_gr_audio_osx;
32759 else
32760   enable_gr_audio_osx=$enable_all_components
32761 fi
32762
32763
32764
32765     ac_config_files="$ac_config_files gr-audio-osx/Makefile gr-audio-osx/src/Makefile gr-audio-osx/src/run_tests"
32766
32767
32768     passed=yes
32769
32770     audiounitok=yes
32771     case "$host_os" in
32772         darwin*);;
32773         *)
32774            audiounitok=no
32775            { echo "$as_me:$LINENO: result: gr-audio-osx requires darwin or MacOS X." >&5
32776 echo "${ECHO_T}gr-audio-osx requires darwin or MacOS X." >&6; }
32777     esac
32778
32779
32780 for ac_header in AudioUnit/AudioUnit.h
32781 do
32782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32784   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32787   echo $ECHO_N "(cached) $ECHO_C" >&6
32788 fi
32789 ac_res=`eval echo '${'$as_ac_Header'}'`
32790                { echo "$as_me:$LINENO: result: $ac_res" >&5
32791 echo "${ECHO_T}$ac_res" >&6; }
32792 else
32793   # Is the header compilable?
32794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32796 cat >conftest.$ac_ext <<_ACEOF
32797 /* confdefs.h.  */
32798 _ACEOF
32799 cat confdefs.h >>conftest.$ac_ext
32800 cat >>conftest.$ac_ext <<_ACEOF
32801 /* end confdefs.h.  */
32802 $ac_includes_default
32803 #include <$ac_header>
32804 _ACEOF
32805 rm -f conftest.$ac_objext
32806 if { (ac_try="$ac_compile"
32807 case "(($ac_try" in
32808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32809   *) ac_try_echo=$ac_try;;
32810 esac
32811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32812   (eval "$ac_compile") 2>conftest.er1
32813   ac_status=$?
32814   grep -v '^ *+' conftest.er1 >conftest.err
32815   rm -f conftest.er1
32816   cat conftest.err >&5
32817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32818   (exit $ac_status); } &&
32819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32820   { (case "(($ac_try" in
32821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32822   *) ac_try_echo=$ac_try;;
32823 esac
32824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32825   (eval "$ac_try") 2>&5
32826   ac_status=$?
32827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828   (exit $ac_status); }; } &&
32829          { ac_try='test -s conftest.$ac_objext'
32830   { (case "(($ac_try" in
32831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32832   *) ac_try_echo=$ac_try;;
32833 esac
32834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32835   (eval "$ac_try") 2>&5
32836   ac_status=$?
32837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32838   (exit $ac_status); }; }; then
32839   ac_header_compiler=yes
32840 else
32841   echo "$as_me: failed program was:" >&5
32842 sed 's/^/| /' conftest.$ac_ext >&5
32843
32844         ac_header_compiler=no
32845 fi
32846
32847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32849 echo "${ECHO_T}$ac_header_compiler" >&6; }
32850
32851 # Is the header present?
32852 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32854 cat >conftest.$ac_ext <<_ACEOF
32855 /* confdefs.h.  */
32856 _ACEOF
32857 cat confdefs.h >>conftest.$ac_ext
32858 cat >>conftest.$ac_ext <<_ACEOF
32859 /* end confdefs.h.  */
32860 #include <$ac_header>
32861 _ACEOF
32862 if { (ac_try="$ac_cpp conftest.$ac_ext"
32863 case "(($ac_try" in
32864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32865   *) ac_try_echo=$ac_try;;
32866 esac
32867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32868   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32869   ac_status=$?
32870   grep -v '^ *+' conftest.er1 >conftest.err
32871   rm -f conftest.er1
32872   cat conftest.err >&5
32873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32874   (exit $ac_status); } >/dev/null; then
32875   if test -s conftest.err; then
32876     ac_cpp_err=$ac_c_preproc_warn_flag
32877     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32878   else
32879     ac_cpp_err=
32880   fi
32881 else
32882   ac_cpp_err=yes
32883 fi
32884 if test -z "$ac_cpp_err"; then
32885   ac_header_preproc=yes
32886 else
32887   echo "$as_me: failed program was:" >&5
32888 sed 's/^/| /' conftest.$ac_ext >&5
32889
32890   ac_header_preproc=no
32891 fi
32892
32893 rm -f conftest.err conftest.$ac_ext
32894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32895 echo "${ECHO_T}$ac_header_preproc" >&6; }
32896
32897 # So?  What about this header?
32898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32899   yes:no: )
32900     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32904     ac_header_preproc=yes
32905     ;;
32906   no:yes:* )
32907     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32909     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32910 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32911     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32913     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32914 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32917     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32919
32920     ;;
32921 esac
32922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32925   echo $ECHO_N "(cached) $ECHO_C" >&6
32926 else
32927   eval "$as_ac_Header=\$ac_header_preproc"
32928 fi
32929 ac_res=`eval echo '${'$as_ac_Header'}'`
32930                { echo "$as_me:$LINENO: result: $ac_res" >&5
32931 echo "${ECHO_T}$ac_res" >&6; }
32932
32933 fi
32934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32935   cat >>confdefs.h <<_ACEOF
32936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32937 _ACEOF
32938
32939 else
32940   audiounitok=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&5
32941 echo "${ECHO_T}gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&6; }
32942 fi
32943
32944 done
32945
32946
32947
32948 for ac_header in AudioToolbox/AudioToolbox.h
32949 do
32950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32952   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32955   echo $ECHO_N "(cached) $ECHO_C" >&6
32956 fi
32957 ac_res=`eval echo '${'$as_ac_Header'}'`
32958                { echo "$as_me:$LINENO: result: $ac_res" >&5
32959 echo "${ECHO_T}$ac_res" >&6; }
32960 else
32961   # Is the header compilable?
32962 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32964 cat >conftest.$ac_ext <<_ACEOF
32965 /* confdefs.h.  */
32966 _ACEOF
32967 cat confdefs.h >>conftest.$ac_ext
32968 cat >>conftest.$ac_ext <<_ACEOF
32969 /* end confdefs.h.  */
32970 $ac_includes_default
32971 #include <$ac_header>
32972 _ACEOF
32973 rm -f conftest.$ac_objext
32974 if { (ac_try="$ac_compile"
32975 case "(($ac_try" in
32976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32977   *) ac_try_echo=$ac_try;;
32978 esac
32979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32980   (eval "$ac_compile") 2>conftest.er1
32981   ac_status=$?
32982   grep -v '^ *+' conftest.er1 >conftest.err
32983   rm -f conftest.er1
32984   cat conftest.err >&5
32985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32986   (exit $ac_status); } &&
32987          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32988   { (case "(($ac_try" in
32989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32990   *) ac_try_echo=$ac_try;;
32991 esac
32992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32993   (eval "$ac_try") 2>&5
32994   ac_status=$?
32995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32996   (exit $ac_status); }; } &&
32997          { ac_try='test -s conftest.$ac_objext'
32998   { (case "(($ac_try" in
32999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33000   *) ac_try_echo=$ac_try;;
33001 esac
33002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33003   (eval "$ac_try") 2>&5
33004   ac_status=$?
33005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006   (exit $ac_status); }; }; then
33007   ac_header_compiler=yes
33008 else
33009   echo "$as_me: failed program was:" >&5
33010 sed 's/^/| /' conftest.$ac_ext >&5
33011
33012         ac_header_compiler=no
33013 fi
33014
33015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33016 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33017 echo "${ECHO_T}$ac_header_compiler" >&6; }
33018
33019 # Is the header present?
33020 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33022 cat >conftest.$ac_ext <<_ACEOF
33023 /* confdefs.h.  */
33024 _ACEOF
33025 cat confdefs.h >>conftest.$ac_ext
33026 cat >>conftest.$ac_ext <<_ACEOF
33027 /* end confdefs.h.  */
33028 #include <$ac_header>
33029 _ACEOF
33030 if { (ac_try="$ac_cpp conftest.$ac_ext"
33031 case "(($ac_try" in
33032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33033   *) ac_try_echo=$ac_try;;
33034 esac
33035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33036   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33037   ac_status=$?
33038   grep -v '^ *+' conftest.er1 >conftest.err
33039   rm -f conftest.er1
33040   cat conftest.err >&5
33041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33042   (exit $ac_status); } >/dev/null; then
33043   if test -s conftest.err; then
33044     ac_cpp_err=$ac_c_preproc_warn_flag
33045     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33046   else
33047     ac_cpp_err=
33048   fi
33049 else
33050   ac_cpp_err=yes
33051 fi
33052 if test -z "$ac_cpp_err"; then
33053   ac_header_preproc=yes
33054 else
33055   echo "$as_me: failed program was:" >&5
33056 sed 's/^/| /' conftest.$ac_ext >&5
33057
33058   ac_header_preproc=no
33059 fi
33060
33061 rm -f conftest.err conftest.$ac_ext
33062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33063 echo "${ECHO_T}$ac_header_preproc" >&6; }
33064
33065 # So?  What about this header?
33066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33067   yes:no: )
33068     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33072     ac_header_preproc=yes
33073     ;;
33074   no:yes:* )
33075     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33077     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33078 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33079     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33081     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33082 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33085     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33087
33088     ;;
33089 esac
33090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33093   echo $ECHO_N "(cached) $ECHO_C" >&6
33094 else
33095   eval "$as_ac_Header=\$ac_header_preproc"
33096 fi
33097 ac_res=`eval echo '${'$as_ac_Header'}'`
33098                { echo "$as_me:$LINENO: result: $ac_res" >&5
33099 echo "${ECHO_T}$ac_res" >&6; }
33100
33101 fi
33102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33103   cat >>confdefs.h <<_ACEOF
33104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33105 _ACEOF
33106
33107 else
33108   audiounitok=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&5
33109 echo "${ECHO_T}gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&6; }
33110 fi
33111
33112 done
33113
33114
33115     if test $audiounitok = yes; then
33116         :
33117     else
33118         passed=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioUnit, not found." >&5
33119 echo "${ECHO_T}gr-audio-osx requires AudioUnit, not found." >&6; }
33120     fi
33121
33122
33123
33124     if test x$passed = xno; then
33125         skipped_dirs="$skipped_dirs gr-audio-osx"
33126         if test x$enable_gr_audio_osx = xyes; then
33127             { { echo "$as_me:$LINENO: error: Component gr-audio-osx has errors, stopping." >&5
33128 echo "$as_me: error: Component gr-audio-osx has errors, stopping." >&2;}
33129    { (exit 1); exit 1; }; }
33130         else
33131             { echo "$as_me:$LINENO: result: Not building component gr-audio-osx." >&5
33132 echo "${ECHO_T}Not building component gr-audio-osx." >&6; }
33133         fi
33134     else
33135         if test x$enable_gr_audio_osx != xno; then
33136
33137                 ac_config_commands="$ac_config_commands run_tests_osx"
33138
33139
33140             build_dirs="$build_dirs gr-audio-osx"
33141             { echo "$as_me:$LINENO: result: Component gr-audio-osx passed configuration checks, building." >&5
33142 echo "${ECHO_T}Component gr-audio-osx passed configuration checks, building." >&6; }
33143         else
33144             skipped_dirs="$skipped_dirs gr-audio-osx"
33145             { echo "$as_me:$LINENO: result: Component gr-audio-osx passed configuration checks, but not building." >&5
33146 echo "${ECHO_T}Component gr-audio-osx passed configuration checks, but not building." >&6; }
33147         fi
33148     fi
33149
33150
33151
33152
33153     # Check whether --enable-gr-audio-portaudio was given.
33154 if test "${enable_gr_audio_portaudio+set}" = set; then
33155   enableval=$enable_gr_audio_portaudio;
33156 else
33157   enable_gr_audio_portaudio=$enable_all_components
33158 fi
33159
33160
33161
33162     ac_config_files="$ac_config_files gr-audio-portaudio/Makefile gr-audio-portaudio/src/Makefile gr-audio-portaudio/src/run_tests"
33163
33164
33165     passed=yes
33166
33167   succeeded=no
33168
33169   if test -z "$PKG_CONFIG"; then
33170     # Extract the first word of "pkg-config", so it can be a program name with args.
33171 set dummy pkg-config; ac_word=$2
33172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33174 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33175   echo $ECHO_N "(cached) $ECHO_C" >&6
33176 else
33177   case $PKG_CONFIG in
33178   [\\/]* | ?:[\\/]*)
33179   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33180   ;;
33181   *)
33182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33183 for as_dir in $PATH
33184 do
33185   IFS=$as_save_IFS
33186   test -z "$as_dir" && as_dir=.
33187   for ac_exec_ext in '' $ac_executable_extensions; do
33188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
33189     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33191     break 2
33192   fi
33193 done
33194 done
33195 IFS=$as_save_IFS
33196
33197   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
33198   ;;
33199 esac
33200 fi
33201 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33202 if test -n "$PKG_CONFIG"; then
33203   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33204 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33205 else
33206   { echo "$as_me:$LINENO: result: no" >&5
33207 echo "${ECHO_T}no" >&6; }
33208 fi
33209
33210
33211   fi
33212
33213   if test "$PKG_CONFIG" = "no" ; then
33214      echo "*** The pkg-config script could not be found. Make sure it is"
33215      echo "*** in your path, or set the PKG_CONFIG environment variable"
33216      echo "*** to the full path to pkg-config."
33217      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
33218   else
33219                     if test -z "$PKG_CONFIG_PATH"; then
33220         export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
33221      fi
33222
33223      PKG_CONFIG_MIN_VERSION=0.9.0
33224      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
33225         { echo "$as_me:$LINENO: checking for portaudio-2.0 >= 19" >&5
33226 echo $ECHO_N "checking for portaudio-2.0 >= 19... $ECHO_C" >&6; }
33227
33228         if $PKG_CONFIG --exists "portaudio-2.0 >= 19" ; then
33229             { echo "$as_me:$LINENO: result: yes" >&5
33230 echo "${ECHO_T}yes" >&6; }
33231             succeeded=yes
33232
33233             { echo "$as_me:$LINENO: checking PORTAUDIO_CFLAGS" >&5
33234 echo $ECHO_N "checking PORTAUDIO_CFLAGS... $ECHO_C" >&6; }
33235             PORTAUDIO_CFLAGS=`$PKG_CONFIG --cflags "portaudio-2.0 >= 19"`
33236             { echo "$as_me:$LINENO: result: $PORTAUDIO_CFLAGS" >&5
33237 echo "${ECHO_T}$PORTAUDIO_CFLAGS" >&6; }
33238
33239             { echo "$as_me:$LINENO: checking PORTAUDIO_LIBS" >&5
33240 echo $ECHO_N "checking PORTAUDIO_LIBS... $ECHO_C" >&6; }
33241             PORTAUDIO_LIBS=`$PKG_CONFIG --libs "portaudio-2.0 >= 19"`
33242             { echo "$as_me:$LINENO: result: $PORTAUDIO_LIBS" >&5
33243 echo "${ECHO_T}$PORTAUDIO_LIBS" >&6; }
33244
33245             { echo "$as_me:$LINENO: checking PORTAUDIO_INCLUDEDIR" >&5
33246 echo $ECHO_N "checking PORTAUDIO_INCLUDEDIR... $ECHO_C" >&6; }
33247             PORTAUDIO_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "portaudio-2.0 >= 19"`
33248             { echo "$as_me:$LINENO: result: $PORTAUDIO_INCLUDEDIR" >&5
33249 echo "${ECHO_T}$PORTAUDIO_INCLUDEDIR" >&6; }
33250         else
33251             PORTAUDIO_CFLAGS=""
33252             PORTAUDIO_LIBS=""
33253             ## If we have a custom action on failure, don't print errors, but
33254             ## do set a variable so people can do so.
33255             PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "portaudio-2.0 >= 19"`
33256
33257         fi
33258
33259
33260
33261
33262      else
33263         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
33264         echo "*** See http://www.freedesktop.org/software/pkgconfig"
33265      fi
33266   fi
33267
33268   if test $succeeded = yes; then
33269      :
33270   else
33271      passed=no;{ echo "$as_me:$LINENO: result: gr-audio-portaudio requires package portaudio, not found." >&5
33272 echo "${ECHO_T}gr-audio-portaudio requires package portaudio, not found." >&6; }
33273   fi
33274
33275
33276
33277     if test x$passed = xno; then
33278         skipped_dirs="$skipped_dirs gr-audio-portaudio"
33279         if test x$enable_gr_audio_portaudio = xyes; then
33280             { { echo "$as_me:$LINENO: error: Component gr-audio-portaudio has errors, stopping." >&5
33281 echo "$as_me: error: Component gr-audio-portaudio has errors, stopping." >&2;}
33282    { (exit 1); exit 1; }; }
33283         else
33284             { echo "$as_me:$LINENO: result: Not building component gr-audio-portaudio." >&5
33285 echo "${ECHO_T}Not building component gr-audio-portaudio." >&6; }
33286         fi
33287     else
33288         if test x$enable_gr_audio_portaudio != xno; then
33289
33290
33291                 ac_config_commands="$ac_config_commands run_tests_portaudio"
33292
33293
33294             build_dirs="$build_dirs gr-audio-portaudio"
33295             { echo "$as_me:$LINENO: result: Component gr-audio-portaudio passed configuration checks, building." >&5
33296 echo "${ECHO_T}Component gr-audio-portaudio passed configuration checks, building." >&6; }
33297         else
33298             skipped_dirs="$skipped_dirs gr-audio-portaudio"
33299             { echo "$as_me:$LINENO: result: Component gr-audio-portaudio passed configuration checks, but not building." >&5
33300 echo "${ECHO_T}Component gr-audio-portaudio passed configuration checks, but not building." >&6; }
33301         fi
33302     fi
33303
33304
33305
33306
33307     # Check whether --enable-gr-audio-windows was given.
33308 if test "${enable_gr_audio_windows+set}" = set; then
33309   enableval=$enable_gr_audio_windows;
33310 else
33311   enable_gr_audio_windows=$enable_all_components
33312 fi
33313
33314
33315
33316     ac_config_files="$ac_config_files gr-audio-windows/Makefile gr-audio-windows/src/Makefile gr-audio-windows/src/run_tests"
33317
33318
33319     passed=yes
33320
33321 { echo "$as_me:$LINENO: checking for main in -lwinmm" >&5
33322 echo $ECHO_N "checking for main in -lwinmm... $ECHO_C" >&6; }
33323 if test "${ac_cv_lib_winmm_main+set}" = set; then
33324   echo $ECHO_N "(cached) $ECHO_C" >&6
33325 else
33326   ac_check_lib_save_LIBS=$LIBS
33327 LIBS="-lwinmm  $LIBS"
33328 cat >conftest.$ac_ext <<_ACEOF
33329 /* confdefs.h.  */
33330 _ACEOF
33331 cat confdefs.h >>conftest.$ac_ext
33332 cat >>conftest.$ac_ext <<_ACEOF
33333 /* end confdefs.h.  */
33334
33335
33336 int
33337 main ()
33338 {
33339 return main ();
33340   ;
33341   return 0;
33342 }
33343 _ACEOF
33344 rm -f conftest.$ac_objext conftest$ac_exeext
33345 if { (ac_try="$ac_link"
33346 case "(($ac_try" in
33347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33348   *) ac_try_echo=$ac_try;;
33349 esac
33350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33351   (eval "$ac_link") 2>conftest.er1
33352   ac_status=$?
33353   grep -v '^ *+' conftest.er1 >conftest.err
33354   rm -f conftest.er1
33355   cat conftest.err >&5
33356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33357   (exit $ac_status); } &&
33358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33359   { (case "(($ac_try" in
33360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33361   *) ac_try_echo=$ac_try;;
33362 esac
33363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33364   (eval "$ac_try") 2>&5
33365   ac_status=$?
33366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367   (exit $ac_status); }; } &&
33368          { ac_try='test -s conftest$ac_exeext'
33369   { (case "(($ac_try" in
33370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33371   *) ac_try_echo=$ac_try;;
33372 esac
33373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33374   (eval "$ac_try") 2>&5
33375   ac_status=$?
33376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377   (exit $ac_status); }; }; then
33378   ac_cv_lib_winmm_main=yes
33379 else
33380   echo "$as_me: failed program was:" >&5
33381 sed 's/^/| /' conftest.$ac_ext >&5
33382
33383         ac_cv_lib_winmm_main=no
33384 fi
33385
33386 rm -f core conftest.err conftest.$ac_objext \
33387       conftest$ac_exeext conftest.$ac_ext
33388 LIBS=$ac_check_lib_save_LIBS
33389 fi
33390 { echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_main" >&5
33391 echo "${ECHO_T}$ac_cv_lib_winmm_main" >&6; }
33392 if test $ac_cv_lib_winmm_main = yes; then
33393   cat >>confdefs.h <<_ACEOF
33394 #define HAVE_LIBWINMM 1
33395 _ACEOF
33396
33397   LIBS="-lwinmm $LIBS"
33398
33399 else
33400   passed=no;{ echo "$as_me:$LINENO: result: gr-audio-windows requires library winmm, not found." >&5
33401 echo "${ECHO_T}gr-audio-windows requires library winmm, not found." >&6; }
33402 fi
33403 ac_cv_lib_winmm=ac_cv_lib_winmm_main
33404
33405
33406
33407     if test x$passed = xno; then
33408         skipped_dirs="$skipped_dirs gr-audio-windows"
33409         if test x$enable_gr_audio_windows = xyes; then
33410             { { echo "$as_me:$LINENO: error: Component gr-audio-windows has errors, stopping." >&5
33411 echo "$as_me: error: Component gr-audio-windows has errors, stopping." >&2;}
33412    { (exit 1); exit 1; }; }
33413         else
33414             { echo "$as_me:$LINENO: result: Not building component gr-audio-windows." >&5
33415 echo "${ECHO_T}Not building component gr-audio-windows." >&6; }
33416         fi
33417     else
33418         if test x$enable_gr_audio_windows != xno; then
33419
33420         WINAUDIO_LIBS=-lwinmm
33421
33422                 ac_config_commands="$ac_config_commands run_tests_audio_windows"
33423
33424
33425             build_dirs="$build_dirs gr-audio-windows"
33426             { echo "$as_me:$LINENO: result: Component gr-audio-windows passed configuration checks, building." >&5
33427 echo "${ECHO_T}Component gr-audio-windows passed configuration checks, building." >&6; }
33428         else
33429             skipped_dirs="$skipped_dirs gr-audio-windows"
33430             { echo "$as_me:$LINENO: result: Component gr-audio-windows passed configuration checks, but not building." >&5
33431 echo "${ECHO_T}Component gr-audio-windows passed configuration checks, but not building." >&6; }
33432         fi
33433     fi
33434
33435
33436
33437
33438     # Check whether --enable-gr-gsm-fr-vocoder was given.
33439 if test "${enable_gr_gsm_fr_vocoder+set}" = set; then
33440   enableval=$enable_gr_gsm_fr_vocoder;
33441 else
33442   enable_gr_gsm_fr_vocoder=$enable_all_components
33443 fi
33444
33445
33446
33447     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"
33448
33449
33450     passed=yes
33451
33452     if test x$passed = xno; then
33453         skipped_dirs="$skipped_dirs gr-gsm-fr-vocoder"
33454         if test x$enable_gr_gsm_fr_vocoder = xyes; then
33455             { { echo "$as_me:$LINENO: error: Component gr-gsm-fr-vocoder has errors, stopping." >&5
33456 echo "$as_me: error: Component gr-gsm-fr-vocoder has errors, stopping." >&2;}
33457    { (exit 1); exit 1; }; }
33458         else
33459             { echo "$as_me:$LINENO: result: Not building component gr-gsm-fr-vocoder." >&5
33460 echo "${ECHO_T}Not building component gr-gsm-fr-vocoder." >&6; }
33461         fi
33462     else
33463         if test x$enable_gr_gsm_fr_vocoder != xno; then
33464
33465                 ac_config_commands="$ac_config_commands run_tests_gsm"
33466
33467
33468             build_dirs="$build_dirs gr-gsm-fr-vocoder"
33469             { echo "$as_me:$LINENO: result: Component gr-gsm-fr-vocoder passed configuration checks, building." >&5
33470 echo "${ECHO_T}Component gr-gsm-fr-vocoder passed configuration checks, building." >&6; }
33471         else
33472             skipped_dirs="$skipped_dirs gr-gsm-fr-vocoder"
33473             { echo "$as_me:$LINENO: result: Component gr-gsm-fr-vocoder passed configuration checks, but not building." >&5
33474 echo "${ECHO_T}Component gr-gsm-fr-vocoder passed configuration checks, but not building." >&6; }
33475         fi
33476     fi
33477
33478
33479
33480
33481     # Check whether --enable-gr-radio-astronomy was given.
33482 if test "${enable_gr_radio_astronomy+set}" = set; then
33483   enableval=$enable_gr_radio_astronomy;
33484 else
33485   enable_gr_radio_astronomy=$enable_all_components
33486 fi
33487
33488
33489
33490     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"
33491
33492
33493     passed=yes
33494
33495     if test x$passed = xno; then
33496         skipped_dirs="$skipped_dirs gr-radio-astronomy"
33497         if test x$enable_gr_radio_astronomy = xyes; then
33498             { { echo "$as_me:$LINENO: error: Component gr-radio-astronomy has errors, stopping." >&5
33499 echo "$as_me: error: Component gr-radio-astronomy has errors, stopping." >&2;}
33500    { (exit 1); exit 1; }; }
33501         else
33502             { echo "$as_me:$LINENO: result: Not building component gr-radio-astronomy." >&5
33503 echo "${ECHO_T}Not building component gr-radio-astronomy." >&6; }
33504         fi
33505     else
33506         if test x$enable_gr_radio_astronomy != xno; then
33507
33508                 ac_config_commands="$ac_config_commands run_tests_astronomy"
33509
33510
33511             build_dirs="$build_dirs gr-radio-astronomy"
33512             { echo "$as_me:$LINENO: result: Component gr-radio-astronomy passed configuration checks, building." >&5
33513 echo "${ECHO_T}Component gr-radio-astronomy passed configuration checks, building." >&6; }
33514         else
33515             skipped_dirs="$skipped_dirs gr-radio-astronomy"
33516             { echo "$as_me:$LINENO: result: Component gr-radio-astronomy passed configuration checks, but not building." >&5
33517 echo "${ECHO_T}Component gr-radio-astronomy passed configuration checks, but not building." >&6; }
33518         fi
33519     fi
33520
33521
33522
33523
33524     # Check whether --enable-gr-trellis was given.
33525 if test "${enable_gr_trellis+set}" = set; then
33526   enableval=$enable_gr_trellis;
33527 else
33528   enable_gr_trellis=$enable_all_components
33529 fi
33530
33531
33532
33533     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"
33534
33535
33536     passed=yes
33537
33538     if test x$passed = xno; then
33539         skipped_dirs="$skipped_dirs gr-trellis"
33540         if test x$enable_gr_trellis = xyes; then
33541             { { echo "$as_me:$LINENO: error: Component gr-trellis has errors, stopping." >&5
33542 echo "$as_me: error: Component gr-trellis has errors, stopping." >&2;}
33543    { (exit 1); exit 1; }; }
33544         else
33545             { echo "$as_me:$LINENO: result: Not building component gr-trellis." >&5
33546 echo "${ECHO_T}Not building component gr-trellis." >&6; }
33547         fi
33548     else
33549         if test x$enable_gr_trellis != xno; then
33550
33551                 ac_config_commands="$ac_config_commands run_tests_gr_trellis"
33552
33553
33554             build_dirs="$build_dirs gr-trellis"
33555             { echo "$as_me:$LINENO: result: Component gr-trellis passed configuration checks, building." >&5
33556 echo "${ECHO_T}Component gr-trellis passed configuration checks, building." >&6; }
33557         else
33558             skipped_dirs="$skipped_dirs gr-trellis"
33559             { echo "$as_me:$LINENO: result: Component gr-trellis passed configuration checks, but not building." >&5
33560 echo "${ECHO_T}Component gr-trellis passed configuration checks, but not building." >&6; }
33561         fi
33562     fi
33563
33564
33565
33566
33567     # Check whether --enable-gr-video-sdl was given.
33568 if test "${enable_gr_video_sdl+set}" = set; then
33569   enableval=$enable_gr_video_sdl;
33570 else
33571   enable_gr_video_sdl=$enable_all_components
33572 fi
33573
33574
33575
33576     ac_config_files="$ac_config_files gr-video-sdl/Makefile gr-video-sdl/src/Makefile gr-video-sdl/src/run_tests"
33577
33578
33579     passed=yes
33580     SDL_VERSION=1.2.0
33581
33582 # Check whether --with-sdl-prefix was given.
33583 if test "${with_sdl_prefix+set}" = set; then
33584   withval=$with_sdl_prefix; sdl_prefix="$withval"
33585 else
33586   sdl_prefix=""
33587 fi
33588
33589
33590 # Check whether --with-sdl-exec-prefix was given.
33591 if test "${with_sdl_exec_prefix+set}" = set; then
33592   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
33593 else
33594   sdl_exec_prefix=""
33595 fi
33596
33597 # Check whether --enable-sdltest was given.
33598 if test "${enable_sdltest+set}" = set; then
33599   enableval=$enable_sdltest;
33600 else
33601   enable_sdltest=yes
33602 fi
33603
33604
33605   if test x$sdl_exec_prefix != x ; then
33606      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
33607      if test x${SDL_CONFIG+set} != xset ; then
33608         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
33609      fi
33610   fi
33611   if test x$sdl_prefix != x ; then
33612      sdl_args="$sdl_args --prefix=$sdl_prefix"
33613      if test x${SDL_CONFIG+set} != xset ; then
33614         SDL_CONFIG=$sdl_prefix/bin/sdl-config
33615      fi
33616   fi
33617
33618
33619   PATH="$prefix/bin:$prefix/usr/bin:$PATH"
33620   # Extract the first word of "sdl-config", so it can be a program name with args.
33621 set dummy sdl-config; ac_word=$2
33622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33624 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
33625   echo $ECHO_N "(cached) $ECHO_C" >&6
33626 else
33627   case $SDL_CONFIG in
33628   [\\/]* | ?:[\\/]*)
33629   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
33630   ;;
33631   *)
33632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33633 for as_dir in $PATH
33634 do
33635   IFS=$as_save_IFS
33636   test -z "$as_dir" && as_dir=.
33637   for ac_exec_ext in '' $ac_executable_extensions; do
33638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
33639     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33641     break 2
33642   fi
33643 done
33644 done
33645 IFS=$as_save_IFS
33646
33647   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
33648   ;;
33649 esac
33650 fi
33651 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
33652 if test -n "$SDL_CONFIG"; then
33653   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
33654 echo "${ECHO_T}$SDL_CONFIG" >&6; }
33655 else
33656   { echo "$as_me:$LINENO: result: no" >&5
33657 echo "${ECHO_T}no" >&6; }
33658 fi
33659
33660
33661   min_sdl_version=$SDL_VERSION
33662   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
33663 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
33664   no_sdl=""
33665   if test "$SDL_CONFIG" = "no" ; then
33666     no_sdl=yes
33667   else
33668     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
33669     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
33670
33671     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
33672            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
33673     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
33674            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
33675     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
33676            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
33677     if test "x$enable_sdltest" = "xyes" ; then
33678       ac_save_CFLAGS="$CFLAGS"
33679       ac_save_LIBS="$LIBS"
33680       CFLAGS="$CFLAGS $SDL_CFLAGS"
33681       LIBS="$LIBS $SDL_LIBS"
33682       rm -f conf.sdltest
33683       if test "$cross_compiling" = yes; then
33684   echo $ac_n "cross compiling; assumed OK... $ac_c"
33685 else
33686   cat >conftest.$ac_ext <<_ACEOF
33687 /* confdefs.h.  */
33688 _ACEOF
33689 cat confdefs.h >>conftest.$ac_ext
33690 cat >>conftest.$ac_ext <<_ACEOF
33691 /* end confdefs.h.  */
33692
33693 #include <stdio.h>
33694 #include <stdlib.h>
33695 #include <string.h>
33696 #include "SDL.h"
33697
33698 char*
33699 my_strdup (char *str)
33700 {
33701   char *new_str;
33702
33703   if (str)
33704     {
33705       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
33706       strcpy (new_str, str);
33707     }
33708   else
33709     new_str = NULL;
33710
33711   return new_str;
33712 }
33713
33714 int main (int argc, char *argv[])
33715 {
33716   int major, minor, micro;
33717   char *tmp_version;
33718
33719   /* This hangs on some systems (?)
33720   system ("touch conf.sdltest");
33721   */
33722   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
33723
33724   /* HP/UX 9 (%@#!) writes to sscanf strings */
33725   tmp_version = my_strdup("$min_sdl_version");
33726   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
33727      printf("%s, bad version string\n", "$min_sdl_version");
33728      exit(1);
33729    }
33730
33731    if (($sdl_major_version > major) ||
33732       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
33733       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
33734     {
33735       return 0;
33736     }
33737   else
33738     {
33739       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
33740       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
33741       printf("*** best to upgrade to the required version.\n");
33742       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
33743       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
33744       printf("*** config.cache before re-running configure\n");
33745       return 1;
33746     }
33747 }
33748
33749
33750 _ACEOF
33751 rm -f conftest$ac_exeext
33752 if { (ac_try="$ac_link"
33753 case "(($ac_try" in
33754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33755   *) ac_try_echo=$ac_try;;
33756 esac
33757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33758   (eval "$ac_link") 2>&5
33759   ac_status=$?
33760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33761   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33762   { (case "(($ac_try" in
33763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33764   *) ac_try_echo=$ac_try;;
33765 esac
33766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33767   (eval "$ac_try") 2>&5
33768   ac_status=$?
33769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33770   (exit $ac_status); }; }; then
33771   :
33772 else
33773   echo "$as_me: program exited with status $ac_status" >&5
33774 echo "$as_me: failed program was:" >&5
33775 sed 's/^/| /' conftest.$ac_ext >&5
33776
33777 ( exit $ac_status )
33778 no_sdl=yes
33779 fi
33780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33781 fi
33782
33783
33784        CFLAGS="$ac_save_CFLAGS"
33785        LIBS="$ac_save_LIBS"
33786      fi
33787   fi
33788   if test "x$no_sdl" = x ; then
33789      { echo "$as_me:$LINENO: result: yes" >&5
33790 echo "${ECHO_T}yes" >&6; }
33791      :
33792   else
33793      { echo "$as_me:$LINENO: result: no" >&5
33794 echo "${ECHO_T}no" >&6; }
33795      if test "$SDL_CONFIG" = "no" ; then
33796        echo "*** The sdl-config script installed by SDL could not be found"
33797        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
33798        echo "*** your path, or set the SDL_CONFIG environment variable to the"
33799        echo "*** full path to sdl-config."
33800      else
33801        if test -f conf.sdltest ; then
33802         :
33803        else
33804           echo "*** Could not run SDL test program, checking why..."
33805           CFLAGS="$CFLAGS $SDL_CFLAGS"
33806           LIBS="$LIBS $SDL_LIBS"
33807           cat >conftest.$ac_ext <<_ACEOF
33808 /* confdefs.h.  */
33809 _ACEOF
33810 cat confdefs.h >>conftest.$ac_ext
33811 cat >>conftest.$ac_ext <<_ACEOF
33812 /* end confdefs.h.  */
33813
33814 #include <stdio.h>
33815 #include "SDL.h"
33816
33817 int main(int argc, char *argv[])
33818 { return 0; }
33819 #undef  main
33820 #define main K_and_R_C_main
33821
33822 int
33823 main ()
33824 {
33825  return 0;
33826   ;
33827   return 0;
33828 }
33829 _ACEOF
33830 rm -f conftest.$ac_objext conftest$ac_exeext
33831 if { (ac_try="$ac_link"
33832 case "(($ac_try" in
33833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33834   *) ac_try_echo=$ac_try;;
33835 esac
33836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33837   (eval "$ac_link") 2>conftest.er1
33838   ac_status=$?
33839   grep -v '^ *+' conftest.er1 >conftest.err
33840   rm -f conftest.er1
33841   cat conftest.err >&5
33842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33843   (exit $ac_status); } &&
33844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33845   { (case "(($ac_try" in
33846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33847   *) ac_try_echo=$ac_try;;
33848 esac
33849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33850   (eval "$ac_try") 2>&5
33851   ac_status=$?
33852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33853   (exit $ac_status); }; } &&
33854          { ac_try='test -s conftest$ac_exeext'
33855   { (case "(($ac_try" in
33856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33857   *) ac_try_echo=$ac_try;;
33858 esac
33859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33860   (eval "$ac_try") 2>&5
33861   ac_status=$?
33862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33863   (exit $ac_status); }; }; then
33864    echo "*** The test program compiled, but did not run. This usually means"
33865           echo "*** that the run-time linker is not finding SDL or finding the wrong"
33866           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
33867           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
33868           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
33869           echo "*** is required on your system"
33870           echo "***"
33871           echo "*** If you have an old version installed, it is best to remove it, although"
33872           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
33873 else
33874   echo "$as_me: failed program was:" >&5
33875 sed 's/^/| /' conftest.$ac_ext >&5
33876
33877          echo "*** The test program failed to compile or link. See the file config.log for the"
33878           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
33879           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
33880           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
33881 fi
33882
33883 rm -f core conftest.err conftest.$ac_objext \
33884       conftest$ac_exeext conftest.$ac_ext
33885           CFLAGS="$ac_save_CFLAGS"
33886           LIBS="$ac_save_LIBS"
33887        fi
33888      fi
33889      SDL_CFLAGS=""
33890      SDL_LIBS=""
33891      passed=no;{ echo "$as_me:$LINENO: result: gr-video-sdl requires library sdl, not found." >&5
33892 echo "${ECHO_T}gr-video-sdl requires library sdl, not found." >&6; }
33893   fi
33894
33895
33896   rm -f conf.sdltest
33897
33898
33899
33900     if test x$passed = xno; then
33901         skipped_dirs="$skipped_dirs gr-video-sdl"
33902         if test x$enable_gr_video_sdl = xyes; then
33903             { { echo "$as_me:$LINENO: error: Component gr-video-sdl has errors, stopping." >&5
33904 echo "$as_me: error: Component gr-video-sdl has errors, stopping." >&2;}
33905    { (exit 1); exit 1; }; }
33906         else
33907             { echo "$as_me:$LINENO: result: Not building component gr-video-sdl." >&5
33908 echo "${ECHO_T}Not building component gr-video-sdl." >&6; }
33909         fi
33910     else
33911         if test x$enable_gr_video_sdl != xno; then
33912
33913
33914
33915                 ac_config_commands="$ac_config_commands run_tests_sdl"
33916
33917
33918             build_dirs="$build_dirs gr-video-sdl"
33919             { echo "$as_me:$LINENO: result: Component gr-video-sdl passed configuration checks, building." >&5
33920 echo "${ECHO_T}Component gr-video-sdl passed configuration checks, building." >&6; }
33921         else
33922             skipped_dirs="$skipped_dirs gr-video-sdl"
33923             { echo "$as_me:$LINENO: result: Component gr-video-sdl passed configuration checks, but not building." >&5
33924 echo "${ECHO_T}Component gr-video-sdl passed configuration checks, but not building." >&6; }
33925         fi
33926     fi
33927
33928
33929
33930
33931     # Check whether --enable-gr-wxgui was given.
33932 if test "${enable_gr_wxgui+set}" = set; then
33933   enableval=$enable_gr_wxgui;
33934 else
33935   enable_gr_wxgui=$enable_all_components
33936 fi
33937
33938
33939
33940     ac_config_files="$ac_config_files gr-wxgui/Makefile gr-wxgui/src/Makefile gr-wxgui/src/python/Makefile"
33941
33942
33943     # FIXME: this breaks pkgsrc by calling python without a version number
33944     # gdt--patch welcome :-)
33945     if python -c 'import wx'; then
33946         passed=yes
33947     else
33948         passed=no
33949     fi
33950
33951
33952     if test x$passed = xno; then
33953         skipped_dirs="$skipped_dirs gr-wxgui"
33954         if test x$enable_gr_wxgui = xyes; then
33955             { { echo "$as_me:$LINENO: error: Component gr-wxgui has errors, stopping." >&5
33956 echo "$as_me: error: Component gr-wxgui has errors, stopping." >&2;}
33957    { (exit 1); exit 1; }; }
33958         else
33959             { echo "$as_me:$LINENO: result: Not building component gr-wxgui." >&5
33960 echo "${ECHO_T}Not building component gr-wxgui." >&6; }
33961         fi
33962     else
33963         if test x$enable_gr_wxgui != xno; then
33964
33965             build_dirs="$build_dirs gr-wxgui"
33966             { echo "$as_me:$LINENO: result: Component gr-wxgui passed configuration checks, building." >&5
33967 echo "${ECHO_T}Component gr-wxgui passed configuration checks, building." >&6; }
33968         else
33969             skipped_dirs="$skipped_dirs gr-wxgui"
33970             { echo "$as_me:$LINENO: result: Component gr-wxgui passed configuration checks, but not building." >&5
33971 echo "${ECHO_T}Component gr-wxgui passed configuration checks, but not building." >&6; }
33972         fi
33973     fi
33974
33975
33976
33977 # Each component is now either to be built, was skipped, or failed dependencies
33978 build_dirs=$build_dirs
33979
33980 skipped_dirs=$skipped_dirs
33981
33982
33983 ac_config_files="$ac_config_files Makefile run_tests.sh config/Makefile"
33984
33985
33986 ac_config_commands="$ac_config_commands run_tests_build"
33987
33988
33989 cat >confcache <<\_ACEOF
33990 # This file is a shell script that caches the results of configure
33991 # tests run on this system so they can be shared between configure
33992 # scripts and configure runs, see configure's option --config-cache.
33993 # It is not useful on other systems.  If it contains results you don't
33994 # want to keep, you may remove or edit it.
33995 #
33996 # config.status only pays attention to the cache file if you give it
33997 # the --recheck option to rerun configure.
33998 #
33999 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34000 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34001 # following values.
34002
34003 _ACEOF
34004
34005 # The following way of writing the cache mishandles newlines in values,
34006 # but we know of no workaround that is simple, portable, and efficient.
34007 # So, we kill variables containing newlines.
34008 # Ultrix sh set writes to stderr and can't be redirected directly,
34009 # and sets the high bit in the cache file unless we assign to the vars.
34010 (
34011   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34012     eval ac_val=\$$ac_var
34013     case $ac_val in #(
34014     *${as_nl}*)
34015       case $ac_var in #(
34016       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34017 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34018       esac
34019       case $ac_var in #(
34020       _ | IFS | as_nl) ;; #(
34021       *) $as_unset $ac_var ;;
34022       esac ;;
34023     esac
34024   done
34025
34026   (set) 2>&1 |
34027     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34028     *${as_nl}ac_space=\ *)
34029       # `set' does not quote correctly, so add quotes (double-quote
34030       # substitution turns \\\\ into \\, and sed turns \\ into \).
34031       sed -n \
34032         "s/'/'\\\\''/g;
34033           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34034       ;; #(
34035     *)
34036       # `set' quotes correctly as required by POSIX, so do not add quotes.
34037       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34038       ;;
34039     esac |
34040     sort
34041 ) |
34042   sed '
34043      /^ac_cv_env_/b end
34044      t clear
34045      :clear
34046      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34047      t end
34048      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34049      :end' >>confcache
34050 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34051   if test -w "$cache_file"; then
34052     test "x$cache_file" != "x/dev/null" &&
34053       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34054 echo "$as_me: updating cache $cache_file" >&6;}
34055     cat confcache >$cache_file
34056   else
34057     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34058 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34059   fi
34060 fi
34061 rm -f confcache
34062
34063 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34064 # Let make expand exec_prefix.
34065 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34066
34067 DEFS=-DHAVE_CONFIG_H
34068
34069 ac_libobjs=
34070 ac_ltlibobjs=
34071 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34072   # 1. Remove the extension, and $U if already installed.
34073   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34074   ac_i=`echo "$ac_i" | sed "$ac_script"`
34075   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34076   #    will be set to the directory where LIBOBJS objects are built.
34077   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34078   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34079 done
34080 LIBOBJS=$ac_libobjs
34081
34082 LTLIBOBJS=$ac_ltlibobjs
34083
34084
34085 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34086   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
34087 Usually this means the macro was only invoked conditionally." >&5
34088 echo "$as_me: error: conditional \"AMDEP\" was never defined.
34089 Usually this means the macro was only invoked conditionally." >&2;}
34090    { (exit 1); exit 1; }; }
34091 fi
34092 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34093   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
34094 Usually this means the macro was only invoked conditionally." >&5
34095 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
34096 Usually this means the macro was only invoked conditionally." >&2;}
34097    { (exit 1); exit 1; }; }
34098 fi
34099 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34100   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
34101 Usually this means the macro was only invoked conditionally." >&5
34102 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
34103 Usually this means the macro was only invoked conditionally." >&2;}
34104    { (exit 1); exit 1; }; }
34105 fi
34106 if test -z "${ENABLE_FORTRAN_TRUE}" && test -z "${ENABLE_FORTRAN_FALSE}"; then
34107   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FORTRAN\" was never defined.
34108 Usually this means the macro was only invoked conditionally." >&5
34109 echo "$as_me: error: conditional \"ENABLE_FORTRAN\" was never defined.
34110 Usually this means the macro was only invoked conditionally." >&2;}
34111    { (exit 1); exit 1; }; }
34112 fi
34113 if test -z "${HAS_XMLTO_TRUE}" && test -z "${HAS_XMLTO_FALSE}"; then
34114   { { echo "$as_me:$LINENO: error: conditional \"HAS_XMLTO\" was never defined.
34115 Usually this means the macro was only invoked conditionally." >&5
34116 echo "$as_me: error: conditional \"HAS_XMLTO\" was never defined.
34117 Usually this means the macro was only invoked conditionally." >&2;}
34118    { (exit 1); exit 1; }; }
34119 fi
34120 if test -z "${OMNITHREAD_POSIX_TRUE}" && test -z "${OMNITHREAD_POSIX_FALSE}"; then
34121   { { echo "$as_me:$LINENO: error: conditional \"OMNITHREAD_POSIX\" was never defined.
34122 Usually this means the macro was only invoked conditionally." >&5
34123 echo "$as_me: error: conditional \"OMNITHREAD_POSIX\" was never defined.
34124 Usually this means the macro was only invoked conditionally." >&2;}
34125    { (exit 1); exit 1; }; }
34126 fi
34127 if test -z "${OMNITHREAD_NT_TRUE}" && test -z "${OMNITHREAD_NT_FALSE}"; then
34128   { { echo "$as_me:$LINENO: error: conditional \"OMNITHREAD_NT\" was never defined.
34129 Usually this means the macro was only invoked conditionally." >&5
34130 echo "$as_me: error: conditional \"OMNITHREAD_NT\" was never defined.
34131 Usually this means the macro was only invoked conditionally." >&2;}
34132    { (exit 1); exit 1; }; }
34133 fi
34134 if test -z "${HAVE_CREATEFILEMAPPING_TRUE}" && test -z "${HAVE_CREATEFILEMAPPING_FALSE}"; then
34135   { { echo "$as_me:$LINENO: error: conditional \"HAVE_CREATEFILEMAPPING\" was never defined.
34136 Usually this means the macro was only invoked conditionally." >&5
34137 echo "$as_me: error: conditional \"HAVE_CREATEFILEMAPPING\" was never defined.
34138 Usually this means the macro was only invoked conditionally." >&2;}
34139    { (exit 1); exit 1; }; }
34140 fi
34141 if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
34142   { { echo "$as_me:$LINENO: error: conditional \"DOC\" was never defined.
34143 Usually this means the macro was only invoked conditionally." >&5
34144 echo "$as_me: error: conditional \"DOC\" was never defined.
34145 Usually this means the macro was only invoked conditionally." >&2;}
34146    { (exit 1); exit 1; }; }
34147 fi
34148 if test -z "${MD_CPU_x86_TRUE}" && test -z "${MD_CPU_x86_FALSE}"; then
34149   { { echo "$as_me:$LINENO: error: conditional \"MD_CPU_x86\" was never defined.
34150 Usually this means the macro was only invoked conditionally." >&5
34151 echo "$as_me: error: conditional \"MD_CPU_x86\" was never defined.
34152 Usually this means the macro was only invoked conditionally." >&2;}
34153    { (exit 1); exit 1; }; }
34154 fi
34155 if test -z "${MD_SUBCPU_x86_64_TRUE}" && test -z "${MD_SUBCPU_x86_64_FALSE}"; then
34156   { { echo "$as_me:$LINENO: error: conditional \"MD_SUBCPU_x86_64\" was never defined.
34157 Usually this means the macro was only invoked conditionally." >&5
34158 echo "$as_me: error: conditional \"MD_SUBCPU_x86_64\" was never defined.
34159 Usually this means the macro was only invoked conditionally." >&2;}
34160    { (exit 1); exit 1; }; }
34161 fi
34162 if test -z "${MD_CPU_generic_TRUE}" && test -z "${MD_CPU_generic_FALSE}"; then
34163   { { echo "$as_me:$LINENO: error: conditional \"MD_CPU_generic\" was never defined.
34164 Usually this means the macro was only invoked conditionally." >&5
34165 echo "$as_me: error: conditional \"MD_CPU_generic\" was never defined.
34166 Usually this means the macro was only invoked conditionally." >&2;}
34167    { (exit 1); exit 1; }; }
34168 fi
34169 if test -z "${FUSB_TECH_darwin_TRUE}" && test -z "${FUSB_TECH_darwin_FALSE}"; then
34170   { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_darwin\" was never defined.
34171 Usually this means the macro was only invoked conditionally." >&5
34172 echo "$as_me: error: conditional \"FUSB_TECH_darwin\" was never defined.
34173 Usually this means the macro was only invoked conditionally." >&2;}
34174    { (exit 1); exit 1; }; }
34175 fi
34176 if test -z "${FUSB_TECH_win32_TRUE}" && test -z "${FUSB_TECH_win32_FALSE}"; then
34177   { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_win32\" was never defined.
34178 Usually this means the macro was only invoked conditionally." >&5
34179 echo "$as_me: error: conditional \"FUSB_TECH_win32\" was never defined.
34180 Usually this means the macro was only invoked conditionally." >&2;}
34181    { (exit 1); exit 1; }; }
34182 fi
34183 if test -z "${FUSB_TECH_generic_TRUE}" && test -z "${FUSB_TECH_generic_FALSE}"; then
34184   { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_generic\" was never defined.
34185 Usually this means the macro was only invoked conditionally." >&5
34186 echo "$as_me: error: conditional \"FUSB_TECH_generic\" was never defined.
34187 Usually this means the macro was only invoked conditionally." >&2;}
34188    { (exit 1); exit 1; }; }
34189 fi
34190 if test -z "${FUSB_TECH_linux_TRUE}" && test -z "${FUSB_TECH_linux_FALSE}"; then
34191   { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_linux\" was never defined.
34192 Usually this means the macro was only invoked conditionally." >&5
34193 echo "$as_me: error: conditional \"FUSB_TECH_linux\" was never defined.
34194 Usually this means the macro was only invoked conditionally." >&2;}
34195    { (exit 1); exit 1; }; }
34196 fi
34197 if test -z "${FUSB_TECH_ra_wb_TRUE}" && test -z "${FUSB_TECH_ra_wb_FALSE}"; then
34198   { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_ra_wb\" was never defined.
34199 Usually this means the macro was only invoked conditionally." >&5
34200 echo "$as_me: error: conditional \"FUSB_TECH_ra_wb\" was never defined.
34201 Usually this means the macro was only invoked conditionally." >&2;}
34202    { (exit 1); exit 1; }; }
34203 fi
34204
34205 : ${CONFIG_STATUS=./config.status}
34206 ac_clean_files_save=$ac_clean_files
34207 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34208 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34209 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34210 cat >$CONFIG_STATUS <<_ACEOF
34211 #! $SHELL
34212 # Generated by $as_me.
34213 # Run this file to recreate the current configuration.
34214 # Compiler output produced by configure, useful for debugging
34215 # configure, is in config.log if it exists.
34216
34217 debug=false
34218 ac_cs_recheck=false
34219 ac_cs_silent=false
34220 SHELL=\${CONFIG_SHELL-$SHELL}
34221 _ACEOF
34222
34223 cat >>$CONFIG_STATUS <<\_ACEOF
34224 ## --------------------- ##
34225 ## M4sh Initialization.  ##
34226 ## --------------------- ##
34227
34228 # Be Bourne compatible
34229 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34230   emulate sh
34231   NULLCMD=:
34232   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34233   # is contrary to our usage.  Disable this feature.
34234   alias -g '${1+"$@"}'='"$@"'
34235   setopt NO_GLOB_SUBST
34236 else
34237   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34238 fi
34239 BIN_SH=xpg4; export BIN_SH # for Tru64
34240 DUALCASE=1; export DUALCASE # for MKS sh
34241
34242
34243 # PATH needs CR
34244 # Avoid depending upon Character Ranges.
34245 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34246 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34247 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34248 as_cr_digits='0123456789'
34249 as_cr_alnum=$as_cr_Letters$as_cr_digits
34250
34251 # The user is always right.
34252 if test "${PATH_SEPARATOR+set}" != set; then
34253   echo "#! /bin/sh" >conf$$.sh
34254   echo  "exit 0"   >>conf$$.sh
34255   chmod +x conf$$.sh
34256   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34257     PATH_SEPARATOR=';'
34258   else
34259     PATH_SEPARATOR=:
34260   fi
34261   rm -f conf$$.sh
34262 fi
34263
34264 # Support unset when possible.
34265 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34266   as_unset=unset
34267 else
34268   as_unset=false
34269 fi
34270
34271
34272 # IFS
34273 # We need space, tab and new line, in precisely that order.  Quoting is
34274 # there to prevent editors from complaining about space-tab.
34275 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34276 # splitting by setting IFS to empty value.)
34277 as_nl='
34278 '
34279 IFS=" ""        $as_nl"
34280
34281 # Find who we are.  Look in the path if we contain no directory separator.
34282 case $0 in
34283   *[\\/]* ) as_myself=$0 ;;
34284   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34285 for as_dir in $PATH
34286 do
34287   IFS=$as_save_IFS
34288   test -z "$as_dir" && as_dir=.
34289   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34290 done
34291 IFS=$as_save_IFS
34292
34293      ;;
34294 esac
34295 # We did not find ourselves, most probably we were run as `sh COMMAND'
34296 # in which case we are not to be found in the path.
34297 if test "x$as_myself" = x; then
34298   as_myself=$0
34299 fi
34300 if test ! -f "$as_myself"; then
34301   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34302   { (exit 1); exit 1; }
34303 fi
34304
34305 # Work around bugs in pre-3.0 UWIN ksh.
34306 for as_var in ENV MAIL MAILPATH
34307 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34308 done
34309 PS1='$ '
34310 PS2='> '
34311 PS4='+ '
34312
34313 # NLS nuisances.
34314 for as_var in \
34315   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34316   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34317   LC_TELEPHONE LC_TIME
34318 do
34319   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34320     eval $as_var=C; export $as_var
34321   else
34322     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34323   fi
34324 done
34325
34326 # Required to use basename.
34327 if expr a : '\(a\)' >/dev/null 2>&1 &&
34328    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34329   as_expr=expr
34330 else
34331   as_expr=false
34332 fi
34333
34334 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34335   as_basename=basename
34336 else
34337   as_basename=false
34338 fi
34339
34340
34341 # Name of the executable.
34342 as_me=`$as_basename -- "$0" ||
34343 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34344          X"$0" : 'X\(//\)$' \| \
34345          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34346 echo X/"$0" |
34347     sed '/^.*\/\([^/][^/]*\)\/*$/{
34348             s//\1/
34349             q
34350           }
34351           /^X\/\(\/\/\)$/{
34352             s//\1/
34353             q
34354           }
34355           /^X\/\(\/\).*/{
34356             s//\1/
34357             q
34358           }
34359           s/.*/./; q'`
34360
34361 # CDPATH.
34362 $as_unset CDPATH
34363
34364
34365
34366   as_lineno_1=$LINENO
34367   as_lineno_2=$LINENO
34368   test "x$as_lineno_1" != "x$as_lineno_2" &&
34369   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34370
34371   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34372   # uniformly replaced by the line number.  The first 'sed' inserts a
34373   # line-number line after each line using $LINENO; the second 'sed'
34374   # does the real work.  The second script uses 'N' to pair each
34375   # line-number line with the line containing $LINENO, and appends
34376   # trailing '-' during substitution so that $LINENO is not a special
34377   # case at line end.
34378   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34379   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34380   # E. McMahon (1931-1989) for sed's syntax.  :-)
34381   sed -n '
34382     p
34383     /[$]LINENO/=
34384   ' <$as_myself |
34385     sed '
34386       s/[$]LINENO.*/&-/
34387       t lineno
34388       b
34389       :lineno
34390       N
34391       :loop
34392       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34393       t loop
34394       s/-\n.*//
34395     ' >$as_me.lineno &&
34396   chmod +x "$as_me.lineno" ||
34397     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34398    { (exit 1); exit 1; }; }
34399
34400   # Don't try to exec as it changes $[0], causing all sort of problems
34401   # (the dirname of $[0] is not the place where we might find the
34402   # original and so on.  Autoconf is especially sensitive to this).
34403   . "./$as_me.lineno"
34404   # Exit status is that of the last command.
34405   exit
34406 }
34407
34408
34409 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34410   as_dirname=dirname
34411 else
34412   as_dirname=false
34413 fi
34414
34415 ECHO_C= ECHO_N= ECHO_T=
34416 case `echo -n x` in
34417 -n*)
34418   case `echo 'x\c'` in
34419   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34420   *)   ECHO_C='\c';;
34421   esac;;
34422 *)
34423   ECHO_N='-n';;
34424 esac
34425
34426 if expr a : '\(a\)' >/dev/null 2>&1 &&
34427    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34428   as_expr=expr
34429 else
34430   as_expr=false
34431 fi
34432
34433 rm -f conf$$ conf$$.exe conf$$.file
34434 if test -d conf$$.dir; then
34435   rm -f conf$$.dir/conf$$.file
34436 else
34437   rm -f conf$$.dir
34438   mkdir conf$$.dir
34439 fi
34440 echo >conf$$.file
34441 if ln -s conf$$.file conf$$ 2>/dev/null; then
34442   as_ln_s='ln -s'
34443   # ... but there are two gotchas:
34444   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34445   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34446   # In both cases, we have to default to `cp -p'.
34447   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34448     as_ln_s='cp -p'
34449 elif ln conf$$.file conf$$ 2>/dev/null; then
34450   as_ln_s=ln
34451 else
34452   as_ln_s='cp -p'
34453 fi
34454 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34455 rmdir conf$$.dir 2>/dev/null
34456
34457 if mkdir -p . 2>/dev/null; then
34458   as_mkdir_p=:
34459 else
34460   test -d ./-p && rmdir ./-p
34461   as_mkdir_p=false
34462 fi
34463
34464 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34465 # systems may use methods other than mode bits to determine executability.
34466 cat >conf$$.file <<_ASEOF
34467 #! /bin/sh
34468 exit 0
34469 _ASEOF
34470 chmod +x conf$$.file
34471 if test -x conf$$.file >/dev/null 2>&1; then
34472   as_executable_p="test -x"
34473 else
34474   as_executable_p=:
34475 fi
34476 rm -f conf$$.file
34477
34478 # Sed expression to map a string onto a valid CPP name.
34479 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34480
34481 # Sed expression to map a string onto a valid variable name.
34482 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34483
34484
34485 exec 6>&1
34486
34487 # Save the log message, to keep $[0] and so on meaningful, and to
34488 # report actual input values of CONFIG_FILES etc. instead of their
34489 # values after options handling.
34490 ac_log="
34491 This file was extended by $as_me, which was
34492 generated by GNU Autoconf 2.60.  Invocation command line was
34493
34494   CONFIG_FILES    = $CONFIG_FILES
34495   CONFIG_HEADERS  = $CONFIG_HEADERS
34496   CONFIG_LINKS    = $CONFIG_LINKS
34497   CONFIG_COMMANDS = $CONFIG_COMMANDS
34498   $ $0 $@
34499
34500 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34501 "
34502
34503 _ACEOF
34504
34505 cat >>$CONFIG_STATUS <<_ACEOF
34506 # Files that config.status was made for.
34507 config_files="$ac_config_files"
34508 config_headers="$ac_config_headers"
34509 config_commands="$ac_config_commands"
34510
34511 _ACEOF
34512
34513 cat >>$CONFIG_STATUS <<\_ACEOF
34514 ac_cs_usage="\
34515 \`$as_me' instantiates files from templates according to the
34516 current configuration.
34517
34518 Usage: $0 [OPTIONS] [FILE]...
34519
34520   -h, --help       print this help, then exit
34521   -V, --version    print version number, then exit
34522   -q, --quiet      do not print progress messages
34523   -d, --debug      don't remove temporary files
34524       --recheck    update $as_me by reconfiguring in the same conditions
34525   --file=FILE[:TEMPLATE]
34526                    instantiate the configuration file FILE
34527   --header=FILE[:TEMPLATE]
34528                    instantiate the configuration header FILE
34529
34530 Configuration files:
34531 $config_files
34532
34533 Configuration headers:
34534 $config_headers
34535
34536 Configuration commands:
34537 $config_commands
34538
34539 Report bugs to <bug-autoconf@gnu.org>."
34540
34541 _ACEOF
34542 cat >>$CONFIG_STATUS <<_ACEOF
34543 ac_cs_version="\\
34544 config.status
34545 configured by $0, generated by GNU Autoconf 2.60,
34546   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34547
34548 Copyright (C) 2006 Free Software Foundation, Inc.
34549 This config.status script is free software; the Free Software Foundation
34550 gives unlimited permission to copy, distribute and modify it."
34551
34552 ac_pwd='$ac_pwd'
34553 srcdir='$srcdir'
34554 INSTALL='$INSTALL'
34555 _ACEOF
34556
34557 cat >>$CONFIG_STATUS <<\_ACEOF
34558 # If no file are specified by the user, then we need to provide default
34559 # value.  By we need to know if files were specified by the user.
34560 ac_need_defaults=:
34561 while test $# != 0
34562 do
34563   case $1 in
34564   --*=*)
34565     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34566     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34567     ac_shift=:
34568     ;;
34569   *)
34570     ac_option=$1
34571     ac_optarg=$2
34572     ac_shift=shift
34573     ;;
34574   esac
34575
34576   case $ac_option in
34577   # Handling of the options.
34578   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34579     ac_cs_recheck=: ;;
34580   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34581     echo "$ac_cs_version"; exit ;;
34582   --debug | --debu | --deb | --de | --d | -d )
34583     debug=: ;;
34584   --file | --fil | --fi | --f )
34585     $ac_shift
34586     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34587     ac_need_defaults=false;;
34588   --header | --heade | --head | --hea )
34589     $ac_shift
34590     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34591     ac_need_defaults=false;;
34592   --he | --h)
34593     # Conflict between --help and --header
34594     { echo "$as_me: error: ambiguous option: $1
34595 Try \`$0 --help' for more information." >&2
34596    { (exit 1); exit 1; }; };;
34597   --help | --hel | -h )
34598     echo "$ac_cs_usage"; exit ;;
34599   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34600   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34601     ac_cs_silent=: ;;
34602
34603   # This is an error.
34604   -*) { echo "$as_me: error: unrecognized option: $1
34605 Try \`$0 --help' for more information." >&2
34606    { (exit 1); exit 1; }; } ;;
34607
34608   *) ac_config_targets="$ac_config_targets $1"
34609      ac_need_defaults=false ;;
34610
34611   esac
34612   shift
34613 done
34614
34615 ac_configure_extra_args=
34616
34617 if $ac_cs_silent; then
34618   exec 6>/dev/null
34619   ac_configure_extra_args="$ac_configure_extra_args --silent"
34620 fi
34621
34622 _ACEOF
34623 cat >>$CONFIG_STATUS <<_ACEOF
34624 if \$ac_cs_recheck; then
34625   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34626   CONFIG_SHELL=$SHELL
34627   export CONFIG_SHELL
34628   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34629 fi
34630
34631 _ACEOF
34632 cat >>$CONFIG_STATUS <<\_ACEOF
34633 exec 5>>config.log
34634 {
34635   echo
34636   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34637 ## Running $as_me. ##
34638 _ASBOX
34639   echo "$ac_log"
34640 } >&5
34641
34642 _ACEOF
34643 cat >>$CONFIG_STATUS <<_ACEOF
34644 #
34645 # INIT-COMMANDS
34646 #
34647 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34648
34649 _ACEOF
34650
34651 cat >>$CONFIG_STATUS <<\_ACEOF
34652
34653 # Handling of arguments.
34654 for ac_config_target in $ac_config_targets
34655 do
34656   case $ac_config_target in
34657     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
34658     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34659     "gnuradio-core/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/Makefile" ;;
34660     "gnuradio-core/gnuradio-core.pc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/gnuradio-core.pc" ;;
34661     "gnuradio-core/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/Doxyfile" ;;
34662     "gnuradio-core/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/Makefile" ;;
34663     "gnuradio-core/doc/other/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/other/Makefile" ;;
34664     "gnuradio-core/doc/xml/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/xml/Makefile" ;;
34665     "gnuradio-core/src/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/Makefile" ;;
34666     "gnuradio-core/src/gen_interpolator_taps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/gen_interpolator_taps/Makefile" ;;
34667     "gnuradio-core/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/Makefile" ;;
34668     "gnuradio-core/src/lib/filter/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/filter/Makefile" ;;
34669     "gnuradio-core/src/lib/g72x/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/g72x/Makefile" ;;
34670     "gnuradio-core/src/lib/general/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/Makefile" ;;
34671     "gnuradio-core/src/lib/general/gr_prefix.cc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/gr_prefix.cc" ;;
34672     "gnuradio-core/src/lib/io/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/io/Makefile" ;;
34673     "gnuradio-core/src/lib/missing/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/missing/Makefile" ;;
34674     "gnuradio-core/src/lib/omnithread/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/omnithread/Makefile" ;;
34675     "gnuradio-core/src/lib/reed-solomon/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/reed-solomon/Makefile" ;;
34676     "gnuradio-core/src/lib/runtime/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/runtime/Makefile" ;;
34677     "gnuradio-core/src/lib/swig/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/swig/Makefile" ;;
34678     "gnuradio-core/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/Makefile" ;;
34679     "gnuradio-core/src/python/bin/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/bin/Makefile" ;;
34680     "gnuradio-core/src/python/gnuradio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/Makefile" ;;
34681     "gnuradio-core/src/python/gnuradio/blks/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blks/Makefile" ;;
34682     "gnuradio-core/src/python/gnuradio/blksimpl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blksimpl/Makefile" ;;
34683     "gnuradio-core/src/python/gnuradio/gr/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/Makefile" ;;
34684     "gnuradio-core/src/python/gnuradio/gr/run_tests") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/run_tests" ;;
34685     "gnuradio-core/src/python/gnuradio/gru/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gru/Makefile" ;;
34686     "gnuradio-core/src/python/gnuradio/gruimpl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gruimpl/Makefile" ;;
34687     "gnuradio-core/src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/tests/Makefile" ;;
34688     "gnuradio-core/src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/utils/Makefile" ;;
34689     "run_tests_core") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_core" ;;
34690     "swig_deps") CONFIG_COMMANDS="$CONFIG_COMMANDS swig_deps" ;;
34691     "gnuradio-examples/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/Makefile" ;;
34692     "gnuradio-examples/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/Makefile" ;;
34693     "gnuradio-examples/python/apps/hf_explorer/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_explorer/Makefile" ;;
34694     "gnuradio-examples/python/apps/hf_radio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_radio/Makefile" ;;
34695     "gnuradio-examples/python/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/Makefile" ;;
34696     "gnuradio-examples/python/audio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/audio/Makefile" ;;
34697     "gnuradio-examples/python/channel-coding/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/channel-coding/Makefile" ;;
34698     "gnuradio-examples/python/channel-coding/fsm_files/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/channel-coding/fsm_files/Makefile" ;;
34699     "gnuradio-examples/python/digital/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital/Makefile" ;;
34700     "gnuradio-examples/python/digital_voice/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital_voice/Makefile" ;;
34701     "gnuradio-examples/python/multi-antenna/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi-antenna/Makefile" ;;
34702     "gnuradio-examples/python/multi_usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi_usrp/Makefile" ;;
34703     "gnuradio-examples/python/networking/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/networking/Makefile" ;;
34704     "gnuradio-examples/python/usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/usrp/Makefile" ;;
34705     "usrp/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/Makefile" ;;
34706     "usrp/usrp.pc") CONFIG_FILES="$CONFIG_FILES usrp/usrp.pc" ;;
34707     "usrp/usrp.iss") CONFIG_FILES="$CONFIG_FILES usrp/usrp.iss" ;;
34708     "usrp/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Doxyfile" ;;
34709     "usrp/doc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Makefile" ;;
34710     "usrp/doc/other/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/other/Makefile" ;;
34711     "usrp/host/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/Makefile" ;;
34712     "usrp/host/misc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/misc/Makefile" ;;
34713     "usrp/host/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/Makefile" ;;
34714     "usrp/host/lib/std_paths.h") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/std_paths.h" ;;
34715     "usrp/host/swig/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/swig/Makefile" ;;
34716     "usrp/host/apps/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/apps/Makefile" ;;
34717     "usrp/firmware/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/Makefile" ;;
34718     "usrp/firmware/include/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/include/Makefile" ;;
34719     "usrp/firmware/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/lib/Makefile" ;;
34720     "usrp/firmware/src/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/Makefile" ;;
34721     "usrp/firmware/src/common/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/common/Makefile" ;;
34722     "usrp/firmware/src/usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/usrp2/Makefile" ;;
34723     "usrp/fpga/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/Makefile" ;;
34724     "usrp/fpga/rbf/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/rbf/Makefile" ;;
34725     "gr-usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/Makefile" ;;
34726     "gr-usrp/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/Makefile" ;;
34727     "gr-usrp/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/run_tests" ;;
34728     "run_tests_usrp") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_usrp" ;;
34729     "gr-audio-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/Makefile" ;;
34730     "gr-audio-alsa/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/Makefile" ;;
34731     "gr-audio-alsa/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/run_tests" ;;
34732     "run_tests_alsa") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_alsa" ;;
34733     "gr-audio-jack/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/Makefile" ;;
34734     "gr-audio-jack/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/Makefile" ;;
34735     "gr-audio-jack/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/run_tests" ;;
34736     "run_tests_jack") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_jack" ;;
34737     "gr-audio-oss/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/Makefile" ;;
34738     "gr-audio-oss/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/Makefile" ;;
34739     "gr-audio-oss/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/run_tests" ;;
34740     "run_tests_oss") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_oss" ;;
34741     "gr-audio-osx/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/Makefile" ;;
34742     "gr-audio-osx/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/Makefile" ;;
34743     "gr-audio-osx/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/run_tests" ;;
34744     "run_tests_osx") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_osx" ;;
34745     "gr-audio-portaudio/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/Makefile" ;;
34746     "gr-audio-portaudio/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/Makefile" ;;
34747     "gr-audio-portaudio/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/run_tests" ;;
34748     "run_tests_portaudio") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_portaudio" ;;
34749     "gr-audio-windows/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/Makefile" ;;
34750     "gr-audio-windows/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/Makefile" ;;
34751     "gr-audio-windows/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/run_tests" ;;
34752     "run_tests_audio_windows") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_audio_windows" ;;
34753     "gr-gsm-fr-vocoder/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/Makefile" ;;
34754     "gr-gsm-fr-vocoder/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/Makefile" ;;
34755     "gr-gsm-fr-vocoder/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/Makefile" ;;
34756     "gr-gsm-fr-vocoder/src/lib/gsm/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/gsm/Makefile" ;;
34757     "gr-gsm-fr-vocoder/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/Makefile" ;;
34758     "gr-gsm-fr-vocoder/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/run_tests" ;;
34759     "run_tests_gsm") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gsm" ;;
34760     "gr-radio-astronomy/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/Makefile" ;;
34761     "gr-radio-astronomy/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/Makefile" ;;
34762     "gr-radio-astronomy/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/lib/Makefile" ;;
34763     "gr-radio-astronomy/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/Makefile" ;;
34764     "gr-radio-astronomy/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/run_tests" ;;
34765     "run_tests_astronomy") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_astronomy" ;;
34766     "gr-trellis/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/Makefile" ;;
34767     "gr-trellis/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/doc/Makefile" ;;
34768     "gr-trellis/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/Makefile" ;;
34769     "gr-trellis/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/lib/Makefile" ;;
34770     "gr-trellis/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/Makefile" ;;
34771     "gr-trellis/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/run_tests" ;;
34772     "run_tests_gr_trellis") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gr_trellis" ;;
34773     "gr-video-sdl/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/Makefile" ;;
34774     "gr-video-sdl/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/Makefile" ;;
34775     "gr-video-sdl/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/run_tests" ;;
34776     "run_tests_sdl") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_sdl" ;;
34777     "gr-wxgui/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/Makefile" ;;
34778     "gr-wxgui/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/Makefile" ;;
34779     "gr-wxgui/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/python/Makefile" ;;
34780     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34781     "run_tests.sh") CONFIG_FILES="$CONFIG_FILES run_tests.sh" ;;
34782     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
34783     "run_tests_build") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_build" ;;
34784
34785   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34786 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34787    { (exit 1); exit 1; }; };;
34788   esac
34789 done
34790
34791
34792 # If the user did not use the arguments to specify the items to instantiate,
34793 # then the envvar interface is used.  Set only those that are not.
34794 # We use the long form for the default assignment because of an extremely
34795 # bizarre bug on SunOS 4.1.3.
34796 if $ac_need_defaults; then
34797   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34798   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34799   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34800 fi
34801
34802 # Have a temporary directory for convenience.  Make it in the build tree
34803 # simply because there is no reason against having it here, and in addition,
34804 # creating and moving files from /tmp can sometimes cause problems.
34805 # Hook for its removal unless debugging.
34806 # Note that there is a small window in which the directory will not be cleaned:
34807 # after its creation but before its name has been assigned to `$tmp'.
34808 $debug ||
34809 {
34810   tmp=
34811   trap 'exit_status=$?
34812   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34813 ' 0
34814   trap '{ (exit 1); exit 1; }' 1 2 13 15
34815 }
34816 # Create a (secure) tmp directory for tmp files.
34817
34818 {
34819   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34820   test -n "$tmp" && test -d "$tmp"
34821 }  ||
34822 {
34823   tmp=./conf$$-$RANDOM
34824   (umask 077 && mkdir "$tmp")
34825 } ||
34826 {
34827    echo "$me: cannot create a temporary directory in ." >&2
34828    { (exit 1); exit 1; }
34829 }
34830
34831 #
34832 # Set up the sed scripts for CONFIG_FILES section.
34833 #
34834
34835 # No need to generate the scripts if there are no CONFIG_FILES.
34836 # This happens for instance when ./config.status config.h
34837 if test -n "$CONFIG_FILES"; then
34838
34839 _ACEOF
34840
34841
34842
34843 ac_delim='%!_!# '
34844 for ac_last_try in false false false false false :; do
34845   cat >conf$$subs.sed <<_ACEOF
34846 SHELL!$SHELL$ac_delim
34847 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34848 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34849 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34850 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34851 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34852 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34853 exec_prefix!$exec_prefix$ac_delim
34854 prefix!$prefix$ac_delim
34855 program_transform_name!$program_transform_name$ac_delim
34856 bindir!$bindir$ac_delim
34857 sbindir!$sbindir$ac_delim
34858 libexecdir!$libexecdir$ac_delim
34859 datarootdir!$datarootdir$ac_delim
34860 datadir!$datadir$ac_delim
34861 sysconfdir!$sysconfdir$ac_delim
34862 sharedstatedir!$sharedstatedir$ac_delim
34863 localstatedir!$localstatedir$ac_delim
34864 includedir!$includedir$ac_delim
34865 oldincludedir!$oldincludedir$ac_delim
34866 docdir!$docdir$ac_delim
34867 infodir!$infodir$ac_delim
34868 htmldir!$htmldir$ac_delim
34869 dvidir!$dvidir$ac_delim
34870 pdfdir!$pdfdir$ac_delim
34871 psdir!$psdir$ac_delim
34872 libdir!$libdir$ac_delim
34873 localedir!$localedir$ac_delim
34874 mandir!$mandir$ac_delim
34875 DEFS!$DEFS$ac_delim
34876 ECHO_C!$ECHO_C$ac_delim
34877 ECHO_N!$ECHO_N$ac_delim
34878 ECHO_T!$ECHO_T$ac_delim
34879 LIBS!$LIBS$ac_delim
34880 build_alias!$build_alias$ac_delim
34881 host_alias!$host_alias$ac_delim
34882 target_alias!$target_alias$ac_delim
34883 build!$build$ac_delim
34884 build_cpu!$build_cpu$ac_delim
34885 build_vendor!$build_vendor$ac_delim
34886 build_os!$build_os$ac_delim
34887 host!$host$ac_delim
34888 host_cpu!$host_cpu$ac_delim
34889 host_vendor!$host_vendor$ac_delim
34890 host_os!$host_os$ac_delim
34891 target!$target$ac_delim
34892 target_cpu!$target_cpu$ac_delim
34893 target_vendor!$target_vendor$ac_delim
34894 target_os!$target_os$ac_delim
34895 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34896 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34897 INSTALL_DATA!$INSTALL_DATA$ac_delim
34898 CYGPATH_W!$CYGPATH_W$ac_delim
34899 PACKAGE!$PACKAGE$ac_delim
34900 VERSION!$VERSION$ac_delim
34901 ACLOCAL!$ACLOCAL$ac_delim
34902 AUTOCONF!$AUTOCONF$ac_delim
34903 AUTOMAKE!$AUTOMAKE$ac_delim
34904 AUTOHEADER!$AUTOHEADER$ac_delim
34905 MAKEINFO!$MAKEINFO$ac_delim
34906 install_sh!$install_sh$ac_delim
34907 STRIP!$STRIP$ac_delim
34908 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
34909 mkdir_p!$mkdir_p$ac_delim
34910 AWK!$AWK$ac_delim
34911 SET_MAKE!$SET_MAKE$ac_delim
34912 am__leading_dot!$am__leading_dot$ac_delim
34913 AMTAR!$AMTAR$ac_delim
34914 am__tar!$am__tar$ac_delim
34915 am__untar!$am__untar$ac_delim
34916 CC!$CC$ac_delim
34917 CFLAGS!$CFLAGS$ac_delim
34918 LDFLAGS!$LDFLAGS$ac_delim
34919 CPPFLAGS!$CPPFLAGS$ac_delim
34920 ac_ct_CC!$ac_ct_CC$ac_delim
34921 EXEEXT!$EXEEXT$ac_delim
34922 OBJEXT!$OBJEXT$ac_delim
34923 DEPDIR!$DEPDIR$ac_delim
34924 am__include!$am__include$ac_delim
34925 am__quote!$am__quote$ac_delim
34926 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
34927 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
34928 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
34929 CCDEPMODE!$CCDEPMODE$ac_delim
34930 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
34931 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
34932 CPP!$CPP$ac_delim
34933 GREP!$GREP$ac_delim
34934 EGREP!$EGREP$ac_delim
34935 CXX!$CXX$ac_delim
34936 CXXFLAGS!$CXXFLAGS$ac_delim
34937 ac_ct_CXX!$ac_ct_CXX$ac_delim
34938 CXXDEPMODE!$CXXDEPMODE$ac_delim
34939 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
34940 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
34941 CXXCPP!$CXXCPP$ac_delim
34942 CCAS!$CCAS$ac_delim
34943 _ACEOF
34944
34945   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34946     break
34947   elif $ac_last_try; then
34948     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34949 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34950    { (exit 1); exit 1; }; }
34951   else
34952     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34953   fi
34954 done
34955
34956 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34957 if test -n "$ac_eof"; then
34958   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34959   ac_eof=`expr $ac_eof + 1`
34960 fi
34961
34962 cat >>$CONFIG_STATUS <<_ACEOF
34963 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34964 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34965 _ACEOF
34966 sed '
34967 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34968 s/^/s,@/; s/!/@,|#_!!_#|/
34969 :n
34970 t n
34971 s/'"$ac_delim"'$/,g/; t
34972 s/$/\\/; p
34973 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34974 ' >>$CONFIG_STATUS <conf$$subs.sed
34975 rm -f conf$$subs.sed
34976 cat >>$CONFIG_STATUS <<_ACEOF
34977 CEOF$ac_eof
34978 _ACEOF
34979
34980
34981 ac_delim='%!_!# '
34982 for ac_last_try in false false false false false :; do
34983   cat >conf$$subs.sed <<_ACEOF
34984 CCASFLAGS!$CCASFLAGS$ac_delim
34985 LN_S!$LN_S$ac_delim
34986 RM_PROG!$RM_PROG$ac_delim
34987 ECHO!$ECHO$ac_delim
34988 AR!$AR$ac_delim
34989 RANLIB!$RANLIB$ac_delim
34990 DLLTOOL!$DLLTOOL$ac_delim
34991 AS!$AS$ac_delim
34992 OBJDUMP!$OBJDUMP$ac_delim
34993 F77!$F77$ac_delim
34994 FFLAGS!$FFLAGS$ac_delim
34995 ac_ct_F77!$ac_ct_F77$ac_delim
34996 LIBTOOL!$LIBTOOL$ac_delim
34997 ENABLE_FORTRAN_TRUE!$ENABLE_FORTRAN_TRUE$ac_delim
34998 ENABLE_FORTRAN_FALSE!$ENABLE_FORTRAN_FALSE$ac_delim
34999 FLIBS!$FLIBS$ac_delim
35000 NO_UNDEFINED!$NO_UNDEFINED$ac_delim
35001 SWIG!$SWIG$ac_delim
35002 PYTHON!$PYTHON$ac_delim
35003 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
35004 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
35005 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
35006 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
35007 pythondir!$pythondir$ac_delim
35008 pkgpythondir!$pkgpythondir$ac_delim
35009 pyexecdir!$pyexecdir$ac_delim
35010 pkgpyexecdir!$pkgpyexecdir$ac_delim
35011 PYTHON_CPPFLAGS!$PYTHON_CPPFLAGS$ac_delim
35012 PYTHON_LDFLAGS!$PYTHON_LDFLAGS$ac_delim
35013 SWIG_PYTHON_LIB!$SWIG_PYTHON_LIB$ac_delim
35014 SWIG_PYTHON_OPT!$SWIG_PYTHON_OPT$ac_delim
35015 SWIG_PYTHON_CPPFLAGS!$SWIG_PYTHON_CPPFLAGS$ac_delim
35016 XMLTO!$XMLTO$ac_delim
35017 HAS_XMLTO_TRUE!$HAS_XMLTO_TRUE$ac_delim
35018 HAS_XMLTO_FALSE!$HAS_XMLTO_FALSE$ac_delim
35019 PTHREAD_CC!$PTHREAD_CC$ac_delim
35020 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
35021 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
35022 OMNITHREAD_POSIX_TRUE!$OMNITHREAD_POSIX_TRUE$ac_delim
35023 OMNITHREAD_POSIX_FALSE!$OMNITHREAD_POSIX_FALSE$ac_delim
35024 OMNITHREAD_NT_TRUE!$OMNITHREAD_NT_TRUE$ac_delim
35025 OMNITHREAD_NT_FALSE!$OMNITHREAD_NT_FALSE$ac_delim
35026 CXX_FOR_BUILD!$CXX_FOR_BUILD$ac_delim
35027 IPC_LIBS!$IPC_LIBS$ac_delim
35028 ALLOCA!$ALLOCA$ac_delim
35029 SHM_OPEN_LIBS!$SHM_OPEN_LIBS$ac_delim
35030 LIBGNURADIO_CORE_EXTRA_LDFLAGS!$LIBGNURADIO_CORE_EXTRA_LDFLAGS$ac_delim
35031 HAVE_CREATEFILEMAPPING_TRUE!$HAVE_CREATEFILEMAPPING_TRUE$ac_delim
35032 HAVE_CREATEFILEMAPPING_FALSE!$HAVE_CREATEFILEMAPPING_FALSE$ac_delim
35033 LIBOBJS!$LIBOBJS$ac_delim
35034 HAVE_DOT!$HAVE_DOT$ac_delim
35035 PKG_CONFIG!$PKG_CONFIG$ac_delim
35036 FFTW3F_CFLAGS!$FFTW3F_CFLAGS$ac_delim
35037 FFTW3F_LIBS!$FFTW3F_LIBS$ac_delim
35038 FFTW3F_INCLUDEDIR!$FFTW3F_INCLUDEDIR$ac_delim
35039 DOXYGEN!$DOXYGEN$ac_delim
35040 DOT!$DOT$ac_delim
35041 DOC_TRUE!$DOC_TRUE$ac_delim
35042 DOC_FALSE!$DOC_FALSE$ac_delim
35043 enable_dot!$enable_dot$ac_delim
35044 enable_html_docs!$enable_html_docs$ac_delim
35045 enable_latex_docs!$enable_latex_docs$ac_delim
35046 generate_docs!$generate_docs$ac_delim
35047 MD_CPU!$MD_CPU$ac_delim
35048 MD_SUBCPU!$MD_SUBCPU$ac_delim
35049 MD_CPU_x86_TRUE!$MD_CPU_x86_TRUE$ac_delim
35050 MD_CPU_x86_FALSE!$MD_CPU_x86_FALSE$ac_delim
35051 MD_SUBCPU_x86_64_TRUE!$MD_SUBCPU_x86_64_TRUE$ac_delim
35052 MD_SUBCPU_x86_64_FALSE!$MD_SUBCPU_x86_64_FALSE$ac_delim
35053 MD_CPU_generic_TRUE!$MD_CPU_generic_TRUE$ac_delim
35054 MD_CPU_generic_FALSE!$MD_CPU_generic_FALSE$ac_delim
35055 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
35056 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
35057 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
35058 CPPUNIT_INCLUDES!$CPPUNIT_INCLUDES$ac_delim
35059 BOOST_CFLAGS!$BOOST_CFLAGS$ac_delim
35060 DEFINES!$DEFINES$ac_delim
35061 USB_LIBS!$USB_LIBS$ac_delim
35062 FUSB_TECH!$FUSB_TECH$ac_delim
35063 FUSB_TECH_darwin_TRUE!$FUSB_TECH_darwin_TRUE$ac_delim
35064 FUSB_TECH_darwin_FALSE!$FUSB_TECH_darwin_FALSE$ac_delim
35065 FUSB_TECH_win32_TRUE!$FUSB_TECH_win32_TRUE$ac_delim
35066 FUSB_TECH_win32_FALSE!$FUSB_TECH_win32_FALSE$ac_delim
35067 FUSB_TECH_generic_TRUE!$FUSB_TECH_generic_TRUE$ac_delim
35068 FUSB_TECH_generic_FALSE!$FUSB_TECH_generic_FALSE$ac_delim
35069 FUSB_TECH_linux_TRUE!$FUSB_TECH_linux_TRUE$ac_delim
35070 FUSB_TECH_linux_FALSE!$FUSB_TECH_linux_FALSE$ac_delim
35071 FUSB_TECH_ra_wb_TRUE!$FUSB_TECH_ra_wb_TRUE$ac_delim
35072 FUSB_TECH_ra_wb_FALSE!$FUSB_TECH_ra_wb_FALSE$ac_delim
35073 XCC!$XCC$ac_delim
35074 XAS!$XAS$ac_delim
35075 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
35076 ALSA_LIBS!$ALSA_LIBS$ac_delim
35077 ALSA_INCLUDEDIR!$ALSA_INCLUDEDIR$ac_delim
35078 JACK_CFLAGS!$JACK_CFLAGS$ac_delim
35079 JACK_LIBS!$JACK_LIBS$ac_delim
35080 JACK_INCLUDEDIR!$JACK_INCLUDEDIR$ac_delim
35081 _ACEOF
35082
35083   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35084     break
35085   elif $ac_last_try; then
35086     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35087 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35088    { (exit 1); exit 1; }; }
35089   else
35090     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35091   fi
35092 done
35093
35094 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35095 if test -n "$ac_eof"; then
35096   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35097   ac_eof=`expr $ac_eof + 1`
35098 fi
35099
35100 cat >>$CONFIG_STATUS <<_ACEOF
35101 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35103 _ACEOF
35104 sed '
35105 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35106 s/^/s,@/; s/!/@,|#_!!_#|/
35107 :n
35108 t n
35109 s/'"$ac_delim"'$/,g/; t
35110 s/$/\\/; p
35111 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35112 ' >>$CONFIG_STATUS <conf$$subs.sed
35113 rm -f conf$$subs.sed
35114 cat >>$CONFIG_STATUS <<_ACEOF
35115 CEOF$ac_eof
35116 _ACEOF
35117
35118
35119 ac_delim='%!_!# '
35120 for ac_last_try in false false false false false :; do
35121   cat >conf$$subs.sed <<_ACEOF
35122 OSS_LIBS!$OSS_LIBS$ac_delim
35123 PORTAUDIO_CFLAGS!$PORTAUDIO_CFLAGS$ac_delim
35124 PORTAUDIO_LIBS!$PORTAUDIO_LIBS$ac_delim
35125 PORTAUDIO_INCLUDEDIR!$PORTAUDIO_INCLUDEDIR$ac_delim
35126 WINAUDIO_LIBS!$WINAUDIO_LIBS$ac_delim
35127 SDL_CONFIG!$SDL_CONFIG$ac_delim
35128 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
35129 SDL_LIBS!$SDL_LIBS$ac_delim
35130 build_dirs!$build_dirs$ac_delim
35131 skipped_dirs!$skipped_dirs$ac_delim
35132 LTLIBOBJS!$LTLIBOBJS$ac_delim
35133 _ACEOF
35134
35135   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
35136     break
35137   elif $ac_last_try; then
35138     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35139 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35140    { (exit 1); exit 1; }; }
35141   else
35142     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35143   fi
35144 done
35145
35146 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35147 if test -n "$ac_eof"; then
35148   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35149   ac_eof=`expr $ac_eof + 1`
35150 fi
35151
35152 cat >>$CONFIG_STATUS <<_ACEOF
35153 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35154 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35155 _ACEOF
35156 sed '
35157 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35158 s/^/s,@/; s/!/@,|#_!!_#|/
35159 :n
35160 t n
35161 s/'"$ac_delim"'$/,g/; t
35162 s/$/\\/; p
35163 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35164 ' >>$CONFIG_STATUS <conf$$subs.sed
35165 rm -f conf$$subs.sed
35166 cat >>$CONFIG_STATUS <<_ACEOF
35167 :end
35168 s/|#_!!_#|//g
35169 CEOF$ac_eof
35170 _ACEOF
35171
35172
35173 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35174 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35175 # trailing colons and then remove the whole line if VPATH becomes empty
35176 # (actually we leave an empty line to preserve line numbers).
35177 if test "x$srcdir" = x.; then
35178   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35179 s/:*\$(srcdir):*/:/
35180 s/:*\${srcdir}:*/:/
35181 s/:*@srcdir@:*/:/
35182 s/^\([^=]*=[     ]*\):*/\1/
35183 s/:*$//
35184 s/^[^=]*=[       ]*$//
35185 }'
35186 fi
35187
35188 cat >>$CONFIG_STATUS <<\_ACEOF
35189 fi # test -n "$CONFIG_FILES"
35190
35191
35192 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35193 do
35194   case $ac_tag in
35195   :[FHLC]) ac_mode=$ac_tag; continue;;
35196   esac
35197   case $ac_mode$ac_tag in
35198   :[FHL]*:*);;
35199   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35200 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35201    { (exit 1); exit 1; }; };;
35202   :[FH]-) ac_tag=-:-;;
35203   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35204   esac
35205   ac_save_IFS=$IFS
35206   IFS=:
35207   set x $ac_tag
35208   IFS=$ac_save_IFS
35209   shift
35210   ac_file=$1
35211   shift
35212
35213   case $ac_mode in
35214   :L) ac_source=$1;;
35215   :[FH])
35216     ac_file_inputs=
35217     for ac_f
35218     do
35219       case $ac_f in
35220       -) ac_f="$tmp/stdin";;
35221       *) # Look for the file first in the build tree, then in the source tree
35222          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35223          # because $ac_f cannot contain `:'.
35224          test -f "$ac_f" ||
35225            case $ac_f in
35226            [\\/$]*) false;;
35227            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35228            esac ||
35229            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35230 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35231    { (exit 1); exit 1; }; };;
35232       esac
35233       ac_file_inputs="$ac_file_inputs $ac_f"
35234     done
35235
35236     # Let's still pretend it is `configure' which instantiates (i.e., don't
35237     # use $as_me), people would be surprised to read:
35238     #    /* config.h.  Generated by config.status.  */
35239     configure_input="Generated from "`IFS=:
35240           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35241     if test x"$ac_file" != x-; then
35242       configure_input="$ac_file.  $configure_input"
35243       { echo "$as_me:$LINENO: creating $ac_file" >&5
35244 echo "$as_me: creating $ac_file" >&6;}
35245     fi
35246
35247     case $ac_tag in
35248     *:-:* | *:-) cat >"$tmp/stdin";;
35249     esac
35250     ;;
35251   esac
35252
35253   ac_dir=`$as_dirname -- "$ac_file" ||
35254 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35255          X"$ac_file" : 'X\(//\)[^/]' \| \
35256          X"$ac_file" : 'X\(//\)$' \| \
35257          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35258 echo X"$ac_file" |
35259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35260             s//\1/
35261             q
35262           }
35263           /^X\(\/\/\)[^/].*/{
35264             s//\1/
35265             q
35266           }
35267           /^X\(\/\/\)$/{
35268             s//\1/
35269             q
35270           }
35271           /^X\(\/\).*/{
35272             s//\1/
35273             q
35274           }
35275           s/.*/./; q'`
35276   { as_dir="$ac_dir"
35277   case $as_dir in #(
35278   -*) as_dir=./$as_dir;;
35279   esac
35280   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35281     as_dirs=
35282     while :; do
35283       case $as_dir in #(
35284       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35285       *) as_qdir=$as_dir;;
35286       esac
35287       as_dirs="'$as_qdir' $as_dirs"
35288       as_dir=`$as_dirname -- "$as_dir" ||
35289 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35290          X"$as_dir" : 'X\(//\)[^/]' \| \
35291          X"$as_dir" : 'X\(//\)$' \| \
35292          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35293 echo X"$as_dir" |
35294     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35295             s//\1/
35296             q
35297           }
35298           /^X\(\/\/\)[^/].*/{
35299             s//\1/
35300             q
35301           }
35302           /^X\(\/\/\)$/{
35303             s//\1/
35304             q
35305           }
35306           /^X\(\/\).*/{
35307             s//\1/
35308             q
35309           }
35310           s/.*/./; q'`
35311       test -d "$as_dir" && break
35312     done
35313     test -z "$as_dirs" || eval "mkdir $as_dirs"
35314   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35315 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35316    { (exit 1); exit 1; }; }; }
35317   ac_builddir=.
35318
35319 case "$ac_dir" in
35320 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35321 *)
35322   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35323   # A ".." for each directory in $ac_dir_suffix.
35324   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35325   case $ac_top_builddir_sub in
35326   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35327   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35328   esac ;;
35329 esac
35330 ac_abs_top_builddir=$ac_pwd
35331 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35332 # for backward compatibility:
35333 ac_top_builddir=$ac_top_build_prefix
35334
35335 case $srcdir in
35336   .)  # We are building in place.
35337     ac_srcdir=.
35338     ac_top_srcdir=$ac_top_builddir_sub
35339     ac_abs_top_srcdir=$ac_pwd ;;
35340   [\\/]* | ?:[\\/]* )  # Absolute name.
35341     ac_srcdir=$srcdir$ac_dir_suffix;
35342     ac_top_srcdir=$srcdir
35343     ac_abs_top_srcdir=$srcdir ;;
35344   *) # Relative name.
35345     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35346     ac_top_srcdir=$ac_top_build_prefix$srcdir
35347     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35348 esac
35349 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35350
35351
35352   case $ac_mode in
35353   :F)
35354   #
35355   # CONFIG_FILE
35356   #
35357
35358   case $INSTALL in
35359   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35360   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35361   esac
35362 _ACEOF
35363
35364 cat >>$CONFIG_STATUS <<\_ACEOF
35365 # If the template does not know about datarootdir, expand it.
35366 # FIXME: This hack should be removed a few years after 2.60.
35367 ac_datarootdir_hack=; ac_datarootdir_seen=
35368
35369 case `sed -n '/datarootdir/ {
35370   p
35371   q
35372 }
35373 /@datadir@/p
35374 /@docdir@/p
35375 /@infodir@/p
35376 /@localedir@/p
35377 /@mandir@/p
35378 ' $ac_file_inputs` in
35379 *datarootdir*) ac_datarootdir_seen=yes;;
35380 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35381   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35382 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35383 _ACEOF
35384 cat >>$CONFIG_STATUS <<_ACEOF
35385   ac_datarootdir_hack='
35386   s&@datadir@&$datadir&g
35387   s&@docdir@&$docdir&g
35388   s&@infodir@&$infodir&g
35389   s&@localedir@&$localedir&g
35390   s&@mandir@&$mandir&g
35391     s&\\\${datarootdir}&$datarootdir&g' ;;
35392 esac
35393 _ACEOF
35394
35395 # Neutralize VPATH when `$srcdir' = `.'.
35396 # Shell code in configure.ac might set extrasub.
35397 # FIXME: do we really want to maintain this feature?
35398 cat >>$CONFIG_STATUS <<_ACEOF
35399   sed "$ac_vpsub
35400 $extrasub
35401 _ACEOF
35402 cat >>$CONFIG_STATUS <<\_ACEOF
35403 :t
35404 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35405 s&@configure_input@&$configure_input&;t t
35406 s&@top_builddir@&$ac_top_builddir_sub&;t t
35407 s&@srcdir@&$ac_srcdir&;t t
35408 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35409 s&@top_srcdir@&$ac_top_srcdir&;t t
35410 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35411 s&@builddir@&$ac_builddir&;t t
35412 s&@abs_builddir@&$ac_abs_builddir&;t t
35413 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35414 s&@INSTALL@&$ac_INSTALL&;t t
35415 $ac_datarootdir_hack
35416 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35417
35418 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35419   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35420   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35421   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35422 which seems to be undefined.  Please make sure it is defined." >&5
35423 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35424 which seems to be undefined.  Please make sure it is defined." >&2;}
35425
35426   rm -f "$tmp/stdin"
35427   case $ac_file in
35428   -) cat "$tmp/out"; rm -f "$tmp/out";;
35429   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35430   esac
35431  ;;
35432   :H)
35433   #
35434   # CONFIG_HEADER
35435   #
35436 _ACEOF
35437
35438 # Transform confdefs.h into a sed script `conftest.defines', that
35439 # substitutes the proper values into config.h.in to produce config.h.
35440 rm -f conftest.defines conftest.tail
35441 # First, append a space to every undef/define line, to ease matching.
35442 echo 's/$/ /' >conftest.defines
35443 # Then, protect against being on the right side of a sed subst, or in
35444 # an unquoted here document, in config.status.  If some macros were
35445 # called several times there might be several #defines for the same
35446 # symbol, which is useless.  But do not sort them, since the last
35447 # AC_DEFINE must be honored.
35448 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35449 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35450 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35451 # PARAMS is the parameter list in the macro definition--in most cases, it's
35452 # just an empty string.
35453 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35454 ac_dB='\\)[      (].*,\\1define\\2'
35455 ac_dC=' '
35456 ac_dD=' ,'
35457
35458 uniq confdefs.h |
35459   sed -n '
35460         t rset
35461         :rset
35462         s/^[     ]*#[    ]*define[       ][      ]*//
35463         t ok
35464         d
35465         :ok
35466         s/[\\&,]/\\&/g
35467         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35468         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35469   ' >>conftest.defines
35470
35471 # Remove the space that was appended to ease matching.
35472 # Then replace #undef with comments.  This is necessary, for
35473 # example, in the case of _POSIX_SOURCE, which is predefined and required
35474 # on some systems where configure will not decide to define it.
35475 # (The regexp can be short, since the line contains either #define or #undef.)
35476 echo 's/ $//
35477 s,^[     #]*u.*,/* & */,' >>conftest.defines
35478
35479 # Break up conftest.defines:
35480 ac_max_sed_lines=50
35481
35482 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35483 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35484 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35485 # et cetera.
35486 ac_in='$ac_file_inputs'
35487 ac_out='"$tmp/out1"'
35488 ac_nxt='"$tmp/out2"'
35489
35490 while :
35491 do
35492   # Write a here document:
35493     cat >>$CONFIG_STATUS <<_ACEOF
35494     # First, check the format of the line:
35495     cat >"\$tmp/defines.sed" <<\\CEOF
35496 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35497 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35498 b
35499 :def
35500 _ACEOF
35501   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35502   echo 'CEOF
35503     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35504   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35505   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35506   grep . conftest.tail >/dev/null || break
35507   rm -f conftest.defines
35508   mv conftest.tail conftest.defines
35509 done
35510 rm -f conftest.defines conftest.tail
35511
35512 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35513 cat >>$CONFIG_STATUS <<\_ACEOF
35514   if test x"$ac_file" != x-; then
35515     echo "/* $configure_input  */" >"$tmp/config.h"
35516     cat "$ac_result" >>"$tmp/config.h"
35517     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35518       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35519 echo "$as_me: $ac_file is unchanged" >&6;}
35520     else
35521       rm -f $ac_file
35522       mv "$tmp/config.h" $ac_file
35523     fi
35524   else
35525     echo "/* $configure_input  */"
35526     cat "$ac_result"
35527   fi
35528   rm -f "$tmp/out12"
35529 # Compute $ac_file's index in $config_headers.
35530 _am_stamp_count=1
35531 for _am_header in $config_headers :; do
35532   case $_am_header in
35533     $ac_file | $ac_file:* )
35534       break ;;
35535     * )
35536       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35537   esac
35538 done
35539 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
35540 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35541          X$ac_file : 'X\(//\)[^/]' \| \
35542          X$ac_file : 'X\(//\)$' \| \
35543          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
35544 echo X$ac_file |
35545     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35546             s//\1/
35547             q
35548           }
35549           /^X\(\/\/\)[^/].*/{
35550             s//\1/
35551             q
35552           }
35553           /^X\(\/\/\)$/{
35554             s//\1/
35555             q
35556           }
35557           /^X\(\/\).*/{
35558             s//\1/
35559             q
35560           }
35561           s/.*/./; q'`/stamp-h$_am_stamp_count
35562  ;;
35563
35564   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35565 echo "$as_me: executing $ac_file commands" >&6;}
35566  ;;
35567   esac
35568
35569
35570   case $ac_file$ac_mode in
35571     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
35572   # Strip MF so we end up with the name of the file.
35573   mf=`echo "$mf" | sed -e 's/:.*$//'`
35574   # Check whether this is an Automake generated Makefile or not.
35575   # We used to match only the files named `Makefile.in', but
35576   # some people rename them; so instead we look at the file content.
35577   # Grep'ing the first line is not enough: some people post-process
35578   # each Makefile.in and add a new line on top of each file to say so.
35579   # So let's grep whole file.
35580   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
35581     dirpart=`$as_dirname -- "$mf" ||
35582 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35583          X"$mf" : 'X\(//\)[^/]' \| \
35584          X"$mf" : 'X\(//\)$' \| \
35585          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35586 echo X"$mf" |
35587     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35588             s//\1/
35589             q
35590           }
35591           /^X\(\/\/\)[^/].*/{
35592             s//\1/
35593             q
35594           }
35595           /^X\(\/\/\)$/{
35596             s//\1/
35597             q
35598           }
35599           /^X\(\/\).*/{
35600             s//\1/
35601             q
35602           }
35603           s/.*/./; q'`
35604   else
35605     continue
35606   fi
35607   # Extract the definition of DEPDIR, am__include, and am__quote
35608   # from the Makefile without running `make'.
35609   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35610   test -z "$DEPDIR" && continue
35611   am__include=`sed -n 's/^am__include = //p' < "$mf"`
35612   test -z "am__include" && continue
35613   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35614   # When using ansi2knr, U may be empty or an underscore; expand it
35615   U=`sed -n 's/^U = //p' < "$mf"`
35616   # Find all dependency output files, they are included files with
35617   # $(DEPDIR) in their names.  We invoke sed twice because it is the
35618   # simplest approach to changing $(DEPDIR) to its actual value in the
35619   # expansion.
35620   for file in `sed -n "
35621     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35622        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35623     # Make sure the directory exists.
35624     test -f "$dirpart/$file" && continue
35625     fdir=`$as_dirname -- "$file" ||
35626 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35627          X"$file" : 'X\(//\)[^/]' \| \
35628          X"$file" : 'X\(//\)$' \| \
35629          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35630 echo X"$file" |
35631     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35632             s//\1/
35633             q
35634           }
35635           /^X\(\/\/\)[^/].*/{
35636             s//\1/
35637             q
35638           }
35639           /^X\(\/\/\)$/{
35640             s//\1/
35641             q
35642           }
35643           /^X\(\/\).*/{
35644             s//\1/
35645             q
35646           }
35647           s/.*/./; q'`
35648     { as_dir=$dirpart/$fdir
35649   case $as_dir in #(
35650   -*) as_dir=./$as_dir;;
35651   esac
35652   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35653     as_dirs=
35654     while :; do
35655       case $as_dir in #(
35656       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35657       *) as_qdir=$as_dir;;
35658       esac
35659       as_dirs="'$as_qdir' $as_dirs"
35660       as_dir=`$as_dirname -- "$as_dir" ||
35661 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35662          X"$as_dir" : 'X\(//\)[^/]' \| \
35663          X"$as_dir" : 'X\(//\)$' \| \
35664          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35665 echo X"$as_dir" |
35666     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35667             s//\1/
35668             q
35669           }
35670           /^X\(\/\/\)[^/].*/{
35671             s//\1/
35672             q
35673           }
35674           /^X\(\/\/\)$/{
35675             s//\1/
35676             q
35677           }
35678           /^X\(\/\).*/{
35679             s//\1/
35680             q
35681           }
35682           s/.*/./; q'`
35683       test -d "$as_dir" && break
35684     done
35685     test -z "$as_dirs" || eval "mkdir $as_dirs"
35686   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35687 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35688    { (exit 1); exit 1; }; }; }
35689     # echo "creating $dirpart/$file"
35690     echo '# dummy' > "$dirpart/$file"
35691   done
35692 done
35693  ;;
35694     "run_tests_core":C) chmod +x gnuradio-core/src/python/gnuradio/gr/run_tests ;;
35695     "swig_deps":C) touch gnuradio-core/src/lib/swig/gnuradio_swig_python.d ;;
35696     "run_tests_usrp":C) chmod +x gr-usrp/src/run_tests ;;
35697     "run_tests_alsa":C) chmod +x gr-audio-alsa/src/run_tests ;;
35698     "run_tests_jack":C) chmod +x gr-audio-jack/src/run_tests ;;
35699     "run_tests_oss":C) chmod +x gr-audio-oss/src/run_tests ;;
35700     "run_tests_osx":C) chmod +x gr-audio-osx/src/run_tests ;;
35701     "run_tests_portaudio":C) chmod +x gr-audio-portaudio/src/run_tests ;;
35702     "run_tests_audio_windows":C) chmod +x gr-audio-windows/src/run_tests ;;
35703     "run_tests_gsm":C) chmod +x gr-gsm-fr-vocoder/src/python/run_tests ;;
35704     "run_tests_astronomy":C) chmod +x gr-radio-astronomy/src/python/run_tests ;;
35705     "run_tests_gr_trellis":C) chmod +x gr-trellis/src/python/run_tests ;;
35706     "run_tests_sdl":C) chmod +x gr-video-sdl/src/run_tests ;;
35707     "run_tests_build":C) chmod +x run_tests.sh ;;
35708
35709   esac
35710 done # for ac_tag
35711
35712
35713 { (exit 0); exit 0; }
35714 _ACEOF
35715 chmod +x $CONFIG_STATUS
35716 ac_clean_files=$ac_clean_files_save
35717
35718
35719 # configure is writing to config.log, and then calls config.status.
35720 # config.status does its own redirection, appending to config.log.
35721 # Unfortunately, on DOS this fails, as config.log is still kept open
35722 # by configure, so config.status won't be able to write to it; its
35723 # output is simply discarded.  So we exec the FD to /dev/null,
35724 # effectively closing config.log, so it can be properly (re)opened and
35725 # appended to by config.status.  When coming back to configure, we
35726 # need to make the FD available again.
35727 if test "$no_create" != yes; then
35728   ac_cs_success=:
35729   ac_config_status_args=
35730   test "$silent" = yes &&
35731     ac_config_status_args="$ac_config_status_args --quiet"
35732   exec 5>/dev/null
35733   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35734   exec 5>>config.log
35735   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35736   # would make configure fail if this is the last instruction.
35737   $ac_cs_success || { (exit 1); exit 1; }
35738 fi
35739
35740
35741 echo
35742 echo "*********************************************************************"
35743 echo The following GNU Radio components have been successfully configured:
35744 echo
35745 for dir in $build_dirs
35746 do
35747     echo $dir
35748 done
35749 echo
35750 echo You my now run the 'make' command to build these components.
35751 echo
35752 if test "$skipped_dirs" != ""; then
35753     echo "*********************************************************************"
35754     echo The following components were skipped either because you asked not
35755     echo to build them or they didn\'t pass configuration checks:
35756     echo
35757     for dir in $skipped_dirs
35758     do
35759         echo $dir
35760     done
35761     echo
35762     echo These components will not be built.
35763     echo
35764 fi