Protect pcap_fopen calls
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in
25   *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43   echo "#! /bin/sh" >conf$$.sh
44   echo  "exit 0"   >>conf$$.sh
45   chmod +x conf$$.sh
46   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47     PATH_SEPARATOR=';'
48   else
49     PATH_SEPARATOR=:
50   fi
51   rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56   as_unset=unset
57 else
58   as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order.  Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" ""        $as_nl"
70
71 # Find who we are.  Look in the path if we contain no directory separator.
72 case $0 in
73   *[\\/]* ) as_myself=$0 ;;
74   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77   IFS=$as_save_IFS
78   test -z "$as_dir" && as_dir=.
79   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83      ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88   as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92   { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107   LC_TELEPHONE LC_TIME
108 do
109   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110     eval $as_var=C; export $as_var
111   else
112     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113   fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118    test "X`expr 00001 : '.*\(...\)'`" = X001; then
119   as_expr=expr
120 else
121   as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125   as_basename=basename
126 else
127   as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134          X"$0" : 'X\(//\)$' \| \
135          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137     sed '/^.*\/\([^/][^/]*\)\/*$/{
138             s//\1/
139             q
140           }
141           /^X\/\(\/\/\)$/{
142             s//\1/
143             q
144           }
145           /^X\/\(\/\).*/{
146             s//\1/
147             q
148           }
149           s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156   if (eval ":") 2>/dev/null; then
157   as_have_required=yes
158 else
159   as_have_required=no
160 fi
161
162   if test $as_have_required = yes &&     (eval ":
163 (as_func_return () {
164   (exit \$1)
165 }
166 as_func_success () {
167   as_func_return 0
168 }
169 as_func_failure () {
170   as_func_return 1
171 }
172 as_func_ret_success () {
173   return 0
174 }
175 as_func_ret_failure () {
176   return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181   :
182 else
183   exitcode=1
184   echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188   exitcode=1
189   echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193   :
194 else
195   exitcode=1
196   echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200   exitcode=1
201   echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205   :
206 else
207   exitcode=1
208   echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214   as_lineno_1=\$LINENO
215   as_lineno_2=\$LINENO
216   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219   :
220 else
221   as_candidate_shells=
222     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225   IFS=$as_save_IFS
226   test -z "$as_dir" && as_dir=.
227   case $as_dir in
228          /*)
229            for as_base in sh bash ksh sh5; do
230              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231            done;;
232        esac
233 done
234 IFS=$as_save_IFS
235
236
237       for as_shell in $as_candidate_shells $SHELL; do
238          # Try only shells that exist, to save several forks.
239          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240                 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in
250   *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259   CONFIG_SHELL=$as_shell
260                as_have_required=yes
261                if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263   emulate sh
264   NULLCMD=:
265   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266   # is contrary to our usage.  Disable this feature.
267   alias -g '${1+"$@"}'='"$@"'
268   setopt NO_GLOB_SUBST
269 else
270   case `(set -o) 2>/dev/null` in
271   *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279   (exit $1)
280 }
281 as_func_success () {
282   as_func_return 0
283 }
284 as_func_failure () {
285   as_func_return 1
286 }
287 as_func_ret_success () {
288   return 0
289 }
290 as_func_ret_failure () {
291   return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296   :
297 else
298   exitcode=1
299   echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303   exitcode=1
304   echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308   :
309 else
310   exitcode=1
311   echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315   exitcode=1
316   echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320   :
321 else
322   exitcode=1
323   echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329   as_lineno_1=$LINENO
330   as_lineno_2=$LINENO
331   test "x$as_lineno_1" != "x$as_lineno_2" &&
332   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336   break
337 fi
338
339 fi
340
341       done
342
343       if test "x$CONFIG_SHELL" != x; then
344   for as_var in BASH_ENV ENV
345         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346         done
347         export CONFIG_SHELL
348         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352     if test $as_have_required = no; then
353   echo This script requires a shell more modern than all the
354       echo shells that I found on your system.  Please install a
355       echo modern shell, or manually run the script under such a
356       echo shell if you do have one.
357       { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368   (exit \$1)
369 }
370 as_func_success () {
371   as_func_return 0
372 }
373 as_func_failure () {
374   as_func_return 1
375 }
376 as_func_ret_success () {
377   return 0
378 }
379 as_func_ret_failure () {
380   return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385   :
386 else
387   exitcode=1
388   echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392   exitcode=1
393   echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397   :
398 else
399   exitcode=1
400   echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404   exitcode=1
405   echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409   :
410 else
411   exitcode=1
412   echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416   echo No shell found that supports shell functions.
417   echo Please tell autoconf@gnu.org about your system,
418   echo including any error possibly output before this
419   echo message
420 }
421
422
423
424   as_lineno_1=$LINENO
425   as_lineno_2=$LINENO
426   test "x$as_lineno_1" != "x$as_lineno_2" &&
427   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430   # uniformly replaced by the line number.  The first 'sed' inserts a
431   # line-number line after each line using $LINENO; the second 'sed'
432   # does the real work.  The second script uses 'N' to pair each
433   # line-number line with the line containing $LINENO, and appends
434   # trailing '-' during substitution so that $LINENO is not a special
435   # case at line end.
436   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437   # scripts with optimization help from Paolo Bonzini.  Blame Lee
438   # E. McMahon (1931-1989) for sed's syntax.  :-)
439   sed -n '
440     p
441     /[$]LINENO/=
442   ' <$as_myself |
443     sed '
444       s/[$]LINENO.*/&-/
445       t lineno
446       b
447       :lineno
448       N
449       :loop
450       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451       t loop
452       s/-\n.*//
453     ' >$as_me.lineno &&
454   chmod +x "$as_me.lineno" ||
455     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456    { (exit 1); exit 1; }; }
457
458   # Don't try to exec as it changes $[0], causing all sort of problems
459   # (the dirname of $[0] is not the place where we might find the
460   # original and so on.  Autoconf is especially sensitive to this).
461   . "./$as_me.lineno"
462   # Exit status is that of the last command.
463   exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468   as_dirname=dirname
469 else
470   as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476   case `echo 'x\c'` in
477   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
478   *)   ECHO_C='\c';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485    test "X`expr 00001 : '.*\(...\)'`" = X001; then
486   as_expr=expr
487 else
488   as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493   rm -f conf$$.dir/conf$$.file
494 else
495   rm -f conf$$.dir
496   mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500   as_ln_s='ln -s'
501   # ... but there are two gotchas:
502   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504   # In both cases, we have to default to `cp -p'.
505   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506     as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508   as_ln_s=ln
509 else
510   as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516   as_mkdir_p=:
517 else
518   test -d ./-p && rmdir ./-p
519   as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523   as_test_x='test -x'
524 else
525   if ls -dL / >/dev/null 2>&1; then
526     as_ls_L_option=L
527   else
528     as_ls_L_option=
529   fi
530   as_test_x='
531     eval sh -c '\''
532       if test -d "$1"; then
533         test -d "$1/.";
534       else
535         case $1 in
536         -*)set "./$1";;
537         esac;
538         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539         ???[sx]*):;;*)false;;esac;fi
540     '\'' sh
541   '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553
554 # Check that we are running under the correct shell.
555 SHELL=${CONFIG_SHELL-/bin/sh}
556
557 case X$ECHO in
558 X*--fallback-echo)
559   # Remove one level of quotation (which was required for Make).
560   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
561   ;;
562 esac
563
564 echo=${ECHO-echo}
565 if test "X$1" = X--no-reexec; then
566   # Discard the --no-reexec flag, and continue.
567   shift
568 elif test "X$1" = X--fallback-echo; then
569   # Avoid inline document here, it may be left over
570   :
571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
572   # Yippee, $echo works!
573   :
574 else
575   # Restart under the correct shell.
576   exec $SHELL "$0" --no-reexec ${1+"$@"}
577 fi
578
579 if test "X$1" = X--fallback-echo; then
580   # used as fallback echo
581   shift
582   cat <<EOF
583 $*
584 EOF
585   exit 0
586 fi
587
588 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 # if CDPATH is set.
590 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591
592 if test -z "$ECHO"; then
593 if test "X${echo_test_string+set}" != Xset; then
594 # find a string as large as possible, as long as the shell can cope with it
595   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
598        echo_test_string=`eval $cmd` &&
599        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
600     then
601       break
602     fi
603   done
604 fi
605
606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
607    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
608    test "X$echo_testing_string" = "X$echo_test_string"; then
609   :
610 else
611   # The Solaris, AIX, and Digital Unix default echo programs unquote
612   # backslashes.  This makes it impossible to quote backslashes using
613   #   echo "$something" | sed 's/\\/\\\\/g'
614   #
615   # So, first we look for a working echo in the user's PATH.
616
617   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618   for dir in $PATH /usr/ucb; do
619     IFS="$lt_save_ifs"
620     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623        test "X$echo_testing_string" = "X$echo_test_string"; then
624       echo="$dir/echo"
625       break
626     fi
627   done
628   IFS="$lt_save_ifs"
629
630   if test "X$echo" = Xecho; then
631     # We didn't find a better echo, so look for alternatives.
632     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
633        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
634        test "X$echo_testing_string" = "X$echo_test_string"; then
635       # This shell has a builtin print -r that does the trick.
636       echo='print -r'
637     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
638          test "X$CONFIG_SHELL" != X/bin/ksh; then
639       # If we have ksh, try running configure again with it.
640       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641       export ORIGINAL_CONFIG_SHELL
642       CONFIG_SHELL=/bin/ksh
643       export CONFIG_SHELL
644       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645     else
646       # Try using printf.
647       echo='printf %s\n'
648       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
649          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
650          test "X$echo_testing_string" = "X$echo_test_string"; then
651         # Cool, printf works
652         :
653       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654            test "X$echo_testing_string" = 'X\t' &&
655            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656            test "X$echo_testing_string" = "X$echo_test_string"; then
657         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658         export CONFIG_SHELL
659         SHELL="$CONFIG_SHELL"
660         export SHELL
661         echo="$CONFIG_SHELL $0 --fallback-echo"
662       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663            test "X$echo_testing_string" = 'X\t' &&
664            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665            test "X$echo_testing_string" = "X$echo_test_string"; then
666         echo="$CONFIG_SHELL $0 --fallback-echo"
667       else
668         # maybe with a smaller string...
669         prev=:
670
671         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
673           then
674             break
675           fi
676           prev="$cmd"
677         done
678
679         if test "$prev" != 'sed 50q "$0"'; then
680           echo_test_string=`eval $prev`
681           export echo_test_string
682           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683         else
684           # Oops.  We lost completely, so just stick with echo.
685           echo=echo
686         fi
687       fi
688     fi
689   fi
690 fi
691 fi
692
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
695 ECHO=$echo
696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698 fi
699
700
701
702
703 tagnames=${tagnames+${tagnames},}CXX
704
705 tagnames=${tagnames+${tagnames},}F77
706
707 exec 7<&0 </dev/null 6>&1
708
709 # Name of the host.
710 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
711 # so uname gets run too.
712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713
714 #
715 # Initializations.
716 #
717 ac_default_prefix=/usr/local
718 ac_clean_files=
719 ac_config_libobj_dir=.
720 LIBOBJS=
721 cross_compiling=no
722 subdirs=
723 MFLAGS=
724 MAKEFLAGS=
725 SHELL=${CONFIG_SHELL-/bin/sh}
726
727 # Identity of this package.
728 PACKAGE_NAME=
729 PACKAGE_TARNAME=
730 PACKAGE_VERSION=
731 PACKAGE_STRING=
732 PACKAGE_BUGREPORT=
733
734 ac_unique_file="src/main/radiusd.c"
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 #  include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 #  include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
770
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 CPPFLAGS
812 ac_ct_CC
813 EXEEXT
814 OBJEXT
815 CXX
816 CXXFLAGS
817 ac_ct_CXX
818 CPP
819 GREP
820 EGREP
821 RANLIB
822 GMAKE
823 MAKE
824 LTDL_SUBDIRS
825 LIBTOOL
826 build
827 build_cpu
828 build_vendor
829 build_os
830 host
831 host_cpu
832 host_vendor
833 host_os
834 SED
835 LN_S
836 ECHO
837 AR
838 STRIP
839 DSYMUTIL
840 NMEDIT
841 CXXCPP
842 F77
843 FFLAGS
844 ac_ct_F77
845 logdir
846 radacctdir
847 raddbdir
848 PERL
849 SNMPGET
850 SNMPWALK
851 RUSERS
852 ACLOCAL
853 AUTOCONF
854 AUTOHEADER
855 LOCATE
856 DIRNAME
857 LIBREADLINE
858 REGEX
859 REGEX_EXTENDED
860 OPENSSL_INCLUDE
861 OPENSSL_LIBS
862 PCAP_LIBS
863 LIBPREFIX
864 CRYPTLIB
865 HOSTINFO
866 LIBLTDL
867 INCLTDL
868 subdirs
869 MODULES
870 INSTALLSTRIP
871 USE_SHARED_LIBS
872 USE_STATIC_LIBS
873 STATIC_MODULES
874 RADIUSD_MAJOR_VERSION
875 RADIUSD_MINOR_VERSION
876 RADIUSD_VERSION
877 LIBOBJS
878 LTLIBOBJS'
879 ac_subst_files=''
880       ac_precious_vars='build_alias
881 host_alias
882 target_alias
883 CC
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
888 CXX
889 CXXFLAGS
890 CCC
891 CPP
892 CXXCPP
893 F77
894 FFLAGS'
895 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
896
897 # Initialize some variables set by options.
898 ac_init_help=
899 ac_init_version=false
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
902 cache_file=/dev/null
903 exec_prefix=NONE
904 no_create=
905 no_recursion=
906 prefix=NONE
907 program_prefix=NONE
908 program_suffix=NONE
909 program_transform_name=s,x,x,
910 silent=
911 site=
912 srcdir=
913 verbose=
914 x_includes=NONE
915 x_libraries=NONE
916
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE}'
934 infodir='${datarootdir}/info'
935 htmldir='${docdir}'
936 dvidir='${docdir}'
937 pdfdir='${docdir}'
938 psdir='${docdir}'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
942
943 ac_prev=
944 ac_dashdash=
945 for ac_option
946 do
947   # If the previous option needs an argument, assign it.
948   if test -n "$ac_prev"; then
949     eval $ac_prev=\$ac_option
950     ac_prev=
951     continue
952   fi
953
954   case $ac_option in
955   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956   *)    ac_optarg=yes ;;
957   esac
958
959   # Accept the important Cygnus configure options, so we can diagnose typos.
960
961   case $ac_dashdash$ac_option in
962   --)
963     ac_dashdash=yes ;;
964
965   -bindir | --bindir | --bindi | --bind | --bin | --bi)
966     ac_prev=bindir ;;
967   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968     bindir=$ac_optarg ;;
969
970   -build | --build | --buil | --bui | --bu)
971     ac_prev=build_alias ;;
972   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973     build_alias=$ac_optarg ;;
974
975   -cache-file | --cache-file | --cache-fil | --cache-fi \
976   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977     ac_prev=cache_file ;;
978   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980     cache_file=$ac_optarg ;;
981
982   --config-cache | -C)
983     cache_file=config.cache ;;
984
985   -datadir | --datadir | --datadi | --datad)
986     ac_prev=datadir ;;
987   -datadir=* | --datadir=* | --datadi=* | --datad=*)
988     datadir=$ac_optarg ;;
989
990   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991   | --dataroo | --dataro | --datar)
992     ac_prev=datarootdir ;;
993   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995     datarootdir=$ac_optarg ;;
996
997   -disable-* | --disable-*)
998     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002    { (exit 1); exit 1; }; }
1003     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004     eval enable_$ac_feature=no ;;
1005
1006   -docdir | --docdir | --docdi | --doc | --do)
1007     ac_prev=docdir ;;
1008   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009     docdir=$ac_optarg ;;
1010
1011   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012     ac_prev=dvidir ;;
1013   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014     dvidir=$ac_optarg ;;
1015
1016   -enable-* | --enable-*)
1017     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018     # Reject names that are not valid shell variable names.
1019     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021    { (exit 1); exit 1; }; }
1022     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023     eval enable_$ac_feature=\$ac_optarg ;;
1024
1025   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027   | --exec | --exe | --ex)
1028     ac_prev=exec_prefix ;;
1029   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031   | --exec=* | --exe=* | --ex=*)
1032     exec_prefix=$ac_optarg ;;
1033
1034   -gas | --gas | --ga | --g)
1035     # Obsolete; use --with-gas.
1036     with_gas=yes ;;
1037
1038   -help | --help | --hel | --he | -h)
1039     ac_init_help=long ;;
1040   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041     ac_init_help=recursive ;;
1042   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043     ac_init_help=short ;;
1044
1045   -host | --host | --hos | --ho)
1046     ac_prev=host_alias ;;
1047   -host=* | --host=* | --hos=* | --ho=*)
1048     host_alias=$ac_optarg ;;
1049
1050   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051     ac_prev=htmldir ;;
1052   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053   | --ht=*)
1054     htmldir=$ac_optarg ;;
1055
1056   -includedir | --includedir | --includedi | --included | --include \
1057   | --includ | --inclu | --incl | --inc)
1058     ac_prev=includedir ;;
1059   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060   | --includ=* | --inclu=* | --incl=* | --inc=*)
1061     includedir=$ac_optarg ;;
1062
1063   -infodir | --infodir | --infodi | --infod | --info | --inf)
1064     ac_prev=infodir ;;
1065   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066     infodir=$ac_optarg ;;
1067
1068   -libdir | --libdir | --libdi | --libd)
1069     ac_prev=libdir ;;
1070   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071     libdir=$ac_optarg ;;
1072
1073   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074   | --libexe | --libex | --libe)
1075     ac_prev=libexecdir ;;
1076   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077   | --libexe=* | --libex=* | --libe=*)
1078     libexecdir=$ac_optarg ;;
1079
1080   -localedir | --localedir | --localedi | --localed | --locale)
1081     ac_prev=localedir ;;
1082   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083     localedir=$ac_optarg ;;
1084
1085   -localstatedir | --localstatedir | --localstatedi | --localstated \
1086   | --localstate | --localstat | --localsta | --localst | --locals)
1087     ac_prev=localstatedir ;;
1088   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090     localstatedir=$ac_optarg ;;
1091
1092   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093     ac_prev=mandir ;;
1094   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095     mandir=$ac_optarg ;;
1096
1097   -nfp | --nfp | --nf)
1098     # Obsolete; use --without-fp.
1099     with_fp=no ;;
1100
1101   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102   | --no-cr | --no-c | -n)
1103     no_create=yes ;;
1104
1105   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107     no_recursion=yes ;;
1108
1109   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111   | --oldin | --oldi | --old | --ol | --o)
1112     ac_prev=oldincludedir ;;
1113   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116     oldincludedir=$ac_optarg ;;
1117
1118   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119     ac_prev=prefix ;;
1120   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121     prefix=$ac_optarg ;;
1122
1123   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124   | --program-pre | --program-pr | --program-p)
1125     ac_prev=program_prefix ;;
1126   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128     program_prefix=$ac_optarg ;;
1129
1130   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131   | --program-suf | --program-su | --program-s)
1132     ac_prev=program_suffix ;;
1133   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135     program_suffix=$ac_optarg ;;
1136
1137   -program-transform-name | --program-transform-name \
1138   | --program-transform-nam | --program-transform-na \
1139   | --program-transform-n | --program-transform- \
1140   | --program-transform | --program-transfor \
1141   | --program-transfo | --program-transf \
1142   | --program-trans | --program-tran \
1143   | --progr-tra | --program-tr | --program-t)
1144     ac_prev=program_transform_name ;;
1145   -program-transform-name=* | --program-transform-name=* \
1146   | --program-transform-nam=* | --program-transform-na=* \
1147   | --program-transform-n=* | --program-transform-=* \
1148   | --program-transform=* | --program-transfor=* \
1149   | --program-transfo=* | --program-transf=* \
1150   | --program-trans=* | --program-tran=* \
1151   | --progr-tra=* | --program-tr=* | --program-t=*)
1152     program_transform_name=$ac_optarg ;;
1153
1154   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155     ac_prev=pdfdir ;;
1156   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157     pdfdir=$ac_optarg ;;
1158
1159   -psdir | --psdir | --psdi | --psd | --ps)
1160     ac_prev=psdir ;;
1161   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162     psdir=$ac_optarg ;;
1163
1164   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165   | -silent | --silent | --silen | --sile | --sil)
1166     silent=yes ;;
1167
1168   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169     ac_prev=sbindir ;;
1170   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171   | --sbi=* | --sb=*)
1172     sbindir=$ac_optarg ;;
1173
1174   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176   | --sharedst | --shareds | --shared | --share | --shar \
1177   | --sha | --sh)
1178     ac_prev=sharedstatedir ;;
1179   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182   | --sha=* | --sh=*)
1183     sharedstatedir=$ac_optarg ;;
1184
1185   -site | --site | --sit)
1186     ac_prev=site ;;
1187   -site=* | --site=* | --sit=*)
1188     site=$ac_optarg ;;
1189
1190   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191     ac_prev=srcdir ;;
1192   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193     srcdir=$ac_optarg ;;
1194
1195   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196   | --syscon | --sysco | --sysc | --sys | --sy)
1197     ac_prev=sysconfdir ;;
1198   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200     sysconfdir=$ac_optarg ;;
1201
1202   -target | --target | --targe | --targ | --tar | --ta | --t)
1203     ac_prev=target_alias ;;
1204   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205     target_alias=$ac_optarg ;;
1206
1207   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208     verbose=yes ;;
1209
1210   -version | --version | --versio | --versi | --vers | -V)
1211     ac_init_version=: ;;
1212
1213   -with-* | --with-*)
1214     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215     # Reject names that are not valid shell variable names.
1216     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217       { echo "$as_me: error: invalid package name: $ac_package" >&2
1218    { (exit 1); exit 1; }; }
1219     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1220     eval with_$ac_package=\$ac_optarg ;;
1221
1222   -without-* | --without-*)
1223     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224     # Reject names that are not valid shell variable names.
1225     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226       { echo "$as_me: error: invalid package name: $ac_package" >&2
1227    { (exit 1); exit 1; }; }
1228     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229     eval with_$ac_package=no ;;
1230
1231   --x)
1232     # Obsolete; use --with-x.
1233     with_x=yes ;;
1234
1235   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236   | --x-incl | --x-inc | --x-in | --x-i)
1237     ac_prev=x_includes ;;
1238   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240     x_includes=$ac_optarg ;;
1241
1242   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244     ac_prev=x_libraries ;;
1245   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247     x_libraries=$ac_optarg ;;
1248
1249   -*) { echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251    { (exit 1); exit 1; }; }
1252     ;;
1253
1254   *=*)
1255     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256     # Reject names that are not valid shell variable names.
1257     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259    { (exit 1); exit 1; }; }
1260     eval $ac_envvar=\$ac_optarg
1261     export $ac_envvar ;;
1262
1263   *)
1264     # FIXME: should be removed in autoconf 3.0.
1265     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269     ;;
1270
1271   esac
1272 done
1273
1274 if test -n "$ac_prev"; then
1275   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276   { echo "$as_me: error: missing argument to $ac_option" >&2
1277    { (exit 1); exit 1; }; }
1278 fi
1279
1280 # Be sure to have absolute directory names.
1281 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282                 datadir sysconfdir sharedstatedir localstatedir includedir \
1283                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284                 libdir localedir mandir
1285 do
1286   eval ac_val=\$$ac_var
1287   case $ac_val in
1288     [\\/$]* | ?:[\\/]* )  continue;;
1289     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290   esac
1291   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292    { (exit 1); exit 1; }; }
1293 done
1294
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1298 build=$build_alias
1299 host=$host_alias
1300 target=$target_alias
1301
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304   if test "x$build_alias" = x; then
1305     cross_compiling=maybe
1306     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307     If a cross compiler is detected then cross compile mode will be used." >&2
1308   elif test "x$build_alias" != "x$host_alias"; then
1309     cross_compiling=yes
1310   fi
1311 fi
1312
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316 test "$silent" = yes && exec 6>/dev/null
1317
1318
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322   { echo "$as_me: error: Working directory cannot be determined" >&2
1323    { (exit 1); exit 1; }; }
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325   { echo "$as_me: error: pwd does not report name of working directory" >&2
1326    { (exit 1); exit 1; }; }
1327
1328
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331   ac_srcdir_defaulted=yes
1332   # Try the directory containing this script, then the parent directory.
1333   ac_confdir=`$as_dirname -- "$0" ||
1334 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335          X"$0" : 'X\(//\)[^/]' \| \
1336          X"$0" : 'X\(//\)$' \| \
1337          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1338 echo X"$0" |
1339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\/\)[^/].*/{
1344             s//\1/
1345             q
1346           }
1347           /^X\(\/\/\)$/{
1348             s//\1/
1349             q
1350           }
1351           /^X\(\/\).*/{
1352             s//\1/
1353             q
1354           }
1355           s/.*/./; q'`
1356   srcdir=$ac_confdir
1357   if test ! -r "$srcdir/$ac_unique_file"; then
1358     srcdir=..
1359   fi
1360 else
1361   ac_srcdir_defaulted=no
1362 fi
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1366    { (exit 1); exit 1; }; }
1367 fi
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1371    { (exit 1); exit 1; }; }
1372         pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375   srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385   eval ac_env_${ac_var}_value=\$${ac_var}
1386   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394   # Omit some internal or obsolete options to make the list less imposing.
1395   # This message is too long to be a string in the A/UX 3.1 sh.
1396   cat <<_ACEOF
1397 \`configure' configures this package to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE.  See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407   -h, --help              display this help and exit
1408       --help=short        display options specific to this package
1409       --help=recursive    display the short help of all the included packages
1410   -V, --version           display version information and exit
1411   -q, --quiet, --silent   do not print \`checking...' messages
1412       --cache-file=FILE   cache test results in FILE [disabled]
1413   -C, --config-cache      alias for \`--cache-file=config.cache'
1414   -n, --no-create         do not create output files
1415       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418   --prefix=PREFIX         install architecture-independent files in PREFIX
1419                           [$ac_default_prefix]
1420   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1421                           [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431   --bindir=DIR           user executables [EPREFIX/bin]
1432   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1433   --libexecdir=DIR       program executables [EPREFIX/libexec]
1434   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1435   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1436   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1437   --libdir=DIR           object code libraries [EPREFIX/lib]
1438   --includedir=DIR       C header files [PREFIX/include]
1439   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1440   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1441   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1442   --infodir=DIR          info documentation [DATAROOTDIR/info]
1443   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1444   --mandir=DIR           man documentation [DATAROOTDIR/man]
1445   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1446   --htmldir=DIR          html documentation [DOCDIR]
1447   --dvidir=DIR           dvi documentation [DOCDIR]
1448   --pdfdir=DIR           pdf documentation [DOCDIR]
1449   --psdir=DIR            ps documentation [DOCDIR]
1450 _ACEOF
1451
1452   cat <<\_ACEOF
1453
1454 System types:
1455   --build=BUILD     configure for building on BUILD [guessed]
1456   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1457 _ACEOF
1458 fi
1459
1460 if test -n "$ac_init_help"; then
1461
1462   cat <<\_ACEOF
1463
1464 Optional Features:
1465   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1466   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1467   --disable-largefile     omit support for large files
1468   --enable-shared[=PKGS]  build shared libraries [default=yes]
1469   --enable-static[=PKGS]  build static libraries [default=yes]
1470   --enable-fast-install[=PKGS]
1471                           optimize for fast installation [default=yes]
1472   --disable-libtool-lock  avoid locking (might break parallel builds)
1473   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1474   --enable-developer               Enables features of interest to developers.
1475
1476 Optional Packages:
1477   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1478   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1479   --with-system-libltdl   Use the libltdl installed in your system (default=use our own)
1480   --with-system-libtool   Use the libtool installed in your system (default=use our own)
1481   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1482   --with-pic              try to use only PIC/non-PIC objects [default=use
1483                           both]
1484   --with-tags[=TAGS]      include additional configurations [automatic]
1485   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1486   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1487   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1488   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1489   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1490   --with-threads          Use threads, if available.  (default=yes)
1491   --with-vmps             Compile in VMPS support. (default=yes)
1492   --with-dhcp             Compile in DHCP support. (default=no)
1493   --with-static-modules=QUOTED-MODULE-LIST
1494  --with-modules=QUOTED-MODULE-LIST
1495   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1496   --with-openssl                   Use OpenSSL. (default=yes)
1497   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1498   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1499   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1500   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1501   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1502
1503 Some influential environment variables:
1504   CC          C compiler command
1505   CFLAGS      C compiler flags
1506   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1507               nonstandard directory <lib dir>
1508   LIBS        libraries to pass to the linker, e.g. -l<library>
1509   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1510               you have headers in a nonstandard directory <include dir>
1511   CXX         C++ compiler command
1512   CXXFLAGS    C++ compiler flags
1513   CPP         C preprocessor
1514   CXXCPP      C++ preprocessor
1515   F77         Fortran 77 compiler command
1516   FFLAGS      Fortran 77 compiler flags
1517
1518 Use these variables to override the choices made by `configure' or to help
1519 it to find libraries and programs with nonstandard names/locations.
1520
1521 _ACEOF
1522 ac_status=$?
1523 fi
1524
1525 if test "$ac_init_help" = "recursive"; then
1526   # If there are subdirs, report their specific --help.
1527   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528     test -d "$ac_dir" || continue
1529     ac_builddir=.
1530
1531 case "$ac_dir" in
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *)
1534   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1535   # A ".." for each directory in $ac_dir_suffix.
1536   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1537   case $ac_top_builddir_sub in
1538   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540   esac ;;
1541 esac
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1546
1547 case $srcdir in
1548   .)  # We are building in place.
1549     ac_srcdir=.
1550     ac_top_srcdir=$ac_top_builddir_sub
1551     ac_abs_top_srcdir=$ac_pwd ;;
1552   [\\/]* | ?:[\\/]* )  # Absolute name.
1553     ac_srcdir=$srcdir$ac_dir_suffix;
1554     ac_top_srcdir=$srcdir
1555     ac_abs_top_srcdir=$srcdir ;;
1556   *) # Relative name.
1557     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558     ac_top_srcdir=$ac_top_build_prefix$srcdir
1559     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 esac
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563     cd "$ac_dir" || { ac_status=$?; continue; }
1564     # Check for guested configure.
1565     if test -f "$ac_srcdir/configure.gnu"; then
1566       echo &&
1567       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568     elif test -f "$ac_srcdir/configure"; then
1569       echo &&
1570       $SHELL "$ac_srcdir/configure" --help=recursive
1571     else
1572       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573     fi || ac_status=$?
1574     cd "$ac_pwd" || { ac_status=$?; break; }
1575   done
1576 fi
1577
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1580   cat <<\_ACEOF
1581 configure
1582 generated by GNU Autoconf 2.61
1583
1584 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1585 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1588 _ACEOF
1589   exit
1590 fi
1591 cat >config.log <<_ACEOF
1592 This file contains any messages produced by compilers while
1593 running configure, to aid debugging if configure makes a mistake.
1594
1595 It was created by $as_me, which was
1596 generated by GNU Autoconf 2.61.  Invocation command line was
1597
1598   $ $0 $@
1599
1600 _ACEOF
1601 exec 5>>config.log
1602 {
1603 cat <<_ASUNAME
1604 ## --------- ##
1605 ## Platform. ##
1606 ## --------- ##
1607
1608 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1609 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1610 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1611 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1612 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1613
1614 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1615 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1616
1617 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1618 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1619 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1620 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1621 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1622 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1623 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1624
1625 _ASUNAME
1626
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 for as_dir in $PATH
1629 do
1630   IFS=$as_save_IFS
1631   test -z "$as_dir" && as_dir=.
1632   echo "PATH: $as_dir"
1633 done
1634 IFS=$as_save_IFS
1635
1636 } >&5
1637
1638 cat >&5 <<_ACEOF
1639
1640
1641 ## ----------- ##
1642 ## Core tests. ##
1643 ## ----------- ##
1644
1645 _ACEOF
1646
1647
1648 # Keep a trace of the command line.
1649 # Strip out --no-create and --no-recursion so they do not pile up.
1650 # Strip out --silent because we don't want to record it for future runs.
1651 # Also quote any args containing shell meta-characters.
1652 # Make two passes to allow for proper duplicate-argument suppression.
1653 ac_configure_args=
1654 ac_configure_args0=
1655 ac_configure_args1=
1656 ac_must_keep_next=false
1657 for ac_pass in 1 2
1658 do
1659   for ac_arg
1660   do
1661     case $ac_arg in
1662     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1663     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1664     | -silent | --silent | --silen | --sile | --sil)
1665       continue ;;
1666     *\'*)
1667       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1668     esac
1669     case $ac_pass in
1670     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1671     2)
1672       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1673       if test $ac_must_keep_next = true; then
1674         ac_must_keep_next=false # Got value, back to normal.
1675       else
1676         case $ac_arg in
1677           *=* | --config-cache | -C | -disable-* | --disable-* \
1678           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1679           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1680           | -with-* | --with-* | -without-* | --without-* | --x)
1681             case "$ac_configure_args0 " in
1682               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1683             esac
1684             ;;
1685           -* ) ac_must_keep_next=true ;;
1686         esac
1687       fi
1688       ac_configure_args="$ac_configure_args '$ac_arg'"
1689       ;;
1690     esac
1691   done
1692 done
1693 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1694 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1695
1696 # When interrupted or exit'd, cleanup temporary files, and complete
1697 # config.log.  We remove comments because anyway the quotes in there
1698 # would cause problems or look ugly.
1699 # WARNING: Use '\'' to represent an apostrophe within the trap.
1700 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1701 trap 'exit_status=$?
1702   # Save into config.log some information that might help in debugging.
1703   {
1704     echo
1705
1706     cat <<\_ASBOX
1707 ## ---------------- ##
1708 ## Cache variables. ##
1709 ## ---------------- ##
1710 _ASBOX
1711     echo
1712     # The following way of writing the cache mishandles newlines in values,
1713 (
1714   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1715     eval ac_val=\$$ac_var
1716     case $ac_val in #(
1717     *${as_nl}*)
1718       case $ac_var in #(
1719       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1720 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1721       esac
1722       case $ac_var in #(
1723       _ | IFS | as_nl) ;; #(
1724       *) $as_unset $ac_var ;;
1725       esac ;;
1726     esac
1727   done
1728   (set) 2>&1 |
1729     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1730     *${as_nl}ac_space=\ *)
1731       sed -n \
1732         "s/'\''/'\''\\\\'\'''\''/g;
1733           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1734       ;; #(
1735     *)
1736       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1737       ;;
1738     esac |
1739     sort
1740 )
1741     echo
1742
1743     cat <<\_ASBOX
1744 ## ----------------- ##
1745 ## Output variables. ##
1746 ## ----------------- ##
1747 _ASBOX
1748     echo
1749     for ac_var in $ac_subst_vars
1750     do
1751       eval ac_val=\$$ac_var
1752       case $ac_val in
1753       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754       esac
1755       echo "$ac_var='\''$ac_val'\''"
1756     done | sort
1757     echo
1758
1759     if test -n "$ac_subst_files"; then
1760       cat <<\_ASBOX
1761 ## ------------------- ##
1762 ## File substitutions. ##
1763 ## ------------------- ##
1764 _ASBOX
1765       echo
1766       for ac_var in $ac_subst_files
1767       do
1768         eval ac_val=\$$ac_var
1769         case $ac_val in
1770         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771         esac
1772         echo "$ac_var='\''$ac_val'\''"
1773       done | sort
1774       echo
1775     fi
1776
1777     if test -s confdefs.h; then
1778       cat <<\_ASBOX
1779 ## ----------- ##
1780 ## confdefs.h. ##
1781 ## ----------- ##
1782 _ASBOX
1783       echo
1784       cat confdefs.h
1785       echo
1786     fi
1787     test "$ac_signal" != 0 &&
1788       echo "$as_me: caught signal $ac_signal"
1789     echo "$as_me: exit $exit_status"
1790   } >&5
1791   rm -f core *.core core.conftest.* &&
1792     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1793     exit $exit_status
1794 ' 0
1795 for ac_signal in 1 2 13 15; do
1796   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1797 done
1798 ac_signal=0
1799
1800 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1801 rm -f -r conftest* confdefs.h
1802
1803 # Predefined preprocessor variables.
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_NAME "$PACKAGE_NAME"
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1812 _ACEOF
1813
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1817 _ACEOF
1818
1819
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_STRING "$PACKAGE_STRING"
1822 _ACEOF
1823
1824
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1827 _ACEOF
1828
1829
1830 # Let the site file select an alternate cache file if it wants to.
1831 # Prefer explicitly selected file to automatically selected ones.
1832 if test -n "$CONFIG_SITE"; then
1833   set x "$CONFIG_SITE"
1834 elif test "x$prefix" != xNONE; then
1835   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1836 else
1837   set x "$ac_default_prefix/share/config.site" \
1838         "$ac_default_prefix/etc/config.site"
1839 fi
1840 shift
1841 for ac_site_file
1842 do
1843   if test -r "$ac_site_file"; then
1844     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1845 echo "$as_me: loading site script $ac_site_file" >&6;}
1846     sed 's/^/| /' "$ac_site_file" >&5
1847     . "$ac_site_file"
1848   fi
1849 done
1850
1851 if test -r "$cache_file"; then
1852   # Some versions of bash will fail to source /dev/null (special
1853   # files actually), so we avoid doing that.
1854   if test -f "$cache_file"; then
1855     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1856 echo "$as_me: loading cache $cache_file" >&6;}
1857     case $cache_file in
1858       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1859       *)                      . "./$cache_file";;
1860     esac
1861   fi
1862 else
1863   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1864 echo "$as_me: creating cache $cache_file" >&6;}
1865   >$cache_file
1866 fi
1867
1868 # Check that the precious variables saved in the cache have kept the same
1869 # value.
1870 ac_cache_corrupted=false
1871 for ac_var in $ac_precious_vars; do
1872   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1873   eval ac_new_set=\$ac_env_${ac_var}_set
1874   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1875   eval ac_new_val=\$ac_env_${ac_var}_value
1876   case $ac_old_set,$ac_new_set in
1877     set,)
1878       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1879 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1880       ac_cache_corrupted=: ;;
1881     ,set)
1882       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1883 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1884       ac_cache_corrupted=: ;;
1885     ,);;
1886     *)
1887       if test "x$ac_old_val" != "x$ac_new_val"; then
1888         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1889 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1890         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1891 echo "$as_me:   former value:  $ac_old_val" >&2;}
1892         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1893 echo "$as_me:   current value: $ac_new_val" >&2;}
1894         ac_cache_corrupted=:
1895       fi;;
1896   esac
1897   # Pass precious variables to config.status.
1898   if test "$ac_new_set" = set; then
1899     case $ac_new_val in
1900     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1901     *) ac_arg=$ac_var=$ac_new_val ;;
1902     esac
1903     case " $ac_configure_args " in
1904       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1905       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1906     esac
1907   fi
1908 done
1909 if $ac_cache_corrupted; then
1910   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1911 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1912   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1913 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1914    { (exit 1); exit 1; }; }
1915 fi
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933 ac_ext=c
1934 ac_cpp='$CPP $CPPFLAGS'
1935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1938
1939
1940 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1941
1942
1943 RADIUSD_VERSION=`cat VERSION`
1944 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
1945 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^2\.//'`
1946 PACKAGE=freeradius
1947
1948
1949 ac_ext=c
1950 ac_cpp='$CPP $CPPFLAGS'
1951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954 if test -n "$ac_tool_prefix"; then
1955   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1956 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1959 if test "${ac_cv_prog_CC+set}" = set; then
1960   echo $ECHO_N "(cached) $ECHO_C" >&6
1961 else
1962   if test -n "$CC"; then
1963   ac_cv_prog_CC="$CC" # Let the user override the test.
1964 else
1965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966 for as_dir in $PATH
1967 do
1968   IFS=$as_save_IFS
1969   test -z "$as_dir" && as_dir=.
1970   for ac_exec_ext in '' $ac_executable_extensions; do
1971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1972     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974     break 2
1975   fi
1976 done
1977 done
1978 IFS=$as_save_IFS
1979
1980 fi
1981 fi
1982 CC=$ac_cv_prog_CC
1983 if test -n "$CC"; then
1984   { echo "$as_me:$LINENO: result: $CC" >&5
1985 echo "${ECHO_T}$CC" >&6; }
1986 else
1987   { echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6; }
1989 fi
1990
1991
1992 fi
1993 if test -z "$ac_cv_prog_CC"; then
1994   ac_ct_CC=$CC
1995   # Extract the first word of "gcc", so it can be a program name with args.
1996 set dummy gcc; ac_word=$2
1997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2000   echo $ECHO_N "(cached) $ECHO_C" >&6
2001 else
2002   if test -n "$ac_ct_CC"; then
2003   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2004 else
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 for as_dir in $PATH
2007 do
2008   IFS=$as_save_IFS
2009   test -z "$as_dir" && as_dir=.
2010   for ac_exec_ext in '' $ac_executable_extensions; do
2011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2012     ac_cv_prog_ac_ct_CC="gcc"
2013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014     break 2
2015   fi
2016 done
2017 done
2018 IFS=$as_save_IFS
2019
2020 fi
2021 fi
2022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2023 if test -n "$ac_ct_CC"; then
2024   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025 echo "${ECHO_T}$ac_ct_CC" >&6; }
2026 else
2027   { echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6; }
2029 fi
2030
2031   if test "x$ac_ct_CC" = x; then
2032     CC=""
2033   else
2034     case $cross_compiling:$ac_tool_warned in
2035 yes:)
2036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2037 whose name does not start with the host triplet.  If you think this
2038 configuration is useful to you, please write to autoconf@gnu.org." >&5
2039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2040 whose name does not start with the host triplet.  If you think this
2041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2042 ac_tool_warned=yes ;;
2043 esac
2044     CC=$ac_ct_CC
2045   fi
2046 else
2047   CC="$ac_cv_prog_CC"
2048 fi
2049
2050 if test -z "$CC"; then
2051           if test -n "$ac_tool_prefix"; then
2052     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2053 set dummy ${ac_tool_prefix}cc; ac_word=$2
2054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2056 if test "${ac_cv_prog_CC+set}" = set; then
2057   echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059   if test -n "$CC"; then
2060   ac_cv_prog_CC="$CC" # Let the user override the test.
2061 else
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065   IFS=$as_save_IFS
2066   test -z "$as_dir" && as_dir=.
2067   for ac_exec_ext in '' $ac_executable_extensions; do
2068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069     ac_cv_prog_CC="${ac_tool_prefix}cc"
2070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071     break 2
2072   fi
2073 done
2074 done
2075 IFS=$as_save_IFS
2076
2077 fi
2078 fi
2079 CC=$ac_cv_prog_CC
2080 if test -n "$CC"; then
2081   { echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6; }
2083 else
2084   { echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6; }
2086 fi
2087
2088
2089   fi
2090 fi
2091 if test -z "$CC"; then
2092   # Extract the first word of "cc", so it can be a program name with args.
2093 set dummy cc; ac_word=$2
2094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2096 if test "${ac_cv_prog_CC+set}" = set; then
2097   echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099   if test -n "$CC"; then
2100   ac_cv_prog_CC="$CC" # Let the user override the test.
2101 else
2102   ac_prog_rejected=no
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2105 do
2106   IFS=$as_save_IFS
2107   test -z "$as_dir" && as_dir=.
2108   for ac_exec_ext in '' $ac_executable_extensions; do
2109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2110     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2111        ac_prog_rejected=yes
2112        continue
2113      fi
2114     ac_cv_prog_CC="cc"
2115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116     break 2
2117   fi
2118 done
2119 done
2120 IFS=$as_save_IFS
2121
2122 if test $ac_prog_rejected = yes; then
2123   # We found a bogon in the path, so make sure we never use it.
2124   set dummy $ac_cv_prog_CC
2125   shift
2126   if test $# != 0; then
2127     # We chose a different compiler from the bogus one.
2128     # However, it has the same basename, so the bogon will be chosen
2129     # first if we set CC to just the basename; use the full file name.
2130     shift
2131     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2132   fi
2133 fi
2134 fi
2135 fi
2136 CC=$ac_cv_prog_CC
2137 if test -n "$CC"; then
2138   { echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6; }
2140 else
2141   { echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6; }
2143 fi
2144
2145
2146 fi
2147 if test -z "$CC"; then
2148   if test -n "$ac_tool_prefix"; then
2149   for ac_prog in cl.exe
2150   do
2151     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_CC+set}" = set; then
2156   echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158   if test -n "$CC"; then
2159   ac_cv_prog_CC="$CC" # Let the user override the test.
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2163 do
2164   IFS=$as_save_IFS
2165   test -z "$as_dir" && as_dir=.
2166   for ac_exec_ext in '' $ac_executable_extensions; do
2167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170     break 2
2171   fi
2172 done
2173 done
2174 IFS=$as_save_IFS
2175
2176 fi
2177 fi
2178 CC=$ac_cv_prog_CC
2179 if test -n "$CC"; then
2180   { echo "$as_me:$LINENO: result: $CC" >&5
2181 echo "${ECHO_T}$CC" >&6; }
2182 else
2183   { echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6; }
2185 fi
2186
2187
2188     test -n "$CC" && break
2189   done
2190 fi
2191 if test -z "$CC"; then
2192   ac_ct_CC=$CC
2193   for ac_prog in cl.exe
2194 do
2195   # Extract the first word of "$ac_prog", so it can be a program name with args.
2196 set dummy $ac_prog; ac_word=$2
2197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2199 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2200   echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202   if test -n "$ac_ct_CC"; then
2203   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2204 else
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2207 do
2208   IFS=$as_save_IFS
2209   test -z "$as_dir" && as_dir=.
2210   for ac_exec_ext in '' $ac_executable_extensions; do
2211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2212     ac_cv_prog_ac_ct_CC="$ac_prog"
2213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214     break 2
2215   fi
2216 done
2217 done
2218 IFS=$as_save_IFS
2219
2220 fi
2221 fi
2222 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2223 if test -n "$ac_ct_CC"; then
2224   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2225 echo "${ECHO_T}$ac_ct_CC" >&6; }
2226 else
2227   { echo "$as_me:$LINENO: result: no" >&5
2228 echo "${ECHO_T}no" >&6; }
2229 fi
2230
2231
2232   test -n "$ac_ct_CC" && break
2233 done
2234
2235   if test "x$ac_ct_CC" = x; then
2236     CC=""
2237   else
2238     case $cross_compiling:$ac_tool_warned in
2239 yes:)
2240 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2241 whose name does not start with the host triplet.  If you think this
2242 configuration is useful to you, please write to autoconf@gnu.org." >&5
2243 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2244 whose name does not start with the host triplet.  If you think this
2245 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2246 ac_tool_warned=yes ;;
2247 esac
2248     CC=$ac_ct_CC
2249   fi
2250 fi
2251
2252 fi
2253
2254
2255 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: no acceptable C compiler found in \$PATH
2258 See \`config.log' for more details." >&2;}
2259    { (exit 1); exit 1; }; }
2260
2261 # Provide some information about the compiler.
2262 echo "$as_me:$LINENO: checking for C compiler version" >&5
2263 ac_compiler=`set X $ac_compile; echo $2`
2264 { (ac_try="$ac_compiler --version >&5"
2265 case "(($ac_try" in
2266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267   *) ac_try_echo=$ac_try;;
2268 esac
2269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2270   (eval "$ac_compiler --version >&5") 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }
2274 { (ac_try="$ac_compiler -v >&5"
2275 case "(($ac_try" in
2276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277   *) ac_try_echo=$ac_try;;
2278 esac
2279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2280   (eval "$ac_compiler -v >&5") 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); }
2284 { (ac_try="$ac_compiler -V >&5"
2285 case "(($ac_try" in
2286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287   *) ac_try_echo=$ac_try;;
2288 esac
2289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2290   (eval "$ac_compiler -V >&5") 2>&5
2291   ac_status=$?
2292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293   (exit $ac_status); }
2294
2295 cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h.  */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h.  */
2301
2302 int
2303 main ()
2304 {
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 ac_clean_files_save=$ac_clean_files
2311 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2312 # Try to create an executable without -o first, disregard a.out.
2313 # It will help us diagnose broken compilers, and finding out an intuition
2314 # of exeext.
2315 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2316 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2317 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2318 #
2319 # List of possible output files, starting from the most likely.
2320 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2321 # only as a last resort.  b.out is created by i960 compilers.
2322 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2323 #
2324 # The IRIX 6 linker writes into existing files which may not be
2325 # executable, retaining their permissions.  Remove them first so a
2326 # subsequent execution test works.
2327 ac_rmfiles=
2328 for ac_file in $ac_files
2329 do
2330   case $ac_file in
2331     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2332     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2333   esac
2334 done
2335 rm -f $ac_rmfiles
2336
2337 if { (ac_try="$ac_link_default"
2338 case "(($ac_try" in
2339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340   *) ac_try_echo=$ac_try;;
2341 esac
2342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2343   (eval "$ac_link_default") 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); }; then
2347   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2348 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2349 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2350 # so that the user can short-circuit this test for compilers unknown to
2351 # Autoconf.
2352 for ac_file in $ac_files ''
2353 do
2354   test -f "$ac_file" || continue
2355   case $ac_file in
2356     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2357         ;;
2358     [ab].out )
2359         # We found the default executable, but exeext='' is most
2360         # certainly right.
2361         break;;
2362     *.* )
2363         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2364         then :; else
2365            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2366         fi
2367         # We set ac_cv_exeext here because the later test for it is not
2368         # safe: cross compilers may not add the suffix if given an `-o'
2369         # argument, so we may need to know it at that point already.
2370         # Even if this section looks crufty: it has the advantage of
2371         # actually working.
2372         break;;
2373     * )
2374         break;;
2375   esac
2376 done
2377 test "$ac_cv_exeext" = no && ac_cv_exeext=
2378
2379 else
2380   ac_file=''
2381 fi
2382
2383 { echo "$as_me:$LINENO: result: $ac_file" >&5
2384 echo "${ECHO_T}$ac_file" >&6; }
2385 if test -z "$ac_file"; then
2386   echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2388
2389 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: C compiler cannot create executables
2392 See \`config.log' for more details." >&2;}
2393    { (exit 77); exit 77; }; }
2394 fi
2395
2396 ac_exeext=$ac_cv_exeext
2397
2398 # Check that the compiler produces executables we can run.  If not, either
2399 # the compiler is broken, or we cross compile.
2400 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2401 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2402 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2403 # If not cross compiling, check that we can run a simple program.
2404 if test "$cross_compiling" != yes; then
2405   if { ac_try='./$ac_file'
2406   { (case "(($ac_try" in
2407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408   *) ac_try_echo=$ac_try;;
2409 esac
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411   (eval "$ac_try") 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; }; then
2415     cross_compiling=no
2416   else
2417     if test "$cross_compiling" = maybe; then
2418         cross_compiling=yes
2419     else
2420         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2421 If you meant to cross compile, use \`--host'.
2422 See \`config.log' for more details." >&5
2423 echo "$as_me: error: cannot run C compiled programs.
2424 If you meant to cross compile, use \`--host'.
2425 See \`config.log' for more details." >&2;}
2426    { (exit 1); exit 1; }; }
2427     fi
2428   fi
2429 fi
2430 { echo "$as_me:$LINENO: result: yes" >&5
2431 echo "${ECHO_T}yes" >&6; }
2432
2433 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2434 ac_clean_files=$ac_clean_files_save
2435 # Check that the compiler produces executables we can run.  If not, either
2436 # the compiler is broken, or we cross compile.
2437 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2438 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2439 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2440 echo "${ECHO_T}$cross_compiling" >&6; }
2441
2442 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2443 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2444 if { (ac_try="$ac_link"
2445 case "(($ac_try" in
2446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447   *) ac_try_echo=$ac_try;;
2448 esac
2449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2450   (eval "$ac_link") 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }; then
2454   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2455 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2456 # work properly (i.e., refer to `conftest.exe'), while it won't with
2457 # `rm'.
2458 for ac_file in conftest.exe conftest conftest.*; do
2459   test -f "$ac_file" || continue
2460   case $ac_file in
2461     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2462     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2463           break;;
2464     * ) break;;
2465   esac
2466 done
2467 else
2468   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2469 See \`config.log' for more details." >&5
2470 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2471 See \`config.log' for more details." >&2;}
2472    { (exit 1); exit 1; }; }
2473 fi
2474
2475 rm -f conftest$ac_cv_exeext
2476 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2477 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2478
2479 rm -f conftest.$ac_ext
2480 EXEEXT=$ac_cv_exeext
2481 ac_exeext=$EXEEXT
2482 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2483 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2484 if test "${ac_cv_objext+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h.  */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h.  */
2493
2494 int
2495 main ()
2496 {
2497
2498   ;
2499   return 0;
2500 }
2501 _ACEOF
2502 rm -f conftest.o conftest.obj
2503 if { (ac_try="$ac_compile"
2504 case "(($ac_try" in
2505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506   *) ac_try_echo=$ac_try;;
2507 esac
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509   (eval "$ac_compile") 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; then
2513   for ac_file in conftest.o conftest.obj conftest.*; do
2514   test -f "$ac_file" || continue;
2515   case $ac_file in
2516     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2517     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2518        break;;
2519   esac
2520 done
2521 else
2522   echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2524
2525 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2528 See \`config.log' for more details." >&2;}
2529    { (exit 1); exit 1; }; }
2530 fi
2531
2532 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2533 fi
2534 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2535 echo "${ECHO_T}$ac_cv_objext" >&6; }
2536 OBJEXT=$ac_cv_objext
2537 ac_objext=$OBJEXT
2538 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2539 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2540 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2541   echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543   cat >conftest.$ac_ext <<_ACEOF
2544 /* confdefs.h.  */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h.  */
2549
2550 int
2551 main ()
2552 {
2553 #ifndef __GNUC__
2554        choke me
2555 #endif
2556
2557   ;
2558   return 0;
2559 }
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (ac_try="$ac_compile"
2563 case "(($ac_try" in
2564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565   *) ac_try_echo=$ac_try;;
2566 esac
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568   (eval "$ac_compile") 2>conftest.er1
2569   ac_status=$?
2570   grep -v '^ *+' conftest.er1 >conftest.err
2571   rm -f conftest.er1
2572   cat conftest.err >&5
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); } && {
2575          test -z "$ac_c_werror_flag" ||
2576          test ! -s conftest.err
2577        } && test -s conftest.$ac_objext; then
2578   ac_compiler_gnu=yes
2579 else
2580   echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583         ac_compiler_gnu=no
2584 fi
2585
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2588
2589 fi
2590 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2591 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2592 GCC=`test $ac_compiler_gnu = yes && echo yes`
2593 ac_test_CFLAGS=${CFLAGS+set}
2594 ac_save_CFLAGS=$CFLAGS
2595 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2596 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_cc_g+set}" = set; then
2598   echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600   ac_save_c_werror_flag=$ac_c_werror_flag
2601    ac_c_werror_flag=yes
2602    ac_cv_prog_cc_g=no
2603    CFLAGS="-g"
2604    cat >conftest.$ac_ext <<_ACEOF
2605 /* confdefs.h.  */
2606 _ACEOF
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h.  */
2610
2611 int
2612 main ()
2613 {
2614
2615   ;
2616   return 0;
2617 }
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (ac_try="$ac_compile"
2621 case "(($ac_try" in
2622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623   *) ac_try_echo=$ac_try;;
2624 esac
2625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626   (eval "$ac_compile") 2>conftest.er1
2627   ac_status=$?
2628   grep -v '^ *+' conftest.er1 >conftest.err
2629   rm -f conftest.er1
2630   cat conftest.err >&5
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } && {
2633          test -z "$ac_c_werror_flag" ||
2634          test ! -s conftest.err
2635        } && test -s conftest.$ac_objext; then
2636   ac_cv_prog_cc_g=yes
2637 else
2638   echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2640
2641         CFLAGS=""
2642       cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648
2649 int
2650 main ()
2651 {
2652
2653   ;
2654   return 0;
2655 }
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (ac_try="$ac_compile"
2659 case "(($ac_try" in
2660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661   *) ac_try_echo=$ac_try;;
2662 esac
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664   (eval "$ac_compile") 2>conftest.er1
2665   ac_status=$?
2666   grep -v '^ *+' conftest.er1 >conftest.err
2667   rm -f conftest.er1
2668   cat conftest.err >&5
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); } && {
2671          test -z "$ac_c_werror_flag" ||
2672          test ! -s conftest.err
2673        } && test -s conftest.$ac_objext; then
2674   :
2675 else
2676   echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2678
2679         ac_c_werror_flag=$ac_save_c_werror_flag
2680          CFLAGS="-g"
2681          cat >conftest.$ac_ext <<_ACEOF
2682 /* confdefs.h.  */
2683 _ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h.  */
2687
2688 int
2689 main ()
2690 {
2691
2692   ;
2693   return 0;
2694 }
2695 _ACEOF
2696 rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2698 case "(($ac_try" in
2699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700   *) ac_try_echo=$ac_try;;
2701 esac
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703   (eval "$ac_compile") 2>conftest.er1
2704   ac_status=$?
2705   grep -v '^ *+' conftest.er1 >conftest.err
2706   rm -f conftest.er1
2707   cat conftest.err >&5
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); } && {
2710          test -z "$ac_c_werror_flag" ||
2711          test ! -s conftest.err
2712        } && test -s conftest.$ac_objext; then
2713   ac_cv_prog_cc_g=yes
2714 else
2715   echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718
2719 fi
2720
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 fi
2723
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 fi
2726
2727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728    ac_c_werror_flag=$ac_save_c_werror_flag
2729 fi
2730 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2731 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2732 if test "$ac_test_CFLAGS" = set; then
2733   CFLAGS=$ac_save_CFLAGS
2734 elif test $ac_cv_prog_cc_g = yes; then
2735   if test "$GCC" = yes; then
2736     CFLAGS="-g -O2"
2737   else
2738     CFLAGS="-g"
2739   fi
2740 else
2741   if test "$GCC" = yes; then
2742     CFLAGS="-O2"
2743   else
2744     CFLAGS=
2745   fi
2746 fi
2747 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2748 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2749 if test "${ac_cv_prog_cc_c89+set}" = set; then
2750   echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752   ac_cv_prog_cc_c89=no
2753 ac_save_CC=$CC
2754 cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h.  */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h.  */
2760 #include <stdarg.h>
2761 #include <stdio.h>
2762 #include <sys/types.h>
2763 #include <sys/stat.h>
2764 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2765 struct buf { int x; };
2766 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2767 static char *e (p, i)
2768      char **p;
2769      int i;
2770 {
2771   return p[i];
2772 }
2773 static char *f (char * (*g) (char **, int), char **p, ...)
2774 {
2775   char *s;
2776   va_list v;
2777   va_start (v,p);
2778   s = g (p, va_arg (v,int));
2779   va_end (v);
2780   return s;
2781 }
2782
2783 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2784    function prototypes and stuff, but not '\xHH' hex character constants.
2785    These don't provoke an error unfortunately, instead are silently treated
2786    as 'x'.  The following induces an error, until -std is added to get
2787    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2788    array size at least.  It's necessary to write '\x00'==0 to get something
2789    that's true only with -std.  */
2790 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2791
2792 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2793    inside strings and character constants.  */
2794 #define FOO(x) 'x'
2795 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2796
2797 int test (int i, double x);
2798 struct s1 {int (*f) (int a);};
2799 struct s2 {int (*f) (double a);};
2800 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2801 int argc;
2802 char **argv;
2803 int
2804 main ()
2805 {
2806 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2807   ;
2808   return 0;
2809 }
2810 _ACEOF
2811 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2812         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2813 do
2814   CC="$ac_save_CC $ac_arg"
2815   rm -f conftest.$ac_objext
2816 if { (ac_try="$ac_compile"
2817 case "(($ac_try" in
2818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819   *) ac_try_echo=$ac_try;;
2820 esac
2821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822   (eval "$ac_compile") 2>conftest.er1
2823   ac_status=$?
2824   grep -v '^ *+' conftest.er1 >conftest.err
2825   rm -f conftest.er1
2826   cat conftest.err >&5
2827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828   (exit $ac_status); } && {
2829          test -z "$ac_c_werror_flag" ||
2830          test ! -s conftest.err
2831        } && test -s conftest.$ac_objext; then
2832   ac_cv_prog_cc_c89=$ac_arg
2833 else
2834   echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837
2838 fi
2839
2840 rm -f core conftest.err conftest.$ac_objext
2841   test "x$ac_cv_prog_cc_c89" != "xno" && break
2842 done
2843 rm -f conftest.$ac_ext
2844 CC=$ac_save_CC
2845
2846 fi
2847 # AC_CACHE_VAL
2848 case "x$ac_cv_prog_cc_c89" in
2849   x)
2850     { echo "$as_me:$LINENO: result: none needed" >&5
2851 echo "${ECHO_T}none needed" >&6; } ;;
2852   xno)
2853     { echo "$as_me:$LINENO: result: unsupported" >&5
2854 echo "${ECHO_T}unsupported" >&6; } ;;
2855   *)
2856     CC="$CC $ac_cv_prog_cc_c89"
2857     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2858 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2859 esac
2860
2861
2862 ac_ext=c
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867
2868 ac_ext=cpp
2869 ac_cpp='$CXXCPP $CPPFLAGS'
2870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2873 if test -z "$CXX"; then
2874   if test -n "$CCC"; then
2875     CXX=$CCC
2876   else
2877     if test -n "$ac_tool_prefix"; then
2878   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2879   do
2880     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2884 if test "${ac_cv_prog_CXX+set}" = set; then
2885   echo $ECHO_N "(cached) $ECHO_C" >&6
2886 else
2887   if test -n "$CXX"; then
2888   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893   IFS=$as_save_IFS
2894   test -z "$as_dir" && as_dir=.
2895   for ac_exec_ext in '' $ac_executable_extensions; do
2896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899     break 2
2900   fi
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 CXX=$ac_cv_prog_CXX
2908 if test -n "$CXX"; then
2909   { echo "$as_me:$LINENO: result: $CXX" >&5
2910 echo "${ECHO_T}$CXX" >&6; }
2911 else
2912   { echo "$as_me:$LINENO: result: no" >&5
2913 echo "${ECHO_T}no" >&6; }
2914 fi
2915
2916
2917     test -n "$CXX" && break
2918   done
2919 fi
2920 if test -z "$CXX"; then
2921   ac_ct_CXX=$CXX
2922   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2923 do
2924   # Extract the first word of "$ac_prog", so it can be a program name with args.
2925 set dummy $ac_prog; ac_word=$2
2926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2928 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2929   echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931   if test -n "$ac_ct_CXX"; then
2932   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937   IFS=$as_save_IFS
2938   test -z "$as_dir" && as_dir=.
2939   for ac_exec_ext in '' $ac_executable_extensions; do
2940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941     ac_cv_prog_ac_ct_CXX="$ac_prog"
2942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2943     break 2
2944   fi
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2952 if test -n "$ac_ct_CXX"; then
2953   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2954 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2955 else
2956   { echo "$as_me:$LINENO: result: no" >&5
2957 echo "${ECHO_T}no" >&6; }
2958 fi
2959
2960
2961   test -n "$ac_ct_CXX" && break
2962 done
2963
2964   if test "x$ac_ct_CXX" = x; then
2965     CXX="g++"
2966   else
2967     case $cross_compiling:$ac_tool_warned in
2968 yes:)
2969 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2970 whose name does not start with the host triplet.  If you think this
2971 configuration is useful to you, please write to autoconf@gnu.org." >&5
2972 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2973 whose name does not start with the host triplet.  If you think this
2974 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2975 ac_tool_warned=yes ;;
2976 esac
2977     CXX=$ac_ct_CXX
2978   fi
2979 fi
2980
2981   fi
2982 fi
2983 # Provide some information about the compiler.
2984 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2985 ac_compiler=`set X $ac_compile; echo $2`
2986 { (ac_try="$ac_compiler --version >&5"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_compiler --version >&5") 2>&5
2993   ac_status=$?
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); }
2996 { (ac_try="$ac_compiler -v >&5"
2997 case "(($ac_try" in
2998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999   *) ac_try_echo=$ac_try;;
3000 esac
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002   (eval "$ac_compiler -v >&5") 2>&5
3003   ac_status=$?
3004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005   (exit $ac_status); }
3006 { (ac_try="$ac_compiler -V >&5"
3007 case "(($ac_try" in
3008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009   *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012   (eval "$ac_compiler -V >&5") 2>&5
3013   ac_status=$?
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); }
3016
3017 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3018 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3019 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3020   echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022   cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h.  */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h.  */
3028
3029 int
3030 main ()
3031 {
3032 #ifndef __GNUC__
3033        choke me
3034 #endif
3035
3036   ;
3037   return 0;
3038 }
3039 _ACEOF
3040 rm -f conftest.$ac_objext
3041 if { (ac_try="$ac_compile"
3042 case "(($ac_try" in
3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044   *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047   (eval "$ac_compile") 2>conftest.er1
3048   ac_status=$?
3049   grep -v '^ *+' conftest.er1 >conftest.err
3050   rm -f conftest.er1
3051   cat conftest.err >&5
3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); } && {
3054          test -z "$ac_cxx_werror_flag" ||
3055          test ! -s conftest.err
3056        } && test -s conftest.$ac_objext; then
3057   ac_compiler_gnu=yes
3058 else
3059   echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3061
3062         ac_compiler_gnu=no
3063 fi
3064
3065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3066 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3067
3068 fi
3069 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3070 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3071 GXX=`test $ac_compiler_gnu = yes && echo yes`
3072 ac_test_CXXFLAGS=${CXXFLAGS+set}
3073 ac_save_CXXFLAGS=$CXXFLAGS
3074 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3075 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3076 if test "${ac_cv_prog_cxx_g+set}" = set; then
3077   echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3080    ac_cxx_werror_flag=yes
3081    ac_cv_prog_cxx_g=no
3082    CXXFLAGS="-g"
3083    cat >conftest.$ac_ext <<_ACEOF
3084 /* confdefs.h.  */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h.  */
3089
3090 int
3091 main ()
3092 {
3093
3094   ;
3095   return 0;
3096 }
3097 _ACEOF
3098 rm -f conftest.$ac_objext
3099 if { (ac_try="$ac_compile"
3100 case "(($ac_try" in
3101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102   *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105   (eval "$ac_compile") 2>conftest.er1
3106   ac_status=$?
3107   grep -v '^ *+' conftest.er1 >conftest.err
3108   rm -f conftest.er1
3109   cat conftest.err >&5
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); } && {
3112          test -z "$ac_cxx_werror_flag" ||
3113          test ! -s conftest.err
3114        } && test -s conftest.$ac_objext; then
3115   ac_cv_prog_cxx_g=yes
3116 else
3117   echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3119
3120         CXXFLAGS=""
3121       cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127
3128 int
3129 main ()
3130 {
3131
3132   ;
3133   return 0;
3134 }
3135 _ACEOF
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3138 case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143   (eval "$ac_compile") 2>conftest.er1
3144   ac_status=$?
3145   grep -v '^ *+' conftest.er1 >conftest.err
3146   rm -f conftest.er1
3147   cat conftest.err >&5
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); } && {
3150          test -z "$ac_cxx_werror_flag" ||
3151          test ! -s conftest.err
3152        } && test -s conftest.$ac_objext; then
3153   :
3154 else
3155   echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3159          CXXFLAGS="-g"
3160          cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h.  */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h.  */
3166
3167 int
3168 main ()
3169 {
3170
3171   ;
3172   return 0;
3173 }
3174 _ACEOF
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_compile") 2>conftest.er1
3183   ac_status=$?
3184   grep -v '^ *+' conftest.er1 >conftest.err
3185   rm -f conftest.er1
3186   cat conftest.err >&5
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); } && {
3189          test -z "$ac_cxx_werror_flag" ||
3190          test ! -s conftest.err
3191        } && test -s conftest.$ac_objext; then
3192   ac_cv_prog_cxx_g=yes
3193 else
3194   echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197
3198 fi
3199
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 fi
3202
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 fi
3205
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3208 fi
3209 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3210 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3211 if test "$ac_test_CXXFLAGS" = set; then
3212   CXXFLAGS=$ac_save_CXXFLAGS
3213 elif test $ac_cv_prog_cxx_g = yes; then
3214   if test "$GXX" = yes; then
3215     CXXFLAGS="-g -O2"
3216   else
3217     CXXFLAGS="-g"
3218   fi
3219 else
3220   if test "$GXX" = yes; then
3221     CXXFLAGS="-O2"
3222   else
3223     CXXFLAGS=
3224   fi
3225 fi
3226 ac_ext=c
3227 ac_cpp='$CPP $CPPFLAGS'
3228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231
3232
3233
3234 ac_ext=c
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3240 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3241 # On Suns, sometimes $CPP names a directory.
3242 if test -n "$CPP" && test -d "$CPP"; then
3243   CPP=
3244 fi
3245 if test -z "$CPP"; then
3246   if test "${ac_cv_prog_CPP+set}" = set; then
3247   echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249       # Double quotes because CPP needs to be expanded
3250     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3251     do
3252       ac_preproc_ok=false
3253 for ac_c_preproc_warn_flag in '' yes
3254 do
3255   # Use a header file that comes with gcc, so configuring glibc
3256   # with a fresh cross-compiler works.
3257   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3258   # <limits.h> exists even on freestanding compilers.
3259   # On the NeXT, cc -E runs the code through the compiler's parser,
3260   # not just through cpp. "Syntax error" is here to catch this case.
3261   cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h.  */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h.  */
3267 #ifdef __STDC__
3268 # include <limits.h>
3269 #else
3270 # include <assert.h>
3271 #endif
3272                      Syntax error
3273 _ACEOF
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } >/dev/null && {
3287          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3288          test ! -s conftest.err
3289        }; then
3290   :
3291 else
3292   echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3294
3295   # Broken: fails on valid input.
3296 continue
3297 fi
3298
3299 rm -f conftest.err conftest.$ac_ext
3300
3301   # OK, works on sane cases.  Now check whether nonexistent headers
3302   # can be detected and how.
3303   cat >conftest.$ac_ext <<_ACEOF
3304 /* confdefs.h.  */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h.  */
3309 #include <ac_nonexistent.h>
3310 _ACEOF
3311 if { (ac_try="$ac_cpp conftest.$ac_ext"
3312 case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3318   ac_status=$?
3319   grep -v '^ *+' conftest.er1 >conftest.err
3320   rm -f conftest.er1
3321   cat conftest.err >&5
3322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323   (exit $ac_status); } >/dev/null && {
3324          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3325          test ! -s conftest.err
3326        }; then
3327   # Broken: success on invalid input.
3328 continue
3329 else
3330   echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333   # Passes both tests.
3334 ac_preproc_ok=:
3335 break
3336 fi
3337
3338 rm -f conftest.err conftest.$ac_ext
3339
3340 done
3341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3342 rm -f conftest.err conftest.$ac_ext
3343 if $ac_preproc_ok; then
3344   break
3345 fi
3346
3347     done
3348     ac_cv_prog_CPP=$CPP
3349
3350 fi
3351   CPP=$ac_cv_prog_CPP
3352 else
3353   ac_cv_prog_CPP=$CPP
3354 fi
3355 { echo "$as_me:$LINENO: result: $CPP" >&5
3356 echo "${ECHO_T}$CPP" >&6; }
3357 ac_preproc_ok=false
3358 for ac_c_preproc_warn_flag in '' yes
3359 do
3360   # Use a header file that comes with gcc, so configuring glibc
3361   # with a fresh cross-compiler works.
3362   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3363   # <limits.h> exists even on freestanding compilers.
3364   # On the NeXT, cc -E runs the code through the compiler's parser,
3365   # not just through cpp. "Syntax error" is here to catch this case.
3366   cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h.  */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h.  */
3372 #ifdef __STDC__
3373 # include <limits.h>
3374 #else
3375 # include <assert.h>
3376 #endif
3377                      Syntax error
3378 _ACEOF
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3380 case "(($ac_try" in
3381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382   *) ac_try_echo=$ac_try;;
3383 esac
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3386   ac_status=$?
3387   grep -v '^ *+' conftest.er1 >conftest.err
3388   rm -f conftest.er1
3389   cat conftest.err >&5
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); } >/dev/null && {
3392          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3393          test ! -s conftest.err
3394        }; then
3395   :
3396 else
3397   echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400   # Broken: fails on valid input.
3401 continue
3402 fi
3403
3404 rm -f conftest.err conftest.$ac_ext
3405
3406   # OK, works on sane cases.  Now check whether nonexistent headers
3407   # can be detected and how.
3408   cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h.  */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h.  */
3414 #include <ac_nonexistent.h>
3415 _ACEOF
3416 if { (ac_try="$ac_cpp conftest.$ac_ext"
3417 case "(($ac_try" in
3418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419   *) ac_try_echo=$ac_try;;
3420 esac
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3423   ac_status=$?
3424   grep -v '^ *+' conftest.er1 >conftest.err
3425   rm -f conftest.er1
3426   cat conftest.err >&5
3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428   (exit $ac_status); } >/dev/null && {
3429          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3430          test ! -s conftest.err
3431        }; then
3432   # Broken: success on invalid input.
3433 continue
3434 else
3435   echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438   # Passes both tests.
3439 ac_preproc_ok=:
3440 break
3441 fi
3442
3443 rm -f conftest.err conftest.$ac_ext
3444
3445 done
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3449   :
3450 else
3451   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&5
3453 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&2;}
3455    { (exit 1); exit 1; }; }
3456 fi
3457
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464
3465 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3466 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3467 if test "${ac_cv_path_GREP+set}" = set; then
3468   echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470   # Extract the first word of "grep ggrep" to use in msg output
3471 if test -z "$GREP"; then
3472 set dummy grep ggrep; ac_prog_name=$2
3473 if test "${ac_cv_path_GREP+set}" = set; then
3474   echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476   ac_path_GREP_found=false
3477 # Loop through the user's path and test for each of PROGNAME-LIST
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3480 do
3481   IFS=$as_save_IFS
3482   test -z "$as_dir" && as_dir=.
3483   for ac_prog in grep ggrep; do
3484   for ac_exec_ext in '' $ac_executable_extensions; do
3485     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3486     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3487     # Check for GNU ac_path_GREP and select it if it is found.
3488   # Check for GNU $ac_path_GREP
3489 case `"$ac_path_GREP" --version 2>&1` in
3490 *GNU*)
3491   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3492 *)
3493   ac_count=0
3494   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3495   while :
3496   do
3497     cat "conftest.in" "conftest.in" >"conftest.tmp"
3498     mv "conftest.tmp" "conftest.in"
3499     cp "conftest.in" "conftest.nl"
3500     echo 'GREP' >> "conftest.nl"
3501     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3502     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3503     ac_count=`expr $ac_count + 1`
3504     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3505       # Best one so far, save it but keep looking for a better one
3506       ac_cv_path_GREP="$ac_path_GREP"
3507       ac_path_GREP_max=$ac_count
3508     fi
3509     # 10*(2^10) chars as input seems more than enough
3510     test $ac_count -gt 10 && break
3511   done
3512   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3513 esac
3514
3515
3516     $ac_path_GREP_found && break 3
3517   done
3518 done
3519
3520 done
3521 IFS=$as_save_IFS
3522
3523
3524 fi
3525
3526 GREP="$ac_cv_path_GREP"
3527 if test -z "$GREP"; then
3528   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3529 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3530    { (exit 1); exit 1; }; }
3531 fi
3532
3533 else
3534   ac_cv_path_GREP=$GREP
3535 fi
3536
3537
3538 fi
3539 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3540 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3541  GREP="$ac_cv_path_GREP"
3542
3543
3544 { echo "$as_me:$LINENO: checking for egrep" >&5
3545 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3546 if test "${ac_cv_path_EGREP+set}" = set; then
3547   echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3550    then ac_cv_path_EGREP="$GREP -E"
3551    else
3552      # Extract the first word of "egrep" to use in msg output
3553 if test -z "$EGREP"; then
3554 set dummy egrep; ac_prog_name=$2
3555 if test "${ac_cv_path_EGREP+set}" = set; then
3556   echo $ECHO_N "(cached) $ECHO_C" >&6
3557 else
3558   ac_path_EGREP_found=false
3559 # Loop through the user's path and test for each of PROGNAME-LIST
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3562 do
3563   IFS=$as_save_IFS
3564   test -z "$as_dir" && as_dir=.
3565   for ac_prog in egrep; do
3566   for ac_exec_ext in '' $ac_executable_extensions; do
3567     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3568     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3569     # Check for GNU ac_path_EGREP and select it if it is found.
3570   # Check for GNU $ac_path_EGREP
3571 case `"$ac_path_EGREP" --version 2>&1` in
3572 *GNU*)
3573   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3574 *)
3575   ac_count=0
3576   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3577   while :
3578   do
3579     cat "conftest.in" "conftest.in" >"conftest.tmp"
3580     mv "conftest.tmp" "conftest.in"
3581     cp "conftest.in" "conftest.nl"
3582     echo 'EGREP' >> "conftest.nl"
3583     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3584     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3585     ac_count=`expr $ac_count + 1`
3586     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3587       # Best one so far, save it but keep looking for a better one
3588       ac_cv_path_EGREP="$ac_path_EGREP"
3589       ac_path_EGREP_max=$ac_count
3590     fi
3591     # 10*(2^10) chars as input seems more than enough
3592     test $ac_count -gt 10 && break
3593   done
3594   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3595 esac
3596
3597
3598     $ac_path_EGREP_found && break 3
3599   done
3600 done
3601
3602 done
3603 IFS=$as_save_IFS
3604
3605
3606 fi
3607
3608 EGREP="$ac_cv_path_EGREP"
3609 if test -z "$EGREP"; then
3610   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3611 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3612    { (exit 1); exit 1; }; }
3613 fi
3614
3615 else
3616   ac_cv_path_EGREP=$EGREP
3617 fi
3618
3619
3620    fi
3621 fi
3622 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3623 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3624  EGREP="$ac_cv_path_EGREP"
3625
3626
3627
3628 { echo "$as_me:$LINENO: checking for AIX" >&5
3629 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3630 cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h.  */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h.  */
3636 #ifdef _AIX
3637   yes
3638 #endif
3639
3640 _ACEOF
3641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3642   $EGREP "yes" >/dev/null 2>&1; then
3643   { echo "$as_me:$LINENO: result: yes" >&5
3644 echo "${ECHO_T}yes" >&6; }
3645 cat >>confdefs.h <<\_ACEOF
3646 #define _ALL_SOURCE 1
3647 _ACEOF
3648
3649 else
3650   { echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6; }
3652 fi
3653 rm -f conftest*
3654
3655
3656
3657 if test $ac_cv_c_compiler_gnu = yes; then
3658     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3659 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3660 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663     ac_pattern="Autoconf.*'x'"
3664   cat >conftest.$ac_ext <<_ACEOF
3665 /* confdefs.h.  */
3666 _ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h.  */
3670 #include <sgtty.h>
3671 Autoconf TIOCGETP
3672 _ACEOF
3673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3674   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3675   ac_cv_prog_gcc_traditional=yes
3676 else
3677   ac_cv_prog_gcc_traditional=no
3678 fi
3679 rm -f conftest*
3680
3681
3682   if test $ac_cv_prog_gcc_traditional = no; then
3683     cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h.  */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h.  */
3689 #include <termio.h>
3690 Autoconf TCGETA
3691 _ACEOF
3692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3693   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3694   ac_cv_prog_gcc_traditional=yes
3695 fi
3696 rm -f conftest*
3697
3698   fi
3699 fi
3700 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3701 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3702   if test $ac_cv_prog_gcc_traditional = yes; then
3703     CC="$CC -traditional"
3704   fi
3705 fi
3706
3707 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3708 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3709 if test "${ac_cv_prog_suncc+set}" = set; then
3710   echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712   cat > conftest.c <<EOF
3713 #ifdef __SUNPRO_C
3714   yes;
3715 #endif
3716 EOF
3717 if { ac_try='${CC-cc} -E conftest.c'
3718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719   (eval $ac_try) 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3723   ac_cv_prog_suncc=yes
3724 else
3725   ac_cv_prog_suncc=no
3726 fi
3727 fi
3728 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3729 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3730 if test -n "$ac_tool_prefix"; then
3731   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3732 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3735 if test "${ac_cv_prog_RANLIB+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   if test -n "$RANLIB"; then
3739   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746   for ac_exec_ext in '' $ac_executable_extensions; do
3747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3750     break 2
3751   fi
3752 done
3753 done
3754 IFS=$as_save_IFS
3755
3756 fi
3757 fi
3758 RANLIB=$ac_cv_prog_RANLIB
3759 if test -n "$RANLIB"; then
3760   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3761 echo "${ECHO_T}$RANLIB" >&6; }
3762 else
3763   { echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6; }
3765 fi
3766
3767
3768 fi
3769 if test -z "$ac_cv_prog_RANLIB"; then
3770   ac_ct_RANLIB=$RANLIB
3771   # Extract the first word of "ranlib", so it can be a program name with args.
3772 set dummy ranlib; ac_word=$2
3773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3775 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3776   echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778   if test -n "$ac_ct_RANLIB"; then
3779   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3780 else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3783 do
3784   IFS=$as_save_IFS
3785   test -z "$as_dir" && as_dir=.
3786   for ac_exec_ext in '' $ac_executable_extensions; do
3787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3788     ac_cv_prog_ac_ct_RANLIB="ranlib"
3789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3790     break 2
3791   fi
3792 done
3793 done
3794 IFS=$as_save_IFS
3795
3796 fi
3797 fi
3798 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3799 if test -n "$ac_ct_RANLIB"; then
3800   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3801 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3802 else
3803   { echo "$as_me:$LINENO: result: no" >&5
3804 echo "${ECHO_T}no" >&6; }
3805 fi
3806
3807   if test "x$ac_ct_RANLIB" = x; then
3808     RANLIB=":"
3809   else
3810     case $cross_compiling:$ac_tool_warned in
3811 yes:)
3812 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3813 whose name does not start with the host triplet.  If you think this
3814 configuration is useful to you, please write to autoconf@gnu.org." >&5
3815 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3816 whose name does not start with the host triplet.  If you think this
3817 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3818 ac_tool_warned=yes ;;
3819 esac
3820     RANLIB=$ac_ct_RANLIB
3821   fi
3822 else
3823   RANLIB="$ac_cv_prog_RANLIB"
3824 fi
3825
3826
3827 # Check whether --enable-largefile was given.
3828 if test "${enable_largefile+set}" = set; then
3829   enableval=$enable_largefile;
3830 fi
3831
3832 if test "$enable_largefile" != no; then
3833
3834   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3835 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3836 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3837   echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839   ac_cv_sys_largefile_CC=no
3840      if test "$GCC" != yes; then
3841        ac_save_CC=$CC
3842        while :; do
3843          # IRIX 6.2 and later do not support large files by default,
3844          # so use the C compiler's -n32 option if that helps.
3845          cat >conftest.$ac_ext <<_ACEOF
3846 /* confdefs.h.  */
3847 _ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h.  */
3851 #include <sys/types.h>
3852  /* Check that off_t can represent 2**63 - 1 correctly.
3853     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3854     since some C++ compilers masquerading as C compilers
3855     incorrectly reject 9223372036854775807.  */
3856 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3857   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3858                        && LARGE_OFF_T % 2147483647 == 1)
3859                       ? 1 : -1];
3860 int
3861 main ()
3862 {
3863
3864   ;
3865   return 0;
3866 }
3867 _ACEOF
3868          rm -f conftest.$ac_objext
3869 if { (ac_try="$ac_compile"
3870 case "(($ac_try" in
3871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872   *) ac_try_echo=$ac_try;;
3873 esac
3874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3875   (eval "$ac_compile") 2>conftest.er1
3876   ac_status=$?
3877   grep -v '^ *+' conftest.er1 >conftest.err
3878   rm -f conftest.er1
3879   cat conftest.err >&5
3880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881   (exit $ac_status); } && {
3882          test -z "$ac_c_werror_flag" ||
3883          test ! -s conftest.err
3884        } && test -s conftest.$ac_objext; then
3885   break
3886 else
3887   echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3889
3890
3891 fi
3892
3893 rm -f core conftest.err conftest.$ac_objext
3894          CC="$CC -n32"
3895          rm -f conftest.$ac_objext
3896 if { (ac_try="$ac_compile"
3897 case "(($ac_try" in
3898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899   *) ac_try_echo=$ac_try;;
3900 esac
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902   (eval "$ac_compile") 2>conftest.er1
3903   ac_status=$?
3904   grep -v '^ *+' conftest.er1 >conftest.err
3905   rm -f conftest.er1
3906   cat conftest.err >&5
3907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908   (exit $ac_status); } && {
3909          test -z "$ac_c_werror_flag" ||
3910          test ! -s conftest.err
3911        } && test -s conftest.$ac_objext; then
3912   ac_cv_sys_largefile_CC=' -n32'; break
3913 else
3914   echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3916
3917
3918 fi
3919
3920 rm -f core conftest.err conftest.$ac_objext
3921          break
3922        done
3923        CC=$ac_save_CC
3924        rm -f conftest.$ac_ext
3925     fi
3926 fi
3927 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3928 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3929   if test "$ac_cv_sys_largefile_CC" != no; then
3930     CC=$CC$ac_cv_sys_largefile_CC
3931   fi
3932
3933   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3934 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3935 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3936   echo $ECHO_N "(cached) $ECHO_C" >&6
3937 else
3938   while :; do
3939   cat >conftest.$ac_ext <<_ACEOF
3940 /* confdefs.h.  */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h.  */
3945 #include <sys/types.h>
3946  /* Check that off_t can represent 2**63 - 1 correctly.
3947     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3948     since some C++ compilers masquerading as C compilers
3949     incorrectly reject 9223372036854775807.  */
3950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3951   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3952                        && LARGE_OFF_T % 2147483647 == 1)
3953                       ? 1 : -1];
3954 int
3955 main ()
3956 {
3957
3958   ;
3959   return 0;
3960 }
3961 _ACEOF
3962 rm -f conftest.$ac_objext
3963 if { (ac_try="$ac_compile"
3964 case "(($ac_try" in
3965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966   *) ac_try_echo=$ac_try;;
3967 esac
3968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969   (eval "$ac_compile") 2>conftest.er1
3970   ac_status=$?
3971   grep -v '^ *+' conftest.er1 >conftest.err
3972   rm -f conftest.er1
3973   cat conftest.err >&5
3974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975   (exit $ac_status); } && {
3976          test -z "$ac_c_werror_flag" ||
3977          test ! -s conftest.err
3978        } && test -s conftest.$ac_objext; then
3979   ac_cv_sys_file_offset_bits=no; break
3980 else
3981   echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3983
3984
3985 fi
3986
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988   cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h.  */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h.  */
3994 #define _FILE_OFFSET_BITS 64
3995 #include <sys/types.h>
3996  /* Check that off_t can represent 2**63 - 1 correctly.
3997     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3998     since some C++ compilers masquerading as C compilers
3999     incorrectly reject 9223372036854775807.  */
4000 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4001   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4002                        && LARGE_OFF_T % 2147483647 == 1)
4003                       ? 1 : -1];
4004 int
4005 main ()
4006 {
4007
4008   ;
4009   return 0;
4010 }
4011 _ACEOF
4012 rm -f conftest.$ac_objext
4013 if { (ac_try="$ac_compile"
4014 case "(($ac_try" in
4015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016   *) ac_try_echo=$ac_try;;
4017 esac
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019   (eval "$ac_compile") 2>conftest.er1
4020   ac_status=$?
4021   grep -v '^ *+' conftest.er1 >conftest.err
4022   rm -f conftest.er1
4023   cat conftest.err >&5
4024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025   (exit $ac_status); } && {
4026          test -z "$ac_c_werror_flag" ||
4027          test ! -s conftest.err
4028        } && test -s conftest.$ac_objext; then
4029   ac_cv_sys_file_offset_bits=64; break
4030 else
4031   echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4033
4034
4035 fi
4036
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038   ac_cv_sys_file_offset_bits=unknown
4039   break
4040 done
4041 fi
4042 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4043 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4044 case $ac_cv_sys_file_offset_bits in #(
4045   no | unknown) ;;
4046   *)
4047 cat >>confdefs.h <<_ACEOF
4048 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4049 _ACEOF
4050 ;;
4051 esac
4052 rm -f conftest*
4053   if test $ac_cv_sys_file_offset_bits = unknown; then
4054     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4055 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4056 if test "${ac_cv_sys_large_files+set}" = set; then
4057   echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059   while :; do
4060   cat >conftest.$ac_ext <<_ACEOF
4061 /* confdefs.h.  */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h.  */
4066 #include <sys/types.h>
4067  /* Check that off_t can represent 2**63 - 1 correctly.
4068     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4069     since some C++ compilers masquerading as C compilers
4070     incorrectly reject 9223372036854775807.  */
4071 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4072   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4073                        && LARGE_OFF_T % 2147483647 == 1)
4074                       ? 1 : -1];
4075 int
4076 main ()
4077 {
4078
4079   ;
4080   return 0;
4081 }
4082 _ACEOF
4083 rm -f conftest.$ac_objext
4084 if { (ac_try="$ac_compile"
4085 case "(($ac_try" in
4086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087   *) ac_try_echo=$ac_try;;
4088 esac
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090   (eval "$ac_compile") 2>conftest.er1
4091   ac_status=$?
4092   grep -v '^ *+' conftest.er1 >conftest.err
4093   rm -f conftest.er1
4094   cat conftest.err >&5
4095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096   (exit $ac_status); } && {
4097          test -z "$ac_c_werror_flag" ||
4098          test ! -s conftest.err
4099        } && test -s conftest.$ac_objext; then
4100   ac_cv_sys_large_files=no; break
4101 else
4102   echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4104
4105
4106 fi
4107
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109   cat >conftest.$ac_ext <<_ACEOF
4110 /* confdefs.h.  */
4111 _ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h.  */
4115 #define _LARGE_FILES 1
4116 #include <sys/types.h>
4117  /* Check that off_t can represent 2**63 - 1 correctly.
4118     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4119     since some C++ compilers masquerading as C compilers
4120     incorrectly reject 9223372036854775807.  */
4121 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4122   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4123                        && LARGE_OFF_T % 2147483647 == 1)
4124                       ? 1 : -1];
4125 int
4126 main ()
4127 {
4128
4129   ;
4130   return 0;
4131 }
4132 _ACEOF
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4135 case "(($ac_try" in
4136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137   *) ac_try_echo=$ac_try;;
4138 esac
4139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140   (eval "$ac_compile") 2>conftest.er1
4141   ac_status=$?
4142   grep -v '^ *+' conftest.er1 >conftest.err
4143   rm -f conftest.er1
4144   cat conftest.err >&5
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); } && {
4147          test -z "$ac_c_werror_flag" ||
4148          test ! -s conftest.err
4149        } && test -s conftest.$ac_objext; then
4150   ac_cv_sys_large_files=1; break
4151 else
4152   echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4154
4155
4156 fi
4157
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159   ac_cv_sys_large_files=unknown
4160   break
4161 done
4162 fi
4163 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4164 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4165 case $ac_cv_sys_large_files in #(
4166   no | unknown) ;;
4167   *)
4168 cat >>confdefs.h <<_ACEOF
4169 #define _LARGE_FILES $ac_cv_sys_large_files
4170 _ACEOF
4171 ;;
4172 esac
4173 rm -f conftest*
4174   fi
4175 fi
4176
4177
4178 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4179 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4180 if test "${ac_cv_header_stdc+set}" = set; then
4181   echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183   cat >conftest.$ac_ext <<_ACEOF
4184 /* confdefs.h.  */
4185 _ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h.  */
4189 #include <stdlib.h>
4190 #include <stdarg.h>
4191 #include <string.h>
4192 #include <float.h>
4193
4194 int
4195 main ()
4196 {
4197
4198   ;
4199   return 0;
4200 }
4201 _ACEOF
4202 rm -f conftest.$ac_objext
4203 if { (ac_try="$ac_compile"
4204 case "(($ac_try" in
4205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206   *) ac_try_echo=$ac_try;;
4207 esac
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209   (eval "$ac_compile") 2>conftest.er1
4210   ac_status=$?
4211   grep -v '^ *+' conftest.er1 >conftest.err
4212   rm -f conftest.er1
4213   cat conftest.err >&5
4214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215   (exit $ac_status); } && {
4216          test -z "$ac_c_werror_flag" ||
4217          test ! -s conftest.err
4218        } && test -s conftest.$ac_objext; then
4219   ac_cv_header_stdc=yes
4220 else
4221   echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4223
4224         ac_cv_header_stdc=no
4225 fi
4226
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228
4229 if test $ac_cv_header_stdc = yes; then
4230   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4231   cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h.  */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h.  */
4237 #include <string.h>
4238
4239 _ACEOF
4240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4241   $EGREP "memchr" >/dev/null 2>&1; then
4242   :
4243 else
4244   ac_cv_header_stdc=no
4245 fi
4246 rm -f conftest*
4247
4248 fi
4249
4250 if test $ac_cv_header_stdc = yes; then
4251   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4252   cat >conftest.$ac_ext <<_ACEOF
4253 /* confdefs.h.  */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h.  */
4258 #include <stdlib.h>
4259
4260 _ACEOF
4261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4262   $EGREP "free" >/dev/null 2>&1; then
4263   :
4264 else
4265   ac_cv_header_stdc=no
4266 fi
4267 rm -f conftest*
4268
4269 fi
4270
4271 if test $ac_cv_header_stdc = yes; then
4272   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4273   if test "$cross_compiling" = yes; then
4274   :
4275 else
4276   cat >conftest.$ac_ext <<_ACEOF
4277 /* confdefs.h.  */
4278 _ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h.  */
4282 #include <ctype.h>
4283 #include <stdlib.h>
4284 #if ((' ' & 0x0FF) == 0x020)
4285 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4286 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4287 #else
4288 # define ISLOWER(c) \
4289                    (('a' <= (c) && (c) <= 'i') \
4290                      || ('j' <= (c) && (c) <= 'r') \
4291                      || ('s' <= (c) && (c) <= 'z'))
4292 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4293 #endif
4294
4295 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4296 int
4297 main ()
4298 {
4299   int i;
4300   for (i = 0; i < 256; i++)
4301     if (XOR (islower (i), ISLOWER (i))
4302         || toupper (i) != TOUPPER (i))
4303       return 2;
4304   return 0;
4305 }
4306 _ACEOF
4307 rm -f conftest$ac_exeext
4308 if { (ac_try="$ac_link"
4309 case "(($ac_try" in
4310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311   *) ac_try_echo=$ac_try;;
4312 esac
4313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314   (eval "$ac_link") 2>&5
4315   ac_status=$?
4316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4318   { (case "(($ac_try" in
4319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320   *) ac_try_echo=$ac_try;;
4321 esac
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323   (eval "$ac_try") 2>&5
4324   ac_status=$?
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); }; }; then
4327   :
4328 else
4329   echo "$as_me: program exited with status $ac_status" >&5
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4332
4333 ( exit $ac_status )
4334 ac_cv_header_stdc=no
4335 fi
4336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4337 fi
4338
4339
4340 fi
4341 fi
4342 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4343 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4344 if test $ac_cv_header_stdc = yes; then
4345
4346 cat >>confdefs.h <<\_ACEOF
4347 #define STDC_HEADERS 1
4348 _ACEOF
4349
4350 fi
4351
4352 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4363                   inttypes.h stdint.h unistd.h
4364 do
4365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371   cat >conftest.$ac_ext <<_ACEOF
4372 /* confdefs.h.  */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h.  */
4377 $ac_includes_default
4378
4379 #include <$ac_header>
4380 _ACEOF
4381 rm -f conftest.$ac_objext
4382 if { (ac_try="$ac_compile"
4383 case "(($ac_try" in
4384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385   *) ac_try_echo=$ac_try;;
4386 esac
4387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388   (eval "$ac_compile") 2>conftest.er1
4389   ac_status=$?
4390   grep -v '^ *+' conftest.er1 >conftest.err
4391   rm -f conftest.er1
4392   cat conftest.err >&5
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); } && {
4395          test -z "$ac_c_werror_flag" ||
4396          test ! -s conftest.err
4397        } && test -s conftest.$ac_objext; then
4398   eval "$as_ac_Header=yes"
4399 else
4400   echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4402
4403         eval "$as_ac_Header=no"
4404 fi
4405
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 fi
4408 ac_res=`eval echo '${'$as_ac_Header'}'`
4409                { echo "$as_me:$LINENO: result: $ac_res" >&5
4410 echo "${ECHO_T}$ac_res" >&6; }
4411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4412   cat >>confdefs.h <<_ACEOF
4413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4414 _ACEOF
4415
4416 fi
4417
4418 done
4419
4420
4421 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4422 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4423 if test "${ac_cv_c_bigendian+set}" = set; then
4424   echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426   # See if sys/param.h defines the BYTE_ORDER macro.
4427 cat >conftest.$ac_ext <<_ACEOF
4428 /* confdefs.h.  */
4429 _ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h.  */
4433 #include <sys/types.h>
4434 #include <sys/param.h>
4435
4436 int
4437 main ()
4438 {
4439 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4440         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4441  bogus endian macros
4442 #endif
4443
4444   ;
4445   return 0;
4446 }
4447 _ACEOF
4448 rm -f conftest.$ac_objext
4449 if { (ac_try="$ac_compile"
4450 case "(($ac_try" in
4451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452   *) ac_try_echo=$ac_try;;
4453 esac
4454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4455   (eval "$ac_compile") 2>conftest.er1
4456   ac_status=$?
4457   grep -v '^ *+' conftest.er1 >conftest.err
4458   rm -f conftest.er1
4459   cat conftest.err >&5
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); } && {
4462          test -z "$ac_c_werror_flag" ||
4463          test ! -s conftest.err
4464        } && test -s conftest.$ac_objext; then
4465   # It does; now see whether it defined to BIG_ENDIAN or not.
4466 cat >conftest.$ac_ext <<_ACEOF
4467 /* confdefs.h.  */
4468 _ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h.  */
4472 #include <sys/types.h>
4473 #include <sys/param.h>
4474
4475 int
4476 main ()
4477 {
4478 #if BYTE_ORDER != BIG_ENDIAN
4479  not big endian
4480 #endif
4481
4482   ;
4483   return 0;
4484 }
4485 _ACEOF
4486 rm -f conftest.$ac_objext
4487 if { (ac_try="$ac_compile"
4488 case "(($ac_try" in
4489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490   *) ac_try_echo=$ac_try;;
4491 esac
4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493   (eval "$ac_compile") 2>conftest.er1
4494   ac_status=$?
4495   grep -v '^ *+' conftest.er1 >conftest.err
4496   rm -f conftest.er1
4497   cat conftest.err >&5
4498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499   (exit $ac_status); } && {
4500          test -z "$ac_c_werror_flag" ||
4501          test ! -s conftest.err
4502        } && test -s conftest.$ac_objext; then
4503   ac_cv_c_bigendian=yes
4504 else
4505   echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508         ac_cv_c_bigendian=no
4509 fi
4510
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 else
4513   echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4515
4516         # It does not; compile a test program.
4517 if test "$cross_compiling" = yes; then
4518   # try to guess the endianness by grepping values into an object file
4519   ac_cv_c_bigendian=unknown
4520   cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h.  */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h.  */
4526 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4527 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4528 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4529 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4530 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4531 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4532 int
4533 main ()
4534 {
4535  _ascii (); _ebcdic ();
4536   ;
4537   return 0;
4538 }
4539 _ACEOF
4540 rm -f conftest.$ac_objext
4541 if { (ac_try="$ac_compile"
4542 case "(($ac_try" in
4543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544   *) ac_try_echo=$ac_try;;
4545 esac
4546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4547   (eval "$ac_compile") 2>conftest.er1
4548   ac_status=$?
4549   grep -v '^ *+' conftest.er1 >conftest.err
4550   rm -f conftest.er1
4551   cat conftest.err >&5
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); } && {
4554          test -z "$ac_c_werror_flag" ||
4555          test ! -s conftest.err
4556        } && test -s conftest.$ac_objext; then
4557   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4558   ac_cv_c_bigendian=yes
4559 fi
4560 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4561   if test "$ac_cv_c_bigendian" = unknown; then
4562     ac_cv_c_bigendian=no
4563   else
4564     # finding both strings is unlikely to happen, but who knows?
4565     ac_cv_c_bigendian=unknown
4566   fi
4567 fi
4568 else
4569   echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4571
4572
4573 fi
4574
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 else
4577   cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h.  */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h.  */
4583 $ac_includes_default
4584 int
4585 main ()
4586 {
4587
4588   /* Are we little or big endian?  From Harbison&Steele.  */
4589   union
4590   {
4591     long int l;
4592     char c[sizeof (long int)];
4593   } u;
4594   u.l = 1;
4595   return u.c[sizeof (long int) - 1] == 1;
4596
4597   ;
4598   return 0;
4599 }
4600 _ACEOF
4601 rm -f conftest$ac_exeext
4602 if { (ac_try="$ac_link"
4603 case "(($ac_try" in
4604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605   *) ac_try_echo=$ac_try;;
4606 esac
4607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4608   (eval "$ac_link") 2>&5
4609   ac_status=$?
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4612   { (case "(($ac_try" in
4613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614   *) ac_try_echo=$ac_try;;
4615 esac
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617   (eval "$ac_try") 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }; }; then
4621   ac_cv_c_bigendian=no
4622 else
4623   echo "$as_me: program exited with status $ac_status" >&5
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627 ( exit $ac_status )
4628 ac_cv_c_bigendian=yes
4629 fi
4630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4631 fi
4632
4633
4634 fi
4635
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 fi
4638 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4639 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4640 case $ac_cv_c_bigendian in
4641   yes)
4642
4643 cat >>confdefs.h <<\_ACEOF
4644 #define WORDS_BIGENDIAN 1
4645 _ACEOF
4646  ;;
4647   no)
4648      ;;
4649   *)
4650     { { echo "$as_me:$LINENO: error: unknown endianness
4651 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4652 echo "$as_me: error: unknown endianness
4653 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4654    { (exit 1); exit 1; }; } ;;
4655 esac
4656
4657
4658 # Extract the first word of "gmake", so it can be a program name with args.
4659 set dummy gmake; ac_word=$2
4660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662 if test "${ac_cv_prog_GMAKE+set}" = set; then
4663   echo $ECHO_N "(cached) $ECHO_C" >&6
4664 else
4665   if test -n "$GMAKE"; then
4666   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4667 else
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671   IFS=$as_save_IFS
4672   test -z "$as_dir" && as_dir=.
4673   for ac_exec_ext in '' $ac_executable_extensions; do
4674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675     ac_cv_prog_GMAKE="yes"
4676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677     break 2
4678   fi
4679 done
4680 done
4681 IFS=$as_save_IFS
4682
4683   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4684 fi
4685 fi
4686 GMAKE=$ac_cv_prog_GMAKE
4687 if test -n "$GMAKE"; then
4688   { echo "$as_me:$LINENO: result: $GMAKE" >&5
4689 echo "${ECHO_T}$GMAKE" >&6; }
4690 else
4691   { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4693 fi
4694
4695
4696 if test $GMAKE = no; then
4697   # Extract the first word of "make", so it can be a program name with args.
4698 set dummy make; ac_word=$2
4699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4701 if test "${ac_cv_path_MAKE+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   case $MAKE in
4705   [\\/]* | ?:[\\/]*)
4706   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4707   ;;
4708   *)
4709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714   for ac_exec_ext in '' $ac_executable_extensions; do
4715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721 done
4722 IFS=$as_save_IFS
4723
4724   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4725   ;;
4726 esac
4727 fi
4728 MAKE=$ac_cv_path_MAKE
4729 if test -n "$MAKE"; then
4730   { echo "$as_me:$LINENO: result: $MAKE" >&5
4731 echo "${ECHO_T}$MAKE" >&6; }
4732 else
4733   { echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6; }
4735 fi
4736
4737
4738 else
4739   # Extract the first word of "gmake", so it can be a program name with args.
4740 set dummy gmake; ac_word=$2
4741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4743 if test "${ac_cv_path_MAKE+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746   case $MAKE in
4747   [\\/]* | ?:[\\/]*)
4748   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4749   ;;
4750   *)
4751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4753 do
4754   IFS=$as_save_IFS
4755   test -z "$as_dir" && as_dir=.
4756   for ac_exec_ext in '' $ac_executable_extensions; do
4757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4758     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4760     break 2
4761   fi
4762 done
4763 done
4764 IFS=$as_save_IFS
4765
4766   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4767   ;;
4768 esac
4769 fi
4770 MAKE=$ac_cv_path_MAKE
4771 if test -n "$MAKE"; then
4772   { echo "$as_me:$LINENO: result: $MAKE" >&5
4773 echo "${ECHO_T}$MAKE" >&6; }
4774 else
4775   { echo "$as_me:$LINENO: result: no" >&5
4776 echo "${ECHO_T}no" >&6; }
4777 fi
4778
4779
4780 fi
4781 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4782 if test -z "$makever"; then
4783   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
4784                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4785 echo "$as_me: error: GNU Make is not installed.  Please download and install it
4786                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4787    { (exit 1); exit 1; }; }
4788 fi
4789
4790
4791 # Check whether --with-system-libltdl was given.
4792 if test "${with_system_libltdl+set}" = set; then
4793   withval=$with_system_libltdl;
4794 LIBLTDL="-lltdl"
4795 INCLTDL=
4796 LTDL_SUBDIRS=
4797
4798 else
4799
4800 test x"$enable_ltdl_install" = x && enable_ltdl_install=yes
4801   { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4802 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4803 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4804   echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806   ac_check_lib_save_LIBS=$LIBS
4807 LIBS="-lltdl  $LIBS"
4808 cat >conftest.$ac_ext <<_ACEOF
4809 /* confdefs.h.  */
4810 _ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h.  */
4814
4815 /* Override any GCC internal prototype to avoid an error.
4816    Use char because int might match the return type of a GCC
4817    builtin and then its argument prototype would still apply.  */
4818 #ifdef __cplusplus
4819 extern "C"
4820 #endif
4821 char lt_dlinit ();
4822 int
4823 main ()
4824 {
4825 return lt_dlinit ();
4826   ;
4827   return 0;
4828 }
4829 _ACEOF
4830 rm -f conftest.$ac_objext conftest$ac_exeext
4831 if { (ac_try="$ac_link"
4832 case "(($ac_try" in
4833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834   *) ac_try_echo=$ac_try;;
4835 esac
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837   (eval "$ac_link") 2>conftest.er1
4838   ac_status=$?
4839   grep -v '^ *+' conftest.er1 >conftest.err
4840   rm -f conftest.er1
4841   cat conftest.err >&5
4842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); } && {
4844          test -z "$ac_c_werror_flag" ||
4845          test ! -s conftest.err
4846        } && test -s conftest$ac_exeext &&
4847        $as_test_x conftest$ac_exeext; then
4848   ac_cv_lib_ltdl_lt_dlinit=yes
4849 else
4850   echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4852
4853         ac_cv_lib_ltdl_lt_dlinit=no
4854 fi
4855
4856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4857       conftest$ac_exeext conftest.$ac_ext
4858 LIBS=$ac_check_lib_save_LIBS
4859 fi
4860 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4861 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4862 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4863   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4864 else
4865   if test x"$enable_ltdl_install" = xno; then
4866      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4867 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4868    else
4869      enable_ltdl_install=yes
4870    fi
4871
4872 fi
4873
4874   if test x"$enable_ltdl_install" = x"yes"; then
4875     ac_configure_args="$ac_configure_args --enable-ltdl-install"
4876     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4877     LTDLINCL='-I${top_srcdir}/''libltdl'
4878   else
4879     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4880     LIBLTDL="-lltdl"
4881     LTDLINCL=
4882   fi
4883   # For backwards non-gettext consistent compatibility...
4884   INCLTDL="$LTDLINCL"
4885
4886
4887 if test x"$enable_ltdl_install" = x"yes"; then
4888   LTDL_SUBDIRS=libltdl
4889 fi
4890
4891 fi
4892
4893
4894
4895 # Check whether --enable-shared was given.
4896 if test "${enable_shared+set}" = set; then
4897   enableval=$enable_shared; p=${PACKAGE-default}
4898     case $enableval in
4899     yes) enable_shared=yes ;;
4900     no) enable_shared=no ;;
4901     *)
4902       enable_shared=no
4903       # Look at the argument we got.  We use all the common list separators.
4904       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4905       for pkg in $enableval; do
4906         IFS="$lt_save_ifs"
4907         if test "X$pkg" = "X$p"; then
4908           enable_shared=yes
4909         fi
4910       done
4911       IFS="$lt_save_ifs"
4912       ;;
4913     esac
4914 else
4915   enable_shared=yes
4916 fi
4917
4918
4919 # Check whether --enable-static was given.
4920 if test "${enable_static+set}" = set; then
4921   enableval=$enable_static; p=${PACKAGE-default}
4922     case $enableval in
4923     yes) enable_static=yes ;;
4924     no) enable_static=no ;;
4925     *)
4926      enable_static=no
4927       # Look at the argument we got.  We use all the common list separators.
4928       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4929       for pkg in $enableval; do
4930         IFS="$lt_save_ifs"
4931         if test "X$pkg" = "X$p"; then
4932           enable_static=yes
4933         fi
4934       done
4935       IFS="$lt_save_ifs"
4936       ;;
4937     esac
4938 else
4939   enable_static=yes
4940 fi
4941
4942
4943 # Check whether --enable-fast-install was given.
4944 if test "${enable_fast_install+set}" = set; then
4945   enableval=$enable_fast_install; p=${PACKAGE-default}
4946     case $enableval in
4947     yes) enable_fast_install=yes ;;
4948     no) enable_fast_install=no ;;
4949     *)
4950       enable_fast_install=no
4951       # Look at the argument we got.  We use all the common list separators.
4952       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4953       for pkg in $enableval; do
4954         IFS="$lt_save_ifs"
4955         if test "X$pkg" = "X$p"; then
4956           enable_fast_install=yes
4957         fi
4958       done
4959       IFS="$lt_save_ifs"
4960       ;;
4961     esac
4962 else
4963   enable_fast_install=yes
4964 fi
4965
4966
4967 ac_aux_dir=
4968 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4969   if test -f "$ac_dir/install-sh"; then
4970     ac_aux_dir=$ac_dir
4971     ac_install_sh="$ac_aux_dir/install-sh -c"
4972     break
4973   elif test -f "$ac_dir/install.sh"; then
4974     ac_aux_dir=$ac_dir
4975     ac_install_sh="$ac_aux_dir/install.sh -c"
4976     break
4977   elif test -f "$ac_dir/shtool"; then
4978     ac_aux_dir=$ac_dir
4979     ac_install_sh="$ac_aux_dir/shtool install -c"
4980     break
4981   fi
4982 done
4983 if test -z "$ac_aux_dir"; then
4984   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4985 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4986    { (exit 1); exit 1; }; }
4987 fi
4988
4989 # These three variables are undocumented and unsupported,
4990 # and are intended to be withdrawn in a future Autoconf release.
4991 # They can cause serious problems if a builder's source tree is in a directory
4992 # whose full name contains unusual characters.
4993 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4994 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4995 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4996
4997
4998 # Make sure we can run config.sub.
4999 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5000   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5001 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5002    { (exit 1); exit 1; }; }
5003
5004 { echo "$as_me:$LINENO: checking build system type" >&5
5005 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5006 if test "${ac_cv_build+set}" = set; then
5007   echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009   ac_build_alias=$build_alias
5010 test "x$ac_build_alias" = x &&
5011   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5012 test "x$ac_build_alias" = x &&
5013   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5014 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5015    { (exit 1); exit 1; }; }
5016 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5017   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5018 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5019    { (exit 1); exit 1; }; }
5020
5021 fi
5022 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5023 echo "${ECHO_T}$ac_cv_build" >&6; }
5024 case $ac_cv_build in
5025 *-*-*) ;;
5026 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5027 echo "$as_me: error: invalid value of canonical build" >&2;}
5028    { (exit 1); exit 1; }; };;
5029 esac
5030 build=$ac_cv_build
5031 ac_save_IFS=$IFS; IFS='-'
5032 set x $ac_cv_build
5033 shift
5034 build_cpu=$1
5035 build_vendor=$2
5036 shift; shift
5037 # Remember, the first character of IFS is used to create $*,
5038 # except with old shells:
5039 build_os=$*
5040 IFS=$ac_save_IFS
5041 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5042
5043
5044 { echo "$as_me:$LINENO: checking host system type" >&5
5045 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5046 if test "${ac_cv_host+set}" = set; then
5047   echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049   if test "x$host_alias" = x; then
5050   ac_cv_host=$ac_cv_build
5051 else
5052   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5053     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5054 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5055    { (exit 1); exit 1; }; }
5056 fi
5057
5058 fi
5059 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5060 echo "${ECHO_T}$ac_cv_host" >&6; }
5061 case $ac_cv_host in
5062 *-*-*) ;;
5063 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5064 echo "$as_me: error: invalid value of canonical host" >&2;}
5065    { (exit 1); exit 1; }; };;
5066 esac
5067 host=$ac_cv_host
5068 ac_save_IFS=$IFS; IFS='-'
5069 set x $ac_cv_host
5070 shift
5071 host_cpu=$1
5072 host_vendor=$2
5073 shift; shift
5074 # Remember, the first character of IFS is used to create $*,
5075 # except with old shells:
5076 host_os=$*
5077 IFS=$ac_save_IFS
5078 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5079
5080
5081 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5082 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5083 if test "${lt_cv_path_SED+set}" = set; then
5084   echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086   # Loop through the user's path and test for sed and gsed.
5087 # Then use that list of sed's as ones to test for truncation.
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5090 do
5091   IFS=$as_save_IFS
5092   test -z "$as_dir" && as_dir=.
5093   for lt_ac_prog in sed gsed; do
5094     for ac_exec_ext in '' $ac_executable_extensions; do
5095       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5096         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5097       fi
5098     done
5099   done
5100 done
5101 IFS=$as_save_IFS
5102 lt_ac_max=0
5103 lt_ac_count=0
5104 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5105 # along with /bin/sed that truncates output.
5106 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5107   test ! -f $lt_ac_sed && continue
5108   cat /dev/null > conftest.in
5109   lt_ac_count=0
5110   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5111   # Check for GNU sed and select it if it is found.
5112   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5113     lt_cv_path_SED=$lt_ac_sed
5114     break
5115   fi
5116   while true; do
5117     cat conftest.in conftest.in >conftest.tmp
5118     mv conftest.tmp conftest.in
5119     cp conftest.in conftest.nl
5120     echo >>conftest.nl
5121     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5122     cmp -s conftest.out conftest.nl || break
5123     # 10000 chars as input seems more than enough
5124     test $lt_ac_count -gt 10 && break
5125     lt_ac_count=`expr $lt_ac_count + 1`
5126     if test $lt_ac_count -gt $lt_ac_max; then
5127       lt_ac_max=$lt_ac_count
5128       lt_cv_path_SED=$lt_ac_sed
5129     fi
5130   done
5131 done
5132
5133 fi
5134
5135 SED=$lt_cv_path_SED
5136
5137 { echo "$as_me:$LINENO: result: $SED" >&5
5138 echo "${ECHO_T}$SED" >&6; }
5139
5140
5141 # Check whether --with-gnu-ld was given.
5142 if test "${with_gnu_ld+set}" = set; then
5143   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5144 else
5145   with_gnu_ld=no
5146 fi
5147
5148 ac_prog=ld
5149 if test "$GCC" = yes; then
5150   # Check if gcc -print-prog-name=ld gives a path.
5151   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5152 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5153   case $host in
5154   *-*-mingw*)
5155     # gcc leaves a trailing carriage return which upsets mingw
5156     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5157   *)
5158     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5159   esac
5160   case $ac_prog in
5161     # Accept absolute paths.
5162     [\\/]* | ?:[\\/]*)
5163       re_direlt='/[^/][^/]*/\.\./'
5164       # Canonicalize the pathname of ld
5165       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5166       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5167         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5168       done
5169       test -z "$LD" && LD="$ac_prog"
5170       ;;
5171   "")
5172     # If it fails, then pretend we aren't using GCC.
5173     ac_prog=ld
5174     ;;
5175   *)
5176     # If it is relative, then search for the first ld in PATH.
5177     with_gnu_ld=unknown
5178     ;;
5179   esac
5180 elif test "$with_gnu_ld" = yes; then
5181   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5182 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5183 else
5184   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5185 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5186 fi
5187 if test "${lt_cv_path_LD+set}" = set; then
5188   echo $ECHO_N "(cached) $ECHO_C" >&6
5189 else
5190   if test -z "$LD"; then
5191   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5192   for ac_dir in $PATH; do
5193     IFS="$lt_save_ifs"
5194     test -z "$ac_dir" && ac_dir=.
5195     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5196       lt_cv_path_LD="$ac_dir/$ac_prog"
5197       # Check to see if the program is GNU ld.  I'd rather use --version,
5198       # but apparently some variants of GNU ld only accept -v.
5199       # Break only if it was the GNU/non-GNU ld that we prefer.
5200       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5201       *GNU* | *'with BFD'*)
5202         test "$with_gnu_ld" != no && break
5203         ;;
5204       *)
5205         test "$with_gnu_ld" != yes && break
5206         ;;
5207       esac
5208     fi
5209   done
5210   IFS="$lt_save_ifs"
5211 else
5212   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5213 fi
5214 fi
5215
5216 LD="$lt_cv_path_LD"
5217 if test -n "$LD"; then
5218   { echo "$as_me:$LINENO: result: $LD" >&5
5219 echo "${ECHO_T}$LD" >&6; }
5220 else
5221   { echo "$as_me:$LINENO: result: no" >&5
5222 echo "${ECHO_T}no" >&6; }
5223 fi
5224 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5225 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5226    { (exit 1); exit 1; }; }
5227 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5228 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5229 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5230   echo $ECHO_N "(cached) $ECHO_C" >&6
5231 else
5232   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5233 case `$LD -v 2>&1 </dev/null` in
5234 *GNU* | *'with BFD'*)
5235   lt_cv_prog_gnu_ld=yes
5236   ;;
5237 *)
5238   lt_cv_prog_gnu_ld=no
5239   ;;
5240 esac
5241 fi
5242 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5243 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5244 with_gnu_ld=$lt_cv_prog_gnu_ld
5245
5246
5247 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5248 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5249 if test "${lt_cv_ld_reload_flag+set}" = set; then
5250   echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252   lt_cv_ld_reload_flag='-r'
5253 fi
5254 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5255 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5256 reload_flag=$lt_cv_ld_reload_flag
5257 case $reload_flag in
5258 "" | " "*) ;;
5259 *) reload_flag=" $reload_flag" ;;
5260 esac
5261 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5262 case $host_os in
5263   darwin*)
5264     if test "$GCC" = yes; then
5265       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5266     else
5267       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5268     fi
5269     ;;
5270 esac
5271
5272 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5273 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5274 if test "${lt_cv_path_NM+set}" = set; then
5275   echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277   if test -n "$NM"; then
5278   # Let the user override the test.
5279   lt_cv_path_NM="$NM"
5280 else
5281   lt_nm_to_check="${ac_tool_prefix}nm"
5282   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5283     lt_nm_to_check="$lt_nm_to_check nm"
5284   fi
5285   for lt_tmp_nm in $lt_nm_to_check; do
5286     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5287     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5288       IFS="$lt_save_ifs"
5289       test -z "$ac_dir" && ac_dir=.
5290       tmp_nm="$ac_dir/$lt_tmp_nm"
5291       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5292         # Check to see if the nm accepts a BSD-compat flag.
5293         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5294         #   nm: unknown option "B" ignored
5295         # Tru64's nm complains that /dev/null is an invalid object file
5296         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5297         */dev/null* | *'Invalid file or object type'*)
5298           lt_cv_path_NM="$tmp_nm -B"
5299           break
5300           ;;
5301         *)
5302           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5303           */dev/null*)
5304             lt_cv_path_NM="$tmp_nm -p"
5305             break
5306             ;;
5307           *)
5308             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5309             continue # so that we can try to find one that supports BSD flags
5310             ;;
5311           esac
5312           ;;
5313         esac
5314       fi
5315     done
5316     IFS="$lt_save_ifs"
5317   done
5318   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5319 fi
5320 fi
5321 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5322 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5323 NM="$lt_cv_path_NM"
5324
5325 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5326 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5327 LN_S=$as_ln_s
5328 if test "$LN_S" = "ln -s"; then
5329   { echo "$as_me:$LINENO: result: yes" >&5
5330 echo "${ECHO_T}yes" >&6; }
5331 else
5332   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5333 echo "${ECHO_T}no, using $LN_S" >&6; }
5334 fi
5335
5336 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5337 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5338 if test "${lt_cv_deplibs_check_method+set}" = set; then
5339   echo $ECHO_N "(cached) $ECHO_C" >&6
5340 else
5341   lt_cv_file_magic_cmd='$MAGIC_CMD'
5342 lt_cv_file_magic_test_file=
5343 lt_cv_deplibs_check_method='unknown'
5344 # Need to set the preceding variable on all platforms that support
5345 # interlibrary dependencies.
5346 # 'none' -- dependencies not supported.
5347 # `unknown' -- same as none, but documents that we really don't know.
5348 # 'pass_all' -- all dependencies passed with no checks.
5349 # 'test_compile' -- check by making test program.
5350 # 'file_magic [[regex]]' -- check by looking for files in library path
5351 # which responds to the $file_magic_cmd with a given extended regex.
5352 # If you have `file' or equivalent on your system and you're not sure
5353 # whether `pass_all' will *always* work, you probably want this one.
5354
5355 case $host_os in
5356 aix[4-9]*)
5357   lt_cv_deplibs_check_method=pass_all
5358   ;;
5359
5360 beos*)
5361   lt_cv_deplibs_check_method=pass_all
5362   ;;
5363
5364 bsdi[45]*)
5365   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5366   lt_cv_file_magic_cmd='/usr/bin/file -L'
5367   lt_cv_file_magic_test_file=/shlib/libc.so
5368   ;;
5369
5370 cygwin*)
5371   # func_win32_libid is a shell function defined in ltmain.sh
5372   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5373   lt_cv_file_magic_cmd='func_win32_libid'
5374   ;;
5375
5376 mingw* | pw32*)
5377   # Base MSYS/MinGW do not provide the 'file' command needed by
5378   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5379   # unless we find 'file', for example because we are cross-compiling.
5380   if ( file / ) >/dev/null 2>&1; then
5381     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5382     lt_cv_file_magic_cmd='func_win32_libid'
5383   else
5384     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5385     lt_cv_file_magic_cmd='$OBJDUMP -f'
5386   fi
5387   ;;
5388
5389 darwin* | rhapsody*)
5390   lt_cv_deplibs_check_method=pass_all
5391   ;;
5392
5393 freebsd* | dragonfly*)
5394   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5395     case $host_cpu in
5396     i*86 )
5397       # Not sure whether the presence of OpenBSD here was a mistake.
5398       # Let's accept both of them until this is cleared up.
5399       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5400       lt_cv_file_magic_cmd=/usr/bin/file
5401       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5402       ;;
5403     esac
5404   else
5405     lt_cv_deplibs_check_method=pass_all
5406   fi
5407   ;;
5408
5409 gnu*)
5410   lt_cv_deplibs_check_method=pass_all
5411   ;;
5412
5413 hpux10.20* | hpux11*)
5414   lt_cv_file_magic_cmd=/usr/bin/file
5415   case $host_cpu in
5416   ia64*)
5417     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5418     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5419     ;;
5420   hppa*64*)
5421     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]'
5422     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5423     ;;
5424   *)
5425     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5426     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5427     ;;
5428   esac
5429   ;;
5430
5431 interix[3-9]*)
5432   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5433   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5434   ;;
5435
5436 irix5* | irix6* | nonstopux*)
5437   case $LD in
5438   *-32|*"-32 ") libmagic=32-bit;;
5439   *-n32|*"-n32 ") libmagic=N32;;
5440   *-64|*"-64 ") libmagic=64-bit;;
5441   *) libmagic=never-match;;
5442   esac
5443   lt_cv_deplibs_check_method=pass_all
5444   ;;
5445
5446 # This must be Linux ELF.
5447 linux* | k*bsd*-gnu)
5448   lt_cv_deplibs_check_method=pass_all
5449   ;;
5450
5451 netbsd* | netbsdelf*-gnu)
5452   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5453     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5454   else
5455     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5456   fi
5457   ;;
5458
5459 newos6*)
5460   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5461   lt_cv_file_magic_cmd=/usr/bin/file
5462   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5463   ;;
5464
5465 nto-qnx*)
5466   lt_cv_deplibs_check_method=unknown
5467   ;;
5468
5469 openbsd*)
5470   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5471     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5472   else
5473     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5474   fi
5475   ;;
5476
5477 osf3* | osf4* | osf5*)
5478   lt_cv_deplibs_check_method=pass_all
5479   ;;
5480
5481 rdos*)
5482   lt_cv_deplibs_check_method=pass_all
5483   ;;
5484
5485 solaris*)
5486   lt_cv_deplibs_check_method=pass_all
5487   ;;
5488
5489 sysv4 | sysv4.3*)
5490   case $host_vendor in
5491   motorola)
5492     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]'
5493     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5494     ;;
5495   ncr)
5496     lt_cv_deplibs_check_method=pass_all
5497     ;;
5498   sequent)
5499     lt_cv_file_magic_cmd='/bin/file'
5500     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5501     ;;
5502   sni)
5503     lt_cv_file_magic_cmd='/bin/file'
5504     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5505     lt_cv_file_magic_test_file=/lib/libc.so
5506     ;;
5507   siemens)
5508     lt_cv_deplibs_check_method=pass_all
5509     ;;
5510   pc)
5511     lt_cv_deplibs_check_method=pass_all
5512     ;;
5513   esac
5514   ;;
5515
5516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5517   lt_cv_deplibs_check_method=pass_all
5518   ;;
5519 esac
5520
5521 fi
5522 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5523 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5524 file_magic_cmd=$lt_cv_file_magic_cmd
5525 deplibs_check_method=$lt_cv_deplibs_check_method
5526 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5527
5528
5529
5530
5531 # If no C compiler was specified, use CC.
5532 LTCC=${LTCC-"$CC"}
5533
5534 # If no C compiler flags were specified, use CFLAGS.
5535 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5536
5537 # Allow CC to be a program name with arguments.
5538 compiler=$CC
5539
5540 # Check whether --enable-libtool-lock was given.
5541 if test "${enable_libtool_lock+set}" = set; then
5542   enableval=$enable_libtool_lock;
5543 fi
5544
5545 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5546
5547 # Some flags need to be propagated to the compiler or linker for good
5548 # libtool support.
5549 case $host in
5550 ia64-*-hpux*)
5551   # Find out which ABI we are using.
5552   echo 'int i;' > conftest.$ac_ext
5553   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5554   (eval $ac_compile) 2>&5
5555   ac_status=$?
5556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557   (exit $ac_status); }; then
5558     case `/usr/bin/file conftest.$ac_objext` in
5559     *ELF-32*)
5560       HPUX_IA64_MODE="32"
5561       ;;
5562     *ELF-64*)
5563       HPUX_IA64_MODE="64"
5564       ;;
5565     esac
5566   fi
5567   rm -rf conftest*
5568   ;;
5569 *-*-irix6*)
5570   # Find out which ABI we are using.
5571   echo '#line 5571 "configure"' > conftest.$ac_ext
5572   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5573   (eval $ac_compile) 2>&5
5574   ac_status=$?
5575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576   (exit $ac_status); }; then
5577    if test "$lt_cv_prog_gnu_ld" = yes; then
5578     case `/usr/bin/file conftest.$ac_objext` in
5579     *32-bit*)
5580       LD="${LD-ld} -melf32bsmip"
5581       ;;
5582     *N32*)
5583       LD="${LD-ld} -melf32bmipn32"
5584       ;;
5585     *64-bit*)
5586       LD="${LD-ld} -melf64bmip"
5587       ;;
5588     esac
5589    else
5590     case `/usr/bin/file conftest.$ac_objext` in
5591     *32-bit*)
5592       LD="${LD-ld} -32"
5593       ;;
5594     *N32*)
5595       LD="${LD-ld} -n32"
5596       ;;
5597     *64-bit*)
5598       LD="${LD-ld} -64"
5599       ;;
5600     esac
5601    fi
5602   fi
5603   rm -rf conftest*
5604   ;;
5605
5606 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5607 s390*-*linux*|sparc*-*linux*)
5608   # Find out which ABI we are using.
5609   echo 'int i;' > conftest.$ac_ext
5610   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5611   (eval $ac_compile) 2>&5
5612   ac_status=$?
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); }; then
5615     case `/usr/bin/file conftest.o` in
5616     *32-bit*)
5617       case $host in
5618         x86_64-*kfreebsd*-gnu)
5619           LD="${LD-ld} -m elf_i386_fbsd"
5620           ;;
5621         x86_64-*linux*)
5622           LD="${LD-ld} -m elf_i386"
5623           ;;
5624         ppc64-*linux*|powerpc64-*linux*)
5625           LD="${LD-ld} -m elf32ppclinux"
5626           ;;
5627         s390x-*linux*)
5628           LD="${LD-ld} -m elf_s390"
5629           ;;
5630         sparc64-*linux*)
5631           LD="${LD-ld} -m elf32_sparc"
5632           ;;
5633       esac
5634       ;;
5635     *64-bit*)
5636       case $host in
5637         x86_64-*kfreebsd*-gnu)
5638           LD="${LD-ld} -m elf_x86_64_fbsd"
5639           ;;
5640         x86_64-*linux*)
5641           LD="${LD-ld} -m elf_x86_64"
5642           ;;
5643         ppc*-*linux*|powerpc*-*linux*)
5644           LD="${LD-ld} -m elf64ppc"
5645           ;;
5646         s390*-*linux*)
5647           LD="${LD-ld} -m elf64_s390"
5648           ;;
5649         sparc*-*linux*)
5650           LD="${LD-ld} -m elf64_sparc"
5651           ;;
5652       esac
5653       ;;
5654     esac
5655   fi
5656   rm -rf conftest*
5657   ;;
5658
5659 *-*-sco3.2v5*)
5660   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5661   SAVE_CFLAGS="$CFLAGS"
5662   CFLAGS="$CFLAGS -belf"
5663   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5664 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5665 if test "${lt_cv_cc_needs_belf+set}" = set; then
5666   echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668   ac_ext=c
5669 ac_cpp='$CPP $CPPFLAGS'
5670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5673
5674      cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h.  */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h.  */
5680
5681 int
5682 main ()
5683 {
5684
5685   ;
5686   return 0;
5687 }
5688 _ACEOF
5689 rm -f conftest.$ac_objext conftest$ac_exeext
5690 if { (ac_try="$ac_link"
5691 case "(($ac_try" in
5692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693   *) ac_try_echo=$ac_try;;
5694 esac
5695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5696   (eval "$ac_link") 2>conftest.er1
5697   ac_status=$?
5698   grep -v '^ *+' conftest.er1 >conftest.err
5699   rm -f conftest.er1
5700   cat conftest.err >&5
5701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702   (exit $ac_status); } && {
5703          test -z "$ac_c_werror_flag" ||
5704          test ! -s conftest.err
5705        } && test -s conftest$ac_exeext &&
5706        $as_test_x conftest$ac_exeext; then
5707   lt_cv_cc_needs_belf=yes
5708 else
5709   echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5711
5712         lt_cv_cc_needs_belf=no
5713 fi
5714
5715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5716       conftest$ac_exeext conftest.$ac_ext
5717      ac_ext=c
5718 ac_cpp='$CPP $CPPFLAGS'
5719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5722
5723 fi
5724 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5725 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5726   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5727     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5728     CFLAGS="$SAVE_CFLAGS"
5729   fi
5730   ;;
5731 sparc*-*solaris*)
5732   # Find out which ABI we are using.
5733   echo 'int i;' > conftest.$ac_ext
5734   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735   (eval $ac_compile) 2>&5
5736   ac_status=$?
5737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738   (exit $ac_status); }; then
5739     case `/usr/bin/file conftest.o` in
5740     *64-bit*)
5741       case $lt_cv_prog_gnu_ld in
5742       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5743       *)
5744         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5745           LD="${LD-ld} -64"
5746         fi
5747         ;;
5748       esac
5749       ;;
5750     esac
5751   fi
5752   rm -rf conftest*
5753   ;;
5754
5755
5756 esac
5757
5758 need_locks="$enable_libtool_lock"
5759
5760
5761
5762 for ac_header in dlfcn.h
5763 do
5764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5766   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5769   echo $ECHO_N "(cached) $ECHO_C" >&6
5770 fi
5771 ac_res=`eval echo '${'$as_ac_Header'}'`
5772                { echo "$as_me:$LINENO: result: $ac_res" >&5
5773 echo "${ECHO_T}$ac_res" >&6; }
5774 else
5775   # Is the header compilable?
5776 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5778 cat >conftest.$ac_ext <<_ACEOF
5779 /* confdefs.h.  */
5780 _ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h.  */
5784 $ac_includes_default
5785 #include <$ac_header>
5786 _ACEOF
5787 rm -f conftest.$ac_objext
5788 if { (ac_try="$ac_compile"
5789 case "(($ac_try" in
5790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791   *) ac_try_echo=$ac_try;;
5792 esac
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794   (eval "$ac_compile") 2>conftest.er1
5795   ac_status=$?
5796   grep -v '^ *+' conftest.er1 >conftest.err
5797   rm -f conftest.er1
5798   cat conftest.err >&5
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); } && {
5801          test -z "$ac_c_werror_flag" ||
5802          test ! -s conftest.err
5803        } && test -s conftest.$ac_objext; then
5804   ac_header_compiler=yes
5805 else
5806   echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5808
5809         ac_header_compiler=no
5810 fi
5811
5812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5814 echo "${ECHO_T}$ac_header_compiler" >&6; }
5815
5816 # Is the header present?
5817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5819 cat >conftest.$ac_ext <<_ACEOF
5820 /* confdefs.h.  */
5821 _ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h.  */
5825 #include <$ac_header>
5826 _ACEOF
5827 if { (ac_try="$ac_cpp conftest.$ac_ext"
5828 case "(($ac_try" in
5829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830   *) ac_try_echo=$ac_try;;
5831 esac
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5834   ac_status=$?
5835   grep -v '^ *+' conftest.er1 >conftest.err
5836   rm -f conftest.er1
5837   cat conftest.err >&5
5838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839   (exit $ac_status); } >/dev/null && {
5840          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5841          test ! -s conftest.err
5842        }; then
5843   ac_header_preproc=yes
5844 else
5845   echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5847
5848   ac_header_preproc=no
5849 fi
5850
5851 rm -f conftest.err conftest.$ac_ext
5852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5853 echo "${ECHO_T}$ac_header_preproc" >&6; }
5854
5855 # So?  What about this header?
5856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5857   yes:no: )
5858     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5860     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5862     ac_header_preproc=yes
5863     ;;
5864   no:yes:* )
5865     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5867     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5868 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5869     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5871     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5872 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5873     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5875     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5877
5878     ;;
5879 esac
5880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5883   echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885   eval "$as_ac_Header=\$ac_header_preproc"
5886 fi
5887 ac_res=`eval echo '${'$as_ac_Header'}'`
5888                { echo "$as_me:$LINENO: result: $ac_res" >&5
5889 echo "${ECHO_T}$ac_res" >&6; }
5890
5891 fi
5892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5893   cat >>confdefs.h <<_ACEOF
5894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5895 _ACEOF
5896
5897 fi
5898
5899 done
5900
5901
5902
5903 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5904     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5905     (test "X$CXX" != "Xg++"))) ; then
5906   ac_ext=cpp
5907 ac_cpp='$CXXCPP $CPPFLAGS'
5908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5911 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5912 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5913 if test -z "$CXXCPP"; then
5914   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5915   echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917       # Double quotes because CXXCPP needs to be expanded
5918     for CXXCPP in "$CXX -E" "/lib/cpp"
5919     do
5920       ac_preproc_ok=false
5921 for ac_cxx_preproc_warn_flag in '' yes
5922 do
5923   # Use a header file that comes with gcc, so configuring glibc
5924   # with a fresh cross-compiler works.
5925   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5926   # <limits.h> exists even on freestanding compilers.
5927   # On the NeXT, cc -E runs the code through the compiler's parser,
5928   # not just through cpp. "Syntax error" is here to catch this case.
5929   cat >conftest.$ac_ext <<_ACEOF
5930 /* confdefs.h.  */
5931 _ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h.  */
5935 #ifdef __STDC__
5936 # include <limits.h>
5937 #else
5938 # include <assert.h>
5939 #endif
5940                      Syntax error
5941 _ACEOF
5942 if { (ac_try="$ac_cpp conftest.$ac_ext"
5943 case "(($ac_try" in
5944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945   *) ac_try_echo=$ac_try;;
5946 esac
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5949   ac_status=$?
5950   grep -v '^ *+' conftest.er1 >conftest.err
5951   rm -f conftest.er1
5952   cat conftest.err >&5
5953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954   (exit $ac_status); } >/dev/null && {
5955          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5956          test ! -s conftest.err
5957        }; then
5958   :
5959 else
5960   echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5962
5963   # Broken: fails on valid input.
5964 continue
5965 fi
5966
5967 rm -f conftest.err conftest.$ac_ext
5968
5969   # OK, works on sane cases.  Now check whether nonexistent headers
5970   # can be detected and how.
5971   cat >conftest.$ac_ext <<_ACEOF
5972 /* confdefs.h.  */
5973 _ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h.  */
5977 #include <ac_nonexistent.h>
5978 _ACEOF
5979 if { (ac_try="$ac_cpp conftest.$ac_ext"
5980 case "(($ac_try" in
5981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982   *) ac_try_echo=$ac_try;;
5983 esac
5984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5985   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5986   ac_status=$?
5987   grep -v '^ *+' conftest.er1 >conftest.err
5988   rm -f conftest.er1
5989   cat conftest.err >&5
5990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991   (exit $ac_status); } >/dev/null && {
5992          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5993          test ! -s conftest.err
5994        }; then
5995   # Broken: success on invalid input.
5996 continue
5997 else
5998   echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6000
6001   # Passes both tests.
6002 ac_preproc_ok=:
6003 break
6004 fi
6005
6006 rm -f conftest.err conftest.$ac_ext
6007
6008 done
6009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6010 rm -f conftest.err conftest.$ac_ext
6011 if $ac_preproc_ok; then
6012   break
6013 fi
6014
6015     done
6016     ac_cv_prog_CXXCPP=$CXXCPP
6017
6018 fi
6019   CXXCPP=$ac_cv_prog_CXXCPP
6020 else
6021   ac_cv_prog_CXXCPP=$CXXCPP
6022 fi
6023 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6024 echo "${ECHO_T}$CXXCPP" >&6; }
6025 ac_preproc_ok=false
6026 for ac_cxx_preproc_warn_flag in '' yes
6027 do
6028   # Use a header file that comes with gcc, so configuring glibc
6029   # with a fresh cross-compiler works.
6030   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6031   # <limits.h> exists even on freestanding compilers.
6032   # On the NeXT, cc -E runs the code through the compiler's parser,
6033   # not just through cpp. "Syntax error" is here to catch this case.
6034   cat >conftest.$ac_ext <<_ACEOF
6035 /* confdefs.h.  */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h.  */
6040 #ifdef __STDC__
6041 # include <limits.h>
6042 #else
6043 # include <assert.h>
6044 #endif
6045                      Syntax error
6046 _ACEOF
6047 if { (ac_try="$ac_cpp conftest.$ac_ext"
6048 case "(($ac_try" in
6049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050   *) ac_try_echo=$ac_try;;
6051 esac
6052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6053   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6054   ac_status=$?
6055   grep -v '^ *+' conftest.er1 >conftest.err
6056   rm -f conftest.er1
6057   cat conftest.err >&5
6058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059   (exit $ac_status); } >/dev/null && {
6060          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6061          test ! -s conftest.err
6062        }; then
6063   :
6064 else
6065   echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6067
6068   # Broken: fails on valid input.
6069 continue
6070 fi
6071
6072 rm -f conftest.err conftest.$ac_ext
6073
6074   # OK, works on sane cases.  Now check whether nonexistent headers
6075   # can be detected and how.
6076   cat >conftest.$ac_ext <<_ACEOF
6077 /* confdefs.h.  */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h.  */
6082 #include <ac_nonexistent.h>
6083 _ACEOF
6084 if { (ac_try="$ac_cpp conftest.$ac_ext"
6085 case "(($ac_try" in
6086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087   *) ac_try_echo=$ac_try;;
6088 esac
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6091   ac_status=$?
6092   grep -v '^ *+' conftest.er1 >conftest.err
6093   rm -f conftest.er1
6094   cat conftest.err >&5
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); } >/dev/null && {
6097          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6098          test ! -s conftest.err
6099        }; then
6100   # Broken: success on invalid input.
6101 continue
6102 else
6103   echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6105
6106   # Passes both tests.
6107 ac_preproc_ok=:
6108 break
6109 fi
6110
6111 rm -f conftest.err conftest.$ac_ext
6112
6113 done
6114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6115 rm -f conftest.err conftest.$ac_ext
6116 if $ac_preproc_ok; then
6117   :
6118 else
6119   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6120 See \`config.log' for more details." >&5
6121 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6122 See \`config.log' for more details." >&2;}
6123    { (exit 1); exit 1; }; }
6124 fi
6125
6126 ac_ext=cpp
6127 ac_cpp='$CXXCPP $CPPFLAGS'
6128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6131
6132 fi
6133
6134
6135 ac_ext=f
6136 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6137 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6139 if test -n "$ac_tool_prefix"; then
6140   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6141   do
6142     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6146 if test "${ac_cv_prog_F77+set}" = set; then
6147   echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149   if test -n "$F77"; then
6150   ac_cv_prog_F77="$F77" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155   IFS=$as_save_IFS
6156   test -z "$as_dir" && as_dir=.
6157   for ac_exec_ext in '' $ac_executable_extensions; do
6158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161     break 2
6162   fi
6163 done
6164 done
6165 IFS=$as_save_IFS
6166
6167 fi
6168 fi
6169 F77=$ac_cv_prog_F77
6170 if test -n "$F77"; then
6171   { echo "$as_me:$LINENO: result: $F77" >&5
6172 echo "${ECHO_T}$F77" >&6; }
6173 else
6174   { echo "$as_me:$LINENO: result: no" >&5
6175 echo "${ECHO_T}no" >&6; }
6176 fi
6177
6178
6179     test -n "$F77" && break
6180   done
6181 fi
6182 if test -z "$F77"; then
6183   ac_ct_F77=$F77
6184   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6185 do
6186   # Extract the first word of "$ac_prog", so it can be a program name with args.
6187 set dummy $ac_prog; ac_word=$2
6188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6190 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6191   echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193   if test -n "$ac_ct_F77"; then
6194   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6195 else
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6198 do
6199   IFS=$as_save_IFS
6200   test -z "$as_dir" && as_dir=.
6201   for ac_exec_ext in '' $ac_executable_extensions; do
6202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6203     ac_cv_prog_ac_ct_F77="$ac_prog"
6204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6205     break 2
6206   fi
6207 done
6208 done
6209 IFS=$as_save_IFS
6210
6211 fi
6212 fi
6213 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6214 if test -n "$ac_ct_F77"; then
6215   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6216 echo "${ECHO_T}$ac_ct_F77" >&6; }
6217 else
6218   { echo "$as_me:$LINENO: result: no" >&5
6219 echo "${ECHO_T}no" >&6; }
6220 fi
6221
6222
6223   test -n "$ac_ct_F77" && break
6224 done
6225
6226   if test "x$ac_ct_F77" = x; then
6227     F77=""
6228   else
6229     case $cross_compiling:$ac_tool_warned in
6230 yes:)
6231 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6232 whose name does not start with the host triplet.  If you think this
6233 configuration is useful to you, please write to autoconf@gnu.org." >&5
6234 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6235 whose name does not start with the host triplet.  If you think this
6236 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6237 ac_tool_warned=yes ;;
6238 esac
6239     F77=$ac_ct_F77
6240   fi
6241 fi
6242
6243
6244 # Provide some information about the compiler.
6245 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6246 ac_compiler=`set X $ac_compile; echo $2`
6247 { (ac_try="$ac_compiler --version >&5"
6248 case "(($ac_try" in
6249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250   *) ac_try_echo=$ac_try;;
6251 esac
6252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253   (eval "$ac_compiler --version >&5") 2>&5
6254   ac_status=$?
6255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256   (exit $ac_status); }
6257 { (ac_try="$ac_compiler -v >&5"
6258 case "(($ac_try" in
6259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260   *) ac_try_echo=$ac_try;;
6261 esac
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263   (eval "$ac_compiler -v >&5") 2>&5
6264   ac_status=$?
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); }
6267 { (ac_try="$ac_compiler -V >&5"
6268 case "(($ac_try" in
6269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270   *) ac_try_echo=$ac_try;;
6271 esac
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273   (eval "$ac_compiler -V >&5") 2>&5
6274   ac_status=$?
6275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276   (exit $ac_status); }
6277 rm -f a.out
6278
6279 # If we don't use `.F' as extension, the preprocessor is not run on the
6280 # input file.  (Note that this only needs to work for GNU compilers.)
6281 ac_save_ext=$ac_ext
6282 ac_ext=F
6283 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6284 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6285 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6286   echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288   cat >conftest.$ac_ext <<_ACEOF
6289       program main
6290 #ifndef __GNUC__
6291        choke me
6292 #endif
6293
6294       end
6295 _ACEOF
6296 rm -f conftest.$ac_objext
6297 if { (ac_try="$ac_compile"
6298 case "(($ac_try" in
6299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300   *) ac_try_echo=$ac_try;;
6301 esac
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303   (eval "$ac_compile") 2>conftest.er1
6304   ac_status=$?
6305   grep -v '^ *+' conftest.er1 >conftest.err
6306   rm -f conftest.er1
6307   cat conftest.err >&5
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); } && {
6310          test -z "$ac_f77_werror_flag" ||
6311          test ! -s conftest.err
6312        } && test -s conftest.$ac_objext; then
6313   ac_compiler_gnu=yes
6314 else
6315   echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6317
6318         ac_compiler_gnu=no
6319 fi
6320
6321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6323
6324 fi
6325 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6326 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6327 ac_ext=$ac_save_ext
6328 ac_test_FFLAGS=${FFLAGS+set}
6329 ac_save_FFLAGS=$FFLAGS
6330 FFLAGS=
6331 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6332 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6333 if test "${ac_cv_prog_f77_g+set}" = set; then
6334   echo $ECHO_N "(cached) $ECHO_C" >&6
6335 else
6336   FFLAGS=-g
6337 cat >conftest.$ac_ext <<_ACEOF
6338       program main
6339
6340       end
6341 _ACEOF
6342 rm -f conftest.$ac_objext
6343 if { (ac_try="$ac_compile"
6344 case "(($ac_try" in
6345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346   *) ac_try_echo=$ac_try;;
6347 esac
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349   (eval "$ac_compile") 2>conftest.er1
6350   ac_status=$?
6351   grep -v '^ *+' conftest.er1 >conftest.err
6352   rm -f conftest.er1
6353   cat conftest.err >&5
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); } && {
6356          test -z "$ac_f77_werror_flag" ||
6357          test ! -s conftest.err
6358        } && test -s conftest.$ac_objext; then
6359   ac_cv_prog_f77_g=yes
6360 else
6361   echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6363
6364         ac_cv_prog_f77_g=no
6365 fi
6366
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368
6369 fi
6370 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6371 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6372 if test "$ac_test_FFLAGS" = set; then
6373   FFLAGS=$ac_save_FFLAGS
6374 elif test $ac_cv_prog_f77_g = yes; then
6375   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6376     FFLAGS="-g -O2"
6377   else
6378     FFLAGS="-g"
6379   fi
6380 else
6381   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6382     FFLAGS="-O2"
6383   else
6384     FFLAGS=
6385   fi
6386 fi
6387
6388 G77=`test $ac_compiler_gnu = yes && echo yes`
6389 ac_ext=c
6390 ac_cpp='$CPP $CPPFLAGS'
6391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6394
6395
6396
6397 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6398 # find the maximum length of command line arguments
6399 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6400 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6401 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6402   echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404     i=0
6405   teststring="ABCD"
6406
6407   case $build_os in
6408   msdosdjgpp*)
6409     # On DJGPP, this test can blow up pretty badly due to problems in libc
6410     # (any single argument exceeding 2000 bytes causes a buffer overrun
6411     # during glob expansion).  Even if it were fixed, the result of this
6412     # check would be larger than it should be.
6413     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6414     ;;
6415
6416   gnu*)
6417     # Under GNU Hurd, this test is not required because there is
6418     # no limit to the length of command line arguments.
6419     # Libtool will interpret -1 as no limit whatsoever
6420     lt_cv_sys_max_cmd_len=-1;
6421     ;;
6422
6423   cygwin* | mingw*)
6424     # On Win9x/ME, this test blows up -- it succeeds, but takes
6425     # about 5 minutes as the teststring grows exponentially.
6426     # Worse, since 9x/ME are not pre-emptively multitasking,
6427     # you end up with a "frozen" computer, even though with patience
6428     # the test eventually succeeds (with a max line length of 256k).
6429     # Instead, let's just punt: use the minimum linelength reported by
6430     # all of the supported platforms: 8192 (on NT/2K/XP).
6431     lt_cv_sys_max_cmd_len=8192;
6432     ;;
6433
6434   amigaos*)
6435     # On AmigaOS with pdksh, this test takes hours, literally.
6436     # So we just punt and use a minimum line length of 8192.
6437     lt_cv_sys_max_cmd_len=8192;
6438     ;;
6439
6440   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6441     # This has been around since 386BSD, at least.  Likely further.
6442     if test -x /sbin/sysctl; then
6443       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6444     elif test -x /usr/sbin/sysctl; then
6445       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6446     else
6447       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6448     fi
6449     # And add a safety zone
6450     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6451     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6452     ;;
6453
6454   interix*)
6455     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6456     lt_cv_sys_max_cmd_len=196608
6457     ;;
6458
6459   osf*)
6460     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6461     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6462     # nice to cause kernel panics so lets avoid the loop below.
6463     # First set a reasonable default.
6464     lt_cv_sys_max_cmd_len=16384
6465     #
6466     if test -x /sbin/sysconfig; then
6467       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6468         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6469       esac
6470     fi
6471     ;;
6472   sco3.2v5*)
6473     lt_cv_sys_max_cmd_len=102400
6474     ;;
6475   sysv5* | sco5v6* | sysv4.2uw2*)
6476     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6477     if test -n "$kargmax"; then
6478       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6479     else
6480       lt_cv_sys_max_cmd_len=32768
6481     fi
6482     ;;
6483   *)
6484     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6485     if test -n "$lt_cv_sys_max_cmd_len"; then
6486       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6487       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6488     else
6489       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6490       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6491                = "XX$teststring") >/dev/null 2>&1 &&
6492               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6493               lt_cv_sys_max_cmd_len=$new_result &&
6494               test $i != 17 # 1/2 MB should be enough
6495       do
6496         i=`expr $i + 1`
6497         teststring=$teststring$teststring
6498       done
6499       teststring=
6500       # Add a significant safety factor because C++ compilers can tack on massive
6501       # amounts of additional arguments before passing them to the linker.
6502       # It appears as though 1/2 is a usable value.
6503       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6504     fi
6505     ;;
6506   esac
6507
6508 fi
6509
6510 if test -n $lt_cv_sys_max_cmd_len ; then
6511   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6512 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6513 else
6514   { echo "$as_me:$LINENO: result: none" >&5
6515 echo "${ECHO_T}none" >&6; }
6516 fi
6517
6518
6519
6520
6521
6522 # Check for command to grab the raw symbol name followed by C symbol from nm.
6523 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6524 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6525 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6526   echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528
6529 # These are sane defaults that work on at least a few old systems.
6530 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6531
6532 # Character class describing NM global symbol codes.
6533 symcode='[BCDEGRST]'
6534
6535 # Regexp to match symbols that can be accessed directly from C.
6536 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6537
6538 # Transform an extracted symbol line into a proper C declaration
6539 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6540
6541 # Transform an extracted symbol line into symbol name and symbol address
6542 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'"
6543
6544 # Define system-specific variables.
6545 case $host_os in
6546 aix*)
6547   symcode='[BCDT]'
6548   ;;
6549 cygwin* | mingw* | pw32*)
6550   symcode='[ABCDGISTW]'
6551   ;;
6552 hpux*) # Its linker distinguishes data from code symbols
6553   if test "$host_cpu" = ia64; then
6554     symcode='[ABCDEGRST]'
6555   fi
6556   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6557   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'"
6558   ;;
6559 linux* | k*bsd*-gnu)
6560   if test "$host_cpu" = ia64; then
6561     symcode='[ABCDGIRSTW]'
6562     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6563     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'"
6564   fi
6565   ;;
6566 irix* | nonstopux*)
6567   symcode='[BCDEGRST]'
6568   ;;
6569 osf*)
6570   symcode='[BCDEGQRST]'
6571   ;;
6572 solaris*)
6573   symcode='[BDRT]'
6574   ;;
6575 sco3.2v5*)
6576   symcode='[DT]'
6577   ;;
6578 sysv4.2uw2*)
6579   symcode='[DT]'
6580   ;;
6581 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6582   symcode='[ABDT]'
6583   ;;
6584 sysv4)
6585   symcode='[DFNSTU]'
6586   ;;
6587 esac
6588
6589 # Handle CRLF in mingw tool chain
6590 opt_cr=
6591 case $build_os in
6592 mingw*)
6593   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6594   ;;
6595 esac
6596
6597 # If we're using GNU nm, then use its standard symbol codes.
6598 case `$NM -V 2>&1` in
6599 *GNU* | *'with BFD'*)
6600   symcode='[ABCDGIRSTW]' ;;
6601 esac
6602
6603 # Try without a prefix undercore, then with it.
6604 for ac_symprfx in "" "_"; do
6605
6606   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6607   symxfrm="\\1 $ac_symprfx\\2 \\2"
6608
6609   # Write the raw and C identifiers.
6610   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6611
6612   # Check to see that the pipe works correctly.
6613   pipe_works=no
6614
6615   rm -f conftest*
6616   cat > conftest.$ac_ext <<EOF
6617 #ifdef __cplusplus
6618 extern "C" {
6619 #endif
6620 char nm_test_var;
6621 void nm_test_func(){}
6622 #ifdef __cplusplus
6623 }
6624 #endif
6625 int main(){nm_test_var='a';nm_test_func();return(0);}
6626 EOF
6627
6628   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6629   (eval $ac_compile) 2>&5
6630   ac_status=$?
6631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632   (exit $ac_status); }; then
6633     # Now try to grab the symbols.
6634     nlist=conftest.nm
6635     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6636   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6637   ac_status=$?
6638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639   (exit $ac_status); } && test -s "$nlist"; then
6640       # Try sorting and uniquifying the output.
6641       if sort "$nlist" | uniq > "$nlist"T; then
6642         mv -f "$nlist"T "$nlist"
6643       else
6644         rm -f "$nlist"T
6645       fi
6646
6647       # Make sure that we snagged all the symbols we need.
6648       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6649         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6650           cat <<EOF > conftest.$ac_ext
6651 #ifdef __cplusplus
6652 extern "C" {
6653 #endif
6654
6655 EOF
6656           # Now generate the symbol file.
6657           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6658
6659           cat <<EOF >> conftest.$ac_ext
6660 #if defined (__STDC__) && __STDC__
6661 # define lt_ptr_t void *
6662 #else
6663 # define lt_ptr_t char *
6664 # define const
6665 #endif
6666
6667 /* The mapping between symbol names and symbols. */
6668 const struct {
6669   const char *name;
6670   lt_ptr_t address;
6671 }
6672 lt_preloaded_symbols[] =
6673 {
6674 EOF
6675           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6676           cat <<\EOF >> conftest.$ac_ext
6677   {0, (lt_ptr_t) 0}
6678 };
6679
6680 #ifdef __cplusplus
6681 }
6682 #endif
6683 EOF
6684           # Now try linking the two files.
6685           mv conftest.$ac_objext conftstm.$ac_objext
6686           lt_save_LIBS="$LIBS"
6687           lt_save_CFLAGS="$CFLAGS"
6688           LIBS="conftstm.$ac_objext"
6689           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6690           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6691   (eval $ac_link) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6695             pipe_works=yes
6696           fi
6697           LIBS="$lt_save_LIBS"
6698           CFLAGS="$lt_save_CFLAGS"
6699         else
6700           echo "cannot find nm_test_func in $nlist" >&5
6701         fi
6702       else
6703         echo "cannot find nm_test_var in $nlist" >&5
6704       fi
6705     else
6706       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6707     fi
6708   else
6709     echo "$progname: failed program was:" >&5
6710     cat conftest.$ac_ext >&5
6711   fi
6712   rm -rf conftest* conftst*
6713
6714   # Do not use the global_symbol_pipe unless it works.
6715   if test "$pipe_works" = yes; then
6716     break
6717   else
6718     lt_cv_sys_global_symbol_pipe=
6719   fi
6720 done
6721
6722 fi
6723
6724 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6725   lt_cv_sys_global_symbol_to_cdecl=
6726 fi
6727 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6728   { echo "$as_me:$LINENO: result: failed" >&5
6729 echo "${ECHO_T}failed" >&6; }
6730 else
6731   { echo "$as_me:$LINENO: result: ok" >&5
6732 echo "${ECHO_T}ok" >&6; }
6733 fi
6734
6735 { echo "$as_me:$LINENO: checking for objdir" >&5
6736 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6737 if test "${lt_cv_objdir+set}" = set; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   rm -f .libs 2>/dev/null
6741 mkdir .libs 2>/dev/null
6742 if test -d .libs; then
6743   lt_cv_objdir=.libs
6744 else
6745   # MS-DOS does not allow filenames that begin with a dot.
6746   lt_cv_objdir=_libs
6747 fi
6748 rmdir .libs 2>/dev/null
6749 fi
6750 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6751 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6752 objdir=$lt_cv_objdir
6753
6754
6755
6756
6757
6758 case $host_os in
6759 aix3*)
6760   # AIX sometimes has problems with the GCC collect2 program.  For some
6761   # reason, if we set the COLLECT_NAMES environment variable, the problems
6762   # vanish in a puff of smoke.
6763   if test "X${COLLECT_NAMES+set}" != Xset; then
6764     COLLECT_NAMES=
6765     export COLLECT_NAMES
6766   fi
6767   ;;
6768 esac
6769
6770 # Sed substitution that helps us do robust quoting.  It backslashifies
6771 # metacharacters that are still active within double-quoted strings.
6772 Xsed='sed -e 1s/^X//'
6773 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6774
6775 # Same as above, but do not quote variable references.
6776 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6777
6778 # Sed substitution to delay expansion of an escaped shell variable in a
6779 # double_quote_subst'ed string.
6780 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6781
6782 # Sed substitution to avoid accidental globbing in evaled expressions
6783 no_glob_subst='s/\*/\\\*/g'
6784
6785 # Constants:
6786 rm="rm -f"
6787
6788 # Global variables:
6789 default_ofile=libtool
6790 can_build_shared=yes
6791
6792 # All known linkers require a `.a' archive for static linking (except MSVC,
6793 # which needs '.lib').
6794 libext=a
6795 ltmain="$ac_aux_dir/ltmain.sh"
6796 ofile="$default_ofile"
6797 with_gnu_ld="$lt_cv_prog_gnu_ld"
6798
6799 if test -n "$ac_tool_prefix"; then
6800   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6801 set dummy ${ac_tool_prefix}ar; ac_word=$2
6802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6804 if test "${ac_cv_prog_AR+set}" = set; then
6805   echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6807   if test -n "$AR"; then
6808   ac_cv_prog_AR="$AR" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813   IFS=$as_save_IFS
6814   test -z "$as_dir" && as_dir=.
6815   for ac_exec_ext in '' $ac_executable_extensions; do
6816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817     ac_cv_prog_AR="${ac_tool_prefix}ar"
6818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819     break 2
6820   fi
6821 done
6822 done
6823 IFS=$as_save_IFS
6824
6825 fi
6826 fi
6827 AR=$ac_cv_prog_AR
6828 if test -n "$AR"; then
6829   { echo "$as_me:$LINENO: result: $AR" >&5
6830 echo "${ECHO_T}$AR" >&6; }
6831 else
6832   { echo "$as_me:$LINENO: result: no" >&5
6833 echo "${ECHO_T}no" >&6; }
6834 fi
6835
6836
6837 fi
6838 if test -z "$ac_cv_prog_AR"; then
6839   ac_ct_AR=$AR
6840   # Extract the first word of "ar", so it can be a program name with args.
6841 set dummy ar; ac_word=$2
6842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6844 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6845   echo $ECHO_N "(cached) $ECHO_C" >&6
6846 else
6847   if test -n "$ac_ct_AR"; then
6848   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6852 do
6853   IFS=$as_save_IFS
6854   test -z "$as_dir" && as_dir=.
6855   for ac_exec_ext in '' $ac_executable_extensions; do
6856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6857     ac_cv_prog_ac_ct_AR="ar"
6858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6859     break 2
6860   fi
6861 done
6862 done
6863 IFS=$as_save_IFS
6864
6865 fi
6866 fi
6867 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6868 if test -n "$ac_ct_AR"; then
6869   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6870 echo "${ECHO_T}$ac_ct_AR" >&6; }
6871 else
6872   { echo "$as_me:$LINENO: result: no" >&5
6873 echo "${ECHO_T}no" >&6; }
6874 fi
6875
6876   if test "x$ac_ct_AR" = x; then
6877     AR="false"
6878   else
6879     case $cross_compiling:$ac_tool_warned in
6880 yes:)
6881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6882 whose name does not start with the host triplet.  If you think this
6883 configuration is useful to you, please write to autoconf@gnu.org." >&5
6884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6885 whose name does not start with the host triplet.  If you think this
6886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6887 ac_tool_warned=yes ;;
6888 esac
6889     AR=$ac_ct_AR
6890   fi
6891 else
6892   AR="$ac_cv_prog_AR"
6893 fi
6894
6895 if test -n "$ac_tool_prefix"; then
6896   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6897 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6900 if test "${ac_cv_prog_RANLIB+set}" = set; then
6901   echo $ECHO_N "(cached) $ECHO_C" >&6
6902 else
6903   if test -n "$RANLIB"; then
6904   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6905 else
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6908 do
6909   IFS=$as_save_IFS
6910   test -z "$as_dir" && as_dir=.
6911   for ac_exec_ext in '' $ac_executable_extensions; do
6912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6913     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6915     break 2
6916   fi
6917 done
6918 done
6919 IFS=$as_save_IFS
6920
6921 fi
6922 fi
6923 RANLIB=$ac_cv_prog_RANLIB
6924 if test -n "$RANLIB"; then
6925   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6926 echo "${ECHO_T}$RANLIB" >&6; }
6927 else
6928   { echo "$as_me:$LINENO: result: no" >&5
6929 echo "${ECHO_T}no" >&6; }
6930 fi
6931
6932
6933 fi
6934 if test -z "$ac_cv_prog_RANLIB"; then
6935   ac_ct_RANLIB=$RANLIB
6936   # Extract the first word of "ranlib", so it can be a program name with args.
6937 set dummy ranlib; ac_word=$2
6938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6941   echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943   if test -n "$ac_ct_RANLIB"; then
6944   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6945 else
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6948 do
6949   IFS=$as_save_IFS
6950   test -z "$as_dir" && as_dir=.
6951   for ac_exec_ext in '' $ac_executable_extensions; do
6952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6953     ac_cv_prog_ac_ct_RANLIB="ranlib"
6954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6955     break 2
6956   fi
6957 done
6958 done
6959 IFS=$as_save_IFS
6960
6961 fi
6962 fi
6963 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6964 if test -n "$ac_ct_RANLIB"; then
6965   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6966 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6967 else
6968   { echo "$as_me:$LINENO: result: no" >&5
6969 echo "${ECHO_T}no" >&6; }
6970 fi
6971
6972   if test "x$ac_ct_RANLIB" = x; then
6973     RANLIB=":"
6974   else
6975     case $cross_compiling:$ac_tool_warned in
6976 yes:)
6977 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6978 whose name does not start with the host triplet.  If you think this
6979 configuration is useful to you, please write to autoconf@gnu.org." >&5
6980 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6981 whose name does not start with the host triplet.  If you think this
6982 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6983 ac_tool_warned=yes ;;
6984 esac
6985     RANLIB=$ac_ct_RANLIB
6986   fi
6987 else
6988   RANLIB="$ac_cv_prog_RANLIB"
6989 fi
6990
6991 if test -n "$ac_tool_prefix"; then
6992   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6993 set dummy ${ac_tool_prefix}strip; ac_word=$2
6994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996 if test "${ac_cv_prog_STRIP+set}" = set; then
6997   echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999   if test -n "$STRIP"; then
7000   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7001 else
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7004 do
7005   IFS=$as_save_IFS
7006   test -z "$as_dir" && as_dir=.
7007   for ac_exec_ext in '' $ac_executable_extensions; do
7008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7009     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011     break 2
7012   fi
7013 done
7014 done
7015 IFS=$as_save_IFS
7016
7017 fi
7018 fi
7019 STRIP=$ac_cv_prog_STRIP
7020 if test -n "$STRIP"; then
7021   { echo "$as_me:$LINENO: result: $STRIP" >&5
7022 echo "${ECHO_T}$STRIP" >&6; }
7023 else
7024   { echo "$as_me:$LINENO: result: no" >&5
7025 echo "${ECHO_T}no" >&6; }
7026 fi
7027
7028
7029 fi
7030 if test -z "$ac_cv_prog_STRIP"; then
7031   ac_ct_STRIP=$STRIP
7032   # Extract the first word of "strip", so it can be a program name with args.
7033 set dummy strip; ac_word=$2
7034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7036 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7037   echo $ECHO_N "(cached) $ECHO_C" >&6
7038 else
7039   if test -n "$ac_ct_STRIP"; then
7040   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7041 else
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 for as_dir in $PATH
7044 do
7045   IFS=$as_save_IFS
7046   test -z "$as_dir" && as_dir=.
7047   for ac_exec_ext in '' $ac_executable_extensions; do
7048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7049     ac_cv_prog_ac_ct_STRIP="strip"
7050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7051     break 2
7052   fi
7053 done
7054 done
7055 IFS=$as_save_IFS
7056
7057 fi
7058 fi
7059 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7060 if test -n "$ac_ct_STRIP"; then
7061   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7062 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7063 else
7064   { echo "$as_me:$LINENO: result: no" >&5
7065 echo "${ECHO_T}no" >&6; }
7066 fi
7067
7068   if test "x$ac_ct_STRIP" = x; then
7069     STRIP=":"
7070   else
7071     case $cross_compiling:$ac_tool_warned in
7072 yes:)
7073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7074 whose name does not start with the host triplet.  If you think this
7075 configuration is useful to you, please write to autoconf@gnu.org." >&5
7076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7077 whose name does not start with the host triplet.  If you think this
7078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7079 ac_tool_warned=yes ;;
7080 esac
7081     STRIP=$ac_ct_STRIP
7082   fi
7083 else
7084   STRIP="$ac_cv_prog_STRIP"
7085 fi
7086
7087
7088 old_CC="$CC"
7089 old_CFLAGS="$CFLAGS"
7090
7091 # Set sane defaults for various variables
7092 test -z "$AR" && AR=ar
7093 test -z "$AR_FLAGS" && AR_FLAGS=cru
7094 test -z "$AS" && AS=as
7095 test -z "$CC" && CC=cc
7096 test -z "$LTCC" && LTCC=$CC
7097 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7098 test -z "$DLLTOOL" && DLLTOOL=dlltool
7099 test -z "$LD" && LD=ld
7100 test -z "$LN_S" && LN_S="ln -s"
7101 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7102 test -z "$NM" && NM=nm
7103 test -z "$SED" && SED=sed
7104 test -z "$OBJDUMP" && OBJDUMP=objdump
7105 test -z "$RANLIB" && RANLIB=:
7106 test -z "$STRIP" && STRIP=:
7107 test -z "$ac_objext" && ac_objext=o
7108
7109 # Determine commands to create old-style static archives.
7110 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7111 old_postinstall_cmds='chmod 644 $oldlib'
7112 old_postuninstall_cmds=
7113
7114 if test -n "$RANLIB"; then
7115   case $host_os in
7116   openbsd*)
7117     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7118     ;;
7119   *)
7120     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7121     ;;
7122   esac
7123   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7124 fi
7125
7126 for cc_temp in $compiler""; do
7127   case $cc_temp in
7128     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7129     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7130     \-*) ;;
7131     *) break;;
7132   esac
7133 done
7134 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7135
7136
7137 # Only perform the check for file, if the check method requires it
7138 case $deplibs_check_method in
7139 file_magic*)
7140   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7141     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7142 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7143 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7144   echo $ECHO_N "(cached) $ECHO_C" >&6
7145 else
7146   case $MAGIC_CMD in
7147 [\\/*] |  ?:[\\/]*)
7148   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7149   ;;
7150 *)
7151   lt_save_MAGIC_CMD="$MAGIC_CMD"
7152   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7153   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7154   for ac_dir in $ac_dummy; do
7155     IFS="$lt_save_ifs"
7156     test -z "$ac_dir" && ac_dir=.
7157     if test -f $ac_dir/${ac_tool_prefix}file; then
7158       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7159       if test -n "$file_magic_test_file"; then
7160         case $deplibs_check_method in
7161         "file_magic "*)
7162           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7163           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7164           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7165             $EGREP "$file_magic_regex" > /dev/null; then
7166             :
7167           else
7168             cat <<EOF 1>&2
7169
7170 *** Warning: the command libtool uses to detect shared libraries,
7171 *** $file_magic_cmd, produces output that libtool cannot recognize.
7172 *** The result is that libtool may fail to recognize shared libraries
7173 *** as such.  This will affect the creation of libtool libraries that
7174 *** depend on shared libraries, but programs linked with such libtool
7175 *** libraries will work regardless of this problem.  Nevertheless, you
7176 *** may want to report the problem to your system manager and/or to
7177 *** bug-libtool@gnu.org
7178
7179 EOF
7180           fi ;;
7181         esac
7182       fi
7183       break
7184     fi
7185   done
7186   IFS="$lt_save_ifs"
7187   MAGIC_CMD="$lt_save_MAGIC_CMD"
7188   ;;
7189 esac
7190 fi
7191
7192 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7193 if test -n "$MAGIC_CMD"; then
7194   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7195 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7196 else
7197   { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7199 fi
7200
7201 if test -z "$lt_cv_path_MAGIC_CMD"; then
7202   if test -n "$ac_tool_prefix"; then
7203     { echo "$as_me:$LINENO: checking for file" >&5
7204 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7205 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7206   echo $ECHO_N "(cached) $ECHO_C" >&6
7207 else
7208   case $MAGIC_CMD in
7209 [\\/*] |  ?:[\\/]*)
7210   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7211   ;;
7212 *)
7213   lt_save_MAGIC_CMD="$MAGIC_CMD"
7214   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7215   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7216   for ac_dir in $ac_dummy; do
7217     IFS="$lt_save_ifs"
7218     test -z "$ac_dir" && ac_dir=.
7219     if test -f $ac_dir/file; then
7220       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7221       if test -n "$file_magic_test_file"; then
7222         case $deplibs_check_method in
7223         "file_magic "*)
7224           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7225           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7226           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7227             $EGREP "$file_magic_regex" > /dev/null; then
7228             :
7229           else
7230             cat <<EOF 1>&2
7231
7232 *** Warning: the command libtool uses to detect shared libraries,
7233 *** $file_magic_cmd, produces output that libtool cannot recognize.
7234 *** The result is that libtool may fail to recognize shared libraries
7235 *** as such.  This will affect the creation of libtool libraries that
7236 *** depend on shared libraries, but programs linked with such libtool
7237 *** libraries will work regardless of this problem.  Nevertheless, you
7238 *** may want to report the problem to your system manager and/or to
7239 *** bug-libtool@gnu.org
7240
7241 EOF
7242           fi ;;
7243         esac
7244       fi
7245       break
7246     fi
7247   done
7248   IFS="$lt_save_ifs"
7249   MAGIC_CMD="$lt_save_MAGIC_CMD"
7250   ;;
7251 esac
7252 fi
7253
7254 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7255 if test -n "$MAGIC_CMD"; then
7256   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7257 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7258 else
7259   { echo "$as_me:$LINENO: result: no" >&5
7260 echo "${ECHO_T}no" >&6; }
7261 fi
7262
7263   else
7264     MAGIC_CMD=:
7265   fi
7266 fi
7267
7268   fi
7269   ;;
7270 esac
7271
7272
7273   case $host_os in
7274     rhapsody* | darwin*)
7275     if test -n "$ac_tool_prefix"; then
7276   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7277 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7280 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7281   echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283   if test -n "$DSYMUTIL"; then
7284   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7285 else
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 for as_dir in $PATH
7288 do
7289   IFS=$as_save_IFS
7290   test -z "$as_dir" && as_dir=.
7291   for ac_exec_ext in '' $ac_executable_extensions; do
7292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7293     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7295     break 2
7296   fi
7297 done
7298 done
7299 IFS=$as_save_IFS
7300
7301 fi
7302 fi
7303 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7304 if test -n "$DSYMUTIL"; then
7305   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7306 echo "${ECHO_T}$DSYMUTIL" >&6; }
7307 else
7308   { echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6; }
7310 fi
7311
7312
7313 fi
7314 if test -z "$ac_cv_prog_DSYMUTIL"; then
7315   ac_ct_DSYMUTIL=$DSYMUTIL
7316   # Extract the first word of "dsymutil", so it can be a program name with args.
7317 set dummy dsymutil; ac_word=$2
7318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7320 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7321   echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323   if test -n "$ac_ct_DSYMUTIL"; then
7324   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7325 else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7328 do
7329   IFS=$as_save_IFS
7330   test -z "$as_dir" && as_dir=.
7331   for ac_exec_ext in '' $ac_executable_extensions; do
7332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7333     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7335     break 2
7336   fi
7337 done
7338 done
7339 IFS=$as_save_IFS
7340
7341 fi
7342 fi
7343 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7344 if test -n "$ac_ct_DSYMUTIL"; then
7345   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7346 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7347 else
7348   { echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6; }
7350 fi
7351
7352   if test "x$ac_ct_DSYMUTIL" = x; then
7353     DSYMUTIL=":"
7354   else
7355     case $cross_compiling:$ac_tool_warned in
7356 yes:)
7357 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7358 whose name does not start with the host triplet.  If you think this
7359 configuration is useful to you, please write to autoconf@gnu.org." >&5
7360 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7361 whose name does not start with the host triplet.  If you think this
7362 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7363 ac_tool_warned=yes ;;
7364 esac
7365     DSYMUTIL=$ac_ct_DSYMUTIL
7366   fi
7367 else
7368   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7369 fi
7370
7371     if test -n "$ac_tool_prefix"; then
7372   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7373 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7376 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7377   echo $ECHO_N "(cached) $ECHO_C" >&6
7378 else
7379   if test -n "$NMEDIT"; then
7380   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7381 else
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385   IFS=$as_save_IFS
7386   test -z "$as_dir" && as_dir=.
7387   for ac_exec_ext in '' $ac_executable_extensions; do
7388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391     break 2
7392   fi
7393 done
7394 done
7395 IFS=$as_save_IFS
7396
7397 fi
7398 fi
7399 NMEDIT=$ac_cv_prog_NMEDIT
7400 if test -n "$NMEDIT"; then
7401   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7402 echo "${ECHO_T}$NMEDIT" >&6; }
7403 else
7404   { echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6; }
7406 fi
7407
7408
7409 fi
7410 if test -z "$ac_cv_prog_NMEDIT"; then
7411   ac_ct_NMEDIT=$NMEDIT
7412   # Extract the first word of "nmedit", so it can be a program name with args.
7413 set dummy nmedit; ac_word=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419   if test -n "$ac_ct_NMEDIT"; then
7420   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7421 else
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425   IFS=$as_save_IFS
7426   test -z "$as_dir" && as_dir=.
7427   for ac_exec_ext in '' $ac_executable_extensions; do
7428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431     break 2
7432   fi
7433 done
7434 done
7435 IFS=$as_save_IFS
7436
7437 fi
7438 fi
7439 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7440 if test -n "$ac_ct_NMEDIT"; then
7441   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7442 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7443 else
7444   { echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6; }
7446 fi
7447
7448   if test "x$ac_ct_NMEDIT" = x; then
7449     NMEDIT=":"
7450   else
7451     case $cross_compiling:$ac_tool_warned in
7452 yes:)
7453 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7454 whose name does not start with the host triplet.  If you think this
7455 configuration is useful to you, please write to autoconf@gnu.org." >&5
7456 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7457 whose name does not start with the host triplet.  If you think this
7458 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7459 ac_tool_warned=yes ;;
7460 esac
7461     NMEDIT=$ac_ct_NMEDIT
7462   fi
7463 else
7464   NMEDIT="$ac_cv_prog_NMEDIT"
7465 fi
7466
7467
7468     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7469 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7470 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7471   echo $ECHO_N "(cached) $ECHO_C" >&6
7472 else
7473   lt_cv_apple_cc_single_mod=no
7474       if test -z "${LT_MULTI_MODULE}"; then
7475    # By default we will add the -single_module flag. You can override
7476    # by either setting the environment variable LT_MULTI_MODULE
7477    # non-empty at configure time, or by adding -multi_module to the
7478    # link flags.
7479    echo "int foo(void){return 1;}" > conftest.c
7480    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7481      -dynamiclib ${wl}-single_module conftest.c
7482    if test -f libconftest.dylib; then
7483      lt_cv_apple_cc_single_mod=yes
7484      rm -rf libconftest.dylib*
7485    fi
7486    rm conftest.c
7487       fi
7488 fi
7489 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7490 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7491     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7492 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7493 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7494   echo $ECHO_N "(cached) $ECHO_C" >&6
7495 else
7496   lt_cv_ld_exported_symbols_list=no
7497       save_LDFLAGS=$LDFLAGS
7498       echo "_main" > conftest.sym
7499       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7500       cat >conftest.$ac_ext <<_ACEOF
7501 /* confdefs.h.  */
7502 _ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h.  */
7506
7507 int
7508 main ()
7509 {
7510
7511   ;
7512   return 0;
7513 }
7514 _ACEOF
7515 rm -f conftest.$ac_objext conftest$ac_exeext
7516 if { (ac_try="$ac_link"
7517 case "(($ac_try" in
7518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7519   *) ac_try_echo=$ac_try;;
7520 esac
7521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7522   (eval "$ac_link") 2>conftest.er1
7523   ac_status=$?
7524   grep -v '^ *+' conftest.er1 >conftest.err
7525   rm -f conftest.er1
7526   cat conftest.err >&5
7527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528   (exit $ac_status); } && {
7529          test -z "$ac_c_werror_flag" ||
7530          test ! -s conftest.err
7531        } && test -s conftest$ac_exeext &&
7532        $as_test_x conftest$ac_exeext; then
7533   lt_cv_ld_exported_symbols_list=yes
7534 else
7535   echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7537
7538         lt_cv_ld_exported_symbols_list=no
7539 fi
7540
7541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7542       conftest$ac_exeext conftest.$ac_ext
7543    LDFLAGS="$save_LDFLAGS"
7544
7545 fi
7546 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7547 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7548     case $host_os in
7549     rhapsody* | darwin1.[0123])
7550       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7551     darwin1.*)
7552      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7553     darwin*)
7554       # if running on 10.5 or later, the deployment target defaults
7555       # to the OS version, if on x86, and 10.4, the deployment
7556       # target defaults to 10.4. Don't you love it?
7557       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7558    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7559      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7560    10.[012]*)
7561      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7562    10.*)
7563      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7564       esac
7565     ;;
7566   esac
7567     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7568       _lt_dar_single_mod='$single_module'
7569     fi
7570     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7571       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7572     else
7573       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7574     fi
7575     if test "$DSYMUTIL" != ":"; then
7576       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7577     else
7578       _lt_dsymutil=
7579     fi
7580     ;;
7581   esac
7582
7583
7584 enable_dlopen=yes
7585 enable_win32_dll=no
7586
7587 # Check whether --enable-libtool-lock was given.
7588 if test "${enable_libtool_lock+set}" = set; then
7589   enableval=$enable_libtool_lock;
7590 fi
7591
7592 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7593
7594
7595 # Check whether --with-pic was given.
7596 if test "${with_pic+set}" = set; then
7597   withval=$with_pic; pic_mode="$withval"
7598 else
7599   pic_mode=default
7600 fi
7601
7602 test -z "$pic_mode" && pic_mode=default
7603
7604 # Use C for the default configuration in the libtool script
7605 tagname=
7606 lt_save_CC="$CC"
7607 ac_ext=c
7608 ac_cpp='$CPP $CPPFLAGS'
7609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7612
7613
7614 # Source file extension for C test sources.
7615 ac_ext=c
7616
7617 # Object file extension for compiled C test sources.
7618 objext=o
7619 objext=$objext
7620
7621 # Code to be used in simple compile tests
7622 lt_simple_compile_test_code="int some_variable = 0;"
7623
7624 # Code to be used in simple link tests
7625 lt_simple_link_test_code='int main(){return(0);}'
7626
7627
7628 # If no C compiler was specified, use CC.
7629 LTCC=${LTCC-"$CC"}
7630
7631 # If no C compiler flags were specified, use CFLAGS.
7632 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7633
7634 # Allow CC to be a program name with arguments.
7635 compiler=$CC
7636
7637
7638 # save warnings/boilerplate of simple test code
7639 ac_outfile=conftest.$ac_objext
7640 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7641 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7642 _lt_compiler_boilerplate=`cat conftest.err`
7643 $rm conftest*
7644
7645 ac_outfile=conftest.$ac_objext
7646 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7647 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7648 _lt_linker_boilerplate=`cat conftest.err`
7649 $rm -r conftest*
7650
7651
7652
7653 lt_prog_compiler_no_builtin_flag=
7654
7655 if test "$GCC" = yes; then
7656   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7657
7658
7659 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7660 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7661 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7662   echo $ECHO_N "(cached) $ECHO_C" >&6
7663 else
7664   lt_cv_prog_compiler_rtti_exceptions=no
7665   ac_outfile=conftest.$ac_objext
7666    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7667    lt_compiler_flag="-fno-rtti -fno-exceptions"
7668    # Insert the option either (1) after the last *FLAGS variable, or
7669    # (2) before a word containing "conftest.", or (3) at the end.
7670    # Note that $ac_compile itself does not contain backslashes and begins
7671    # with a dollar sign (not a hyphen), so the echo should work correctly.
7672    # The option is referenced via a variable to avoid confusing sed.
7673    lt_compile=`echo "$ac_compile" | $SED \
7674    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7675    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7676    -e 's:$: $lt_compiler_flag:'`
7677    (eval echo "\"\$as_me:7677: $lt_compile\"" >&5)
7678    (eval "$lt_compile" 2>conftest.err)
7679    ac_status=$?
7680    cat conftest.err >&5
7681    echo "$as_me:7681: \$? = $ac_status" >&5
7682    if (exit $ac_status) && test -s "$ac_outfile"; then
7683      # The compiler can only warn and ignore the option if not recognized
7684      # So say no if there are warnings other than the usual output.
7685      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7686      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7687      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7688        lt_cv_prog_compiler_rtti_exceptions=yes
7689      fi
7690    fi
7691    $rm conftest*
7692
7693 fi
7694 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7695 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7696
7697 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7698     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7699 else
7700     :
7701 fi
7702
7703 fi
7704
7705 lt_prog_compiler_wl=
7706 lt_prog_compiler_pic=
7707 lt_prog_compiler_static=
7708
7709 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7710 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7711
7712   if test "$GCC" = yes; then
7713     lt_prog_compiler_wl='-Wl,'
7714     lt_prog_compiler_static='-static'
7715
7716     case $host_os in
7717       aix*)
7718       # All AIX code is PIC.
7719       if test "$host_cpu" = ia64; then
7720         # AIX 5 now supports IA64 processor
7721         lt_prog_compiler_static='-Bstatic'
7722       fi
7723       ;;
7724
7725     amigaos*)
7726       # FIXME: we need at least 68020 code to build shared libraries, but
7727       # adding the `-m68020' flag to GCC prevents building anything better,
7728       # like `-m68040'.
7729       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7730       ;;
7731
7732     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7733       # PIC is the default for these OSes.
7734       ;;
7735
7736     mingw* | cygwin* | pw32* | os2*)
7737       # This hack is so that the source file can tell whether it is being
7738       # built for inclusion in a dll (and should export symbols for example).
7739       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7740       # (--disable-auto-import) libraries
7741       lt_prog_compiler_pic='-DDLL_EXPORT'
7742       ;;
7743
7744     darwin* | rhapsody*)
7745       # PIC is the default on this platform
7746       # Common symbols not allowed in MH_DYLIB files
7747       lt_prog_compiler_pic='-fno-common'
7748       ;;
7749
7750     interix[3-9]*)
7751       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7752       # Instead, we relocate shared libraries at runtime.
7753       ;;
7754
7755     msdosdjgpp*)
7756       # Just because we use GCC doesn't mean we suddenly get shared libraries
7757       # on systems that don't support them.
7758       lt_prog_compiler_can_build_shared=no
7759       enable_shared=no
7760       ;;
7761
7762     sysv4*MP*)
7763       if test -d /usr/nec; then
7764         lt_prog_compiler_pic=-Kconform_pic
7765       fi
7766       ;;
7767
7768     hpux*)
7769       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7770       # not for PA HP-UX.
7771       case $host_cpu in
7772       hppa*64*|ia64*)
7773         # +Z the default
7774         ;;
7775       *)
7776         lt_prog_compiler_pic='-fPIC'
7777         ;;
7778       esac
7779       ;;
7780
7781     *)
7782       lt_prog_compiler_pic='-fPIC'
7783       ;;
7784     esac
7785   else
7786     # PORTME Check for flag to pass linker flags through the system compiler.
7787     case $host_os in
7788     aix*)
7789       lt_prog_compiler_wl='-Wl,'
7790       if test "$host_cpu" = ia64; then
7791         # AIX 5 now supports IA64 processor
7792         lt_prog_compiler_static='-Bstatic'
7793       else
7794         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7795       fi
7796       ;;
7797       darwin*)
7798         # PIC is the default on this platform
7799         # Common symbols not allowed in MH_DYLIB files
7800        case $cc_basename in
7801          xlc*)
7802          lt_prog_compiler_pic='-qnocommon'
7803          lt_prog_compiler_wl='-Wl,'
7804          ;;
7805        esac
7806        ;;
7807
7808     mingw* | cygwin* | pw32* | os2*)
7809       # This hack is so that the source file can tell whether it is being
7810       # built for inclusion in a dll (and should export symbols for example).
7811       lt_prog_compiler_pic='-DDLL_EXPORT'
7812       ;;
7813
7814     hpux9* | hpux10* | hpux11*)
7815       lt_prog_compiler_wl='-Wl,'
7816       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7817       # not for PA HP-UX.
7818       case $host_cpu in
7819       hppa*64*|ia64*)
7820         # +Z the default
7821         ;;
7822       *)
7823         lt_prog_compiler_pic='+Z'
7824         ;;
7825       esac
7826       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7827       lt_prog_compiler_static='${wl}-a ${wl}archive'
7828       ;;
7829
7830     irix5* | irix6* | nonstopux*)
7831       lt_prog_compiler_wl='-Wl,'
7832       # PIC (with -KPIC) is the default.
7833       lt_prog_compiler_static='-non_shared'
7834       ;;
7835
7836     newsos6)
7837       lt_prog_compiler_pic='-KPIC'
7838       lt_prog_compiler_static='-Bstatic'
7839       ;;
7840
7841     linux* | k*bsd*-gnu)
7842       case $cc_basename in
7843       icc* | ecc*)
7844         lt_prog_compiler_wl='-Wl,'
7845         lt_prog_compiler_pic='-KPIC'
7846         lt_prog_compiler_static='-static'
7847         ;;
7848       pgcc* | pgf77* | pgf90* | pgf95*)
7849         # Portland Group compilers (*not* the Pentium gcc compiler,
7850         # which looks to be a dead project)
7851         lt_prog_compiler_wl='-Wl,'
7852         lt_prog_compiler_pic='-fpic'
7853         lt_prog_compiler_static='-Bstatic'
7854         ;;
7855       ccc*)
7856         lt_prog_compiler_wl='-Wl,'
7857         # All Alpha code is PIC.
7858         lt_prog_compiler_static='-non_shared'
7859         ;;
7860       *)
7861         case `$CC -V 2>&1 | sed 5q` in
7862         *Sun\ C*)
7863           # Sun C 5.9
7864           lt_prog_compiler_pic='-KPIC'
7865           lt_prog_compiler_static='-Bstatic'
7866           lt_prog_compiler_wl='-Wl,'
7867           ;;
7868         *Sun\ F*)
7869           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7870           lt_prog_compiler_pic='-KPIC'
7871           lt_prog_compiler_static='-Bstatic'
7872           lt_prog_compiler_wl=''
7873           ;;
7874         esac
7875         ;;
7876       esac
7877       ;;
7878
7879     osf3* | osf4* | osf5*)
7880       lt_prog_compiler_wl='-Wl,'
7881       # All OSF/1 code is PIC.
7882       lt_prog_compiler_static='-non_shared'
7883       ;;
7884
7885     rdos*)
7886       lt_prog_compiler_static='-non_shared'
7887       ;;
7888
7889     solaris*)
7890       lt_prog_compiler_pic='-KPIC'
7891       lt_prog_compiler_static='-Bstatic'
7892       case $cc_basename in
7893       f77* | f90* | f95*)
7894         lt_prog_compiler_wl='-Qoption ld ';;
7895       *)
7896         lt_prog_compiler_wl='-Wl,';;
7897       esac
7898       ;;
7899
7900     sunos4*)
7901       lt_prog_compiler_wl='-Qoption ld '
7902       lt_prog_compiler_pic='-PIC'
7903       lt_prog_compiler_static='-Bstatic'
7904       ;;
7905
7906     sysv4 | sysv4.2uw2* | sysv4.3*)
7907       lt_prog_compiler_wl='-Wl,'
7908       lt_prog_compiler_pic='-KPIC'
7909       lt_prog_compiler_static='-Bstatic'
7910       ;;
7911
7912     sysv4*MP*)
7913       if test -d /usr/nec ;then
7914         lt_prog_compiler_pic='-Kconform_pic'
7915         lt_prog_compiler_static='-Bstatic'
7916       fi
7917       ;;
7918
7919     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7920       lt_prog_compiler_wl='-Wl,'
7921       lt_prog_compiler_pic='-KPIC'
7922       lt_prog_compiler_static='-Bstatic'
7923       ;;
7924
7925     unicos*)
7926       lt_prog_compiler_wl='-Wl,'
7927       lt_prog_compiler_can_build_shared=no
7928       ;;
7929
7930     uts4*)
7931       lt_prog_compiler_pic='-pic'
7932       lt_prog_compiler_static='-Bstatic'
7933       ;;
7934
7935     *)
7936       lt_prog_compiler_can_build_shared=no
7937       ;;
7938     esac
7939   fi
7940
7941 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7942 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7943
7944 #
7945 # Check to make sure the PIC flag actually works.
7946 #
7947 if test -n "$lt_prog_compiler_pic"; then
7948
7949 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7950 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7951 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7952   echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954   lt_cv_prog_compiler_pic_works=no
7955   ac_outfile=conftest.$ac_objext
7956    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7957    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7958    # Insert the option either (1) after the last *FLAGS variable, or
7959    # (2) before a word containing "conftest.", or (3) at the end.
7960    # Note that $ac_compile itself does not contain backslashes and begins
7961    # with a dollar sign (not a hyphen), so the echo should work correctly.
7962    # The option is referenced via a variable to avoid confusing sed.
7963    lt_compile=`echo "$ac_compile" | $SED \
7964    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7965    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7966    -e 's:$: $lt_compiler_flag:'`
7967    (eval echo "\"\$as_me:7967: $lt_compile\"" >&5)
7968    (eval "$lt_compile" 2>conftest.err)
7969    ac_status=$?
7970    cat conftest.err >&5
7971    echo "$as_me:7971: \$? = $ac_status" >&5
7972    if (exit $ac_status) && test -s "$ac_outfile"; then
7973      # The compiler can only warn and ignore the option if not recognized
7974      # So say no if there are warnings other than the usual output.
7975      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7976      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7977      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7978        lt_cv_prog_compiler_pic_works=yes
7979      fi
7980    fi
7981    $rm conftest*
7982
7983 fi
7984 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7985 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7986
7987 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7988     case $lt_prog_compiler_pic in
7989      "" | " "*) ;;
7990      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7991      esac
7992 else
7993     lt_prog_compiler_pic=
7994      lt_prog_compiler_can_build_shared=no
7995 fi
7996
7997 fi
7998 case $host_os in
7999   # For platforms which do not support PIC, -DPIC is meaningless:
8000   *djgpp*)
8001     lt_prog_compiler_pic=
8002     ;;
8003   *)
8004     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8005     ;;
8006 esac
8007
8008 #
8009 # Check to make sure the static flag actually works.
8010 #
8011 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8012 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8013 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8014 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8015   echo $ECHO_N "(cached) $ECHO_C" >&6
8016 else
8017   lt_cv_prog_compiler_static_works=no
8018    save_LDFLAGS="$LDFLAGS"
8019    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8020    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8021    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8022      # The linker can only warn and ignore the option if not recognized
8023      # So say no if there are warnings
8024      if test -s conftest.err; then
8025        # Append any errors to the config.log.
8026        cat conftest.err 1>&5
8027        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8028        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8029        if diff conftest.exp conftest.er2 >/dev/null; then
8030          lt_cv_prog_compiler_static_works=yes
8031        fi
8032      else
8033        lt_cv_prog_compiler_static_works=yes
8034      fi
8035    fi
8036    $rm -r conftest*
8037    LDFLAGS="$save_LDFLAGS"
8038
8039 fi
8040 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8041 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8042
8043 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8044     :
8045 else
8046     lt_prog_compiler_static=
8047 fi
8048
8049
8050 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8051 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8052 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8053   echo $ECHO_N "(cached) $ECHO_C" >&6
8054 else
8055   lt_cv_prog_compiler_c_o=no
8056    $rm -r conftest 2>/dev/null
8057    mkdir conftest
8058    cd conftest
8059    mkdir out
8060    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8061
8062    lt_compiler_flag="-o out/conftest2.$ac_objext"
8063    # Insert the option either (1) after the last *FLAGS variable, or
8064    # (2) before a word containing "conftest.", or (3) at the end.
8065    # Note that $ac_compile itself does not contain backslashes and begins
8066    # with a dollar sign (not a hyphen), so the echo should work correctly.
8067    lt_compile=`echo "$ac_compile" | $SED \
8068    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8069    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8070    -e 's:$: $lt_compiler_flag:'`
8071    (eval echo "\"\$as_me:8071: $lt_compile\"" >&5)
8072    (eval "$lt_compile" 2>out/conftest.err)
8073    ac_status=$?
8074    cat out/conftest.err >&5
8075    echo "$as_me:8075: \$? = $ac_status" >&5
8076    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8077    then
8078      # The compiler can only warn and ignore the option if not recognized
8079      # So say no if there are warnings
8080      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8081      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8082      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8083        lt_cv_prog_compiler_c_o=yes
8084      fi
8085    fi
8086    chmod u+w . 2>&5
8087    $rm conftest*
8088    # SGI C++ compiler will create directory out/ii_files/ for
8089    # template instantiation
8090    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8091    $rm out/* && rmdir out
8092    cd ..
8093    rmdir conftest
8094    $rm conftest*
8095
8096 fi
8097 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8098 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8099
8100
8101 hard_links="nottested"
8102 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8103   # do not overwrite the value of need_locks provided by the user
8104   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8105 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8106   hard_links=yes
8107   $rm conftest*
8108   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8109   touch conftest.a
8110   ln conftest.a conftest.b 2>&5 || hard_links=no
8111   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8112   { echo "$as_me:$LINENO: result: $hard_links" >&5
8113 echo "${ECHO_T}$hard_links" >&6; }
8114   if test "$hard_links" = no; then
8115     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8116 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8117     need_locks=warn
8118   fi
8119 else
8120   need_locks=no
8121 fi
8122
8123 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8124 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8125
8126   runpath_var=
8127   allow_undefined_flag=
8128   enable_shared_with_static_runtimes=no
8129   archive_cmds=
8130   archive_expsym_cmds=
8131   old_archive_From_new_cmds=
8132   old_archive_from_expsyms_cmds=
8133   export_dynamic_flag_spec=
8134   whole_archive_flag_spec=
8135   thread_safe_flag_spec=
8136   hardcode_libdir_flag_spec=
8137   hardcode_libdir_flag_spec_ld=
8138   hardcode_libdir_separator=
8139   hardcode_direct=no
8140   hardcode_minus_L=no
8141   hardcode_shlibpath_var=unsupported
8142   link_all_deplibs=unknown
8143   hardcode_automatic=no
8144   module_cmds=
8145   module_expsym_cmds=
8146   always_export_symbols=no
8147   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8148   # include_expsyms should be a list of space-separated symbols to be *always*
8149   # included in the symbol list
8150   include_expsyms=
8151   # exclude_expsyms can be an extended regexp of symbols to exclude
8152   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8153   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8154   # as well as any symbol that contains `d'.
8155   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8156   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8157   # platforms (ab)use it in PIC code, but their linkers get confused if
8158   # the symbol is explicitly referenced.  Since portable code cannot
8159   # rely on this symbol name, it's probably fine to never include it in
8160   # preloaded symbol tables.
8161   # Exclude shared library initialization/finalization symbols.
8162   extract_expsyms_cmds=
8163   # Just being paranoid about ensuring that cc_basename is set.
8164   for cc_temp in $compiler""; do
8165   case $cc_temp in
8166     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8167     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8168     \-*) ;;
8169     *) break;;
8170   esac
8171 done
8172 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8173
8174   case $host_os in
8175   cygwin* | mingw* | pw32*)
8176     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8177     # When not using gcc, we currently assume that we are using
8178     # Microsoft Visual C++.
8179     if test "$GCC" != yes; then
8180       with_gnu_ld=no
8181     fi
8182     ;;
8183   interix*)
8184     # we just hope/assume this is gcc and not c89 (= MSVC++)
8185     with_gnu_ld=yes
8186     ;;
8187   openbsd*)
8188     with_gnu_ld=no
8189     ;;
8190   esac
8191
8192   ld_shlibs=yes
8193   if test "$with_gnu_ld" = yes; then
8194     # If archive_cmds runs LD, not CC, wlarc should be empty
8195     wlarc='${wl}'
8196
8197     # Set some defaults for GNU ld with shared library support. These
8198     # are reset later if shared libraries are not supported. Putting them
8199     # here allows them to be overridden if necessary.
8200     runpath_var=LD_RUN_PATH
8201     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8202     export_dynamic_flag_spec='${wl}--export-dynamic'
8203     # ancient GNU ld didn't support --whole-archive et. al.
8204     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8205         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8206       else
8207         whole_archive_flag_spec=
8208     fi
8209     supports_anon_versioning=no
8210     case `$LD -v 2>/dev/null` in
8211       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8212       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8213       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8214       *\ 2.11.*) ;; # other 2.11 versions
8215       *) supports_anon_versioning=yes ;;
8216     esac
8217
8218     # See if GNU ld supports shared libraries.
8219     case $host_os in
8220     aix[3-9]*)
8221       # On AIX/PPC, the GNU linker is very broken
8222       if test "$host_cpu" != ia64; then
8223         ld_shlibs=no
8224         cat <<EOF 1>&2
8225
8226 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8227 *** to be unable to reliably create shared libraries on AIX.
8228 *** Therefore, libtool is disabling shared libraries support.  If you
8229 *** really care for shared libraries, you may want to modify your PATH
8230 *** so that a non-GNU linker is found, and then restart.
8231
8232 EOF
8233       fi
8234       ;;
8235
8236     amigaos*)
8237       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)'
8238       hardcode_libdir_flag_spec='-L$libdir'
8239       hardcode_minus_L=yes
8240
8241       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8242       # that the semantics of dynamic libraries on AmigaOS, at least up
8243       # to version 4, is to share data among multiple programs linked
8244       # with the same dynamic library.  Since this doesn't match the
8245       # behavior of shared libraries on other platforms, we can't use
8246       # them.
8247       ld_shlibs=no
8248       ;;
8249
8250     beos*)
8251       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8252         allow_undefined_flag=unsupported
8253         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8254         # support --undefined.  This deserves some investigation.  FIXME
8255         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8256       else
8257         ld_shlibs=no
8258       fi
8259       ;;
8260
8261     cygwin* | mingw* | pw32*)
8262       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8263       # as there is no search path for DLLs.
8264       hardcode_libdir_flag_spec='-L$libdir'
8265       allow_undefined_flag=unsupported
8266       always_export_symbols=no
8267       enable_shared_with_static_runtimes=yes
8268       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8269
8270       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8271         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8272         # If the export-symbols file already is a .def file (1st line
8273         # is EXPORTS), use it as is; otherwise, prepend...
8274         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8275           cp $export_symbols $output_objdir/$soname.def;
8276         else
8277           echo EXPORTS > $output_objdir/$soname.def;
8278           cat $export_symbols >> $output_objdir/$soname.def;
8279         fi~
8280         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8281       else
8282         ld_shlibs=no
8283       fi
8284       ;;
8285
8286     interix[3-9]*)
8287       hardcode_direct=no
8288       hardcode_shlibpath_var=no
8289       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8290       export_dynamic_flag_spec='${wl}-E'
8291       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8292       # Instead, shared libraries are loaded at an image base (0x10000000 by
8293       # default) and relocated if they conflict, which is a slow very memory
8294       # consuming and fragmenting process.  To avoid this, we pick a random,
8295       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8296       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8297       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8298       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'
8299       ;;
8300
8301     gnu* | linux* | k*bsd*-gnu)
8302       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8303         tmp_addflag=
8304         case $cc_basename,$host_cpu in
8305         pgcc*)                          # Portland Group C compiler
8306           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'
8307           tmp_addflag=' $pic_flag'
8308           ;;
8309         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8310           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'
8311           tmp_addflag=' $pic_flag -Mnomain' ;;
8312         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8313           tmp_addflag=' -i_dynamic' ;;
8314         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8315           tmp_addflag=' -i_dynamic -nofor_main' ;;
8316         ifc* | ifort*)                  # Intel Fortran compiler
8317           tmp_addflag=' -nofor_main' ;;
8318         esac
8319         case `$CC -V 2>&1 | sed 5q` in
8320         *Sun\ C*)                       # Sun C 5.9
8321           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8322           tmp_sharedflag='-G' ;;
8323         *Sun\ F*)                       # Sun Fortran 8.3
8324           tmp_sharedflag='-G' ;;
8325         *)
8326           tmp_sharedflag='-shared' ;;
8327         esac
8328         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8329
8330         if test $supports_anon_versioning = yes; then
8331           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8332   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8333   $echo "local: *; };" >> $output_objdir/$libname.ver~
8334           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8335         fi
8336         link_all_deplibs=no
8337       else
8338         ld_shlibs=no
8339       fi
8340       ;;
8341
8342     netbsd* | netbsdelf*-gnu)
8343       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8344         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8345         wlarc=
8346       else
8347         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8348         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8349       fi
8350       ;;
8351
8352     solaris*)
8353       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8354         ld_shlibs=no
8355         cat <<EOF 1>&2
8356
8357 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8358 *** create shared libraries on Solaris systems.  Therefore, libtool
8359 *** is disabling shared libraries support.  We urge you to upgrade GNU
8360 *** binutils to release 2.9.1 or newer.  Another option is to modify
8361 *** your PATH or compiler configuration so that the native linker is
8362 *** used, and then restart.
8363
8364 EOF
8365       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8366         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8367         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8368       else
8369         ld_shlibs=no
8370       fi
8371       ;;
8372
8373     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8374       case `$LD -v 2>&1` in
8375         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8376         ld_shlibs=no
8377         cat <<_LT_EOF 1>&2
8378
8379 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8380 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8381 *** is disabling shared libraries support.  We urge you to upgrade GNU
8382 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8383 *** your PATH or compiler configuration so that the native linker is
8384 *** used, and then restart.
8385
8386 _LT_EOF
8387         ;;
8388         *)
8389           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8390             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8391             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8392             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8393           else
8394             ld_shlibs=no
8395           fi
8396         ;;
8397       esac
8398       ;;
8399
8400     sunos4*)
8401       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8402       wlarc=
8403       hardcode_direct=yes
8404       hardcode_shlibpath_var=no
8405       ;;
8406
8407     *)
8408       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8409         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8410         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8411       else
8412         ld_shlibs=no
8413       fi
8414       ;;
8415     esac
8416
8417     if test "$ld_shlibs" = no; then
8418       runpath_var=
8419       hardcode_libdir_flag_spec=
8420       export_dynamic_flag_spec=
8421       whole_archive_flag_spec=
8422     fi
8423   else
8424     # PORTME fill in a description of your system's linker (not GNU ld)
8425     case $host_os in
8426     aix3*)
8427       allow_undefined_flag=unsupported
8428       always_export_symbols=yes
8429       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'
8430       # Note: this linker hardcodes the directories in LIBPATH if there
8431       # are no directories specified by -L.
8432       hardcode_minus_L=yes
8433       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8434         # Neither direct hardcoding nor static linking is supported with a
8435         # broken collect2.
8436         hardcode_direct=unsupported
8437       fi
8438       ;;
8439
8440     aix[4-9]*)
8441       if test "$host_cpu" = ia64; then
8442         # On IA64, the linker does run time linking by default, so we don't
8443         # have to do anything special.
8444         aix_use_runtimelinking=no
8445         exp_sym_flag='-Bexport'
8446         no_entry_flag=""
8447       else
8448         # If we're using GNU nm, then we don't want the "-C" option.
8449         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8450         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8451           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'
8452         else
8453           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'
8454         fi
8455         aix_use_runtimelinking=no
8456
8457         # Test if we are trying to use run time linking or normal
8458         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8459         # need to do runtime linking.
8460         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8461           for ld_flag in $LDFLAGS; do
8462           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8463             aix_use_runtimelinking=yes
8464             break
8465           fi
8466           done
8467           ;;
8468         esac
8469
8470         exp_sym_flag='-bexport'
8471         no_entry_flag='-bnoentry'
8472       fi
8473
8474       # When large executables or shared objects are built, AIX ld can
8475       # have problems creating the table of contents.  If linking a library
8476       # or program results in "error TOC overflow" add -mminimal-toc to
8477       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8478       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8479
8480       archive_cmds=''
8481       hardcode_direct=yes
8482       hardcode_libdir_separator=':'
8483       link_all_deplibs=yes
8484
8485       if test "$GCC" = yes; then
8486         case $host_os in aix4.[012]|aix4.[012].*)
8487         # We only want to do this on AIX 4.2 and lower, the check
8488         # below for broken collect2 doesn't work under 4.3+
8489           collect2name=`${CC} -print-prog-name=collect2`
8490           if test -f "$collect2name" && \
8491            strings "$collect2name" | grep resolve_lib_name >/dev/null
8492           then
8493           # We have reworked collect2
8494           :
8495           else
8496           # We have old collect2
8497           hardcode_direct=unsupported
8498           # It fails to find uninstalled libraries when the uninstalled
8499           # path is not listed in the libpath.  Setting hardcode_minus_L
8500           # to unsupported forces relinking
8501           hardcode_minus_L=yes
8502           hardcode_libdir_flag_spec='-L$libdir'
8503           hardcode_libdir_separator=
8504           fi
8505           ;;
8506         esac
8507         shared_flag='-shared'
8508         if test "$aix_use_runtimelinking" = yes; then
8509           shared_flag="$shared_flag "'${wl}-G'
8510         fi
8511       else
8512         # not using gcc
8513         if test "$host_cpu" = ia64; then
8514         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8515         # chokes on -Wl,-G. The following line is correct:
8516           shared_flag='-G'
8517         else
8518           if test "$aix_use_runtimelinking" = yes; then
8519             shared_flag='${wl}-G'
8520           else
8521             shared_flag='${wl}-bM:SRE'
8522           fi
8523         fi
8524       fi
8525
8526       # It seems that -bexpall does not export symbols beginning with
8527       # underscore (_), so it is better to generate a list of symbols to export.
8528       always_export_symbols=yes
8529       if test "$aix_use_runtimelinking" = yes; then
8530         # Warning - without using the other runtime loading flags (-brtl),
8531         # -berok will link without error, but may produce a broken library.
8532         allow_undefined_flag='-berok'
8533        # Determine the default libpath from the value encoded in an empty executable.
8534        cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h.  */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h.  */
8540
8541 int
8542 main ()
8543 {
8544
8545   ;
8546   return 0;
8547 }
8548 _ACEOF
8549 rm -f conftest.$ac_objext conftest$ac_exeext
8550 if { (ac_try="$ac_link"
8551 case "(($ac_try" in
8552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553   *) ac_try_echo=$ac_try;;
8554 esac
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556   (eval "$ac_link") 2>conftest.er1
8557   ac_status=$?
8558   grep -v '^ *+' conftest.er1 >conftest.err
8559   rm -f conftest.er1
8560   cat conftest.err >&5
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); } && {
8563          test -z "$ac_c_werror_flag" ||
8564          test ! -s conftest.err
8565        } && test -s conftest$ac_exeext &&
8566        $as_test_x conftest$ac_exeext; then
8567
8568 lt_aix_libpath_sed='
8569     /Import File Strings/,/^$/ {
8570         /^0/ {
8571             s/^0  *\(.*\)$/\1/
8572             p
8573         }
8574     }'
8575 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8576 # Check for a 64-bit object if we didn't find anything.
8577 if test -z "$aix_libpath"; then
8578   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8579 fi
8580 else
8581   echo "$as_me: failed program was:" >&5
8582 sed 's/^/| /' conftest.$ac_ext >&5
8583
8584
8585 fi
8586
8587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8588       conftest$ac_exeext conftest.$ac_ext
8589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8590
8591        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8592         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"
8593        else
8594         if test "$host_cpu" = ia64; then
8595           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8596           allow_undefined_flag="-z nodefs"
8597           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"
8598         else
8599          # Determine the default libpath from the value encoded in an empty executable.
8600          cat >conftest.$ac_ext <<_ACEOF
8601 /* confdefs.h.  */
8602 _ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h.  */
8606
8607 int
8608 main ()
8609 {
8610
8611   ;
8612   return 0;
8613 }
8614 _ACEOF
8615 rm -f conftest.$ac_objext conftest$ac_exeext
8616 if { (ac_try="$ac_link"
8617 case "(($ac_try" in
8618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619   *) ac_try_echo=$ac_try;;
8620 esac
8621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8622   (eval "$ac_link") 2>conftest.er1
8623   ac_status=$?
8624   grep -v '^ *+' conftest.er1 >conftest.err
8625   rm -f conftest.er1
8626   cat conftest.err >&5
8627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628   (exit $ac_status); } && {
8629          test -z "$ac_c_werror_flag" ||
8630          test ! -s conftest.err
8631        } && test -s conftest$ac_exeext &&
8632        $as_test_x conftest$ac_exeext; then
8633
8634 lt_aix_libpath_sed='
8635     /Import File Strings/,/^$/ {
8636         /^0/ {
8637             s/^0  *\(.*\)$/\1/
8638             p
8639         }
8640     }'
8641 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8642 # Check for a 64-bit object if we didn't find anything.
8643 if test -z "$aix_libpath"; then
8644   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8645 fi
8646 else
8647   echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8649
8650
8651 fi
8652
8653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8654       conftest$ac_exeext conftest.$ac_ext
8655 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8656
8657          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8658           # Warning - without using the other run time loading flags,
8659           # -berok will link without error, but may produce a broken library.
8660           no_undefined_flag=' ${wl}-bernotok'
8661           allow_undefined_flag=' ${wl}-berok'
8662           # Exported symbols can be pulled into shared objects from archives
8663           whole_archive_flag_spec='$convenience'
8664           archive_cmds_need_lc=yes
8665           # This is similar to how AIX traditionally builds its shared libraries.
8666           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'
8667         fi
8668       fi
8669       ;;
8670
8671     amigaos*)
8672       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)'
8673       hardcode_libdir_flag_spec='-L$libdir'
8674       hardcode_minus_L=yes
8675       # see comment about different semantics on the GNU ld section
8676       ld_shlibs=no
8677       ;;
8678
8679     bsdi[45]*)
8680       export_dynamic_flag_spec=-rdynamic
8681       ;;
8682
8683     cygwin* | mingw* | pw32*)
8684       # When not using gcc, we currently assume that we are using
8685       # Microsoft Visual C++.
8686       # hardcode_libdir_flag_spec is actually meaningless, as there is
8687       # no search path for DLLs.
8688       hardcode_libdir_flag_spec=' '
8689       allow_undefined_flag=unsupported
8690       # Tell ltmain to make .lib files, not .a files.
8691       libext=lib
8692       # Tell ltmain to make .dll files, not .so files.
8693       shrext_cmds=".dll"
8694       # FIXME: Setting linknames here is a bad hack.
8695       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8696       # The linker will automatically build a .lib file if we build a DLL.
8697       old_archive_From_new_cmds='true'
8698       # FIXME: Should let the user specify the lib program.
8699       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8700       fix_srcfile_path='`cygpath -w "$srcfile"`'
8701       enable_shared_with_static_runtimes=yes
8702       ;;
8703
8704     darwin* | rhapsody*)
8705       case $host_os in
8706         rhapsody* | darwin1.[012])
8707          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8708          ;;
8709        *) # Darwin 1.3 on
8710          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8711            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8712          else
8713            case ${MACOSX_DEPLOYMENT_TARGET} in
8714              10.[012])
8715                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8716                ;;
8717              10.*)
8718                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8719                ;;
8720            esac
8721          fi
8722          ;;
8723       esac
8724       archive_cmds_need_lc=no
8725       hardcode_direct=no
8726       hardcode_automatic=yes
8727       hardcode_shlibpath_var=unsupported
8728       whole_archive_flag_spec=''
8729       link_all_deplibs=yes
8730     if test "$GCC" = yes ; then
8731         output_verbose_link_cmd='echo'
8732         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8733         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8734         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8735         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8736     else
8737       case $cc_basename in
8738         xlc*)
8739          output_verbose_link_cmd='echo'
8740          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8741          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8742           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8743          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8744           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}'
8745           ;;
8746        *)
8747          ld_shlibs=no
8748           ;;
8749       esac
8750     fi
8751       ;;
8752
8753     dgux*)
8754       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8755       hardcode_libdir_flag_spec='-L$libdir'
8756       hardcode_shlibpath_var=no
8757       ;;
8758
8759     freebsd1*)
8760       ld_shlibs=no
8761       ;;
8762
8763     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8764     # support.  Future versions do this automatically, but an explicit c++rt0.o
8765     # does not break anything, and helps significantly (at the cost of a little
8766     # extra space).
8767     freebsd2.2*)
8768       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8769       hardcode_libdir_flag_spec='-R$libdir'
8770       hardcode_direct=yes
8771       hardcode_shlibpath_var=no
8772       ;;
8773
8774     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8775     freebsd2*)
8776       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8777       hardcode_direct=yes
8778       hardcode_minus_L=yes
8779       hardcode_shlibpath_var=no
8780       ;;
8781
8782     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8783     freebsd* | dragonfly*)
8784       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8785       hardcode_libdir_flag_spec='-R$libdir'
8786       hardcode_direct=yes
8787       hardcode_shlibpath_var=no
8788       ;;
8789
8790     hpux9*)
8791       if test "$GCC" = yes; then
8792         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'
8793       else
8794         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'
8795       fi
8796       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8797       hardcode_libdir_separator=:
8798       hardcode_direct=yes
8799
8800       # hardcode_minus_L: Not really in the search PATH,
8801       # but as the default location of the library.
8802       hardcode_minus_L=yes
8803       export_dynamic_flag_spec='${wl}-E'
8804       ;;
8805
8806     hpux10*)
8807       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8808         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8809       else
8810         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8811       fi
8812       if test "$with_gnu_ld" = no; then
8813         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8814         hardcode_libdir_separator=:
8815
8816         hardcode_direct=yes
8817         export_dynamic_flag_spec='${wl}-E'
8818
8819         # hardcode_minus_L: Not really in the search PATH,
8820         # but as the default location of the library.
8821         hardcode_minus_L=yes
8822       fi
8823       ;;
8824
8825     hpux11*)
8826       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8827         case $host_cpu in
8828         hppa*64*)
8829           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8830           ;;
8831         ia64*)
8832           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8833           ;;
8834         *)
8835           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8836           ;;
8837         esac
8838       else
8839         case $host_cpu in
8840         hppa*64*)
8841           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8842           ;;
8843         ia64*)
8844           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8845           ;;
8846         *)
8847           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8848           ;;
8849         esac
8850       fi
8851       if test "$with_gnu_ld" = no; then
8852         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8853         hardcode_libdir_separator=:
8854
8855         case $host_cpu in
8856         hppa*64*|ia64*)
8857           hardcode_libdir_flag_spec_ld='+b $libdir'
8858           hardcode_direct=no
8859           hardcode_shlibpath_var=no
8860           ;;
8861         *)
8862           hardcode_direct=yes
8863           export_dynamic_flag_spec='${wl}-E'
8864
8865           # hardcode_minus_L: Not really in the search PATH,
8866           # but as the default location of the library.
8867           hardcode_minus_L=yes
8868           ;;
8869         esac
8870       fi
8871       ;;
8872
8873     irix5* | irix6* | nonstopux*)
8874       if test "$GCC" = yes; then
8875         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'
8876       else
8877         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'
8878         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8879       fi
8880       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8881       hardcode_libdir_separator=:
8882       link_all_deplibs=yes
8883       ;;
8884
8885     netbsd* | netbsdelf*-gnu)
8886       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8887         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8888       else
8889         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8890       fi
8891       hardcode_libdir_flag_spec='-R$libdir'
8892       hardcode_direct=yes
8893       hardcode_shlibpath_var=no
8894       ;;
8895
8896     newsos6)
8897       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898       hardcode_direct=yes
8899       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8900       hardcode_libdir_separator=:
8901       hardcode_shlibpath_var=no
8902       ;;
8903
8904     openbsd*)
8905       if test -f /usr/libexec/ld.so; then
8906         hardcode_direct=yes
8907         hardcode_shlibpath_var=no
8908         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8909           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8910           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8911           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8912           export_dynamic_flag_spec='${wl}-E'
8913         else
8914           case $host_os in
8915            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8916              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8917              hardcode_libdir_flag_spec='-R$libdir'
8918              ;;
8919            *)
8920              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8921              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8922              ;;
8923           esac
8924         fi
8925       else
8926         ld_shlibs=no
8927       fi
8928       ;;
8929
8930     os2*)
8931       hardcode_libdir_flag_spec='-L$libdir'
8932       hardcode_minus_L=yes
8933       allow_undefined_flag=unsupported
8934       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'
8935       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8936       ;;
8937
8938     osf3*)
8939       if test "$GCC" = yes; then
8940         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8941         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'
8942       else
8943         allow_undefined_flag=' -expect_unresolved \*'
8944         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'
8945       fi
8946       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8947       hardcode_libdir_separator=:
8948       ;;
8949
8950     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8951       if test "$GCC" = yes; then
8952         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8953         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'
8954         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8955       else
8956         allow_undefined_flag=' -expect_unresolved \*'
8957         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'
8958         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8959         $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'
8960
8961         # Both c and cxx compiler support -rpath directly
8962         hardcode_libdir_flag_spec='-rpath $libdir'
8963       fi
8964       hardcode_libdir_separator=:
8965       ;;
8966
8967     solaris*)
8968       no_undefined_flag=' -z text'
8969       if test "$GCC" = yes; then
8970         wlarc='${wl}'
8971         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8972         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8973           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8974       else
8975         wlarc=''
8976         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8977         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8978         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8979       fi
8980       hardcode_libdir_flag_spec='-R$libdir'
8981       hardcode_shlibpath_var=no
8982       case $host_os in
8983       solaris2.[0-5] | solaris2.[0-5].*) ;;
8984       *)
8985         # The compiler driver will combine and reorder linker options,
8986         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8987         # but is careful enough not to reorder.
8988         # Supported since Solaris 2.6 (maybe 2.5.1?)
8989         if test "$GCC" = yes; then
8990           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8991         else
8992           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8993         fi
8994         ;;
8995       esac
8996       link_all_deplibs=yes
8997       ;;
8998
8999     sunos4*)
9000       if test "x$host_vendor" = xsequent; then
9001         # Use $CC to link under sequent, because it throws in some extra .o
9002         # files that make .init and .fini sections work.
9003         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9004       else
9005         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9006       fi
9007       hardcode_libdir_flag_spec='-L$libdir'
9008       hardcode_direct=yes
9009       hardcode_minus_L=yes
9010       hardcode_shlibpath_var=no
9011       ;;
9012
9013     sysv4)
9014       case $host_vendor in
9015         sni)
9016           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9017           hardcode_direct=yes # is this really true???
9018         ;;
9019         siemens)
9020           ## LD is ld it makes a PLAMLIB
9021           ## CC just makes a GrossModule.
9022           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9023           reload_cmds='$CC -r -o $output$reload_objs'
9024           hardcode_direct=no
9025         ;;
9026         motorola)
9027           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9028           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9029         ;;
9030       esac
9031       runpath_var='LD_RUN_PATH'
9032       hardcode_shlibpath_var=no
9033       ;;
9034
9035     sysv4.3*)
9036       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9037       hardcode_shlibpath_var=no
9038       export_dynamic_flag_spec='-Bexport'
9039       ;;
9040
9041     sysv4*MP*)
9042       if test -d /usr/nec; then
9043         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9044         hardcode_shlibpath_var=no
9045         runpath_var=LD_RUN_PATH
9046         hardcode_runpath_var=yes
9047         ld_shlibs=yes
9048       fi
9049       ;;
9050
9051     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9052       no_undefined_flag='${wl}-z,text'
9053       archive_cmds_need_lc=no
9054       hardcode_shlibpath_var=no
9055       runpath_var='LD_RUN_PATH'
9056
9057       if test "$GCC" = yes; then
9058         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9059         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9060       else
9061         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9062         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9063       fi
9064       ;;
9065
9066     sysv5* | sco3.2v5* | sco5v6*)
9067       # Note: We can NOT use -z defs as we might desire, because we do not
9068       # link with -lc, and that would cause any symbols used from libc to
9069       # always be unresolved, which means just about no library would
9070       # ever link correctly.  If we're not using GNU ld we use -z text
9071       # though, which does catch some bad symbols but isn't as heavy-handed
9072       # as -z defs.
9073       no_undefined_flag='${wl}-z,text'
9074       allow_undefined_flag='${wl}-z,nodefs'
9075       archive_cmds_need_lc=no
9076       hardcode_shlibpath_var=no
9077       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9078       hardcode_libdir_separator=':'
9079       link_all_deplibs=yes
9080       export_dynamic_flag_spec='${wl}-Bexport'
9081       runpath_var='LD_RUN_PATH'
9082
9083       if test "$GCC" = yes; then
9084         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9085         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9086       else
9087         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9088         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9089       fi
9090       ;;
9091
9092     uts4*)
9093       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9094       hardcode_libdir_flag_spec='-L$libdir'
9095       hardcode_shlibpath_var=no
9096       ;;
9097
9098     *)
9099       ld_shlibs=no
9100       ;;
9101     esac
9102   fi
9103
9104 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9105 echo "${ECHO_T}$ld_shlibs" >&6; }
9106 test "$ld_shlibs" = no && can_build_shared=no
9107
9108 #
9109 # Do we need to explicitly link libc?
9110 #
9111 case "x$archive_cmds_need_lc" in
9112 x|xyes)
9113   # Assume -lc should be added
9114   archive_cmds_need_lc=yes
9115
9116   if test "$enable_shared" = yes && test "$GCC" = yes; then
9117     case $archive_cmds in
9118     *'~'*)
9119       # FIXME: we may have to deal with multi-command sequences.
9120       ;;
9121     '$CC '*)
9122       # Test whether the compiler implicitly links with -lc since on some
9123       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9124       # to ld, don't add -lc before -lgcc.
9125       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9126 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9127       $rm conftest*
9128       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9129
9130       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9131   (eval $ac_compile) 2>&5
9132   ac_status=$?
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); } 2>conftest.err; then
9135         soname=conftest
9136         lib=conftest
9137         libobjs=conftest.$ac_objext
9138         deplibs=
9139         wl=$lt_prog_compiler_wl
9140         pic_flag=$lt_prog_compiler_pic
9141         compiler_flags=-v
9142         linker_flags=-v
9143         verstring=
9144         output_objdir=.
9145         libname=conftest
9146         lt_save_allow_undefined_flag=$allow_undefined_flag
9147         allow_undefined_flag=
9148         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9149   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9150   ac_status=$?
9151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152   (exit $ac_status); }
9153         then
9154           archive_cmds_need_lc=no
9155         else
9156           archive_cmds_need_lc=yes
9157         fi
9158         allow_undefined_flag=$lt_save_allow_undefined_flag
9159       else
9160         cat conftest.err 1>&5
9161       fi
9162       $rm conftest*
9163       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9164 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9165       ;;
9166     esac
9167   fi
9168   ;;
9169 esac
9170
9171 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9172 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9173 library_names_spec=
9174 libname_spec='lib$name'
9175 soname_spec=
9176 shrext_cmds=".so"
9177 postinstall_cmds=
9178 postuninstall_cmds=
9179 finish_cmds=
9180 finish_eval=
9181 shlibpath_var=
9182 shlibpath_overrides_runpath=unknown
9183 version_type=none
9184 dynamic_linker="$host_os ld.so"
9185 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9186
9187 if test "$GCC" = yes; then
9188   case $host_os in
9189     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9190     *) lt_awk_arg="/^libraries:/" ;;
9191   esac
9192   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9193   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9194     # if the path contains ";" then we assume it to be the separator
9195     # otherwise default to the standard path separator (i.e. ":") - it is
9196     # assumed that no part of a normal pathname contains ";" but that should
9197     # okay in the real world where ";" in dirpaths is itself problematic.
9198     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9199   else
9200     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9201   fi
9202   # Ok, now we have the path, separated by spaces, we can step through it
9203   # and add multilib dir if necessary.
9204   lt_tmp_lt_search_path_spec=
9205   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9206   for lt_sys_path in $lt_search_path_spec; do
9207     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9208       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9209     else
9210       test -d "$lt_sys_path" && \
9211         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9212     fi
9213   done
9214   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9215 BEGIN {RS=" "; FS="/|\n";} {
9216   lt_foo="";
9217   lt_count=0;
9218   for (lt_i = NF; lt_i > 0; lt_i--) {
9219     if ($lt_i != "" && $lt_i != ".") {
9220       if ($lt_i == "..") {
9221         lt_count++;
9222       } else {
9223         if (lt_count == 0) {
9224           lt_foo="/" $lt_i lt_foo;
9225         } else {
9226           lt_count--;
9227         }
9228       }
9229     }
9230   }
9231   if (lt_foo != "") { lt_freq[lt_foo]++; }
9232   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9233 }'`
9234   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9235 else
9236   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9237 fi
9238 need_lib_prefix=unknown
9239 hardcode_into_libs=no
9240
9241 # when you set need_version to no, make sure it does not cause -set_version
9242 # flags to be left without arguments
9243 need_version=unknown
9244
9245 case $host_os in
9246 aix3*)
9247   version_type=linux
9248   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9249   shlibpath_var=LIBPATH
9250
9251   # AIX 3 has no versioning support, so we append a major version to the name.
9252   soname_spec='${libname}${release}${shared_ext}$major'
9253   ;;
9254
9255 aix[4-9]*)
9256   version_type=linux
9257   need_lib_prefix=no
9258   need_version=no
9259   hardcode_into_libs=yes
9260   if test "$host_cpu" = ia64; then
9261     # AIX 5 supports IA64
9262     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9263     shlibpath_var=LD_LIBRARY_PATH
9264   else
9265     # With GCC up to 2.95.x, collect2 would create an import file
9266     # for dependence libraries.  The import file would start with
9267     # the line `#! .'.  This would cause the generated library to
9268     # depend on `.', always an invalid library.  This was fixed in
9269     # development snapshots of GCC prior to 3.0.
9270     case $host_os in
9271       aix4 | aix4.[01] | aix4.[01].*)
9272       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9273            echo ' yes '
9274            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9275         :
9276       else
9277         can_build_shared=no
9278       fi
9279       ;;
9280     esac
9281     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9282     # soname into executable. Probably we can add versioning support to
9283     # collect2, so additional links can be useful in future.
9284     if test "$aix_use_runtimelinking" = yes; then
9285       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9286       # instead of lib<name>.a to let people know that these are not
9287       # typical AIX shared libraries.
9288       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289     else
9290       # We preserve .a as extension for shared libraries through AIX4.2
9291       # and later when we are not doing run time linking.
9292       library_names_spec='${libname}${release}.a $libname.a'
9293       soname_spec='${libname}${release}${shared_ext}$major'
9294     fi
9295     shlibpath_var=LIBPATH
9296   fi
9297   ;;
9298
9299 amigaos*)
9300   library_names_spec='$libname.ixlibrary $libname.a'
9301   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9302   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'
9303   ;;
9304
9305 beos*)
9306   library_names_spec='${libname}${shared_ext}'
9307   dynamic_linker="$host_os ld.so"
9308   shlibpath_var=LIBRARY_PATH
9309   ;;
9310
9311 bsdi[45]*)
9312   version_type=linux
9313   need_version=no
9314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9315   soname_spec='${libname}${release}${shared_ext}$major'
9316   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9317   shlibpath_var=LD_LIBRARY_PATH
9318   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9319   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9320   # the default ld.so.conf also contains /usr/contrib/lib and
9321   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9322   # libtool to hard-code these into programs
9323   ;;
9324
9325 cygwin* | mingw* | pw32*)
9326   version_type=windows
9327   shrext_cmds=".dll"
9328   need_version=no
9329   need_lib_prefix=no
9330
9331   case $GCC,$host_os in
9332   yes,cygwin* | yes,mingw* | yes,pw32*)
9333     library_names_spec='$libname.dll.a'
9334     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9335     postinstall_cmds='base_file=`basename \${file}`~
9336       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9337       dldir=$destdir/`dirname \$dlpath`~
9338       test -d \$dldir || mkdir -p \$dldir~
9339       $install_prog $dir/$dlname \$dldir/$dlname~
9340       chmod a+x \$dldir/$dlname'
9341     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9342       dlpath=$dir/\$dldll~
9343        $rm \$dlpath'
9344     shlibpath_overrides_runpath=yes
9345
9346     case $host_os in
9347     cygwin*)
9348       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9349       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9350       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9351       ;;
9352     mingw*)
9353       # MinGW DLLs use traditional 'lib' prefix
9354       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9355       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9356       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9357         # It is most probably a Windows format PATH printed by
9358         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9359         # path with ; separators, and with drive letters. We can handle the
9360         # drive letters (cygwin fileutils understands them), so leave them,
9361         # especially as we might pass files found there to a mingw objdump,
9362         # which wouldn't understand a cygwinified path. Ahh.
9363         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9364       else
9365         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9366       fi
9367       ;;
9368     pw32*)
9369       # pw32 DLLs use 'pw' prefix rather than 'lib'
9370       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9371       ;;
9372     esac
9373     ;;
9374
9375   *)
9376     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9377     ;;
9378   esac
9379   dynamic_linker='Win32 ld.exe'
9380   # FIXME: first we should search . and the directory the executable is in
9381   shlibpath_var=PATH
9382   ;;
9383
9384 darwin* | rhapsody*)
9385   dynamic_linker="$host_os dyld"
9386   version_type=darwin
9387   need_lib_prefix=no
9388   need_version=no
9389   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9390   soname_spec='${libname}${release}${major}$shared_ext'
9391   shlibpath_overrides_runpath=yes
9392   shlibpath_var=DYLD_LIBRARY_PATH
9393   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9394
9395   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9396   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9397   ;;
9398
9399 dgux*)
9400   version_type=linux
9401   need_lib_prefix=no
9402   need_version=no
9403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9404   soname_spec='${libname}${release}${shared_ext}$major'
9405   shlibpath_var=LD_LIBRARY_PATH
9406   ;;
9407
9408 freebsd1*)
9409   dynamic_linker=no
9410   ;;
9411
9412 freebsd* | dragonfly*)
9413   # DragonFly does not have aout.  When/if they implement a new
9414   # versioning mechanism, adjust this.
9415   if test -x /usr/bin/objformat; then
9416     objformat=`/usr/bin/objformat`
9417   else
9418     case $host_os in
9419     freebsd[123]*) objformat=aout ;;
9420     *) objformat=elf ;;
9421     esac
9422   fi
9423   version_type=freebsd-$objformat
9424   case $version_type in
9425     freebsd-elf*)
9426       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9427       need_version=no
9428       need_lib_prefix=no
9429       ;;
9430     freebsd-*)
9431       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9432       need_version=yes
9433       ;;
9434   esac
9435   shlibpath_var=LD_LIBRARY_PATH
9436   case $host_os in
9437   freebsd2*)
9438     shlibpath_overrides_runpath=yes
9439     ;;
9440   freebsd3.[01]* | freebsdelf3.[01]*)
9441     shlibpath_overrides_runpath=yes
9442     hardcode_into_libs=yes
9443     ;;
9444   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9445   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9446     shlibpath_overrides_runpath=no
9447     hardcode_into_libs=yes
9448     ;;
9449   *) # from 4.6 on, and DragonFly
9450     shlibpath_overrides_runpath=yes
9451     hardcode_into_libs=yes
9452     ;;
9453   esac
9454   ;;
9455
9456 gnu*)
9457   version_type=linux
9458   need_lib_prefix=no
9459   need_version=no
9460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9461   soname_spec='${libname}${release}${shared_ext}$major'
9462   shlibpath_var=LD_LIBRARY_PATH
9463   hardcode_into_libs=yes
9464   ;;
9465
9466 hpux9* | hpux10* | hpux11*)
9467   # Give a soname corresponding to the major version so that dld.sl refuses to
9468   # link against other versions.
9469   version_type=sunos
9470   need_lib_prefix=no
9471   need_version=no
9472   case $host_cpu in
9473   ia64*)
9474     shrext_cmds='.so'
9475     hardcode_into_libs=yes
9476     dynamic_linker="$host_os dld.so"
9477     shlibpath_var=LD_LIBRARY_PATH
9478     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9479     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9480     soname_spec='${libname}${release}${shared_ext}$major'
9481     if test "X$HPUX_IA64_MODE" = X32; then
9482       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9483     else
9484       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9485     fi
9486     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9487     ;;
9488    hppa*64*)
9489      shrext_cmds='.sl'
9490      hardcode_into_libs=yes
9491      dynamic_linker="$host_os dld.sl"
9492      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9493      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9494      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9495      soname_spec='${libname}${release}${shared_ext}$major'
9496      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9497      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9498      ;;
9499    *)
9500     shrext_cmds='.sl'
9501     dynamic_linker="$host_os dld.sl"
9502     shlibpath_var=SHLIB_PATH
9503     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9504     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9505     soname_spec='${libname}${release}${shared_ext}$major'
9506     ;;
9507   esac
9508   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9509   postinstall_cmds='chmod 555 $lib'
9510   ;;
9511
9512 interix[3-9]*)
9513   version_type=linux
9514   need_lib_prefix=no
9515   need_version=no
9516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9517   soname_spec='${libname}${release}${shared_ext}$major'
9518   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9519   shlibpath_var=LD_LIBRARY_PATH
9520   shlibpath_overrides_runpath=no
9521   hardcode_into_libs=yes
9522   ;;
9523
9524 irix5* | irix6* | nonstopux*)
9525   case $host_os in
9526     nonstopux*) version_type=nonstopux ;;
9527     *)
9528         if test "$lt_cv_prog_gnu_ld" = yes; then
9529                 version_type=linux
9530         else
9531                 version_type=irix
9532         fi ;;
9533   esac
9534   need_lib_prefix=no
9535   need_version=no
9536   soname_spec='${libname}${release}${shared_ext}$major'
9537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9538   case $host_os in
9539   irix5* | nonstopux*)
9540     libsuff= shlibsuff=
9541     ;;
9542   *)
9543     case $LD in # libtool.m4 will add one of these switches to LD
9544     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9545       libsuff= shlibsuff= libmagic=32-bit;;
9546     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9547       libsuff=32 shlibsuff=N32 libmagic=N32;;
9548     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9549       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9550     *) libsuff= shlibsuff= libmagic=never-match;;
9551     esac
9552     ;;
9553   esac
9554   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9555   shlibpath_overrides_runpath=no
9556   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9557   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9558   hardcode_into_libs=yes
9559   ;;
9560
9561 # No shared lib support for Linux oldld, aout, or coff.
9562 linux*oldld* | linux*aout* | linux*coff*)
9563   dynamic_linker=no
9564   ;;
9565
9566 # This must be Linux ELF.
9567 linux* | k*bsd*-gnu)
9568   version_type=linux
9569   need_lib_prefix=no
9570   need_version=no
9571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9572   soname_spec='${libname}${release}${shared_ext}$major'
9573   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9574   shlibpath_var=LD_LIBRARY_PATH
9575   shlibpath_overrides_runpath=no
9576   # This implies no fast_install, which is unacceptable.
9577   # Some rework will be needed to allow for fast_install
9578   # before this can be enabled.
9579   hardcode_into_libs=yes
9580
9581   # Append ld.so.conf contents to the search path
9582   if test -f /etc/ld.so.conf; then
9583     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9584     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9585   fi
9586
9587   # We used to test for /lib/ld.so.1 and disable shared libraries on
9588   # powerpc, because MkLinux only supported shared libraries with the
9589   # GNU dynamic linker.  Since this was broken with cross compilers,
9590   # most powerpc-linux boxes support dynamic linking these days and
9591   # people can always --disable-shared, the test was removed, and we
9592   # assume the GNU/Linux dynamic linker is in use.
9593   dynamic_linker='GNU/Linux ld.so'
9594   ;;
9595
9596 netbsdelf*-gnu)
9597   version_type=linux
9598   need_lib_prefix=no
9599   need_version=no
9600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9601   soname_spec='${libname}${release}${shared_ext}$major'
9602   shlibpath_var=LD_LIBRARY_PATH
9603   shlibpath_overrides_runpath=no
9604   hardcode_into_libs=yes
9605   dynamic_linker='NetBSD ld.elf_so'
9606   ;;
9607
9608 netbsd*)
9609   version_type=sunos
9610   need_lib_prefix=no
9611   need_version=no
9612   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9613     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9614     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9615     dynamic_linker='NetBSD (a.out) ld.so'
9616   else
9617     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9618     soname_spec='${libname}${release}${shared_ext}$major'
9619     dynamic_linker='NetBSD ld.elf_so'
9620   fi
9621   shlibpath_var=LD_LIBRARY_PATH
9622   shlibpath_overrides_runpath=yes
9623   hardcode_into_libs=yes
9624   ;;
9625
9626 newsos6)
9627   version_type=linux
9628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9629   shlibpath_var=LD_LIBRARY_PATH
9630   shlibpath_overrides_runpath=yes
9631   ;;
9632
9633 nto-qnx*)
9634   version_type=linux
9635   need_lib_prefix=no
9636   need_version=no
9637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638   soname_spec='${libname}${release}${shared_ext}$major'
9639   shlibpath_var=LD_LIBRARY_PATH
9640   shlibpath_overrides_runpath=yes
9641   ;;
9642
9643 openbsd*)
9644   version_type=sunos
9645   sys_lib_dlsearch_path_spec="/usr/lib"
9646   need_lib_prefix=no
9647   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9648   case $host_os in
9649     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9650     *)                         need_version=no  ;;
9651   esac
9652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9653   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9654   shlibpath_var=LD_LIBRARY_PATH
9655   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9656     case $host_os in
9657       openbsd2.[89] | openbsd2.[89].*)
9658         shlibpath_overrides_runpath=no
9659         ;;
9660       *)
9661         shlibpath_overrides_runpath=yes
9662         ;;
9663       esac
9664   else
9665     shlibpath_overrides_runpath=yes
9666   fi
9667   ;;
9668
9669 os2*)
9670   libname_spec='$name'
9671   shrext_cmds=".dll"
9672   need_lib_prefix=no
9673   library_names_spec='$libname${shared_ext} $libname.a'
9674   dynamic_linker='OS/2 ld.exe'
9675   shlibpath_var=LIBPATH
9676   ;;
9677
9678 osf3* | osf4* | osf5*)
9679   version_type=osf
9680   need_lib_prefix=no
9681   need_version=no
9682   soname_spec='${libname}${release}${shared_ext}$major'
9683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684   shlibpath_var=LD_LIBRARY_PATH
9685   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9686   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9687   ;;
9688
9689 rdos*)
9690   dynamic_linker=no
9691   ;;
9692
9693 solaris*)
9694   version_type=linux
9695   need_lib_prefix=no
9696   need_version=no
9697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9698   soname_spec='${libname}${release}${shared_ext}$major'
9699   shlibpath_var=LD_LIBRARY_PATH
9700   shlibpath_overrides_runpath=yes
9701   hardcode_into_libs=yes
9702   # ldd complains unless libraries are executable
9703   postinstall_cmds='chmod +x $lib'
9704   ;;
9705
9706 sunos4*)
9707   version_type=sunos
9708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9709   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9710   shlibpath_var=LD_LIBRARY_PATH
9711   shlibpath_overrides_runpath=yes
9712   if test "$with_gnu_ld" = yes; then
9713     need_lib_prefix=no
9714   fi
9715   need_version=yes
9716   ;;
9717
9718 sysv4 | sysv4.3*)
9719   version_type=linux
9720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9721   soname_spec='${libname}${release}${shared_ext}$major'
9722   shlibpath_var=LD_LIBRARY_PATH
9723   case $host_vendor in
9724     sni)
9725       shlibpath_overrides_runpath=no
9726       need_lib_prefix=no
9727       export_dynamic_flag_spec='${wl}-Blargedynsym'
9728       runpath_var=LD_RUN_PATH
9729       ;;
9730     siemens)
9731       need_lib_prefix=no
9732       ;;
9733     motorola)
9734       need_lib_prefix=no
9735       need_version=no
9736       shlibpath_overrides_runpath=no
9737       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9738       ;;
9739   esac
9740   ;;
9741
9742 sysv4*MP*)
9743   if test -d /usr/nec ;then
9744     version_type=linux
9745     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9746     soname_spec='$libname${shared_ext}.$major'
9747     shlibpath_var=LD_LIBRARY_PATH
9748   fi
9749   ;;
9750
9751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9752   version_type=freebsd-elf
9753   need_lib_prefix=no
9754   need_version=no
9755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9756   soname_spec='${libname}${release}${shared_ext}$major'
9757   shlibpath_var=LD_LIBRARY_PATH
9758   hardcode_into_libs=yes
9759   if test "$with_gnu_ld" = yes; then
9760     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9761     shlibpath_overrides_runpath=no
9762   else
9763     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9764     shlibpath_overrides_runpath=yes
9765     case $host_os in
9766       sco3.2v5*)
9767         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9768         ;;
9769     esac
9770   fi
9771   sys_lib_dlsearch_path_spec='/usr/lib'
9772   ;;
9773
9774 uts4*)
9775   version_type=linux
9776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9777   soname_spec='${libname}${release}${shared_ext}$major'
9778   shlibpath_var=LD_LIBRARY_PATH
9779   ;;
9780
9781 *)
9782   dynamic_linker=no
9783   ;;
9784 esac
9785 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9786 echo "${ECHO_T}$dynamic_linker" >&6; }
9787 test "$dynamic_linker" = no && can_build_shared=no
9788
9789 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9790   echo $ECHO_N "(cached) $ECHO_C" >&6
9791 else
9792   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9793 fi
9794
9795 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9796 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9797   echo $ECHO_N "(cached) $ECHO_C" >&6
9798 else
9799   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9800 fi
9801
9802 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9803
9804 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9805 if test "$GCC" = yes; then
9806   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9807 fi
9808
9809 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9810 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9811 hardcode_action=
9812 if test -n "$hardcode_libdir_flag_spec" || \
9813    test -n "$runpath_var" || \
9814    test "X$hardcode_automatic" = "Xyes" ; then
9815
9816   # We can hardcode non-existant directories.
9817   if test "$hardcode_direct" != no &&
9818      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9819      # have to relink, otherwise we might link with an installed library
9820      # when we should be linking with a yet-to-be-installed one
9821      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9822      test "$hardcode_minus_L" != no; then
9823     # Linking always hardcodes the temporary library directory.
9824     hardcode_action=relink
9825   else
9826     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9827     hardcode_action=immediate
9828   fi
9829 else
9830   # We cannot hardcode anything, or else we can only hardcode existing
9831   # directories.
9832   hardcode_action=unsupported
9833 fi
9834 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9835 echo "${ECHO_T}$hardcode_action" >&6; }
9836
9837 if test "$hardcode_action" = relink; then
9838   # Fast installation is not supported
9839   enable_fast_install=no
9840 elif test "$shlibpath_overrides_runpath" = yes ||
9841      test "$enable_shared" = no; then
9842   # Fast installation is not necessary
9843   enable_fast_install=needless
9844 fi
9845
9846 striplib=
9847 old_striplib=
9848 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9849 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9850 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9851   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9852   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9853   { echo "$as_me:$LINENO: result: yes" >&5
9854 echo "${ECHO_T}yes" >&6; }
9855 else
9856 # FIXME - insert some real tests, host_os isn't really good enough
9857   case $host_os in
9858    darwin*)
9859        if test -n "$STRIP" ; then
9860          striplib="$STRIP -x"
9861          old_striplib="$STRIP -S"
9862          { echo "$as_me:$LINENO: result: yes" >&5
9863 echo "${ECHO_T}yes" >&6; }
9864        else
9865   { echo "$as_me:$LINENO: result: no" >&5
9866 echo "${ECHO_T}no" >&6; }
9867 fi
9868        ;;
9869    *)
9870   { echo "$as_me:$LINENO: result: no" >&5
9871 echo "${ECHO_T}no" >&6; }
9872     ;;
9873   esac
9874 fi
9875
9876 if test "x$enable_dlopen" != xyes; then
9877   enable_dlopen=unknown
9878   enable_dlopen_self=unknown
9879   enable_dlopen_self_static=unknown
9880 else
9881   lt_cv_dlopen=no
9882   lt_cv_dlopen_libs=
9883
9884   case $host_os in
9885   beos*)
9886     lt_cv_dlopen="load_add_on"
9887     lt_cv_dlopen_libs=
9888     lt_cv_dlopen_self=yes
9889     ;;
9890
9891   mingw* | pw32*)
9892     lt_cv_dlopen="LoadLibrary"
9893     lt_cv_dlopen_libs=
9894    ;;
9895
9896   cygwin*)
9897     lt_cv_dlopen="dlopen"
9898     lt_cv_dlopen_libs=
9899    ;;
9900
9901   darwin*)
9902   # if libdl is installed we need to link against it
9903     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9904 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9905 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9906   echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908   ac_check_lib_save_LIBS=$LIBS
9909 LIBS="-ldl  $LIBS"
9910 cat >conftest.$ac_ext <<_ACEOF
9911 /* confdefs.h.  */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h.  */
9916
9917 /* Override any GCC internal prototype to avoid an error.
9918    Use char because int might match the return type of a GCC
9919    builtin and then its argument prototype would still apply.  */
9920 #ifdef __cplusplus
9921 extern "C"
9922 #endif
9923 char dlopen ();
9924 int
9925 main ()
9926 {
9927 return dlopen ();
9928   ;
9929   return 0;
9930 }
9931 _ACEOF
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (ac_try="$ac_link"
9934 case "(($ac_try" in
9935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936   *) ac_try_echo=$ac_try;;
9937 esac
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939   (eval "$ac_link") 2>conftest.er1
9940   ac_status=$?
9941   grep -v '^ *+' conftest.er1 >conftest.err
9942   rm -f conftest.er1
9943   cat conftest.err >&5
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); } && {
9946          test -z "$ac_c_werror_flag" ||
9947          test ! -s conftest.err
9948        } && test -s conftest$ac_exeext &&
9949        $as_test_x conftest$ac_exeext; then
9950   ac_cv_lib_dl_dlopen=yes
9951 else
9952   echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9954
9955         ac_cv_lib_dl_dlopen=no
9956 fi
9957
9958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9959       conftest$ac_exeext conftest.$ac_ext
9960 LIBS=$ac_check_lib_save_LIBS
9961 fi
9962 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9963 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9964 if test $ac_cv_lib_dl_dlopen = yes; then
9965   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9966 else
9967
9968     lt_cv_dlopen="dyld"
9969     lt_cv_dlopen_libs=
9970     lt_cv_dlopen_self=yes
9971
9972 fi
9973
9974    ;;
9975
9976   *)
9977     { echo "$as_me:$LINENO: checking for shl_load" >&5
9978 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9979 if test "${ac_cv_func_shl_load+set}" = set; then
9980   echo $ECHO_N "(cached) $ECHO_C" >&6
9981 else
9982   cat >conftest.$ac_ext <<_ACEOF
9983 /* confdefs.h.  */
9984 _ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h.  */
9988 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9990 #define shl_load innocuous_shl_load
9991
9992 /* System header to define __stub macros and hopefully few prototypes,
9993     which can conflict with char shl_load (); below.
9994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9995     <limits.h> exists even on freestanding compilers.  */
9996
9997 #ifdef __STDC__
9998 # include <limits.h>
9999 #else
10000 # include <assert.h>
10001 #endif
10002
10003 #undef shl_load
10004
10005 /* Override any GCC internal prototype to avoid an error.
10006    Use char because int might match the return type of a GCC
10007    builtin and then its argument prototype would still apply.  */
10008 #ifdef __cplusplus
10009 extern "C"
10010 #endif
10011 char shl_load ();
10012 /* The GNU C library defines this for functions which it implements
10013     to always fail with ENOSYS.  Some functions are actually named
10014     something starting with __ and the normal name is an alias.  */
10015 #if defined __stub_shl_load || defined __stub___shl_load
10016 choke me
10017 #endif
10018
10019 int
10020 main ()
10021 {
10022 return shl_load ();
10023   ;
10024   return 0;
10025 }
10026 _ACEOF
10027 rm -f conftest.$ac_objext conftest$ac_exeext
10028 if { (ac_try="$ac_link"
10029 case "(($ac_try" in
10030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031   *) ac_try_echo=$ac_try;;
10032 esac
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034   (eval "$ac_link") 2>conftest.er1
10035   ac_status=$?
10036   grep -v '^ *+' conftest.er1 >conftest.err
10037   rm -f conftest.er1
10038   cat conftest.err >&5
10039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040   (exit $ac_status); } && {
10041          test -z "$ac_c_werror_flag" ||
10042          test ! -s conftest.err
10043        } && test -s conftest$ac_exeext &&
10044        $as_test_x conftest$ac_exeext; then
10045   ac_cv_func_shl_load=yes
10046 else
10047   echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10049
10050         ac_cv_func_shl_load=no
10051 fi
10052
10053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10054       conftest$ac_exeext conftest.$ac_ext
10055 fi
10056 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10057 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10058 if test $ac_cv_func_shl_load = yes; then
10059   lt_cv_dlopen="shl_load"
10060 else
10061   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10062 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10063 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10064   echo $ECHO_N "(cached) $ECHO_C" >&6
10065 else
10066   ac_check_lib_save_LIBS=$LIBS
10067 LIBS="-ldld  $LIBS"
10068 cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h.  */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h.  */
10074
10075 /* Override any GCC internal prototype to avoid an error.
10076    Use char because int might match the return type of a GCC
10077    builtin and then its argument prototype would still apply.  */
10078 #ifdef __cplusplus
10079 extern "C"
10080 #endif
10081 char shl_load ();
10082 int
10083 main ()
10084 {
10085 return shl_load ();
10086   ;
10087   return 0;
10088 }
10089 _ACEOF
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (ac_try="$ac_link"
10092 case "(($ac_try" in
10093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094   *) ac_try_echo=$ac_try;;
10095 esac
10096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097   (eval "$ac_link") 2>conftest.er1
10098   ac_status=$?
10099   grep -v '^ *+' conftest.er1 >conftest.err
10100   rm -f conftest.er1
10101   cat conftest.err >&5
10102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103   (exit $ac_status); } && {
10104          test -z "$ac_c_werror_flag" ||
10105          test ! -s conftest.err
10106        } && test -s conftest$ac_exeext &&
10107        $as_test_x conftest$ac_exeext; then
10108   ac_cv_lib_dld_shl_load=yes
10109 else
10110   echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10112
10113         ac_cv_lib_dld_shl_load=no
10114 fi
10115
10116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10117       conftest$ac_exeext conftest.$ac_ext
10118 LIBS=$ac_check_lib_save_LIBS
10119 fi
10120 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10121 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10122 if test $ac_cv_lib_dld_shl_load = yes; then
10123   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10124 else
10125   { echo "$as_me:$LINENO: checking for dlopen" >&5
10126 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10127 if test "${ac_cv_func_dlopen+set}" = set; then
10128   echo $ECHO_N "(cached) $ECHO_C" >&6
10129 else
10130   cat >conftest.$ac_ext <<_ACEOF
10131 /* confdefs.h.  */
10132 _ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h.  */
10136 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10138 #define dlopen innocuous_dlopen
10139
10140 /* System header to define __stub macros and hopefully few prototypes,
10141     which can conflict with char dlopen (); below.
10142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10143     <limits.h> exists even on freestanding compilers.  */
10144
10145 #ifdef __STDC__
10146 # include <limits.h>
10147 #else
10148 # include <assert.h>
10149 #endif
10150
10151 #undef dlopen
10152
10153 /* Override any GCC internal prototype to avoid an error.
10154    Use char because int might match the return type of a GCC
10155    builtin and then its argument prototype would still apply.  */
10156 #ifdef __cplusplus
10157 extern "C"
10158 #endif
10159 char dlopen ();
10160 /* The GNU C library defines this for functions which it implements
10161     to always fail with ENOSYS.  Some functions are actually named
10162     something starting with __ and the normal name is an alias.  */
10163 #if defined __stub_dlopen || defined __stub___dlopen
10164 choke me
10165 #endif
10166
10167 int
10168 main ()
10169 {
10170 return dlopen ();
10171   ;
10172   return 0;
10173 }
10174 _ACEOF
10175 rm -f conftest.$ac_objext conftest$ac_exeext
10176 if { (ac_try="$ac_link"
10177 case "(($ac_try" in
10178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10179   *) ac_try_echo=$ac_try;;
10180 esac
10181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10182   (eval "$ac_link") 2>conftest.er1
10183   ac_status=$?
10184   grep -v '^ *+' conftest.er1 >conftest.err
10185   rm -f conftest.er1
10186   cat conftest.err >&5
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); } && {
10189          test -z "$ac_c_werror_flag" ||
10190          test ! -s conftest.err
10191        } && test -s conftest$ac_exeext &&
10192        $as_test_x conftest$ac_exeext; then
10193   ac_cv_func_dlopen=yes
10194 else
10195   echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10197
10198         ac_cv_func_dlopen=no
10199 fi
10200
10201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10202       conftest$ac_exeext conftest.$ac_ext
10203 fi
10204 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10205 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10206 if test $ac_cv_func_dlopen = yes; then
10207   lt_cv_dlopen="dlopen"
10208 else
10209   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10210 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10211 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10212   echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214   ac_check_lib_save_LIBS=$LIBS
10215 LIBS="-ldl  $LIBS"
10216 cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h.  */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h.  */
10222
10223 /* Override any GCC internal prototype to avoid an error.
10224    Use char because int might match the return type of a GCC
10225    builtin and then its argument prototype would still apply.  */
10226 #ifdef __cplusplus
10227 extern "C"
10228 #endif
10229 char dlopen ();
10230 int
10231 main ()
10232 {
10233 return dlopen ();
10234   ;
10235   return 0;
10236 }
10237 _ACEOF
10238 rm -f conftest.$ac_objext conftest$ac_exeext
10239 if { (ac_try="$ac_link"
10240 case "(($ac_try" in
10241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242   *) ac_try_echo=$ac_try;;
10243 esac
10244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245   (eval "$ac_link") 2>conftest.er1
10246   ac_status=$?
10247   grep -v '^ *+' conftest.er1 >conftest.err
10248   rm -f conftest.er1
10249   cat conftest.err >&5
10250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251   (exit $ac_status); } && {
10252          test -z "$ac_c_werror_flag" ||
10253          test ! -s conftest.err
10254        } && test -s conftest$ac_exeext &&
10255        $as_test_x conftest$ac_exeext; then
10256   ac_cv_lib_dl_dlopen=yes
10257 else
10258   echo "$as_me: failed program was:" >&5
10259 sed 's/^/| /' conftest.$ac_ext >&5
10260
10261         ac_cv_lib_dl_dlopen=no
10262 fi
10263
10264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10265       conftest$ac_exeext conftest.$ac_ext
10266 LIBS=$ac_check_lib_save_LIBS
10267 fi
10268 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10269 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10270 if test $ac_cv_lib_dl_dlopen = yes; then
10271   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10272 else
10273   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10274 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10275 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10276   echo $ECHO_N "(cached) $ECHO_C" >&6
10277 else
10278   ac_check_lib_save_LIBS=$LIBS
10279 LIBS="-lsvld  $LIBS"
10280 cat >conftest.$ac_ext <<_ACEOF
10281 /* confdefs.h.  */
10282 _ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h.  */
10286
10287 /* Override any GCC internal prototype to avoid an error.
10288    Use char because int might match the return type of a GCC
10289    builtin and then its argument prototype would still apply.  */
10290 #ifdef __cplusplus
10291 extern "C"
10292 #endif
10293 char dlopen ();
10294 int
10295 main ()
10296 {
10297 return dlopen ();
10298   ;
10299   return 0;
10300 }
10301 _ACEOF
10302 rm -f conftest.$ac_objext conftest$ac_exeext
10303 if { (ac_try="$ac_link"
10304 case "(($ac_try" in
10305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306   *) ac_try_echo=$ac_try;;
10307 esac
10308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309   (eval "$ac_link") 2>conftest.er1
10310   ac_status=$?
10311   grep -v '^ *+' conftest.er1 >conftest.err
10312   rm -f conftest.er1
10313   cat conftest.err >&5
10314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315   (exit $ac_status); } && {
10316          test -z "$ac_c_werror_flag" ||
10317          test ! -s conftest.err
10318        } && test -s conftest$ac_exeext &&
10319        $as_test_x conftest$ac_exeext; then
10320   ac_cv_lib_svld_dlopen=yes
10321 else
10322   echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10324
10325         ac_cv_lib_svld_dlopen=no
10326 fi
10327
10328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10329       conftest$ac_exeext conftest.$ac_ext
10330 LIBS=$ac_check_lib_save_LIBS
10331 fi
10332 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10333 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10334 if test $ac_cv_lib_svld_dlopen = yes; then
10335   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10336 else
10337   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10338 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10339 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10340   echo $ECHO_N "(cached) $ECHO_C" >&6
10341 else
10342   ac_check_lib_save_LIBS=$LIBS
10343 LIBS="-ldld  $LIBS"
10344 cat >conftest.$ac_ext <<_ACEOF
10345 /* confdefs.h.  */
10346 _ACEOF
10347 cat confdefs.h >>conftest.$ac_ext
10348 cat >>conftest.$ac_ext <<_ACEOF
10349 /* end confdefs.h.  */
10350
10351 /* Override any GCC internal prototype to avoid an error.
10352    Use char because int might match the return type of a GCC
10353    builtin and then its argument prototype would still apply.  */
10354 #ifdef __cplusplus
10355 extern "C"
10356 #endif
10357 char dld_link ();
10358 int
10359 main ()
10360 {
10361 return dld_link ();
10362   ;
10363   return 0;
10364 }
10365 _ACEOF
10366 rm -f conftest.$ac_objext conftest$ac_exeext
10367 if { (ac_try="$ac_link"
10368 case "(($ac_try" in
10369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370   *) ac_try_echo=$ac_try;;
10371 esac
10372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373   (eval "$ac_link") 2>conftest.er1
10374   ac_status=$?
10375   grep -v '^ *+' conftest.er1 >conftest.err
10376   rm -f conftest.er1
10377   cat conftest.err >&5
10378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379   (exit $ac_status); } && {
10380          test -z "$ac_c_werror_flag" ||
10381          test ! -s conftest.err
10382        } && test -s conftest$ac_exeext &&
10383        $as_test_x conftest$ac_exeext; then
10384   ac_cv_lib_dld_dld_link=yes
10385 else
10386   echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10388
10389         ac_cv_lib_dld_dld_link=no
10390 fi
10391
10392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10393       conftest$ac_exeext conftest.$ac_ext
10394 LIBS=$ac_check_lib_save_LIBS
10395 fi
10396 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10397 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10398 if test $ac_cv_lib_dld_dld_link = yes; then
10399   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10400 fi
10401
10402
10403 fi
10404
10405
10406 fi
10407
10408
10409 fi
10410
10411
10412 fi
10413
10414
10415 fi
10416
10417     ;;
10418   esac
10419
10420   if test "x$lt_cv_dlopen" != xno; then
10421     enable_dlopen=yes
10422   else
10423     enable_dlopen=no
10424   fi
10425
10426   case $lt_cv_dlopen in
10427   dlopen)
10428     save_CPPFLAGS="$CPPFLAGS"
10429     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10430
10431     save_LDFLAGS="$LDFLAGS"
10432     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10433
10434     save_LIBS="$LIBS"
10435     LIBS="$lt_cv_dlopen_libs $LIBS"
10436
10437     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10438 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10439 if test "${lt_cv_dlopen_self+set}" = set; then
10440   echo $ECHO_N "(cached) $ECHO_C" >&6
10441 else
10442           if test "$cross_compiling" = yes; then :
10443   lt_cv_dlopen_self=cross
10444 else
10445   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10446   lt_status=$lt_dlunknown
10447   cat > conftest.$ac_ext <<EOF
10448 #line 10448 "configure"
10449 #include "confdefs.h"
10450
10451 #if HAVE_DLFCN_H
10452 #include <dlfcn.h>
10453 #endif
10454
10455 #include <stdio.h>
10456
10457 #ifdef RTLD_GLOBAL
10458 #  define LT_DLGLOBAL           RTLD_GLOBAL
10459 #else
10460 #  ifdef DL_GLOBAL
10461 #    define LT_DLGLOBAL         DL_GLOBAL
10462 #  else
10463 #    define LT_DLGLOBAL         0
10464 #  endif
10465 #endif
10466
10467 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10468    find out it does not work in some platform. */
10469 #ifndef LT_DLLAZY_OR_NOW
10470 #  ifdef RTLD_LAZY
10471 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10472 #  else
10473 #    ifdef DL_LAZY
10474 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10475 #    else
10476 #      ifdef RTLD_NOW
10477 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10478 #      else
10479 #        ifdef DL_NOW
10480 #          define LT_DLLAZY_OR_NOW      DL_NOW
10481 #        else
10482 #          define LT_DLLAZY_OR_NOW      0
10483 #        endif
10484 #      endif
10485 #    endif
10486 #  endif
10487 #endif
10488
10489 #ifdef __cplusplus
10490 extern "C" void exit (int);
10491 #endif
10492
10493 void fnord() { int i=42;}
10494 int main ()
10495 {
10496   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10497   int status = $lt_dlunknown;
10498
10499   if (self)
10500     {
10501       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10502       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10503       /* dlclose (self); */
10504     }
10505   else
10506     puts (dlerror ());
10507
10508     exit (status);
10509 }
10510 EOF
10511   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10512   (eval $ac_link) 2>&5
10513   ac_status=$?
10514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10516     (./conftest; exit; ) >&5 2>/dev/null
10517     lt_status=$?
10518     case x$lt_status in
10519       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10520       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10521       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10522     esac
10523   else :
10524     # compilation failed
10525     lt_cv_dlopen_self=no
10526   fi
10527 fi
10528 rm -fr conftest*
10529
10530
10531 fi
10532 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10533 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10534
10535     if test "x$lt_cv_dlopen_self" = xyes; then
10536       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10537       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10538 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10539 if test "${lt_cv_dlopen_self_static+set}" = set; then
10540   echo $ECHO_N "(cached) $ECHO_C" >&6
10541 else
10542           if test "$cross_compiling" = yes; then :
10543   lt_cv_dlopen_self_static=cross
10544 else
10545   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10546   lt_status=$lt_dlunknown
10547   cat > conftest.$ac_ext <<EOF
10548 #line 10548 "configure"
10549 #include "confdefs.h"
10550
10551 #if HAVE_DLFCN_H
10552 #include <dlfcn.h>
10553 #endif
10554
10555 #include <stdio.h>
10556
10557 #ifdef RTLD_GLOBAL
10558 #  define LT_DLGLOBAL           RTLD_GLOBAL
10559 #else
10560 #  ifdef DL_GLOBAL
10561 #    define LT_DLGLOBAL         DL_GLOBAL
10562 #  else
10563 #    define LT_DLGLOBAL         0
10564 #  endif
10565 #endif
10566
10567 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10568    find out it does not work in some platform. */
10569 #ifndef LT_DLLAZY_OR_NOW
10570 #  ifdef RTLD_LAZY
10571 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10572 #  else
10573 #    ifdef DL_LAZY
10574 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10575 #    else
10576 #      ifdef RTLD_NOW
10577 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10578 #      else
10579 #        ifdef DL_NOW
10580 #          define LT_DLLAZY_OR_NOW      DL_NOW
10581 #        else
10582 #          define LT_DLLAZY_OR_NOW      0
10583 #        endif
10584 #      endif
10585 #    endif
10586 #  endif
10587 #endif
10588
10589 #ifdef __cplusplus
10590 extern "C" void exit (int);
10591 #endif
10592
10593 void fnord() { int i=42;}
10594 int main ()
10595 {
10596   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10597   int status = $lt_dlunknown;
10598
10599   if (self)
10600     {
10601       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10602       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10603       /* dlclose (self); */
10604     }
10605   else
10606     puts (dlerror ());
10607
10608     exit (status);
10609 }
10610 EOF
10611   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10612   (eval $ac_link) 2>&5
10613   ac_status=$?
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10616     (./conftest; exit; ) >&5 2>/dev/null
10617     lt_status=$?
10618     case x$lt_status in
10619       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10620       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10621       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10622     esac
10623   else :
10624     # compilation failed
10625     lt_cv_dlopen_self_static=no
10626   fi
10627 fi
10628 rm -fr conftest*
10629
10630
10631 fi
10632 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10633 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10634     fi
10635
10636     CPPFLAGS="$save_CPPFLAGS"
10637     LDFLAGS="$save_LDFLAGS"
10638     LIBS="$save_LIBS"
10639     ;;
10640   esac
10641
10642   case $lt_cv_dlopen_self in
10643   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10644   *) enable_dlopen_self=unknown ;;
10645   esac
10646
10647   case $lt_cv_dlopen_self_static in
10648   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10649   *) enable_dlopen_self_static=unknown ;;
10650   esac
10651 fi
10652
10653
10654 # Report which library types will actually be built
10655 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10656 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10657 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10658 echo "${ECHO_T}$can_build_shared" >&6; }
10659
10660 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10661 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10662 test "$can_build_shared" = "no" && enable_shared=no
10663
10664 # On AIX, shared libraries and static libraries use the same namespace, and
10665 # are all built from PIC.
10666 case $host_os in
10667 aix3*)
10668   test "$enable_shared" = yes && enable_static=no
10669   if test -n "$RANLIB"; then
10670     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10671     postinstall_cmds='$RANLIB $lib'
10672   fi
10673   ;;
10674
10675 aix[4-9]*)
10676   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10677     test "$enable_shared" = yes && enable_static=no
10678   fi
10679     ;;
10680 esac
10681 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10682 echo "${ECHO_T}$enable_shared" >&6; }
10683
10684 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10685 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10686 # Make sure either enable_shared or enable_static is yes.
10687 test "$enable_shared" = yes || enable_static=yes
10688 { echo "$as_me:$LINENO: result: $enable_static" >&5
10689 echo "${ECHO_T}$enable_static" >&6; }
10690
10691 # The else clause should only fire when bootstrapping the
10692 # libtool distribution, otherwise you forgot to ship ltmain.sh
10693 # with your package, and you will get complaints that there are
10694 # no rules to generate ltmain.sh.
10695 if test -f "$ltmain"; then
10696   # See if we are running on zsh, and set the options which allow our commands through
10697   # without removal of \ escapes.
10698   if test -n "${ZSH_VERSION+set}" ; then
10699     setopt NO_GLOB_SUBST
10700   fi
10701   # Now quote all the things that may contain metacharacters while being
10702   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10703   # variables and quote the copies for generation of the libtool script.
10704   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10705     SED SHELL STRIP \
10706     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10707     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10708     deplibs_check_method reload_flag reload_cmds need_locks \
10709     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10710     lt_cv_sys_global_symbol_to_c_name_address \
10711     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10712     old_postinstall_cmds old_postuninstall_cmds \
10713     compiler \
10714     CC \
10715     LD \
10716     lt_prog_compiler_wl \
10717     lt_prog_compiler_pic \
10718     lt_prog_compiler_static \
10719     lt_prog_compiler_no_builtin_flag \
10720     export_dynamic_flag_spec \
10721     thread_safe_flag_spec \
10722     whole_archive_flag_spec \
10723     enable_shared_with_static_runtimes \
10724     old_archive_cmds \
10725     old_archive_from_new_cmds \
10726     predep_objects \
10727     postdep_objects \
10728     predeps \
10729     postdeps \
10730     compiler_lib_search_path \
10731     compiler_lib_search_dirs \
10732     archive_cmds \
10733     archive_expsym_cmds \
10734     postinstall_cmds \
10735     postuninstall_cmds \
10736     old_archive_from_expsyms_cmds \
10737     allow_undefined_flag \
10738     no_undefined_flag \
10739     export_symbols_cmds \
10740     hardcode_libdir_flag_spec \
10741     hardcode_libdir_flag_spec_ld \
10742     hardcode_libdir_separator \
10743     hardcode_automatic \
10744     module_cmds \
10745     module_expsym_cmds \
10746     lt_cv_prog_compiler_c_o \
10747     fix_srcfile_path \
10748     exclude_expsyms \
10749     include_expsyms; do
10750
10751     case $var in
10752     old_archive_cmds | \
10753     old_archive_from_new_cmds | \
10754     archive_cmds | \
10755     archive_expsym_cmds | \
10756     module_cmds | \
10757     module_expsym_cmds | \
10758     old_archive_from_expsyms_cmds | \
10759     export_symbols_cmds | \
10760     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10761     postinstall_cmds | postuninstall_cmds | \
10762     old_postinstall_cmds | old_postuninstall_cmds | \
10763     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10764       # Double-quote double-evaled strings.
10765       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10766       ;;
10767     *)
10768       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10769       ;;
10770     esac
10771   done
10772
10773   case $lt_echo in
10774   *'\$0 --fallback-echo"')
10775     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10776     ;;
10777   esac
10778
10779 cfgfile="${ofile}T"
10780   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10781   $rm -f "$cfgfile"
10782   { echo "$as_me:$LINENO: creating $ofile" >&5
10783 echo "$as_me: creating $ofile" >&6;}
10784
10785   cat <<__EOF__ >> "$cfgfile"
10786 #! $SHELL
10787
10788 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10789 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10790 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10791 #
10792 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10793 # Free Software Foundation, Inc.
10794 #
10795 # This file is part of GNU Libtool:
10796 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10797 #
10798 # This program is free software; you can redistribute it and/or modify
10799 # it under the terms of the GNU General Public License as published by
10800 # the Free Software Foundation; either version 2 of the License, or
10801 # (at your option) any later version.
10802 #
10803 # This program is distributed in the hope that it will be useful, but
10804 # WITHOUT ANY WARRANTY; without even the implied warranty of
10805 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10806 # General Public License for more details.
10807 #
10808 # You should have received a copy of the GNU General Public License
10809 # along with this program; if not, write to the Free Software
10810 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10811 #
10812 # As a special exception to the GNU General Public License, if you
10813 # distribute this file as part of a program that contains a
10814 # configuration script generated by Autoconf, you may include it under
10815 # the same distribution terms that you use for the rest of that program.
10816
10817 # A sed program that does not truncate output.
10818 SED=$lt_SED
10819
10820 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10821 Xsed="$SED -e 1s/^X//"
10822
10823 # The HP-UX ksh and POSIX shell print the target directory to stdout
10824 # if CDPATH is set.
10825 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10826
10827 # The names of the tagged configurations supported by this script.
10828 available_tags=
10829
10830 # ### BEGIN LIBTOOL CONFIG
10831
10832 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10833
10834 # Shell to use when invoking shell scripts.
10835 SHELL=$lt_SHELL
10836
10837 # Whether or not to build shared libraries.
10838 build_libtool_libs=$enable_shared
10839
10840 # Whether or not to build static libraries.
10841 build_old_libs=$enable_static
10842
10843 # Whether or not to add -lc for building shared libraries.
10844 build_libtool_need_lc=$archive_cmds_need_lc
10845
10846 # Whether or not to disallow shared libs when runtime libs are static
10847 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10848
10849 # Whether or not to optimize for fast installation.
10850 fast_install=$enable_fast_install
10851
10852 # The host system.
10853 host_alias=$host_alias
10854 host=$host
10855 host_os=$host_os
10856
10857 # The build system.
10858 build_alias=$build_alias
10859 build=$build
10860 build_os=$build_os
10861
10862 # An echo program that does not interpret backslashes.
10863 echo=$lt_echo
10864
10865 # The archiver.
10866 AR=$lt_AR
10867 AR_FLAGS=$lt_AR_FLAGS
10868
10869 # A C compiler.
10870 LTCC=$lt_LTCC
10871
10872 # LTCC compiler flags.
10873 LTCFLAGS=$lt_LTCFLAGS
10874
10875 # A language-specific compiler.
10876 CC=$lt_compiler
10877
10878 # Is the compiler the GNU C compiler?
10879 with_gcc=$GCC
10880
10881 # An ERE matcher.
10882 EGREP=$lt_EGREP
10883
10884 # The linker used to build libraries.
10885 LD=$lt_LD
10886
10887 # Whether we need hard or soft links.
10888 LN_S=$lt_LN_S
10889
10890 # A BSD-compatible nm program.
10891 NM=$lt_NM
10892
10893 # A symbol stripping program
10894 STRIP=$lt_STRIP
10895
10896 # Used to examine libraries when file_magic_cmd begins "file"
10897 MAGIC_CMD=$MAGIC_CMD
10898
10899 # Used on cygwin: DLL creation program.
10900 DLLTOOL="$DLLTOOL"
10901
10902 # Used on cygwin: object dumper.
10903 OBJDUMP="$OBJDUMP"
10904
10905 # Used on cygwin: assembler.
10906 AS="$AS"
10907
10908 # The name of the directory that contains temporary libtool files.
10909 objdir=$objdir
10910
10911 # How to create reloadable object files.
10912 reload_flag=$lt_reload_flag
10913 reload_cmds=$lt_reload_cmds
10914
10915 # How to pass a linker flag through the compiler.
10916 wl=$lt_lt_prog_compiler_wl
10917
10918 # Object file suffix (normally "o").
10919 objext="$ac_objext"
10920
10921 # Old archive suffix (normally "a").
10922 libext="$libext"
10923
10924 # Shared library suffix (normally ".so").
10925 shrext_cmds='$shrext_cmds'
10926
10927 # Executable file suffix (normally "").
10928 exeext="$exeext"
10929
10930 # Additional compiler flags for building library objects.
10931 pic_flag=$lt_lt_prog_compiler_pic
10932 pic_mode=$pic_mode
10933
10934 # What is the maximum length of a command?
10935 max_cmd_len=$lt_cv_sys_max_cmd_len
10936
10937 # Does compiler simultaneously support -c and -o options?
10938 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10939
10940 # Must we lock files when doing compilation?
10941 need_locks=$lt_need_locks
10942
10943 # Do we need the lib prefix for modules?
10944 need_lib_prefix=$need_lib_prefix
10945
10946 # Do we need a version for libraries?
10947 need_version=$need_version
10948
10949 # Whether dlopen is supported.
10950 dlopen_support=$enable_dlopen
10951
10952 # Whether dlopen of programs is supported.
10953 dlopen_self=$enable_dlopen_self
10954
10955 # Whether dlopen of statically linked programs is supported.
10956 dlopen_self_static=$enable_dlopen_self_static
10957
10958 # Compiler flag to prevent dynamic linking.
10959 link_static_flag=$lt_lt_prog_compiler_static
10960
10961 # Compiler flag to turn off builtin functions.
10962 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10963
10964 # Compiler flag to allow reflexive dlopens.
10965 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10966
10967 # Compiler flag to generate shared objects directly from archives.
10968 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10969
10970 # Compiler flag to generate thread-safe objects.
10971 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10972
10973 # Library versioning type.
10974 version_type=$version_type
10975
10976 # Format of library name prefix.
10977 libname_spec=$lt_libname_spec
10978
10979 # List of archive names.  First name is the real one, the rest are links.
10980 # The last name is the one that the linker finds with -lNAME.
10981 library_names_spec=$lt_library_names_spec
10982
10983 # The coded name of the library, if different from the real name.
10984 soname_spec=$lt_soname_spec
10985
10986 # Commands used to build and install an old-style archive.
10987 RANLIB=$lt_RANLIB
10988 old_archive_cmds=$lt_old_archive_cmds
10989 old_postinstall_cmds=$lt_old_postinstall_cmds
10990 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10991
10992 # Create an old-style archive from a shared archive.
10993 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10994
10995 # Create a temporary old-style archive to link instead of a shared archive.
10996 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10997
10998 # Commands used to build and install a shared archive.
10999 archive_cmds=$lt_archive_cmds
11000 archive_expsym_cmds=$lt_archive_expsym_cmds
11001 postinstall_cmds=$lt_postinstall_cmds
11002 postuninstall_cmds=$lt_postuninstall_cmds
11003
11004 # Commands used to build a loadable module (assumed same as above if empty)
11005 module_cmds=$lt_module_cmds
11006 module_expsym_cmds=$lt_module_expsym_cmds
11007
11008 # Commands to strip libraries.
11009 old_striplib=$lt_old_striplib
11010 striplib=$lt_striplib
11011
11012 # Dependencies to place before the objects being linked to create a
11013 # shared library.
11014 predep_objects=$lt_predep_objects
11015
11016 # Dependencies to place after the objects being linked to create a
11017 # shared library.
11018 postdep_objects=$lt_postdep_objects
11019
11020 # Dependencies to place before the objects being linked to create a
11021 # shared library.
11022 predeps=$lt_predeps
11023
11024 # Dependencies to place after the objects being linked to create a
11025 # shared library.
11026 postdeps=$lt_postdeps
11027
11028 # The directories searched by this compiler when creating a shared
11029 # library
11030 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11031
11032 # The library search path used internally by the compiler when linking
11033 # a shared library.
11034 compiler_lib_search_path=$lt_compiler_lib_search_path
11035
11036 # Method to check whether dependent libraries are shared objects.
11037 deplibs_check_method=$lt_deplibs_check_method
11038
11039 # Command to use when deplibs_check_method == file_magic.
11040 file_magic_cmd=$lt_file_magic_cmd
11041
11042 # Flag that allows shared libraries with undefined symbols to be built.
11043 allow_undefined_flag=$lt_allow_undefined_flag
11044
11045 # Flag that forces no undefined symbols.
11046 no_undefined_flag=$lt_no_undefined_flag
11047
11048 # Commands used to finish a libtool library installation in a directory.
11049 finish_cmds=$lt_finish_cmds
11050
11051 # Same as above, but a single script fragment to be evaled but not shown.
11052 finish_eval=$lt_finish_eval
11053
11054 # Take the output of nm and produce a listing of raw symbols and C names.
11055 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11056
11057 # Transform the output of nm in a proper C declaration
11058 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11059
11060 # Transform the output of nm in a C name address pair
11061 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11062
11063 # This is the shared library runtime path variable.
11064 runpath_var=$runpath_var
11065
11066 # This is the shared library path variable.
11067 shlibpath_var=$shlibpath_var
11068
11069 # Is shlibpath searched before the hard-coded library search path?
11070 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11071
11072 # How to hardcode a shared library path into an executable.
11073 hardcode_action=$hardcode_action
11074
11075 # Whether we should hardcode library paths into libraries.
11076 hardcode_into_libs=$hardcode_into_libs
11077
11078 # Flag to hardcode \$libdir into a binary during linking.
11079 # This must work even if \$libdir does not exist.
11080 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11081
11082 # If ld is used when linking, flag to hardcode \$libdir into
11083 # a binary during linking. This must work even if \$libdir does
11084 # not exist.
11085 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11086
11087 # Whether we need a single -rpath flag with a separated argument.
11088 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11089
11090 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11091 # resulting binary.
11092 hardcode_direct=$hardcode_direct
11093
11094 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11095 # resulting binary.
11096 hardcode_minus_L=$hardcode_minus_L
11097
11098 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11099 # the resulting binary.
11100 hardcode_shlibpath_var=$hardcode_shlibpath_var
11101
11102 # Set to yes if building a shared library automatically hardcodes DIR into the library
11103 # and all subsequent libraries and executables linked against it.
11104 hardcode_automatic=$hardcode_automatic
11105
11106 # Variables whose values should be saved in libtool wrapper scripts and
11107 # restored at relink time.
11108 variables_saved_for_relink="$variables_saved_for_relink"
11109
11110 # Whether libtool must link a program against all its dependency libraries.
11111 link_all_deplibs=$link_all_deplibs
11112
11113 # Compile-time system search path for libraries
11114 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11115
11116 # Run-time system search path for libraries
11117 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11118
11119 # Fix the shell variable \$srcfile for the compiler.
11120 fix_srcfile_path=$lt_fix_srcfile_path
11121
11122 # Set to yes if exported symbols are required.
11123 always_export_symbols=$always_export_symbols
11124
11125 # The commands to list exported symbols.
11126 export_symbols_cmds=$lt_export_symbols_cmds
11127
11128 # The commands to extract the exported symbol list from a shared archive.
11129 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11130
11131 # Symbols that should not be listed in the preloaded symbols.
11132 exclude_expsyms=$lt_exclude_expsyms
11133
11134 # Symbols that must always be exported.
11135 include_expsyms=$lt_include_expsyms
11136
11137 # ### END LIBTOOL CONFIG
11138
11139 __EOF__
11140
11141
11142   case $host_os in
11143   aix3*)
11144     cat <<\EOF >> "$cfgfile"
11145
11146 # AIX sometimes has problems with the GCC collect2 program.  For some
11147 # reason, if we set the COLLECT_NAMES environment variable, the problems
11148 # vanish in a puff of smoke.
11149 if test "X${COLLECT_NAMES+set}" != Xset; then
11150   COLLECT_NAMES=
11151   export COLLECT_NAMES
11152 fi
11153 EOF
11154     ;;
11155   esac
11156
11157   # We use sed instead of cat because bash on DJGPP gets confused if
11158   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11159   # text mode, it properly converts lines to CR/LF.  This bash problem
11160   # is reportedly fixed, but why not run on old versions too?
11161   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11162
11163   mv -f "$cfgfile" "$ofile" || \
11164     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11165   chmod +x "$ofile"
11166
11167 else
11168   # If there is no Makefile yet, we rely on a make rule to execute
11169   # `config.status --recheck' to rerun these tests and create the
11170   # libtool script then.
11171   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11172   if test -f "$ltmain_in"; then
11173     test -f Makefile && make "$ltmain"
11174   fi
11175 fi
11176
11177
11178 ac_ext=c
11179 ac_cpp='$CPP $CPPFLAGS'
11180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11183
11184 CC="$lt_save_CC"
11185
11186
11187 # Check whether --with-tags was given.
11188 if test "${with_tags+set}" = set; then
11189   withval=$with_tags; tagnames="$withval"
11190 fi
11191
11192
11193 if test -f "$ltmain" && test -n "$tagnames"; then
11194   if test ! -f "${ofile}"; then
11195     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11196 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11197   fi
11198
11199   if test -z "$LTCC"; then
11200     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11201     if test -z "$LTCC"; then
11202       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11203 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11204     else
11205       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11206 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11207     fi
11208   fi
11209   if test -z "$LTCFLAGS"; then
11210     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11211   fi
11212
11213   # Extract list of available tagged configurations in $ofile.
11214   # Note that this assumes the entire list is on one line.
11215   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11216
11217   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11218   for tagname in $tagnames; do
11219     IFS="$lt_save_ifs"
11220     # Check whether tagname contains only valid characters
11221     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11222     "") ;;
11223     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11224 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11225    { (exit 1); exit 1; }; }
11226         ;;
11227     esac
11228
11229     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11230     then
11231       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11232 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11233    { (exit 1); exit 1; }; }
11234     fi
11235
11236     # Update the list of available tags.
11237     if test -n "$tagname"; then
11238       echo appending configuration tag \"$tagname\" to $ofile
11239
11240       case $tagname in
11241       CXX)
11242         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11243             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11244             (test "X$CXX" != "Xg++"))) ; then
11245           ac_ext=cpp
11246 ac_cpp='$CXXCPP $CPPFLAGS'
11247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11250
11251
11252
11253
11254 archive_cmds_need_lc_CXX=no
11255 allow_undefined_flag_CXX=
11256 always_export_symbols_CXX=no
11257 archive_expsym_cmds_CXX=
11258 export_dynamic_flag_spec_CXX=
11259 hardcode_direct_CXX=no
11260 hardcode_libdir_flag_spec_CXX=
11261 hardcode_libdir_flag_spec_ld_CXX=
11262 hardcode_libdir_separator_CXX=
11263 hardcode_minus_L_CXX=no
11264 hardcode_shlibpath_var_CXX=unsupported
11265 hardcode_automatic_CXX=no
11266 module_cmds_CXX=
11267 module_expsym_cmds_CXX=
11268 link_all_deplibs_CXX=unknown
11269 old_archive_cmds_CXX=$old_archive_cmds
11270 no_undefined_flag_CXX=
11271 whole_archive_flag_spec_CXX=
11272 enable_shared_with_static_runtimes_CXX=no
11273
11274 # Dependencies to place before and after the object being linked:
11275 predep_objects_CXX=
11276 postdep_objects_CXX=
11277 predeps_CXX=
11278 postdeps_CXX=
11279 compiler_lib_search_path_CXX=
11280 compiler_lib_search_dirs_CXX=
11281
11282 # Source file extension for C++ test sources.
11283 ac_ext=cpp
11284
11285 # Object file extension for compiled C++ test sources.
11286 objext=o
11287 objext_CXX=$objext
11288
11289 # Code to be used in simple compile tests
11290 lt_simple_compile_test_code="int some_variable = 0;"
11291
11292 # Code to be used in simple link tests
11293 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11294
11295 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11296
11297 # If no C compiler was specified, use CC.
11298 LTCC=${LTCC-"$CC"}
11299
11300 # If no C compiler flags were specified, use CFLAGS.
11301 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11302
11303 # Allow CC to be a program name with arguments.
11304 compiler=$CC
11305
11306
11307 # save warnings/boilerplate of simple test code
11308 ac_outfile=conftest.$ac_objext
11309 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11310 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11311 _lt_compiler_boilerplate=`cat conftest.err`
11312 $rm conftest*
11313
11314 ac_outfile=conftest.$ac_objext
11315 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11316 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11317 _lt_linker_boilerplate=`cat conftest.err`
11318 $rm -r conftest*
11319
11320
11321 # Allow CC to be a program name with arguments.
11322 lt_save_CC=$CC
11323 lt_save_LD=$LD
11324 lt_save_GCC=$GCC
11325 GCC=$GXX
11326 lt_save_with_gnu_ld=$with_gnu_ld
11327 lt_save_path_LD=$lt_cv_path_LD
11328 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11329   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11330 else
11331   $as_unset lt_cv_prog_gnu_ld
11332 fi
11333 if test -n "${lt_cv_path_LDCXX+set}"; then
11334   lt_cv_path_LD=$lt_cv_path_LDCXX
11335 else
11336   $as_unset lt_cv_path_LD
11337 fi
11338 test -z "${LDCXX+set}" || LD=$LDCXX
11339 CC=${CXX-"c++"}
11340 compiler=$CC
11341 compiler_CXX=$CC
11342 for cc_temp in $compiler""; do
11343   case $cc_temp in
11344     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11345     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11346     \-*) ;;
11347     *) break;;
11348   esac
11349 done
11350 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11351
11352
11353 # We don't want -fno-exception wen compiling C++ code, so set the
11354 # no_builtin_flag separately
11355 if test "$GXX" = yes; then
11356   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11357 else
11358   lt_prog_compiler_no_builtin_flag_CXX=
11359 fi
11360
11361 if test "$GXX" = yes; then
11362   # Set up default GNU C++ configuration
11363
11364
11365 # Check whether --with-gnu-ld was given.
11366 if test "${with_gnu_ld+set}" = set; then
11367   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11368 else
11369   with_gnu_ld=no
11370 fi
11371
11372 ac_prog=ld
11373 if test "$GCC" = yes; then
11374   # Check if gcc -print-prog-name=ld gives a path.
11375   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11376 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11377   case $host in
11378   *-*-mingw*)
11379     # gcc leaves a trailing carriage return which upsets mingw
11380     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11381   *)
11382     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11383   esac
11384   case $ac_prog in
11385     # Accept absolute paths.
11386     [\\/]* | ?:[\\/]*)
11387       re_direlt='/[^/][^/]*/\.\./'
11388       # Canonicalize the pathname of ld
11389       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11390       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11391         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11392       done
11393       test -z "$LD" && LD="$ac_prog"
11394       ;;
11395   "")
11396     # If it fails, then pretend we aren't using GCC.
11397     ac_prog=ld
11398     ;;
11399   *)
11400     # If it is relative, then search for the first ld in PATH.
11401     with_gnu_ld=unknown
11402     ;;
11403   esac
11404 elif test "$with_gnu_ld" = yes; then
11405   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11406 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11407 else
11408   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11409 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11410 fi
11411 if test "${lt_cv_path_LD+set}" = set; then
11412   echo $ECHO_N "(cached) $ECHO_C" >&6
11413 else
11414   if test -z "$LD"; then
11415   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11416   for ac_dir in $PATH; do
11417     IFS="$lt_save_ifs"
11418     test -z "$ac_dir" && ac_dir=.
11419     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11420       lt_cv_path_LD="$ac_dir/$ac_prog"
11421       # Check to see if the program is GNU ld.  I'd rather use --version,
11422       # but apparently some variants of GNU ld only accept -v.
11423       # Break only if it was the GNU/non-GNU ld that we prefer.
11424       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11425       *GNU* | *'with BFD'*)
11426         test "$with_gnu_ld" != no && break
11427         ;;
11428       *)
11429         test "$with_gnu_ld" != yes && break
11430         ;;
11431       esac
11432     fi
11433   done
11434   IFS="$lt_save_ifs"
11435 else
11436   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11437 fi
11438 fi
11439
11440 LD="$lt_cv_path_LD"
11441 if test -n "$LD"; then
11442   { echo "$as_me:$LINENO: result: $LD" >&5
11443 echo "${ECHO_T}$LD" >&6; }
11444 else
11445   { echo "$as_me:$LINENO: result: no" >&5
11446 echo "${ECHO_T}no" >&6; }
11447 fi
11448 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11449 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11450    { (exit 1); exit 1; }; }
11451 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11452 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11453 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11454   echo $ECHO_N "(cached) $ECHO_C" >&6
11455 else
11456   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11457 case `$LD -v 2>&1 </dev/null` in
11458 *GNU* | *'with BFD'*)
11459   lt_cv_prog_gnu_ld=yes
11460   ;;
11461 *)
11462   lt_cv_prog_gnu_ld=no
11463   ;;
11464 esac
11465 fi
11466 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11467 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11468 with_gnu_ld=$lt_cv_prog_gnu_ld
11469
11470
11471
11472   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11473   # archiving commands below assume that GNU ld is being used.
11474   if test "$with_gnu_ld" = yes; then
11475     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11476     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'
11477
11478     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11479     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11480
11481     # If archive_cmds runs LD, not CC, wlarc should be empty
11482     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11483     #     investigate it a little bit more. (MM)
11484     wlarc='${wl}'
11485
11486     # ancient GNU ld didn't support --whole-archive et. al.
11487     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11488         grep 'no-whole-archive' > /dev/null; then
11489       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11490     else
11491       whole_archive_flag_spec_CXX=
11492     fi
11493   else
11494     with_gnu_ld=no
11495     wlarc=
11496
11497     # A generic and very simple default shared library creation
11498     # command for GNU C++ for the case where it uses the native
11499     # linker, instead of GNU ld.  If possible, this setting should
11500     # overridden to take advantage of the native linker features on
11501     # the platform it is being used on.
11502     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11503   fi
11504
11505   # Commands to make compiler produce verbose output that lists
11506   # what "hidden" libraries, object files and flags are used when
11507   # linking a shared library.
11508   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11509
11510 else
11511   GXX=no
11512   with_gnu_ld=no
11513   wlarc=
11514 fi
11515
11516 # PORTME: fill in a description of your system's C++ link characteristics
11517 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11518 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11519 ld_shlibs_CXX=yes
11520 case $host_os in
11521   aix3*)
11522     # FIXME: insert proper C++ library support
11523     ld_shlibs_CXX=no
11524     ;;
11525   aix[4-9]*)
11526     if test "$host_cpu" = ia64; then
11527       # On IA64, the linker does run time linking by default, so we don't
11528       # have to do anything special.
11529       aix_use_runtimelinking=no
11530       exp_sym_flag='-Bexport'
11531       no_entry_flag=""
11532     else
11533       aix_use_runtimelinking=no
11534
11535       # Test if we are trying to use run time linking or normal
11536       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11537       # need to do runtime linking.
11538       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11539         for ld_flag in $LDFLAGS; do
11540           case $ld_flag in
11541           *-brtl*)
11542             aix_use_runtimelinking=yes
11543             break
11544             ;;
11545           esac
11546         done
11547         ;;
11548       esac
11549
11550       exp_sym_flag='-bexport'
11551       no_entry_flag='-bnoentry'
11552     fi
11553
11554     # When large executables or shared objects are built, AIX ld can
11555     # have problems creating the table of contents.  If linking a library
11556     # or program results in "error TOC overflow" add -mminimal-toc to
11557     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11558     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11559
11560     archive_cmds_CXX=''
11561     hardcode_direct_CXX=yes
11562     hardcode_libdir_separator_CXX=':'
11563     link_all_deplibs_CXX=yes
11564
11565     if test "$GXX" = yes; then
11566       case $host_os in aix4.[012]|aix4.[012].*)
11567       # We only want to do this on AIX 4.2 and lower, the check
11568       # below for broken collect2 doesn't work under 4.3+
11569         collect2name=`${CC} -print-prog-name=collect2`
11570         if test -f "$collect2name" && \
11571            strings "$collect2name" | grep resolve_lib_name >/dev/null
11572         then
11573           # We have reworked collect2
11574           :
11575         else
11576           # We have old collect2
11577           hardcode_direct_CXX=unsupported
11578           # It fails to find uninstalled libraries when the uninstalled
11579           # path is not listed in the libpath.  Setting hardcode_minus_L
11580           # to unsupported forces relinking
11581           hardcode_minus_L_CXX=yes
11582           hardcode_libdir_flag_spec_CXX='-L$libdir'
11583           hardcode_libdir_separator_CXX=
11584         fi
11585         ;;
11586       esac
11587       shared_flag='-shared'
11588       if test "$aix_use_runtimelinking" = yes; then
11589         shared_flag="$shared_flag "'${wl}-G'
11590       fi
11591     else
11592       # not using gcc
11593       if test "$host_cpu" = ia64; then
11594         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11595         # chokes on -Wl,-G. The following line is correct:
11596         shared_flag='-G'
11597       else
11598         if test "$aix_use_runtimelinking" = yes; then
11599           shared_flag='${wl}-G'
11600         else
11601           shared_flag='${wl}-bM:SRE'
11602         fi
11603       fi
11604     fi
11605
11606     # It seems that -bexpall does not export symbols beginning with
11607     # underscore (_), so it is better to generate a list of symbols to export.
11608     always_export_symbols_CXX=yes
11609     if test "$aix_use_runtimelinking" = yes; then
11610       # Warning - without using the other runtime loading flags (-brtl),
11611       # -berok will link without error, but may produce a broken library.
11612       allow_undefined_flag_CXX='-berok'
11613       # Determine the default libpath from the value encoded in an empty executable.
11614       cat >conftest.$ac_ext <<_ACEOF
11615 /* confdefs.h.  */
11616 _ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h.  */
11620
11621 int
11622 main ()
11623 {
11624
11625   ;
11626   return 0;
11627 }
11628 _ACEOF
11629 rm -f conftest.$ac_objext conftest$ac_exeext
11630 if { (ac_try="$ac_link"
11631 case "(($ac_try" in
11632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11633   *) ac_try_echo=$ac_try;;
11634 esac
11635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11636   (eval "$ac_link") 2>conftest.er1
11637   ac_status=$?
11638   grep -v '^ *+' conftest.er1 >conftest.err
11639   rm -f conftest.er1
11640   cat conftest.err >&5
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); } && {
11643          test -z "$ac_cxx_werror_flag" ||
11644          test ! -s conftest.err
11645        } && test -s conftest$ac_exeext &&
11646        $as_test_x conftest$ac_exeext; then
11647
11648 lt_aix_libpath_sed='
11649     /Import File Strings/,/^$/ {
11650         /^0/ {
11651             s/^0  *\(.*\)$/\1/
11652             p
11653         }
11654     }'
11655 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11656 # Check for a 64-bit object if we didn't find anything.
11657 if test -z "$aix_libpath"; then
11658   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11659 fi
11660 else
11661   echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11663
11664
11665 fi
11666
11667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11668       conftest$ac_exeext conftest.$ac_ext
11669 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11670
11671       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11672
11673       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"
11674      else
11675       if test "$host_cpu" = ia64; then
11676         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11677         allow_undefined_flag_CXX="-z nodefs"
11678         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"
11679       else
11680         # Determine the default libpath from the value encoded in an empty executable.
11681         cat >conftest.$ac_ext <<_ACEOF
11682 /* confdefs.h.  */
11683 _ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h.  */
11687
11688 int
11689 main ()
11690 {
11691
11692   ;
11693   return 0;
11694 }
11695 _ACEOF
11696 rm -f conftest.$ac_objext conftest$ac_exeext
11697 if { (ac_try="$ac_link"
11698 case "(($ac_try" in
11699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700   *) ac_try_echo=$ac_try;;
11701 esac
11702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703   (eval "$ac_link") 2>conftest.er1
11704   ac_status=$?
11705   grep -v '^ *+' conftest.er1 >conftest.err
11706   rm -f conftest.er1
11707   cat conftest.err >&5
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); } && {
11710          test -z "$ac_cxx_werror_flag" ||
11711          test ! -s conftest.err
11712        } && test -s conftest$ac_exeext &&
11713        $as_test_x conftest$ac_exeext; then
11714
11715 lt_aix_libpath_sed='
11716     /Import File Strings/,/^$/ {
11717         /^0/ {
11718             s/^0  *\(.*\)$/\1/
11719             p
11720         }
11721     }'
11722 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11723 # Check for a 64-bit object if we didn't find anything.
11724 if test -z "$aix_libpath"; then
11725   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11726 fi
11727 else
11728   echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11730
11731
11732 fi
11733
11734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11735       conftest$ac_exeext conftest.$ac_ext
11736 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11737
11738         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11739         # Warning - without using the other run time loading flags,
11740         # -berok will link without error, but may produce a broken library.
11741         no_undefined_flag_CXX=' ${wl}-bernotok'
11742         allow_undefined_flag_CXX=' ${wl}-berok'
11743         # Exported symbols can be pulled into shared objects from archives
11744         whole_archive_flag_spec_CXX='$convenience'
11745         archive_cmds_need_lc_CXX=yes
11746         # This is similar to how AIX traditionally builds its shared libraries.
11747         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'
11748       fi
11749     fi
11750     ;;
11751
11752   beos*)
11753     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11754       allow_undefined_flag_CXX=unsupported
11755       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11756       # support --undefined.  This deserves some investigation.  FIXME
11757       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11758     else
11759       ld_shlibs_CXX=no
11760     fi
11761     ;;
11762
11763   chorus*)
11764     case $cc_basename in
11765       *)
11766         # FIXME: insert proper C++ library support
11767         ld_shlibs_CXX=no
11768         ;;
11769     esac
11770     ;;
11771
11772   cygwin* | mingw* | pw32*)
11773     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11774     # as there is no search path for DLLs.
11775     hardcode_libdir_flag_spec_CXX='-L$libdir'
11776     allow_undefined_flag_CXX=unsupported
11777     always_export_symbols_CXX=no
11778     enable_shared_with_static_runtimes_CXX=yes
11779
11780     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11781       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'
11782       # If the export-symbols file already is a .def file (1st line
11783       # is EXPORTS), use it as is; otherwise, prepend...
11784       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11785         cp $export_symbols $output_objdir/$soname.def;
11786       else
11787         echo EXPORTS > $output_objdir/$soname.def;
11788         cat $export_symbols >> $output_objdir/$soname.def;
11789       fi~
11790       $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'
11791     else
11792       ld_shlibs_CXX=no
11793     fi
11794   ;;
11795       darwin* | rhapsody*)
11796       archive_cmds_need_lc_CXX=no
11797       hardcode_direct_CXX=no
11798       hardcode_automatic_CXX=yes
11799       hardcode_shlibpath_var_CXX=unsupported
11800       whole_archive_flag_spec_CXX=''
11801       link_all_deplibs_CXX=yes
11802       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11803       if test "$GXX" = yes ; then
11804       output_verbose_link_cmd='echo'
11805       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11806       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11807       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11808       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11809       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11810         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${_lt_dsymutil}"
11811         archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11812       fi
11813       else
11814       case $cc_basename in
11815         xlc*)
11816          output_verbose_link_cmd='echo'
11817           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11818           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11819           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11820           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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11821           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}'
11822           ;;
11823        *)
11824          ld_shlibs_CXX=no
11825           ;;
11826       esac
11827       fi
11828         ;;
11829
11830   dgux*)
11831     case $cc_basename in
11832       ec++*)
11833         # FIXME: insert proper C++ library support
11834         ld_shlibs_CXX=no
11835         ;;
11836       ghcx*)
11837         # Green Hills C++ Compiler
11838         # FIXME: insert proper C++ library support
11839         ld_shlibs_CXX=no
11840         ;;
11841       *)
11842         # FIXME: insert proper C++ library support
11843         ld_shlibs_CXX=no
11844         ;;
11845     esac
11846     ;;
11847   freebsd[12]*)
11848     # C++ shared libraries reported to be fairly broken before switch to ELF
11849     ld_shlibs_CXX=no
11850     ;;
11851   freebsd-elf*)
11852     archive_cmds_need_lc_CXX=no
11853     ;;
11854   freebsd* | dragonfly*)
11855     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11856     # conventions
11857     ld_shlibs_CXX=yes
11858     ;;
11859   gnu*)
11860     ;;
11861   hpux9*)
11862     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11863     hardcode_libdir_separator_CXX=:
11864     export_dynamic_flag_spec_CXX='${wl}-E'
11865     hardcode_direct_CXX=yes
11866     hardcode_minus_L_CXX=yes # Not in the search PATH,
11867                                 # but as the default
11868                                 # location of the library.
11869
11870     case $cc_basename in
11871     CC*)
11872       # FIXME: insert proper C++ library support
11873       ld_shlibs_CXX=no
11874       ;;
11875     aCC*)
11876       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'
11877       # Commands to make compiler produce verbose output that lists
11878       # what "hidden" libraries, object files and flags are used when
11879       # linking a shared library.
11880       #
11881       # There doesn't appear to be a way to prevent this compiler from
11882       # explicitly linking system object files so we need to strip them
11883       # from the output so that they don't get included in the library
11884       # dependencies.
11885       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'
11886       ;;
11887     *)
11888       if test "$GXX" = yes; then
11889         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'
11890       else
11891         # FIXME: insert proper C++ library support
11892         ld_shlibs_CXX=no
11893       fi
11894       ;;
11895     esac
11896     ;;
11897   hpux10*|hpux11*)
11898     if test $with_gnu_ld = no; then
11899       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11900       hardcode_libdir_separator_CXX=:
11901
11902       case $host_cpu in
11903       hppa*64*|ia64*) ;;
11904       *)
11905         export_dynamic_flag_spec_CXX='${wl}-E'
11906         ;;
11907       esac
11908     fi
11909     case $host_cpu in
11910     hppa*64*|ia64*)
11911       hardcode_direct_CXX=no
11912       hardcode_shlibpath_var_CXX=no
11913       ;;
11914     *)
11915       hardcode_direct_CXX=yes
11916       hardcode_minus_L_CXX=yes # Not in the search PATH,
11917                                               # but as the default
11918                                               # location of the library.
11919       ;;
11920     esac
11921
11922     case $cc_basename in
11923       CC*)
11924         # FIXME: insert proper C++ library support
11925         ld_shlibs_CXX=no
11926         ;;
11927       aCC*)
11928         case $host_cpu in
11929         hppa*64*)
11930           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11931           ;;
11932         ia64*)
11933           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11934           ;;
11935         *)
11936           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11937           ;;
11938         esac
11939         # Commands to make compiler produce verbose output that lists
11940         # what "hidden" libraries, object files and flags are used when
11941         # linking a shared library.
11942         #
11943         # There doesn't appear to be a way to prevent this compiler from
11944         # explicitly linking system object files so we need to strip them
11945         # from the output so that they don't get included in the library
11946         # dependencies.
11947         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'
11948         ;;
11949       *)
11950         if test "$GXX" = yes; then
11951           if test $with_gnu_ld = no; then
11952             case $host_cpu in
11953             hppa*64*)
11954               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11955               ;;
11956             ia64*)
11957               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11958               ;;
11959             *)
11960               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'
11961               ;;
11962             esac
11963           fi
11964         else
11965           # FIXME: insert proper C++ library support
11966           ld_shlibs_CXX=no
11967         fi
11968         ;;
11969     esac
11970     ;;
11971   interix[3-9]*)
11972     hardcode_direct_CXX=no
11973     hardcode_shlibpath_var_CXX=no
11974     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11975     export_dynamic_flag_spec_CXX='${wl}-E'
11976     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11977     # Instead, shared libraries are loaded at an image base (0x10000000 by
11978     # default) and relocated if they conflict, which is a slow very memory
11979     # consuming and fragmenting process.  To avoid this, we pick a random,
11980     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11981     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11982     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'
11983     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'
11984     ;;
11985   irix5* | irix6*)
11986     case $cc_basename in
11987       CC*)
11988         # SGI C++
11989         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'
11990
11991         # Archives containing C++ object files must be created using
11992         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11993         # necessary to make sure instantiated templates are included
11994         # in the archive.
11995         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11996         ;;
11997       *)
11998         if test "$GXX" = yes; then
11999           if test "$with_gnu_ld" = no; then
12000             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'
12001           else
12002             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'
12003           fi
12004         fi
12005         link_all_deplibs_CXX=yes
12006         ;;
12007     esac
12008     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12009     hardcode_libdir_separator_CXX=:
12010     ;;
12011   linux* | k*bsd*-gnu)
12012     case $cc_basename in
12013       KCC*)
12014         # Kuck and Associates, Inc. (KAI) C++ Compiler
12015
12016         # KCC will only create a shared library if the output file
12017         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12018         # to its proper name (with version) after linking.
12019         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'
12020         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'
12021         # Commands to make compiler produce verbose output that lists
12022         # what "hidden" libraries, object files and flags are used when
12023         # linking a shared library.
12024         #
12025         # There doesn't appear to be a way to prevent this compiler from
12026         # explicitly linking system object files so we need to strip them
12027         # from the output so that they don't get included in the library
12028         # dependencies.
12029         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'
12030
12031         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12032         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12033
12034         # Archives containing C++ object files must be created using
12035         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12036         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12037         ;;
12038       icpc*)
12039         # Intel C++
12040         with_gnu_ld=yes
12041         # version 8.0 and above of icpc choke on multiply defined symbols
12042         # if we add $predep_objects and $postdep_objects, however 7.1 and
12043         # earlier do not add the objects themselves.
12044         case `$CC -V 2>&1` in
12045         *"Version 7."*)
12046           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12047           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'
12048           ;;
12049         *)  # Version 8.0 or newer
12050           tmp_idyn=
12051           case $host_cpu in
12052             ia64*) tmp_idyn=' -i_dynamic';;
12053           esac
12054           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12055           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'
12056           ;;
12057         esac
12058         archive_cmds_need_lc_CXX=no
12059         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12060         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12061         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12062         ;;
12063       pgCC* | pgcpp*)
12064         # Portland Group C++ compiler
12065         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12066         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'
12067
12068         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12069         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12070         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'
12071         ;;
12072       cxx*)
12073         # Compaq C++
12074         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12075         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'
12076
12077         runpath_var=LD_RUN_PATH
12078         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12079         hardcode_libdir_separator_CXX=:
12080
12081         # Commands to make compiler produce verbose output that lists
12082         # what "hidden" libraries, object files and flags are used when
12083         # linking a shared library.
12084         #
12085         # There doesn't appear to be a way to prevent this compiler from
12086         # explicitly linking system object files so we need to strip them
12087         # from the output so that they don't get included in the library
12088         # dependencies.
12089         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'
12090         ;;
12091       *)
12092         case `$CC -V 2>&1 | sed 5q` in
12093         *Sun\ C*)
12094           # Sun C++ 5.9
12095           no_undefined_flag_CXX=' -zdefs'
12096           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12097           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12098           hardcode_libdir_flag_spec_CXX='-R$libdir'
12099           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12100
12101           # Not sure whether something based on
12102           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12103           # would be better.
12104           output_verbose_link_cmd='echo'
12105
12106           # Archives containing C++ object files must be created using
12107           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12108           # necessary to make sure instantiated templates are included
12109           # in the archive.
12110           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12111           ;;
12112         esac
12113         ;;
12114     esac
12115     ;;
12116   lynxos*)
12117     # FIXME: insert proper C++ library support
12118     ld_shlibs_CXX=no
12119     ;;
12120   m88k*)
12121     # FIXME: insert proper C++ library support
12122     ld_shlibs_CXX=no
12123     ;;
12124   mvs*)
12125     case $cc_basename in
12126       cxx*)
12127         # FIXME: insert proper C++ library support
12128         ld_shlibs_CXX=no
12129         ;;
12130       *)
12131         # FIXME: insert proper C++ library support
12132         ld_shlibs_CXX=no
12133         ;;
12134     esac
12135     ;;
12136   netbsd* | netbsdelf*-gnu)
12137     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12138       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12139       wlarc=
12140       hardcode_libdir_flag_spec_CXX='-R$libdir'
12141       hardcode_direct_CXX=yes
12142       hardcode_shlibpath_var_CXX=no
12143     fi
12144     # Workaround some broken pre-1.5 toolchains
12145     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12146     ;;
12147   openbsd2*)
12148     # C++ shared libraries are fairly broken
12149     ld_shlibs_CXX=no
12150     ;;
12151   openbsd*)
12152     if test -f /usr/libexec/ld.so; then
12153       hardcode_direct_CXX=yes
12154       hardcode_shlibpath_var_CXX=no
12155       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12156       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12157       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12158         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12159         export_dynamic_flag_spec_CXX='${wl}-E'
12160         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12161       fi
12162       output_verbose_link_cmd='echo'
12163     else
12164       ld_shlibs_CXX=no
12165     fi
12166     ;;
12167   osf3*)
12168     case $cc_basename in
12169       KCC*)
12170         # Kuck and Associates, Inc. (KAI) C++ Compiler
12171
12172         # KCC will only create a shared library if the output file
12173         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12174         # to its proper name (with version) after linking.
12175         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'
12176
12177         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12178         hardcode_libdir_separator_CXX=:
12179
12180         # Archives containing C++ object files must be created using
12181         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12182         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12183
12184         ;;
12185       RCC*)
12186         # Rational C++ 2.4.1
12187         # FIXME: insert proper C++ library support
12188         ld_shlibs_CXX=no
12189         ;;
12190       cxx*)
12191         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12192         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'
12193
12194         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12195         hardcode_libdir_separator_CXX=:
12196
12197         # Commands to make compiler produce verbose output that lists
12198         # what "hidden" libraries, object files and flags are used when
12199         # linking a shared library.
12200         #
12201         # There doesn't appear to be a way to prevent this compiler from
12202         # explicitly linking system object files so we need to strip them
12203         # from the output so that they don't get included in the library
12204         # dependencies.
12205         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'
12206         ;;
12207       *)
12208         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12209           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12210           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'
12211
12212           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12213           hardcode_libdir_separator_CXX=:
12214
12215           # Commands to make compiler produce verbose output that lists
12216           # what "hidden" libraries, object files and flags are used when
12217           # linking a shared library.
12218           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12219
12220         else
12221           # FIXME: insert proper C++ library support
12222           ld_shlibs_CXX=no
12223         fi
12224         ;;
12225     esac
12226     ;;
12227   osf4* | osf5*)
12228     case $cc_basename in
12229       KCC*)
12230         # Kuck and Associates, Inc. (KAI) C++ Compiler
12231
12232         # KCC will only create a shared library if the output file
12233         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12234         # to its proper name (with version) after linking.
12235         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'
12236
12237         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12238         hardcode_libdir_separator_CXX=:
12239
12240         # Archives containing C++ object files must be created using
12241         # the KAI C++ compiler.
12242         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12243         ;;
12244       RCC*)
12245         # Rational C++ 2.4.1
12246         # FIXME: insert proper C++ library support
12247         ld_shlibs_CXX=no
12248         ;;
12249       cxx*)
12250         allow_undefined_flag_CXX=' -expect_unresolved \*'
12251         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'
12252         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12253           echo "-hidden">> $lib.exp~
12254           $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~
12255           $rm $lib.exp'
12256
12257         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12258         hardcode_libdir_separator_CXX=:
12259
12260         # Commands to make compiler produce verbose output that lists
12261         # what "hidden" libraries, object files and flags are used when
12262         # linking a shared library.
12263         #
12264         # There doesn't appear to be a way to prevent this compiler from
12265         # explicitly linking system object files so we need to strip them
12266         # from the output so that they don't get included in the library
12267         # dependencies.
12268         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'
12269         ;;
12270       *)
12271         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12272           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12273          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'
12274
12275           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12276           hardcode_libdir_separator_CXX=:
12277
12278           # Commands to make compiler produce verbose output that lists
12279           # what "hidden" libraries, object files and flags are used when
12280           # linking a shared library.
12281           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12282
12283         else
12284           # FIXME: insert proper C++ library support
12285           ld_shlibs_CXX=no
12286         fi
12287         ;;
12288     esac
12289     ;;
12290   psos*)
12291     # FIXME: insert proper C++ library support
12292     ld_shlibs_CXX=no
12293     ;;
12294   sunos4*)
12295     case $cc_basename in
12296       CC*)
12297         # Sun C++ 4.x
12298         # FIXME: insert proper C++ library support
12299         ld_shlibs_CXX=no
12300         ;;
12301       lcc*)
12302         # Lucid
12303         # FIXME: insert proper C++ library support
12304         ld_shlibs_CXX=no
12305         ;;
12306       *)
12307         # FIXME: insert proper C++ library support
12308         ld_shlibs_CXX=no
12309         ;;
12310     esac
12311     ;;
12312   solaris*)
12313     case $cc_basename in
12314       CC*)
12315         # Sun C++ 4.2, 5.x and Centerline C++
12316         archive_cmds_need_lc_CXX=yes
12317         no_undefined_flag_CXX=' -zdefs'
12318         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12319         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12320         $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'
12321
12322         hardcode_libdir_flag_spec_CXX='-R$libdir'
12323         hardcode_shlibpath_var_CXX=no
12324         case $host_os in
12325           solaris2.[0-5] | solaris2.[0-5].*) ;;
12326           *)
12327             # The compiler driver will combine and reorder linker options,
12328             # but understands `-z linker_flag'.
12329             # Supported since Solaris 2.6 (maybe 2.5.1?)
12330             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12331             ;;
12332         esac
12333         link_all_deplibs_CXX=yes
12334
12335         output_verbose_link_cmd='echo'
12336
12337         # Archives containing C++ object files must be created using
12338         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12339         # necessary to make sure instantiated templates are included
12340         # in the archive.
12341         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12342         ;;
12343       gcx*)
12344         # Green Hills C++ Compiler
12345         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12346
12347         # The C++ compiler must be used to create the archive.
12348         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12349         ;;
12350       *)
12351         # GNU C++ compiler with Solaris linker
12352         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12353           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12354           if $CC --version | grep -v '^2\.7' > /dev/null; then
12355             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12356             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12357                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12358
12359             # Commands to make compiler produce verbose output that lists
12360             # what "hidden" libraries, object files and flags are used when
12361             # linking a shared library.
12362             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12363           else
12364             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12365             # platform.
12366             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12367             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12368                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12369
12370             # Commands to make compiler produce verbose output that lists
12371             # what "hidden" libraries, object files and flags are used when
12372             # linking a shared library.
12373             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12374           fi
12375
12376           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12377           case $host_os in
12378           solaris2.[0-5] | solaris2.[0-5].*) ;;
12379           *)
12380             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12381             ;;
12382           esac
12383         fi
12384         ;;
12385     esac
12386     ;;
12387   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12388     no_undefined_flag_CXX='${wl}-z,text'
12389     archive_cmds_need_lc_CXX=no
12390     hardcode_shlibpath_var_CXX=no
12391     runpath_var='LD_RUN_PATH'
12392
12393     case $cc_basename in
12394       CC*)
12395         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12396         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12397         ;;
12398       *)
12399         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12400         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12401         ;;
12402     esac
12403     ;;
12404   sysv5* | sco3.2v5* | sco5v6*)
12405     # Note: We can NOT use -z defs as we might desire, because we do not
12406     # link with -lc, and that would cause any symbols used from libc to
12407     # always be unresolved, which means just about no library would
12408     # ever link correctly.  If we're not using GNU ld we use -z text
12409     # though, which does catch some bad symbols but isn't as heavy-handed
12410     # as -z defs.
12411     # For security reasons, it is highly recommended that you always
12412     # use absolute paths for naming shared libraries, and exclude the
12413     # DT_RUNPATH tag from executables and libraries.  But doing so
12414     # requires that you compile everything twice, which is a pain.
12415     # So that behaviour is only enabled if SCOABSPATH is set to a
12416     # non-empty value in the environment.  Most likely only useful for
12417     # creating official distributions of packages.
12418     # This is a hack until libtool officially supports absolute path
12419     # names for shared libraries.
12420     no_undefined_flag_CXX='${wl}-z,text'
12421     allow_undefined_flag_CXX='${wl}-z,nodefs'
12422     archive_cmds_need_lc_CXX=no
12423     hardcode_shlibpath_var_CXX=no
12424     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12425     hardcode_libdir_separator_CXX=':'
12426     link_all_deplibs_CXX=yes
12427     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12428     runpath_var='LD_RUN_PATH'
12429
12430     case $cc_basename in
12431       CC*)
12432         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12433         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12434         ;;
12435       *)
12436         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12437         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12438         ;;
12439     esac
12440     ;;
12441   tandem*)
12442     case $cc_basename in
12443       NCC*)
12444         # NonStop-UX NCC 3.20
12445         # FIXME: insert proper C++ library support
12446         ld_shlibs_CXX=no
12447         ;;
12448       *)
12449         # FIXME: insert proper C++ library support
12450         ld_shlibs_CXX=no
12451         ;;
12452     esac
12453     ;;
12454   vxworks*)
12455     # FIXME: insert proper C++ library support
12456     ld_shlibs_CXX=no
12457     ;;
12458   *)
12459     # FIXME: insert proper C++ library support
12460     ld_shlibs_CXX=no
12461     ;;
12462 esac
12463 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12464 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12465 test "$ld_shlibs_CXX" = no && can_build_shared=no
12466
12467 GCC_CXX="$GXX"
12468 LD_CXX="$LD"
12469
12470 cat > conftest.$ac_ext <<EOF
12471 class Foo
12472 {
12473 public:
12474   Foo (void) { a = 0; }
12475 private:
12476   int a;
12477 };
12478 EOF
12479
12480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12481   (eval $ac_compile) 2>&5
12482   ac_status=$?
12483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484   (exit $ac_status); }; then
12485   # Parse the compiler output and extract the necessary
12486   # objects, libraries and library flags.
12487
12488   # Sentinel used to keep track of whether or not we are before
12489   # the conftest object file.
12490   pre_test_object_deps_done=no
12491
12492   # The `*' in the case matches for architectures that use `case' in
12493   # $output_verbose_cmd can trigger glob expansion during the loop
12494   # eval without this substitution.
12495   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12496
12497   for p in `eval $output_verbose_link_cmd`; do
12498     case $p in
12499
12500     -L* | -R* | -l*)
12501        # Some compilers place space between "-{L,R}" and the path.
12502        # Remove the space.
12503        if test $p = "-L" \
12504           || test $p = "-R"; then
12505          prev=$p
12506          continue
12507        else
12508          prev=
12509        fi
12510
12511        if test "$pre_test_object_deps_done" = no; then
12512          case $p in
12513          -L* | -R*)
12514            # Internal compiler library paths should come after those
12515            # provided the user.  The postdeps already come after the
12516            # user supplied libs so there is no need to process them.
12517            if test -z "$compiler_lib_search_path_CXX"; then
12518              compiler_lib_search_path_CXX="${prev}${p}"
12519            else
12520              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12521            fi
12522            ;;
12523          # The "-l" case would never come before the object being
12524          # linked, so don't bother handling this case.
12525          esac
12526        else
12527          if test -z "$postdeps_CXX"; then
12528            postdeps_CXX="${prev}${p}"
12529          else
12530            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12531          fi
12532        fi
12533        ;;
12534
12535     *.$objext)
12536        # This assumes that the test object file only shows up
12537        # once in the compiler output.
12538        if test "$p" = "conftest.$objext"; then
12539          pre_test_object_deps_done=yes
12540          continue
12541        fi
12542
12543        if test "$pre_test_object_deps_done" = no; then
12544          if test -z "$predep_objects_CXX"; then
12545            predep_objects_CXX="$p"
12546          else
12547            predep_objects_CXX="$predep_objects_CXX $p"
12548          fi
12549        else
12550          if test -z "$postdep_objects_CXX"; then
12551            postdep_objects_CXX="$p"
12552          else
12553            postdep_objects_CXX="$postdep_objects_CXX $p"
12554          fi
12555        fi
12556        ;;
12557
12558     *) ;; # Ignore the rest.
12559
12560     esac
12561   done
12562
12563   # Clean up.
12564   rm -f a.out a.exe
12565 else
12566   echo "libtool.m4: error: problem compiling CXX test program"
12567 fi
12568
12569 $rm -f confest.$objext
12570
12571 compiler_lib_search_dirs_CXX=
12572 if test -n "$compiler_lib_search_path_CXX"; then
12573   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12574 fi
12575
12576 # PORTME: override above test on systems where it is broken
12577 case $host_os in
12578 interix[3-9]*)
12579   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12580   # hack all around it, let's just trust "g++" to DTRT.
12581   predep_objects_CXX=
12582   postdep_objects_CXX=
12583   postdeps_CXX=
12584   ;;
12585
12586 linux*)
12587   case `$CC -V 2>&1 | sed 5q` in
12588   *Sun\ C*)
12589     # Sun C++ 5.9
12590     #
12591     # The more standards-conforming stlport4 library is
12592     # incompatible with the Cstd library. Avoid specifying
12593     # it if it's in CXXFLAGS. Ignore libCrun as
12594     # -library=stlport4 depends on it.
12595     case " $CXX $CXXFLAGS " in
12596     *" -library=stlport4 "*)
12597       solaris_use_stlport4=yes
12598       ;;
12599     esac
12600     if test "$solaris_use_stlport4" != yes; then
12601       postdeps_CXX='-library=Cstd -library=Crun'
12602     fi
12603     ;;
12604   esac
12605   ;;
12606
12607 solaris*)
12608   case $cc_basename in
12609   CC*)
12610     # The more standards-conforming stlport4 library is
12611     # incompatible with the Cstd library. Avoid specifying
12612     # it if it's in CXXFLAGS. Ignore libCrun as
12613     # -library=stlport4 depends on it.
12614     case " $CXX $CXXFLAGS " in
12615     *" -library=stlport4 "*)
12616       solaris_use_stlport4=yes
12617       ;;
12618     esac
12619
12620     # Adding this requires a known-good setup of shared libraries for
12621     # Sun compiler versions before 5.6, else PIC objects from an old
12622     # archive will be linked into the output, leading to subtle bugs.
12623     if test "$solaris_use_stlport4" != yes; then
12624       postdeps_CXX='-library=Cstd -library=Crun'
12625     fi
12626     ;;
12627   esac
12628   ;;
12629 esac
12630
12631 case " $postdeps_CXX " in
12632 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12633 esac
12634
12635 lt_prog_compiler_wl_CXX=
12636 lt_prog_compiler_pic_CXX=
12637 lt_prog_compiler_static_CXX=
12638
12639 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12640 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12641
12642   # C++ specific cases for pic, static, wl, etc.
12643   if test "$GXX" = yes; then
12644     lt_prog_compiler_wl_CXX='-Wl,'
12645     lt_prog_compiler_static_CXX='-static'
12646
12647     case $host_os in
12648     aix*)
12649       # All AIX code is PIC.
12650       if test "$host_cpu" = ia64; then
12651         # AIX 5 now supports IA64 processor
12652         lt_prog_compiler_static_CXX='-Bstatic'
12653       fi
12654       ;;
12655     amigaos*)
12656       # FIXME: we need at least 68020 code to build shared libraries, but
12657       # adding the `-m68020' flag to GCC prevents building anything better,
12658       # like `-m68040'.
12659       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12660       ;;
12661     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12662       # PIC is the default for these OSes.
12663       ;;
12664     mingw* | cygwin* | os2* | pw32*)
12665       # This hack is so that the source file can tell whether it is being
12666       # built for inclusion in a dll (and should export symbols for example).
12667       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12668       # (--disable-auto-import) libraries
12669       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12670       ;;
12671     darwin* | rhapsody*)
12672       # PIC is the default on this platform
12673       # Common symbols not allowed in MH_DYLIB files
12674       lt_prog_compiler_pic_CXX='-fno-common'
12675       ;;
12676     *djgpp*)
12677       # DJGPP does not support shared libraries at all
12678       lt_prog_compiler_pic_CXX=
12679       ;;
12680     interix[3-9]*)
12681       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12682       # Instead, we relocate shared libraries at runtime.
12683       ;;
12684     sysv4*MP*)
12685       if test -d /usr/nec; then
12686         lt_prog_compiler_pic_CXX=-Kconform_pic
12687       fi
12688       ;;
12689     hpux*)
12690       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12691       # not for PA HP-UX.
12692       case $host_cpu in
12693       hppa*64*|ia64*)
12694         ;;
12695       *)
12696         lt_prog_compiler_pic_CXX='-fPIC'
12697         ;;
12698       esac
12699       ;;
12700     *)
12701       lt_prog_compiler_pic_CXX='-fPIC'
12702       ;;
12703     esac
12704   else
12705     case $host_os in
12706       aix[4-9]*)
12707         # All AIX code is PIC.
12708         if test "$host_cpu" = ia64; then
12709           # AIX 5 now supports IA64 processor
12710           lt_prog_compiler_static_CXX='-Bstatic'
12711         else
12712           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12713         fi
12714         ;;
12715       chorus*)
12716         case $cc_basename in
12717         cxch68*)
12718           # Green Hills C++ Compiler
12719           # _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"
12720           ;;
12721         esac
12722         ;;
12723        darwin*)
12724          # PIC is the default on this platform
12725          # Common symbols not allowed in MH_DYLIB files
12726          case $cc_basename in
12727            xlc*)
12728            lt_prog_compiler_pic_CXX='-qnocommon'
12729            lt_prog_compiler_wl_CXX='-Wl,'
12730            ;;
12731          esac
12732        ;;
12733       dgux*)
12734         case $cc_basename in
12735           ec++*)
12736             lt_prog_compiler_pic_CXX='-KPIC'
12737             ;;
12738           ghcx*)
12739             # Green Hills C++ Compiler
12740             lt_prog_compiler_pic_CXX='-pic'
12741             ;;
12742           *)
12743             ;;
12744         esac
12745         ;;
12746       freebsd* | dragonfly*)
12747         # FreeBSD uses GNU C++
12748         ;;
12749       hpux9* | hpux10* | hpux11*)
12750         case $cc_basename in
12751           CC*)
12752             lt_prog_compiler_wl_CXX='-Wl,'
12753             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12754             if test "$host_cpu" != ia64; then
12755               lt_prog_compiler_pic_CXX='+Z'
12756             fi
12757             ;;
12758           aCC*)
12759             lt_prog_compiler_wl_CXX='-Wl,'
12760             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12761             case $host_cpu in
12762             hppa*64*|ia64*)
12763               # +Z the default
12764               ;;
12765             *)
12766               lt_prog_compiler_pic_CXX='+Z'
12767               ;;
12768             esac
12769             ;;
12770           *)
12771             ;;
12772         esac
12773         ;;
12774       interix*)
12775         # This is c89, which is MS Visual C++ (no shared libs)
12776         # Anyone wants to do a port?
12777         ;;
12778       irix5* | irix6* | nonstopux*)
12779         case $cc_basename in
12780           CC*)
12781             lt_prog_compiler_wl_CXX='-Wl,'
12782             lt_prog_compiler_static_CXX='-non_shared'
12783             # CC pic flag -KPIC is the default.
12784             ;;
12785           *)
12786             ;;
12787         esac
12788         ;;
12789       linux* | k*bsd*-gnu)
12790         case $cc_basename in
12791           KCC*)
12792             # KAI C++ Compiler
12793             lt_prog_compiler_wl_CXX='--backend -Wl,'
12794             lt_prog_compiler_pic_CXX='-fPIC'
12795             ;;
12796           icpc* | ecpc*)
12797             # Intel C++
12798             lt_prog_compiler_wl_CXX='-Wl,'
12799             lt_prog_compiler_pic_CXX='-KPIC'
12800             lt_prog_compiler_static_CXX='-static'
12801             ;;
12802           pgCC* | pgcpp*)
12803             # Portland Group C++ compiler.
12804             lt_prog_compiler_wl_CXX='-Wl,'
12805             lt_prog_compiler_pic_CXX='-fpic'
12806             lt_prog_compiler_static_CXX='-Bstatic'
12807             ;;
12808           cxx*)
12809             # Compaq C++
12810             # Make sure the PIC flag is empty.  It appears that all Alpha
12811             # Linux and Compaq Tru64 Unix objects are PIC.
12812             lt_prog_compiler_pic_CXX=
12813             lt_prog_compiler_static_CXX='-non_shared'
12814             ;;
12815           *)
12816             case `$CC -V 2>&1 | sed 5q` in
12817             *Sun\ C*)
12818               # Sun C++ 5.9
12819               lt_prog_compiler_pic_CXX='-KPIC'
12820               lt_prog_compiler_static_CXX='-Bstatic'
12821               lt_prog_compiler_wl_CXX='-Qoption ld '
12822               ;;
12823             esac
12824             ;;
12825         esac
12826         ;;
12827       lynxos*)
12828         ;;
12829       m88k*)
12830         ;;
12831       mvs*)
12832         case $cc_basename in
12833           cxx*)
12834             lt_prog_compiler_pic_CXX='-W c,exportall'
12835             ;;
12836           *)
12837             ;;
12838         esac
12839         ;;
12840       netbsd* | netbsdelf*-gnu)
12841         ;;
12842       osf3* | osf4* | osf5*)
12843         case $cc_basename in
12844           KCC*)
12845             lt_prog_compiler_wl_CXX='--backend -Wl,'
12846             ;;
12847           RCC*)
12848             # Rational C++ 2.4.1
12849             lt_prog_compiler_pic_CXX='-pic'
12850             ;;
12851           cxx*)
12852             # Digital/Compaq C++
12853             lt_prog_compiler_wl_CXX='-Wl,'
12854             # Make sure the PIC flag is empty.  It appears that all Alpha
12855             # Linux and Compaq Tru64 Unix objects are PIC.
12856             lt_prog_compiler_pic_CXX=
12857             lt_prog_compiler_static_CXX='-non_shared'
12858             ;;
12859           *)
12860             ;;
12861         esac
12862         ;;
12863       psos*)
12864         ;;
12865       solaris*)
12866         case $cc_basename in
12867           CC*)
12868             # Sun C++ 4.2, 5.x and Centerline C++
12869             lt_prog_compiler_pic_CXX='-KPIC'
12870             lt_prog_compiler_static_CXX='-Bstatic'
12871             lt_prog_compiler_wl_CXX='-Qoption ld '
12872             ;;
12873           gcx*)
12874             # Green Hills C++ Compiler
12875             lt_prog_compiler_pic_CXX='-PIC'
12876             ;;
12877           *)
12878             ;;
12879         esac
12880         ;;
12881       sunos4*)
12882         case $cc_basename in
12883           CC*)
12884             # Sun C++ 4.x
12885             lt_prog_compiler_pic_CXX='-pic'
12886             lt_prog_compiler_static_CXX='-Bstatic'
12887             ;;
12888           lcc*)
12889             # Lucid
12890             lt_prog_compiler_pic_CXX='-pic'
12891             ;;
12892           *)
12893             ;;
12894         esac
12895         ;;
12896       tandem*)
12897         case $cc_basename in
12898           NCC*)
12899             # NonStop-UX NCC 3.20
12900             lt_prog_compiler_pic_CXX='-KPIC'
12901             ;;
12902           *)
12903             ;;
12904         esac
12905         ;;
12906       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12907         case $cc_basename in
12908           CC*)
12909             lt_prog_compiler_wl_CXX='-Wl,'
12910             lt_prog_compiler_pic_CXX='-KPIC'
12911             lt_prog_compiler_static_CXX='-Bstatic'
12912             ;;
12913         esac
12914         ;;
12915       vxworks*)
12916         ;;
12917       *)
12918         lt_prog_compiler_can_build_shared_CXX=no
12919         ;;
12920     esac
12921   fi
12922
12923 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12924 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12925
12926 #
12927 # Check to make sure the PIC flag actually works.
12928 #
12929 if test -n "$lt_prog_compiler_pic_CXX"; then
12930
12931 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12932 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12933 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12934   echo $ECHO_N "(cached) $ECHO_C" >&6
12935 else
12936   lt_cv_prog_compiler_pic_works_CXX=no
12937   ac_outfile=conftest.$ac_objext
12938    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12939    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12940    # Insert the option either (1) after the last *FLAGS variable, or
12941    # (2) before a word containing "conftest.", or (3) at the end.
12942    # Note that $ac_compile itself does not contain backslashes and begins
12943    # with a dollar sign (not a hyphen), so the echo should work correctly.
12944    # The option is referenced via a variable to avoid confusing sed.
12945    lt_compile=`echo "$ac_compile" | $SED \
12946    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12947    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12948    -e 's:$: $lt_compiler_flag:'`
12949    (eval echo "\"\$as_me:12949: $lt_compile\"" >&5)
12950    (eval "$lt_compile" 2>conftest.err)
12951    ac_status=$?
12952    cat conftest.err >&5
12953    echo "$as_me:12953: \$? = $ac_status" >&5
12954    if (exit $ac_status) && test -s "$ac_outfile"; then
12955      # The compiler can only warn and ignore the option if not recognized
12956      # So say no if there are warnings other than the usual output.
12957      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12958      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12959      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12960        lt_cv_prog_compiler_pic_works_CXX=yes
12961      fi
12962    fi
12963    $rm conftest*
12964
12965 fi
12966 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12967 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12968
12969 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12970     case $lt_prog_compiler_pic_CXX in
12971      "" | " "*) ;;
12972      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12973      esac
12974 else
12975     lt_prog_compiler_pic_CXX=
12976      lt_prog_compiler_can_build_shared_CXX=no
12977 fi
12978
12979 fi
12980 case $host_os in
12981   # For platforms which do not support PIC, -DPIC is meaningless:
12982   *djgpp*)
12983     lt_prog_compiler_pic_CXX=
12984     ;;
12985   *)
12986     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12987     ;;
12988 esac
12989
12990 #
12991 # Check to make sure the static flag actually works.
12992 #
12993 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12994 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12995 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12996 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12997   echo $ECHO_N "(cached) $ECHO_C" >&6
12998 else
12999   lt_cv_prog_compiler_static_works_CXX=no
13000    save_LDFLAGS="$LDFLAGS"
13001    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13002    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13003    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13004      # The linker can only warn and ignore the option if not recognized
13005      # So say no if there are warnings
13006      if test -s conftest.err; then
13007        # Append any errors to the config.log.
13008        cat conftest.err 1>&5
13009        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13010        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13011        if diff conftest.exp conftest.er2 >/dev/null; then
13012          lt_cv_prog_compiler_static_works_CXX=yes
13013        fi
13014      else
13015        lt_cv_prog_compiler_static_works_CXX=yes
13016      fi
13017    fi
13018    $rm -r conftest*
13019    LDFLAGS="$save_LDFLAGS"
13020
13021 fi
13022 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13023 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13024
13025 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13026     :
13027 else
13028     lt_prog_compiler_static_CXX=
13029 fi
13030
13031
13032 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13033 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13034 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13035   echo $ECHO_N "(cached) $ECHO_C" >&6
13036 else
13037   lt_cv_prog_compiler_c_o_CXX=no
13038    $rm -r conftest 2>/dev/null
13039    mkdir conftest
13040    cd conftest
13041    mkdir out
13042    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13043
13044    lt_compiler_flag="-o out/conftest2.$ac_objext"
13045    # Insert the option either (1) after the last *FLAGS variable, or
13046    # (2) before a word containing "conftest.", or (3) at the end.
13047    # Note that $ac_compile itself does not contain backslashes and begins
13048    # with a dollar sign (not a hyphen), so the echo should work correctly.
13049    lt_compile=`echo "$ac_compile" | $SED \
13050    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13051    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13052    -e 's:$: $lt_compiler_flag:'`
13053    (eval echo "\"\$as_me:13053: $lt_compile\"" >&5)
13054    (eval "$lt_compile" 2>out/conftest.err)
13055    ac_status=$?
13056    cat out/conftest.err >&5
13057    echo "$as_me:13057: \$? = $ac_status" >&5
13058    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13059    then
13060      # The compiler can only warn and ignore the option if not recognized
13061      # So say no if there are warnings
13062      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13063      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13064      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13065        lt_cv_prog_compiler_c_o_CXX=yes
13066      fi
13067    fi
13068    chmod u+w . 2>&5
13069    $rm conftest*
13070    # SGI C++ compiler will create directory out/ii_files/ for
13071    # template instantiation
13072    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13073    $rm out/* && rmdir out
13074    cd ..
13075    rmdir conftest
13076    $rm conftest*
13077
13078 fi
13079 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13080 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13081
13082
13083 hard_links="nottested"
13084 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13085   # do not overwrite the value of need_locks provided by the user
13086   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13087 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13088   hard_links=yes
13089   $rm conftest*
13090   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13091   touch conftest.a
13092   ln conftest.a conftest.b 2>&5 || hard_links=no
13093   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13094   { echo "$as_me:$LINENO: result: $hard_links" >&5
13095 echo "${ECHO_T}$hard_links" >&6; }
13096   if test "$hard_links" = no; then
13097     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13098 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13099     need_locks=warn
13100   fi
13101 else
13102   need_locks=no
13103 fi
13104
13105 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13106 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13107
13108   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13109   case $host_os in
13110   aix[4-9]*)
13111     # If we're using GNU nm, then we don't want the "-C" option.
13112     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13113     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13114       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'
13115     else
13116       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'
13117     fi
13118     ;;
13119   pw32*)
13120     export_symbols_cmds_CXX="$ltdll_cmds"
13121   ;;
13122   cygwin* | mingw*)
13123     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'
13124   ;;
13125   linux* | k*bsd*-gnu)
13126     link_all_deplibs_CXX=no
13127   ;;
13128   *)
13129     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13130   ;;
13131   esac
13132   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13133
13134 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13135 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13136 test "$ld_shlibs_CXX" = no && can_build_shared=no
13137
13138 #
13139 # Do we need to explicitly link libc?
13140 #
13141 case "x$archive_cmds_need_lc_CXX" in
13142 x|xyes)
13143   # Assume -lc should be added
13144   archive_cmds_need_lc_CXX=yes
13145
13146   if test "$enable_shared" = yes && test "$GCC" = yes; then
13147     case $archive_cmds_CXX in
13148     *'~'*)
13149       # FIXME: we may have to deal with multi-command sequences.
13150       ;;
13151     '$CC '*)
13152       # Test whether the compiler implicitly links with -lc since on some
13153       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13154       # to ld, don't add -lc before -lgcc.
13155       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13156 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13157       $rm conftest*
13158       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13159
13160       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13161   (eval $ac_compile) 2>&5
13162   ac_status=$?
13163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164   (exit $ac_status); } 2>conftest.err; then
13165         soname=conftest
13166         lib=conftest
13167         libobjs=conftest.$ac_objext
13168         deplibs=
13169         wl=$lt_prog_compiler_wl_CXX
13170         pic_flag=$lt_prog_compiler_pic_CXX
13171         compiler_flags=-v
13172         linker_flags=-v
13173         verstring=
13174         output_objdir=.
13175         libname=conftest
13176         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13177         allow_undefined_flag_CXX=
13178         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13179   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13180   ac_status=$?
13181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182   (exit $ac_status); }
13183         then
13184           archive_cmds_need_lc_CXX=no
13185         else
13186           archive_cmds_need_lc_CXX=yes
13187         fi
13188         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13189       else
13190         cat conftest.err 1>&5
13191       fi
13192       $rm conftest*
13193       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13194 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13195       ;;
13196     esac
13197   fi
13198   ;;
13199 esac
13200
13201 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13202 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13203 library_names_spec=
13204 libname_spec='lib$name'
13205 soname_spec=
13206 shrext_cmds=".so"
13207 postinstall_cmds=
13208 postuninstall_cmds=
13209 finish_cmds=
13210 finish_eval=
13211 shlibpath_var=
13212 shlibpath_overrides_runpath=unknown
13213 version_type=none
13214 dynamic_linker="$host_os ld.so"
13215 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13216
13217 need_lib_prefix=unknown
13218 hardcode_into_libs=no
13219
13220 # when you set need_version to no, make sure it does not cause -set_version
13221 # flags to be left without arguments
13222 need_version=unknown
13223
13224 case $host_os in
13225 aix3*)
13226   version_type=linux
13227   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13228   shlibpath_var=LIBPATH
13229
13230   # AIX 3 has no versioning support, so we append a major version to the name.
13231   soname_spec='${libname}${release}${shared_ext}$major'
13232   ;;
13233
13234 aix[4-9]*)
13235   version_type=linux
13236   need_lib_prefix=no
13237   need_version=no
13238   hardcode_into_libs=yes
13239   if test "$host_cpu" = ia64; then
13240     # AIX 5 supports IA64
13241     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13242     shlibpath_var=LD_LIBRARY_PATH
13243   else
13244     # With GCC up to 2.95.x, collect2 would create an import file
13245     # for dependence libraries.  The import file would start with
13246     # the line `#! .'.  This would cause the generated library to
13247     # depend on `.', always an invalid library.  This was fixed in
13248     # development snapshots of GCC prior to 3.0.
13249     case $host_os in
13250       aix4 | aix4.[01] | aix4.[01].*)
13251       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13252            echo ' yes '
13253            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13254         :
13255       else
13256         can_build_shared=no
13257       fi
13258       ;;
13259     esac
13260     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13261     # soname into executable. Probably we can add versioning support to
13262     # collect2, so additional links can be useful in future.
13263     if test "$aix_use_runtimelinking" = yes; then
13264       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13265       # instead of lib<name>.a to let people know that these are not
13266       # typical AIX shared libraries.
13267       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13268     else
13269       # We preserve .a as extension for shared libraries through AIX4.2
13270       # and later when we are not doing run time linking.
13271       library_names_spec='${libname}${release}.a $libname.a'
13272       soname_spec='${libname}${release}${shared_ext}$major'
13273     fi
13274     shlibpath_var=LIBPATH
13275   fi
13276   ;;
13277
13278 amigaos*)
13279   library_names_spec='$libname.ixlibrary $libname.a'
13280   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13281   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'
13282   ;;
13283
13284 beos*)
13285   library_names_spec='${libname}${shared_ext}'
13286   dynamic_linker="$host_os ld.so"
13287   shlibpath_var=LIBRARY_PATH
13288   ;;
13289
13290 bsdi[45]*)
13291   version_type=linux
13292   need_version=no
13293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13294   soname_spec='${libname}${release}${shared_ext}$major'
13295   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13296   shlibpath_var=LD_LIBRARY_PATH
13297   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13298   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13299   # the default ld.so.conf also contains /usr/contrib/lib and
13300   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13301   # libtool to hard-code these into programs
13302   ;;
13303
13304 cygwin* | mingw* | pw32*)
13305   version_type=windows
13306   shrext_cmds=".dll"
13307   need_version=no
13308   need_lib_prefix=no
13309
13310   case $GCC,$host_os in
13311   yes,cygwin* | yes,mingw* | yes,pw32*)
13312     library_names_spec='$libname.dll.a'
13313     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13314     postinstall_cmds='base_file=`basename \${file}`~
13315       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13316       dldir=$destdir/`dirname \$dlpath`~
13317       test -d \$dldir || mkdir -p \$dldir~
13318       $install_prog $dir/$dlname \$dldir/$dlname~
13319       chmod a+x \$dldir/$dlname'
13320     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13321       dlpath=$dir/\$dldll~
13322        $rm \$dlpath'
13323     shlibpath_overrides_runpath=yes
13324
13325     case $host_os in
13326     cygwin*)
13327       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13328       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13329       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13330       ;;
13331     mingw*)
13332       # MinGW DLLs use traditional 'lib' prefix
13333       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13334       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13335       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13336         # It is most probably a Windows format PATH printed by
13337         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13338         # path with ; separators, and with drive letters. We can handle the
13339         # drive letters (cygwin fileutils understands them), so leave them,
13340         # especially as we might pass files found there to a mingw objdump,
13341         # which wouldn't understand a cygwinified path. Ahh.
13342         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13343       else
13344         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13345       fi
13346       ;;
13347     pw32*)
13348       # pw32 DLLs use 'pw' prefix rather than 'lib'
13349       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13350       ;;
13351     esac
13352     ;;
13353
13354   *)
13355     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13356     ;;
13357   esac
13358   dynamic_linker='Win32 ld.exe'
13359   # FIXME: first we should search . and the directory the executable is in
13360   shlibpath_var=PATH
13361   ;;
13362
13363 darwin* | rhapsody*)
13364   dynamic_linker="$host_os dyld"
13365   version_type=darwin
13366   need_lib_prefix=no
13367   need_version=no
13368   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13369   soname_spec='${libname}${release}${major}$shared_ext'
13370   shlibpath_overrides_runpath=yes
13371   shlibpath_var=DYLD_LIBRARY_PATH
13372   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13373
13374   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13375   ;;
13376
13377 dgux*)
13378   version_type=linux
13379   need_lib_prefix=no
13380   need_version=no
13381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13382   soname_spec='${libname}${release}${shared_ext}$major'
13383   shlibpath_var=LD_LIBRARY_PATH
13384   ;;
13385
13386 freebsd1*)
13387   dynamic_linker=no
13388   ;;
13389
13390 freebsd* | dragonfly*)
13391   # DragonFly does not have aout.  When/if they implement a new
13392   # versioning mechanism, adjust this.
13393   if test -x /usr/bin/objformat; then
13394     objformat=`/usr/bin/objformat`
13395   else
13396     case $host_os in
13397     freebsd[123]*) objformat=aout ;;
13398     *) objformat=elf ;;
13399     esac
13400   fi
13401   version_type=freebsd-$objformat
13402   case $version_type in
13403     freebsd-elf*)
13404       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13405       need_version=no
13406       need_lib_prefix=no
13407       ;;
13408     freebsd-*)
13409       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13410       need_version=yes
13411       ;;
13412   esac
13413   shlibpath_var=LD_LIBRARY_PATH
13414   case $host_os in
13415   freebsd2*)
13416     shlibpath_overrides_runpath=yes
13417     ;;
13418   freebsd3.[01]* | freebsdelf3.[01]*)
13419     shlibpath_overrides_runpath=yes
13420     hardcode_into_libs=yes
13421     ;;
13422   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13423   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13424     shlibpath_overrides_runpath=no
13425     hardcode_into_libs=yes
13426     ;;
13427   *) # from 4.6 on, and DragonFly
13428     shlibpath_overrides_runpath=yes
13429     hardcode_into_libs=yes
13430     ;;
13431   esac
13432   ;;
13433
13434 gnu*)
13435   version_type=linux
13436   need_lib_prefix=no
13437   need_version=no
13438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13439   soname_spec='${libname}${release}${shared_ext}$major'
13440   shlibpath_var=LD_LIBRARY_PATH
13441   hardcode_into_libs=yes
13442   ;;
13443
13444 hpux9* | hpux10* | hpux11*)
13445   # Give a soname corresponding to the major version so that dld.sl refuses to
13446   # link against other versions.
13447   version_type=sunos
13448   need_lib_prefix=no
13449   need_version=no
13450   case $host_cpu in
13451   ia64*)
13452     shrext_cmds='.so'
13453     hardcode_into_libs=yes
13454     dynamic_linker="$host_os dld.so"
13455     shlibpath_var=LD_LIBRARY_PATH
13456     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13457     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13458     soname_spec='${libname}${release}${shared_ext}$major'
13459     if test "X$HPUX_IA64_MODE" = X32; then
13460       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13461     else
13462       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13463     fi
13464     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13465     ;;
13466    hppa*64*)
13467      shrext_cmds='.sl'
13468      hardcode_into_libs=yes
13469      dynamic_linker="$host_os dld.sl"
13470      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13471      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13472      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13473      soname_spec='${libname}${release}${shared_ext}$major'
13474      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13475      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13476      ;;
13477    *)
13478     shrext_cmds='.sl'
13479     dynamic_linker="$host_os dld.sl"
13480     shlibpath_var=SHLIB_PATH
13481     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13482     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13483     soname_spec='${libname}${release}${shared_ext}$major'
13484     ;;
13485   esac
13486   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13487   postinstall_cmds='chmod 555 $lib'
13488   ;;
13489
13490 interix[3-9]*)
13491   version_type=linux
13492   need_lib_prefix=no
13493   need_version=no
13494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13495   soname_spec='${libname}${release}${shared_ext}$major'
13496   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13497   shlibpath_var=LD_LIBRARY_PATH
13498   shlibpath_overrides_runpath=no
13499   hardcode_into_libs=yes
13500   ;;
13501
13502 irix5* | irix6* | nonstopux*)
13503   case $host_os in
13504     nonstopux*) version_type=nonstopux ;;
13505     *)
13506         if test "$lt_cv_prog_gnu_ld" = yes; then
13507                 version_type=linux
13508         else
13509                 version_type=irix
13510         fi ;;
13511   esac
13512   need_lib_prefix=no
13513   need_version=no
13514   soname_spec='${libname}${release}${shared_ext}$major'
13515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13516   case $host_os in
13517   irix5* | nonstopux*)
13518     libsuff= shlibsuff=
13519     ;;
13520   *)
13521     case $LD in # libtool.m4 will add one of these switches to LD
13522     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13523       libsuff= shlibsuff= libmagic=32-bit;;
13524     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13525       libsuff=32 shlibsuff=N32 libmagic=N32;;
13526     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13527       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13528     *) libsuff= shlibsuff= libmagic=never-match;;
13529     esac
13530     ;;
13531   esac
13532   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13533   shlibpath_overrides_runpath=no
13534   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13535   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13536   hardcode_into_libs=yes
13537   ;;
13538
13539 # No shared lib support for Linux oldld, aout, or coff.
13540 linux*oldld* | linux*aout* | linux*coff*)
13541   dynamic_linker=no
13542   ;;
13543
13544 # This must be Linux ELF.
13545 linux* | k*bsd*-gnu)
13546   version_type=linux
13547   need_lib_prefix=no
13548   need_version=no
13549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13550   soname_spec='${libname}${release}${shared_ext}$major'
13551   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13552   shlibpath_var=LD_LIBRARY_PATH
13553   shlibpath_overrides_runpath=no
13554   # This implies no fast_install, which is unacceptable.
13555   # Some rework will be needed to allow for fast_install
13556   # before this can be enabled.
13557   hardcode_into_libs=yes
13558
13559   # Append ld.so.conf contents to the search path
13560   if test -f /etc/ld.so.conf; then
13561     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13562     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13563   fi
13564
13565   # We used to test for /lib/ld.so.1 and disable shared libraries on
13566   # powerpc, because MkLinux only supported shared libraries with the
13567   # GNU dynamic linker.  Since this was broken with cross compilers,
13568   # most powerpc-linux boxes support dynamic linking these days and
13569   # people can always --disable-shared, the test was removed, and we
13570   # assume the GNU/Linux dynamic linker is in use.
13571   dynamic_linker='GNU/Linux ld.so'
13572   ;;
13573
13574 netbsdelf*-gnu)
13575   version_type=linux
13576   need_lib_prefix=no
13577   need_version=no
13578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13579   soname_spec='${libname}${release}${shared_ext}$major'
13580   shlibpath_var=LD_LIBRARY_PATH
13581   shlibpath_overrides_runpath=no
13582   hardcode_into_libs=yes
13583   dynamic_linker='NetBSD ld.elf_so'
13584   ;;
13585
13586 netbsd*)
13587   version_type=sunos
13588   need_lib_prefix=no
13589   need_version=no
13590   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13591     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13592     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13593     dynamic_linker='NetBSD (a.out) ld.so'
13594   else
13595     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13596     soname_spec='${libname}${release}${shared_ext}$major'
13597     dynamic_linker='NetBSD ld.elf_so'
13598   fi
13599   shlibpath_var=LD_LIBRARY_PATH
13600   shlibpath_overrides_runpath=yes
13601   hardcode_into_libs=yes
13602   ;;
13603
13604 newsos6)
13605   version_type=linux
13606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13607   shlibpath_var=LD_LIBRARY_PATH
13608   shlibpath_overrides_runpath=yes
13609   ;;
13610
13611 nto-qnx*)
13612   version_type=linux
13613   need_lib_prefix=no
13614   need_version=no
13615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13616   soname_spec='${libname}${release}${shared_ext}$major'
13617   shlibpath_var=LD_LIBRARY_PATH
13618   shlibpath_overrides_runpath=yes
13619   ;;
13620
13621 openbsd*)
13622   version_type=sunos
13623   sys_lib_dlsearch_path_spec="/usr/lib"
13624   need_lib_prefix=no
13625   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13626   case $host_os in
13627     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13628     *)                         need_version=no  ;;
13629   esac
13630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13631   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13632   shlibpath_var=LD_LIBRARY_PATH
13633   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13634     case $host_os in
13635       openbsd2.[89] | openbsd2.[89].*)
13636         shlibpath_overrides_runpath=no
13637         ;;
13638       *)
13639         shlibpath_overrides_runpath=yes
13640         ;;
13641       esac
13642   else
13643     shlibpath_overrides_runpath=yes
13644   fi
13645   ;;
13646
13647 os2*)
13648   libname_spec='$name'
13649   shrext_cmds=".dll"
13650   need_lib_prefix=no
13651   library_names_spec='$libname${shared_ext} $libname.a'
13652   dynamic_linker='OS/2 ld.exe'
13653   shlibpath_var=LIBPATH
13654   ;;
13655
13656 osf3* | osf4* | osf5*)
13657   version_type=osf
13658   need_lib_prefix=no
13659   need_version=no
13660   soname_spec='${libname}${release}${shared_ext}$major'
13661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13662   shlibpath_var=LD_LIBRARY_PATH
13663   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13664   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13665   ;;
13666
13667 rdos*)
13668   dynamic_linker=no
13669   ;;
13670
13671 solaris*)
13672   version_type=linux
13673   need_lib_prefix=no
13674   need_version=no
13675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13676   soname_spec='${libname}${release}${shared_ext}$major'
13677   shlibpath_var=LD_LIBRARY_PATH
13678   shlibpath_overrides_runpath=yes
13679   hardcode_into_libs=yes
13680   # ldd complains unless libraries are executable
13681   postinstall_cmds='chmod +x $lib'
13682   ;;
13683
13684 sunos4*)
13685   version_type=sunos
13686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13687   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13688   shlibpath_var=LD_LIBRARY_PATH
13689   shlibpath_overrides_runpath=yes
13690   if test "$with_gnu_ld" = yes; then
13691     need_lib_prefix=no
13692   fi
13693   need_version=yes
13694   ;;
13695
13696 sysv4 | sysv4.3*)
13697   version_type=linux
13698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13699   soname_spec='${libname}${release}${shared_ext}$major'
13700   shlibpath_var=LD_LIBRARY_PATH
13701   case $host_vendor in
13702     sni)
13703       shlibpath_overrides_runpath=no
13704       need_lib_prefix=no
13705       export_dynamic_flag_spec='${wl}-Blargedynsym'
13706       runpath_var=LD_RUN_PATH
13707       ;;
13708     siemens)
13709       need_lib_prefix=no
13710       ;;
13711     motorola)
13712       need_lib_prefix=no
13713       need_version=no
13714       shlibpath_overrides_runpath=no
13715       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13716       ;;
13717   esac
13718   ;;
13719
13720 sysv4*MP*)
13721   if test -d /usr/nec ;then
13722     version_type=linux
13723     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13724     soname_spec='$libname${shared_ext}.$major'
13725     shlibpath_var=LD_LIBRARY_PATH
13726   fi
13727   ;;
13728
13729 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13730   version_type=freebsd-elf
13731   need_lib_prefix=no
13732   need_version=no
13733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13734   soname_spec='${libname}${release}${shared_ext}$major'
13735   shlibpath_var=LD_LIBRARY_PATH
13736   hardcode_into_libs=yes
13737   if test "$with_gnu_ld" = yes; then
13738     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13739     shlibpath_overrides_runpath=no
13740   else
13741     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13742     shlibpath_overrides_runpath=yes
13743     case $host_os in
13744       sco3.2v5*)
13745         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13746         ;;
13747     esac
13748   fi
13749   sys_lib_dlsearch_path_spec='/usr/lib'
13750   ;;
13751
13752 uts4*)
13753   version_type=linux
13754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13755   soname_spec='${libname}${release}${shared_ext}$major'
13756   shlibpath_var=LD_LIBRARY_PATH
13757   ;;
13758
13759 *)
13760   dynamic_linker=no
13761   ;;
13762 esac
13763 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13764 echo "${ECHO_T}$dynamic_linker" >&6; }
13765 test "$dynamic_linker" = no && can_build_shared=no
13766
13767 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13768   echo $ECHO_N "(cached) $ECHO_C" >&6
13769 else
13770   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13771 fi
13772
13773 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13774 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13775   echo $ECHO_N "(cached) $ECHO_C" >&6
13776 else
13777   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13778 fi
13779
13780 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13781
13782 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13783 if test "$GCC" = yes; then
13784   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13785 fi
13786
13787 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13788 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13789 hardcode_action_CXX=
13790 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13791    test -n "$runpath_var_CXX" || \
13792    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13793
13794   # We can hardcode non-existant directories.
13795   if test "$hardcode_direct_CXX" != no &&
13796      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13797      # have to relink, otherwise we might link with an installed library
13798      # when we should be linking with a yet-to-be-installed one
13799      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13800      test "$hardcode_minus_L_CXX" != no; then
13801     # Linking always hardcodes the temporary library directory.
13802     hardcode_action_CXX=relink
13803   else
13804     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13805     hardcode_action_CXX=immediate
13806   fi
13807 else
13808   # We cannot hardcode anything, or else we can only hardcode existing
13809   # directories.
13810   hardcode_action_CXX=unsupported
13811 fi
13812 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13813 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13814
13815 if test "$hardcode_action_CXX" = relink; then
13816   # Fast installation is not supported
13817   enable_fast_install=no
13818 elif test "$shlibpath_overrides_runpath" = yes ||
13819      test "$enable_shared" = no; then
13820   # Fast installation is not necessary
13821   enable_fast_install=needless
13822 fi
13823
13824
13825 # The else clause should only fire when bootstrapping the
13826 # libtool distribution, otherwise you forgot to ship ltmain.sh
13827 # with your package, and you will get complaints that there are
13828 # no rules to generate ltmain.sh.
13829 if test -f "$ltmain"; then
13830   # See if we are running on zsh, and set the options which allow our commands through
13831   # without removal of \ escapes.
13832   if test -n "${ZSH_VERSION+set}" ; then
13833     setopt NO_GLOB_SUBST
13834   fi
13835   # Now quote all the things that may contain metacharacters while being
13836   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13837   # variables and quote the copies for generation of the libtool script.
13838   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13839     SED SHELL STRIP \
13840     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13841     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13842     deplibs_check_method reload_flag reload_cmds need_locks \
13843     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13844     lt_cv_sys_global_symbol_to_c_name_address \
13845     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13846     old_postinstall_cmds old_postuninstall_cmds \
13847     compiler_CXX \
13848     CC_CXX \
13849     LD_CXX \
13850     lt_prog_compiler_wl_CXX \
13851     lt_prog_compiler_pic_CXX \
13852     lt_prog_compiler_static_CXX \
13853     lt_prog_compiler_no_builtin_flag_CXX \
13854     export_dynamic_flag_spec_CXX \
13855     thread_safe_flag_spec_CXX \
13856     whole_archive_flag_spec_CXX \
13857     enable_shared_with_static_runtimes_CXX \
13858     old_archive_cmds_CXX \
13859     old_archive_from_new_cmds_CXX \
13860     predep_objects_CXX \
13861     postdep_objects_CXX \
13862     predeps_CXX \
13863     postdeps_CXX \
13864     compiler_lib_search_path_CXX \
13865     compiler_lib_search_dirs_CXX \
13866     archive_cmds_CXX \
13867     archive_expsym_cmds_CXX \
13868     postinstall_cmds_CXX \
13869     postuninstall_cmds_CXX \
13870     old_archive_from_expsyms_cmds_CXX \
13871     allow_undefined_flag_CXX \
13872     no_undefined_flag_CXX \
13873     export_symbols_cmds_CXX \
13874     hardcode_libdir_flag_spec_CXX \
13875     hardcode_libdir_flag_spec_ld_CXX \
13876     hardcode_libdir_separator_CXX \
13877     hardcode_automatic_CXX \
13878     module_cmds_CXX \
13879     module_expsym_cmds_CXX \
13880     lt_cv_prog_compiler_c_o_CXX \
13881     fix_srcfile_path_CXX \
13882     exclude_expsyms_CXX \
13883     include_expsyms_CXX; do
13884
13885     case $var in
13886     old_archive_cmds_CXX | \
13887     old_archive_from_new_cmds_CXX | \
13888     archive_cmds_CXX | \
13889     archive_expsym_cmds_CXX | \
13890     module_cmds_CXX | \
13891     module_expsym_cmds_CXX | \
13892     old_archive_from_expsyms_cmds_CXX | \
13893     export_symbols_cmds_CXX | \
13894     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13895     postinstall_cmds | postuninstall_cmds | \
13896     old_postinstall_cmds | old_postuninstall_cmds | \
13897     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13898       # Double-quote double-evaled strings.
13899       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13900       ;;
13901     *)
13902       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13903       ;;
13904     esac
13905   done
13906
13907   case $lt_echo in
13908   *'\$0 --fallback-echo"')
13909     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13910     ;;
13911   esac
13912
13913 cfgfile="$ofile"
13914
13915   cat <<__EOF__ >> "$cfgfile"
13916 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13917
13918 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13919
13920 # Shell to use when invoking shell scripts.
13921 SHELL=$lt_SHELL
13922
13923 # Whether or not to build shared libraries.
13924 build_libtool_libs=$enable_shared
13925
13926 # Whether or not to build static libraries.
13927 build_old_libs=$enable_static
13928
13929 # Whether or not to add -lc for building shared libraries.
13930 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13931
13932 # Whether or not to disallow shared libs when runtime libs are static
13933 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13934
13935 # Whether or not to optimize for fast installation.
13936 fast_install=$enable_fast_install
13937
13938 # The host system.
13939 host_alias=$host_alias
13940 host=$host
13941 host_os=$host_os
13942
13943 # The build system.
13944 build_alias=$build_alias
13945 build=$build
13946 build_os=$build_os
13947
13948 # An echo program that does not interpret backslashes.
13949 echo=$lt_echo
13950
13951 # The archiver.
13952 AR=$lt_AR
13953 AR_FLAGS=$lt_AR_FLAGS
13954
13955 # A C compiler.
13956 LTCC=$lt_LTCC
13957
13958 # LTCC compiler flags.
13959 LTCFLAGS=$lt_LTCFLAGS
13960
13961 # A language-specific compiler.
13962 CC=$lt_compiler_CXX
13963
13964 # Is the compiler the GNU C compiler?
13965 with_gcc=$GCC_CXX
13966
13967 # An ERE matcher.
13968 EGREP=$lt_EGREP
13969
13970 # The linker used to build libraries.
13971 LD=$lt_LD_CXX
13972
13973 # Whether we need hard or soft links.
13974 LN_S=$lt_LN_S
13975
13976 # A BSD-compatible nm program.
13977 NM=$lt_NM
13978
13979 # A symbol stripping program
13980 STRIP=$lt_STRIP
13981
13982 # Used to examine libraries when file_magic_cmd begins "file"
13983 MAGIC_CMD=$MAGIC_CMD
13984
13985 # Used on cygwin: DLL creation program.
13986 DLLTOOL="$DLLTOOL"
13987
13988 # Used on cygwin: object dumper.
13989 OBJDUMP="$OBJDUMP"
13990
13991 # Used on cygwin: assembler.
13992 AS="$AS"
13993
13994 # The name of the directory that contains temporary libtool files.
13995 objdir=$objdir
13996
13997 # How to create reloadable object files.
13998 reload_flag=$lt_reload_flag
13999 reload_cmds=$lt_reload_cmds
14000
14001 # How to pass a linker flag through the compiler.
14002 wl=$lt_lt_prog_compiler_wl_CXX
14003
14004 # Object file suffix (normally "o").
14005 objext="$ac_objext"
14006
14007 # Old archive suffix (normally "a").
14008 libext="$libext"
14009
14010 # Shared library suffix (normally ".so").
14011 shrext_cmds='$shrext_cmds'
14012
14013 # Executable file suffix (normally "").
14014 exeext="$exeext"
14015
14016 # Additional compiler flags for building library objects.
14017 pic_flag=$lt_lt_prog_compiler_pic_CXX
14018 pic_mode=$pic_mode
14019
14020 # What is the maximum length of a command?
14021 max_cmd_len=$lt_cv_sys_max_cmd_len
14022
14023 # Does compiler simultaneously support -c and -o options?
14024 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14025
14026 # Must we lock files when doing compilation?
14027 need_locks=$lt_need_locks
14028
14029 # Do we need the lib prefix for modules?
14030 need_lib_prefix=$need_lib_prefix
14031
14032 # Do we need a version for libraries?
14033 need_version=$need_version
14034
14035 # Whether dlopen is supported.
14036 dlopen_support=$enable_dlopen
14037
14038 # Whether dlopen of programs is supported.
14039 dlopen_self=$enable_dlopen_self
14040
14041 # Whether dlopen of statically linked programs is supported.
14042 dlopen_self_static=$enable_dlopen_self_static
14043
14044 # Compiler flag to prevent dynamic linking.
14045 link_static_flag=$lt_lt_prog_compiler_static_CXX
14046
14047 # Compiler flag to turn off builtin functions.
14048 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14049
14050 # Compiler flag to allow reflexive dlopens.
14051 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14052
14053 # Compiler flag to generate shared objects directly from archives.
14054 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14055
14056 # Compiler flag to generate thread-safe objects.
14057 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14058
14059 # Library versioning type.
14060 version_type=$version_type
14061
14062 # Format of library name prefix.
14063 libname_spec=$lt_libname_spec
14064
14065 # List of archive names.  First name is the real one, the rest are links.
14066 # The last name is the one that the linker finds with -lNAME.
14067 library_names_spec=$lt_library_names_spec
14068
14069 # The coded name of the library, if different from the real name.
14070 soname_spec=$lt_soname_spec
14071
14072 # Commands used to build and install an old-style archive.
14073 RANLIB=$lt_RANLIB
14074 old_archive_cmds=$lt_old_archive_cmds_CXX
14075 old_postinstall_cmds=$lt_old_postinstall_cmds
14076 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14077
14078 # Create an old-style archive from a shared archive.
14079 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14080
14081 # Create a temporary old-style archive to link instead of a shared archive.
14082 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14083
14084 # Commands used to build and install a shared archive.
14085 archive_cmds=$lt_archive_cmds_CXX
14086 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14087 postinstall_cmds=$lt_postinstall_cmds
14088 postuninstall_cmds=$lt_postuninstall_cmds
14089
14090 # Commands used to build a loadable module (assumed same as above if empty)
14091 module_cmds=$lt_module_cmds_CXX
14092 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14093
14094 # Commands to strip libraries.
14095 old_striplib=$lt_old_striplib
14096 striplib=$lt_striplib
14097
14098 # Dependencies to place before the objects being linked to create a
14099 # shared library.
14100 predep_objects=$lt_predep_objects_CXX
14101
14102 # Dependencies to place after the objects being linked to create a
14103 # shared library.
14104 postdep_objects=$lt_postdep_objects_CXX
14105
14106 # Dependencies to place before the objects being linked to create a
14107 # shared library.
14108 predeps=$lt_predeps_CXX
14109
14110 # Dependencies to place after the objects being linked to create a
14111 # shared library.
14112 postdeps=$lt_postdeps_CXX
14113
14114 # The directories searched by this compiler when creating a shared
14115 # library
14116 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14117
14118 # The library search path used internally by the compiler when linking
14119 # a shared library.
14120 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14121
14122 # Method to check whether dependent libraries are shared objects.
14123 deplibs_check_method=$lt_deplibs_check_method
14124
14125 # Command to use when deplibs_check_method == file_magic.
14126 file_magic_cmd=$lt_file_magic_cmd
14127
14128 # Flag that allows shared libraries with undefined symbols to be built.
14129 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14130
14131 # Flag that forces no undefined symbols.
14132 no_undefined_flag=$lt_no_undefined_flag_CXX
14133
14134 # Commands used to finish a libtool library installation in a directory.
14135 finish_cmds=$lt_finish_cmds
14136
14137 # Same as above, but a single script fragment to be evaled but not shown.
14138 finish_eval=$lt_finish_eval
14139
14140 # Take the output of nm and produce a listing of raw symbols and C names.
14141 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14142
14143 # Transform the output of nm in a proper C declaration
14144 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14145
14146 # Transform the output of nm in a C name address pair
14147 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14148
14149 # This is the shared library runtime path variable.
14150 runpath_var=$runpath_var
14151
14152 # This is the shared library path variable.
14153 shlibpath_var=$shlibpath_var
14154
14155 # Is shlibpath searched before the hard-coded library search path?
14156 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14157
14158 # How to hardcode a shared library path into an executable.
14159 hardcode_action=$hardcode_action_CXX
14160
14161 # Whether we should hardcode library paths into libraries.
14162 hardcode_into_libs=$hardcode_into_libs
14163
14164 # Flag to hardcode \$libdir into a binary during linking.
14165 # This must work even if \$libdir does not exist.
14166 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14167
14168 # If ld is used when linking, flag to hardcode \$libdir into
14169 # a binary during linking. This must work even if \$libdir does
14170 # not exist.
14171 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14172
14173 # Whether we need a single -rpath flag with a separated argument.
14174 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14175
14176 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14177 # resulting binary.
14178 hardcode_direct=$hardcode_direct_CXX
14179
14180 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14181 # resulting binary.
14182 hardcode_minus_L=$hardcode_minus_L_CXX
14183
14184 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14185 # the resulting binary.
14186 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14187
14188 # Set to yes if building a shared library automatically hardcodes DIR into the library
14189 # and all subsequent libraries and executables linked against it.
14190 hardcode_automatic=$hardcode_automatic_CXX
14191
14192 # Variables whose values should be saved in libtool wrapper scripts and
14193 # restored at relink time.
14194 variables_saved_for_relink="$variables_saved_for_relink"
14195
14196 # Whether libtool must link a program against all its dependency libraries.
14197 link_all_deplibs=$link_all_deplibs_CXX
14198
14199 # Compile-time system search path for libraries
14200 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14201
14202 # Run-time system search path for libraries
14203 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14204
14205 # Fix the shell variable \$srcfile for the compiler.
14206 fix_srcfile_path=$lt_fix_srcfile_path
14207
14208 # Set to yes if exported symbols are required.
14209 always_export_symbols=$always_export_symbols_CXX
14210
14211 # The commands to list exported symbols.
14212 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14213
14214 # The commands to extract the exported symbol list from a shared archive.
14215 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14216
14217 # Symbols that should not be listed in the preloaded symbols.
14218 exclude_expsyms=$lt_exclude_expsyms_CXX
14219
14220 # Symbols that must always be exported.
14221 include_expsyms=$lt_include_expsyms_CXX
14222
14223 # ### END LIBTOOL TAG CONFIG: $tagname
14224
14225 __EOF__
14226
14227
14228 else
14229   # If there is no Makefile yet, we rely on a make rule to execute
14230   # `config.status --recheck' to rerun these tests and create the
14231   # libtool script then.
14232   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14233   if test -f "$ltmain_in"; then
14234     test -f Makefile && make "$ltmain"
14235   fi
14236 fi
14237
14238
14239 ac_ext=c
14240 ac_cpp='$CPP $CPPFLAGS'
14241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14244
14245 CC=$lt_save_CC
14246 LDCXX=$LD
14247 LD=$lt_save_LD
14248 GCC=$lt_save_GCC
14249 with_gnu_ldcxx=$with_gnu_ld
14250 with_gnu_ld=$lt_save_with_gnu_ld
14251 lt_cv_path_LDCXX=$lt_cv_path_LD
14252 lt_cv_path_LD=$lt_save_path_LD
14253 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14254 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14255
14256         else
14257           tagname=""
14258         fi
14259         ;;
14260
14261       F77)
14262         if test -n "$F77" && test "X$F77" != "Xno"; then
14263
14264 ac_ext=f
14265 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14266 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14267 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14268
14269
14270 archive_cmds_need_lc_F77=no
14271 allow_undefined_flag_F77=
14272 always_export_symbols_F77=no
14273 archive_expsym_cmds_F77=
14274 export_dynamic_flag_spec_F77=
14275 hardcode_direct_F77=no
14276 hardcode_libdir_flag_spec_F77=
14277 hardcode_libdir_flag_spec_ld_F77=
14278 hardcode_libdir_separator_F77=
14279 hardcode_minus_L_F77=no
14280 hardcode_automatic_F77=no
14281 module_cmds_F77=
14282 module_expsym_cmds_F77=
14283 link_all_deplibs_F77=unknown
14284 old_archive_cmds_F77=$old_archive_cmds
14285 no_undefined_flag_F77=
14286 whole_archive_flag_spec_F77=
14287 enable_shared_with_static_runtimes_F77=no
14288
14289 # Source file extension for f77 test sources.
14290 ac_ext=f
14291
14292 # Object file extension for compiled f77 test sources.
14293 objext=o
14294 objext_F77=$objext
14295
14296 # Code to be used in simple compile tests
14297 lt_simple_compile_test_code="\
14298       subroutine t
14299       return
14300       end
14301 "
14302
14303 # Code to be used in simple link tests
14304 lt_simple_link_test_code="\
14305       program t
14306       end
14307 "
14308
14309 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14310
14311 # If no C compiler was specified, use CC.
14312 LTCC=${LTCC-"$CC"}
14313
14314 # If no C compiler flags were specified, use CFLAGS.
14315 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14316
14317 # Allow CC to be a program name with arguments.
14318 compiler=$CC
14319
14320
14321 # save warnings/boilerplate of simple test code
14322 ac_outfile=conftest.$ac_objext
14323 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14324 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14325 _lt_compiler_boilerplate=`cat conftest.err`
14326 $rm conftest*
14327
14328 ac_outfile=conftest.$ac_objext
14329 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14330 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14331 _lt_linker_boilerplate=`cat conftest.err`
14332 $rm -r conftest*
14333
14334
14335 # Allow CC to be a program name with arguments.
14336 lt_save_CC="$CC"
14337 CC=${F77-"f77"}
14338 compiler=$CC
14339 compiler_F77=$CC
14340 for cc_temp in $compiler""; do
14341   case $cc_temp in
14342     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14343     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14344     \-*) ;;
14345     *) break;;
14346   esac
14347 done
14348 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14349
14350
14351 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14352 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14353 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14354 echo "${ECHO_T}$can_build_shared" >&6; }
14355
14356 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14357 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14358 test "$can_build_shared" = "no" && enable_shared=no
14359
14360 # On AIX, shared libraries and static libraries use the same namespace, and
14361 # are all built from PIC.
14362 case $host_os in
14363 aix3*)
14364   test "$enable_shared" = yes && enable_static=no
14365   if test -n "$RANLIB"; then
14366     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14367     postinstall_cmds='$RANLIB $lib'
14368   fi
14369   ;;
14370 aix[4-9]*)
14371   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14372     test "$enable_shared" = yes && enable_static=no
14373   fi
14374   ;;
14375 esac
14376 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14377 echo "${ECHO_T}$enable_shared" >&6; }
14378
14379 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14380 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14381 # Make sure either enable_shared or enable_static is yes.
14382 test "$enable_shared" = yes || enable_static=yes
14383 { echo "$as_me:$LINENO: result: $enable_static" >&5
14384 echo "${ECHO_T}$enable_static" >&6; }
14385
14386 GCC_F77="$G77"
14387 LD_F77="$LD"
14388
14389 lt_prog_compiler_wl_F77=
14390 lt_prog_compiler_pic_F77=
14391 lt_prog_compiler_static_F77=
14392
14393 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14394 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14395
14396   if test "$GCC" = yes; then
14397     lt_prog_compiler_wl_F77='-Wl,'
14398     lt_prog_compiler_static_F77='-static'
14399
14400     case $host_os in
14401       aix*)
14402       # All AIX code is PIC.
14403       if test "$host_cpu" = ia64; then
14404         # AIX 5 now supports IA64 processor
14405         lt_prog_compiler_static_F77='-Bstatic'
14406       fi
14407       ;;
14408
14409     amigaos*)
14410       # FIXME: we need at least 68020 code to build shared libraries, but
14411       # adding the `-m68020' flag to GCC prevents building anything better,
14412       # like `-m68040'.
14413       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14414       ;;
14415
14416     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14417       # PIC is the default for these OSes.
14418       ;;
14419
14420     mingw* | cygwin* | pw32* | os2*)
14421       # This hack is so that the source file can tell whether it is being
14422       # built for inclusion in a dll (and should export symbols for example).
14423       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14424       # (--disable-auto-import) libraries
14425       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14426       ;;
14427
14428     darwin* | rhapsody*)
14429       # PIC is the default on this platform
14430       # Common symbols not allowed in MH_DYLIB files
14431       lt_prog_compiler_pic_F77='-fno-common'
14432       ;;
14433
14434     interix[3-9]*)
14435       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14436       # Instead, we relocate shared libraries at runtime.
14437       ;;
14438
14439     msdosdjgpp*)
14440       # Just because we use GCC doesn't mean we suddenly get shared libraries
14441       # on systems that don't support them.
14442       lt_prog_compiler_can_build_shared_F77=no
14443       enable_shared=no
14444       ;;
14445
14446     sysv4*MP*)
14447       if test -d /usr/nec; then
14448         lt_prog_compiler_pic_F77=-Kconform_pic
14449       fi
14450       ;;
14451
14452     hpux*)
14453       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14454       # not for PA HP-UX.
14455       case $host_cpu in
14456       hppa*64*|ia64*)
14457         # +Z the default
14458         ;;
14459       *)
14460         lt_prog_compiler_pic_F77='-fPIC'
14461         ;;
14462       esac
14463       ;;
14464
14465     *)
14466       lt_prog_compiler_pic_F77='-fPIC'
14467       ;;
14468     esac
14469   else
14470     # PORTME Check for flag to pass linker flags through the system compiler.
14471     case $host_os in
14472     aix*)
14473       lt_prog_compiler_wl_F77='-Wl,'
14474       if test "$host_cpu" = ia64; then
14475         # AIX 5 now supports IA64 processor
14476         lt_prog_compiler_static_F77='-Bstatic'
14477       else
14478         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14479       fi
14480       ;;
14481       darwin*)
14482         # PIC is the default on this platform
14483         # Common symbols not allowed in MH_DYLIB files
14484        case $cc_basename in
14485          xlc*)
14486          lt_prog_compiler_pic_F77='-qnocommon'
14487          lt_prog_compiler_wl_F77='-Wl,'
14488          ;;
14489        esac
14490        ;;
14491
14492     mingw* | cygwin* | pw32* | os2*)
14493       # This hack is so that the source file can tell whether it is being
14494       # built for inclusion in a dll (and should export symbols for example).
14495       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14496       ;;
14497
14498     hpux9* | hpux10* | hpux11*)
14499       lt_prog_compiler_wl_F77='-Wl,'
14500       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14501       # not for PA HP-UX.
14502       case $host_cpu in
14503       hppa*64*|ia64*)
14504         # +Z the default
14505         ;;
14506       *)
14507         lt_prog_compiler_pic_F77='+Z'
14508         ;;
14509       esac
14510       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14511       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14512       ;;
14513
14514     irix5* | irix6* | nonstopux*)
14515       lt_prog_compiler_wl_F77='-Wl,'
14516       # PIC (with -KPIC) is the default.
14517       lt_prog_compiler_static_F77='-non_shared'
14518       ;;
14519
14520     newsos6)
14521       lt_prog_compiler_pic_F77='-KPIC'
14522       lt_prog_compiler_static_F77='-Bstatic'
14523       ;;
14524
14525     linux* | k*bsd*-gnu)
14526       case $cc_basename in
14527       icc* | ecc*)
14528         lt_prog_compiler_wl_F77='-Wl,'
14529         lt_prog_compiler_pic_F77='-KPIC'
14530         lt_prog_compiler_static_F77='-static'
14531         ;;
14532       pgcc* | pgf77* | pgf90* | pgf95*)
14533         # Portland Group compilers (*not* the Pentium gcc compiler,
14534         # which looks to be a dead project)
14535         lt_prog_compiler_wl_F77='-Wl,'
14536         lt_prog_compiler_pic_F77='-fpic'
14537         lt_prog_compiler_static_F77='-Bstatic'
14538         ;;
14539       ccc*)
14540         lt_prog_compiler_wl_F77='-Wl,'
14541         # All Alpha code is PIC.
14542         lt_prog_compiler_static_F77='-non_shared'
14543         ;;
14544       *)
14545         case `$CC -V 2>&1 | sed 5q` in
14546         *Sun\ C*)
14547           # Sun C 5.9
14548           lt_prog_compiler_pic_F77='-KPIC'
14549           lt_prog_compiler_static_F77='-Bstatic'
14550           lt_prog_compiler_wl_F77='-Wl,'
14551           ;;
14552         *Sun\ F*)
14553           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14554           lt_prog_compiler_pic_F77='-KPIC'
14555           lt_prog_compiler_static_F77='-Bstatic'
14556           lt_prog_compiler_wl_F77=''
14557           ;;
14558         esac
14559         ;;
14560       esac
14561       ;;
14562
14563     osf3* | osf4* | osf5*)
14564       lt_prog_compiler_wl_F77='-Wl,'
14565       # All OSF/1 code is PIC.
14566       lt_prog_compiler_static_F77='-non_shared'
14567       ;;
14568
14569     rdos*)
14570       lt_prog_compiler_static_F77='-non_shared'
14571       ;;
14572
14573     solaris*)
14574       lt_prog_compiler_pic_F77='-KPIC'
14575       lt_prog_compiler_static_F77='-Bstatic'
14576       case $cc_basename in
14577       f77* | f90* | f95*)
14578         lt_prog_compiler_wl_F77='-Qoption ld ';;
14579       *)
14580         lt_prog_compiler_wl_F77='-Wl,';;
14581       esac
14582       ;;
14583
14584     sunos4*)
14585       lt_prog_compiler_wl_F77='-Qoption ld '
14586       lt_prog_compiler_pic_F77='-PIC'
14587       lt_prog_compiler_static_F77='-Bstatic'
14588       ;;
14589
14590     sysv4 | sysv4.2uw2* | sysv4.3*)
14591       lt_prog_compiler_wl_F77='-Wl,'
14592       lt_prog_compiler_pic_F77='-KPIC'
14593       lt_prog_compiler_static_F77='-Bstatic'
14594       ;;
14595
14596     sysv4*MP*)
14597       if test -d /usr/nec ;then
14598         lt_prog_compiler_pic_F77='-Kconform_pic'
14599         lt_prog_compiler_static_F77='-Bstatic'
14600       fi
14601       ;;
14602
14603     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14604       lt_prog_compiler_wl_F77='-Wl,'
14605       lt_prog_compiler_pic_F77='-KPIC'
14606       lt_prog_compiler_static_F77='-Bstatic'
14607       ;;
14608
14609     unicos*)
14610       lt_prog_compiler_wl_F77='-Wl,'
14611       lt_prog_compiler_can_build_shared_F77=no
14612       ;;
14613
14614     uts4*)
14615       lt_prog_compiler_pic_F77='-pic'
14616       lt_prog_compiler_static_F77='-Bstatic'
14617       ;;
14618
14619     *)
14620       lt_prog_compiler_can_build_shared_F77=no
14621       ;;
14622     esac
14623   fi
14624
14625 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14626 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14627
14628 #
14629 # Check to make sure the PIC flag actually works.
14630 #
14631 if test -n "$lt_prog_compiler_pic_F77"; then
14632
14633 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14634 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14635 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14636   echo $ECHO_N "(cached) $ECHO_C" >&6
14637 else
14638   lt_cv_prog_compiler_pic_works_F77=no
14639   ac_outfile=conftest.$ac_objext
14640    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14641    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14642    # Insert the option either (1) after the last *FLAGS variable, or
14643    # (2) before a word containing "conftest.", or (3) at the end.
14644    # Note that $ac_compile itself does not contain backslashes and begins
14645    # with a dollar sign (not a hyphen), so the echo should work correctly.
14646    # The option is referenced via a variable to avoid confusing sed.
14647    lt_compile=`echo "$ac_compile" | $SED \
14648    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14649    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14650    -e 's:$: $lt_compiler_flag:'`
14651    (eval echo "\"\$as_me:14651: $lt_compile\"" >&5)
14652    (eval "$lt_compile" 2>conftest.err)
14653    ac_status=$?
14654    cat conftest.err >&5
14655    echo "$as_me:14655: \$? = $ac_status" >&5
14656    if (exit $ac_status) && test -s "$ac_outfile"; then
14657      # The compiler can only warn and ignore the option if not recognized
14658      # So say no if there are warnings other than the usual output.
14659      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14660      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14661      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14662        lt_cv_prog_compiler_pic_works_F77=yes
14663      fi
14664    fi
14665    $rm conftest*
14666
14667 fi
14668 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14669 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14670
14671 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14672     case $lt_prog_compiler_pic_F77 in
14673      "" | " "*) ;;
14674      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14675      esac
14676 else
14677     lt_prog_compiler_pic_F77=
14678      lt_prog_compiler_can_build_shared_F77=no
14679 fi
14680
14681 fi
14682 case $host_os in
14683   # For platforms which do not support PIC, -DPIC is meaningless:
14684   *djgpp*)
14685     lt_prog_compiler_pic_F77=
14686     ;;
14687   *)
14688     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14689     ;;
14690 esac
14691
14692 #
14693 # Check to make sure the static flag actually works.
14694 #
14695 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14696 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14697 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14698 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14699   echo $ECHO_N "(cached) $ECHO_C" >&6
14700 else
14701   lt_cv_prog_compiler_static_works_F77=no
14702    save_LDFLAGS="$LDFLAGS"
14703    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14704    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14705    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14706      # The linker can only warn and ignore the option if not recognized
14707      # So say no if there are warnings
14708      if test -s conftest.err; then
14709        # Append any errors to the config.log.
14710        cat conftest.err 1>&5
14711        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14712        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14713        if diff conftest.exp conftest.er2 >/dev/null; then
14714          lt_cv_prog_compiler_static_works_F77=yes
14715        fi
14716      else
14717        lt_cv_prog_compiler_static_works_F77=yes
14718      fi
14719    fi
14720    $rm -r conftest*
14721    LDFLAGS="$save_LDFLAGS"
14722
14723 fi
14724 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14725 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14726
14727 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14728     :
14729 else
14730     lt_prog_compiler_static_F77=
14731 fi
14732
14733
14734 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14735 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14736 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14737   echo $ECHO_N "(cached) $ECHO_C" >&6
14738 else
14739   lt_cv_prog_compiler_c_o_F77=no
14740    $rm -r conftest 2>/dev/null
14741    mkdir conftest
14742    cd conftest
14743    mkdir out
14744    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14745
14746    lt_compiler_flag="-o out/conftest2.$ac_objext"
14747    # Insert the option either (1) after the last *FLAGS variable, or
14748    # (2) before a word containing "conftest.", or (3) at the end.
14749    # Note that $ac_compile itself does not contain backslashes and begins
14750    # with a dollar sign (not a hyphen), so the echo should work correctly.
14751    lt_compile=`echo "$ac_compile" | $SED \
14752    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14753    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14754    -e 's:$: $lt_compiler_flag:'`
14755    (eval echo "\"\$as_me:14755: $lt_compile\"" >&5)
14756    (eval "$lt_compile" 2>out/conftest.err)
14757    ac_status=$?
14758    cat out/conftest.err >&5
14759    echo "$as_me:14759: \$? = $ac_status" >&5
14760    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14761    then
14762      # The compiler can only warn and ignore the option if not recognized
14763      # So say no if there are warnings
14764      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14765      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14766      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14767        lt_cv_prog_compiler_c_o_F77=yes
14768      fi
14769    fi
14770    chmod u+w . 2>&5
14771    $rm conftest*
14772    # SGI C++ compiler will create directory out/ii_files/ for
14773    # template instantiation
14774    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14775    $rm out/* && rmdir out
14776    cd ..
14777    rmdir conftest
14778    $rm conftest*
14779
14780 fi
14781 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14782 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14783
14784
14785 hard_links="nottested"
14786 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14787   # do not overwrite the value of need_locks provided by the user
14788   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14789 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14790   hard_links=yes
14791   $rm conftest*
14792   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14793   touch conftest.a
14794   ln conftest.a conftest.b 2>&5 || hard_links=no
14795   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14796   { echo "$as_me:$LINENO: result: $hard_links" >&5
14797 echo "${ECHO_T}$hard_links" >&6; }
14798   if test "$hard_links" = no; then
14799     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14800 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14801     need_locks=warn
14802   fi
14803 else
14804   need_locks=no
14805 fi
14806
14807 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14808 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14809
14810   runpath_var=
14811   allow_undefined_flag_F77=
14812   enable_shared_with_static_runtimes_F77=no
14813   archive_cmds_F77=
14814   archive_expsym_cmds_F77=
14815   old_archive_From_new_cmds_F77=
14816   old_archive_from_expsyms_cmds_F77=
14817   export_dynamic_flag_spec_F77=
14818   whole_archive_flag_spec_F77=
14819   thread_safe_flag_spec_F77=
14820   hardcode_libdir_flag_spec_F77=
14821   hardcode_libdir_flag_spec_ld_F77=
14822   hardcode_libdir_separator_F77=
14823   hardcode_direct_F77=no
14824   hardcode_minus_L_F77=no
14825   hardcode_shlibpath_var_F77=unsupported
14826   link_all_deplibs_F77=unknown
14827   hardcode_automatic_F77=no
14828   module_cmds_F77=
14829   module_expsym_cmds_F77=
14830   always_export_symbols_F77=no
14831   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14832   # include_expsyms should be a list of space-separated symbols to be *always*
14833   # included in the symbol list
14834   include_expsyms_F77=
14835   # exclude_expsyms can be an extended regexp of symbols to exclude
14836   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14837   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14838   # as well as any symbol that contains `d'.
14839   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14840   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14841   # platforms (ab)use it in PIC code, but their linkers get confused if
14842   # the symbol is explicitly referenced.  Since portable code cannot
14843   # rely on this symbol name, it's probably fine to never include it in
14844   # preloaded symbol tables.
14845   # Exclude shared library initialization/finalization symbols.
14846   extract_expsyms_cmds=
14847   # Just being paranoid about ensuring that cc_basename is set.
14848   for cc_temp in $compiler""; do
14849   case $cc_temp in
14850     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14851     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14852     \-*) ;;
14853     *) break;;
14854   esac
14855 done
14856 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14857
14858   case $host_os in
14859   cygwin* | mingw* | pw32*)
14860     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14861     # When not using gcc, we currently assume that we are using
14862     # Microsoft Visual C++.
14863     if test "$GCC" != yes; then
14864       with_gnu_ld=no
14865     fi
14866     ;;
14867   interix*)
14868     # we just hope/assume this is gcc and not c89 (= MSVC++)
14869     with_gnu_ld=yes
14870     ;;
14871   openbsd*)
14872     with_gnu_ld=no
14873     ;;
14874   esac
14875
14876   ld_shlibs_F77=yes
14877   if test "$with_gnu_ld" = yes; then
14878     # If archive_cmds runs LD, not CC, wlarc should be empty
14879     wlarc='${wl}'
14880
14881     # Set some defaults for GNU ld with shared library support. These
14882     # are reset later if shared libraries are not supported. Putting them
14883     # here allows them to be overridden if necessary.
14884     runpath_var=LD_RUN_PATH
14885     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14886     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14887     # ancient GNU ld didn't support --whole-archive et. al.
14888     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14889         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14890       else
14891         whole_archive_flag_spec_F77=
14892     fi
14893     supports_anon_versioning=no
14894     case `$LD -v 2>/dev/null` in
14895       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14896       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14897       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14898       *\ 2.11.*) ;; # other 2.11 versions
14899       *) supports_anon_versioning=yes ;;
14900     esac
14901
14902     # See if GNU ld supports shared libraries.
14903     case $host_os in
14904     aix[3-9]*)
14905       # On AIX/PPC, the GNU linker is very broken
14906       if test "$host_cpu" != ia64; then
14907         ld_shlibs_F77=no
14908         cat <<EOF 1>&2
14909
14910 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14911 *** to be unable to reliably create shared libraries on AIX.
14912 *** Therefore, libtool is disabling shared libraries support.  If you
14913 *** really care for shared libraries, you may want to modify your PATH
14914 *** so that a non-GNU linker is found, and then restart.
14915
14916 EOF
14917       fi
14918       ;;
14919
14920     amigaos*)
14921       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)'
14922       hardcode_libdir_flag_spec_F77='-L$libdir'
14923       hardcode_minus_L_F77=yes
14924
14925       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14926       # that the semantics of dynamic libraries on AmigaOS, at least up
14927       # to version 4, is to share data among multiple programs linked
14928       # with the same dynamic library.  Since this doesn't match the
14929       # behavior of shared libraries on other platforms, we can't use
14930       # them.
14931       ld_shlibs_F77=no
14932       ;;
14933
14934     beos*)
14935       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14936         allow_undefined_flag_F77=unsupported
14937         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14938         # support --undefined.  This deserves some investigation.  FIXME
14939         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14940       else
14941         ld_shlibs_F77=no
14942       fi
14943       ;;
14944
14945     cygwin* | mingw* | pw32*)
14946       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14947       # as there is no search path for DLLs.
14948       hardcode_libdir_flag_spec_F77='-L$libdir'
14949       allow_undefined_flag_F77=unsupported
14950       always_export_symbols_F77=no
14951       enable_shared_with_static_runtimes_F77=yes
14952       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14953
14954       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14955         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14956         # If the export-symbols file already is a .def file (1st line
14957         # is EXPORTS), use it as is; otherwise, prepend...
14958         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14959           cp $export_symbols $output_objdir/$soname.def;
14960         else
14961           echo EXPORTS > $output_objdir/$soname.def;
14962           cat $export_symbols >> $output_objdir/$soname.def;
14963         fi~
14964         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14965       else
14966         ld_shlibs_F77=no
14967       fi
14968       ;;
14969
14970     interix[3-9]*)
14971       hardcode_direct_F77=no
14972       hardcode_shlibpath_var_F77=no
14973       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14974       export_dynamic_flag_spec_F77='${wl}-E'
14975       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14976       # Instead, shared libraries are loaded at an image base (0x10000000 by
14977       # default) and relocated if they conflict, which is a slow very memory
14978       # consuming and fragmenting process.  To avoid this, we pick a random,
14979       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14980       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14981       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'
14982       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'
14983       ;;
14984
14985     gnu* | linux* | k*bsd*-gnu)
14986       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14987         tmp_addflag=
14988         case $cc_basename,$host_cpu in
14989         pgcc*)                          # Portland Group C compiler
14990           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'
14991           tmp_addflag=' $pic_flag'
14992           ;;
14993         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14994           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'
14995           tmp_addflag=' $pic_flag -Mnomain' ;;
14996         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14997           tmp_addflag=' -i_dynamic' ;;
14998         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14999           tmp_addflag=' -i_dynamic -nofor_main' ;;
15000         ifc* | ifort*)                  # Intel Fortran compiler
15001           tmp_addflag=' -nofor_main' ;;
15002         esac
15003         case `$CC -V 2>&1 | sed 5q` in
15004         *Sun\ C*)                       # Sun C 5.9
15005           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15006           tmp_sharedflag='-G' ;;
15007         *Sun\ F*)                       # Sun Fortran 8.3
15008           tmp_sharedflag='-G' ;;
15009         *)
15010           tmp_sharedflag='-shared' ;;
15011         esac
15012         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15013
15014         if test $supports_anon_versioning = yes; then
15015           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15016   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15017   $echo "local: *; };" >> $output_objdir/$libname.ver~
15018           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15019         fi
15020         link_all_deplibs_F77=no
15021       else
15022         ld_shlibs_F77=no
15023       fi
15024       ;;
15025
15026     netbsd* | netbsdelf*-gnu)
15027       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15028         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15029         wlarc=
15030       else
15031         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15032         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15033       fi
15034       ;;
15035
15036     solaris*)
15037       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15038         ld_shlibs_F77=no
15039         cat <<EOF 1>&2
15040
15041 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15042 *** create shared libraries on Solaris systems.  Therefore, libtool
15043 *** is disabling shared libraries support.  We urge you to upgrade GNU
15044 *** binutils to release 2.9.1 or newer.  Another option is to modify
15045 *** your PATH or compiler configuration so that the native linker is
15046 *** used, and then restart.
15047
15048 EOF
15049       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15050         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15051         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15052       else
15053         ld_shlibs_F77=no
15054       fi
15055       ;;
15056
15057     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15058       case `$LD -v 2>&1` in
15059         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15060         ld_shlibs_F77=no
15061         cat <<_LT_EOF 1>&2
15062
15063 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15064 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15065 *** is disabling shared libraries support.  We urge you to upgrade GNU
15066 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15067 *** your PATH or compiler configuration so that the native linker is
15068 *** used, and then restart.
15069
15070 _LT_EOF
15071         ;;
15072         *)
15073           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15074             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15075             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15076             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15077           else
15078             ld_shlibs_F77=no
15079           fi
15080         ;;
15081       esac
15082       ;;
15083
15084     sunos4*)
15085       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15086       wlarc=
15087       hardcode_direct_F77=yes
15088       hardcode_shlibpath_var_F77=no
15089       ;;
15090
15091     *)
15092       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15093         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15094         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15095       else
15096         ld_shlibs_F77=no
15097       fi
15098       ;;
15099     esac
15100
15101     if test "$ld_shlibs_F77" = no; then
15102       runpath_var=
15103       hardcode_libdir_flag_spec_F77=
15104       export_dynamic_flag_spec_F77=
15105       whole_archive_flag_spec_F77=
15106     fi
15107   else
15108     # PORTME fill in a description of your system's linker (not GNU ld)
15109     case $host_os in
15110     aix3*)
15111       allow_undefined_flag_F77=unsupported
15112       always_export_symbols_F77=yes
15113       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'
15114       # Note: this linker hardcodes the directories in LIBPATH if there
15115       # are no directories specified by -L.
15116       hardcode_minus_L_F77=yes
15117       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15118         # Neither direct hardcoding nor static linking is supported with a
15119         # broken collect2.
15120         hardcode_direct_F77=unsupported
15121       fi
15122       ;;
15123
15124     aix[4-9]*)
15125       if test "$host_cpu" = ia64; then
15126         # On IA64, the linker does run time linking by default, so we don't
15127         # have to do anything special.
15128         aix_use_runtimelinking=no
15129         exp_sym_flag='-Bexport'
15130         no_entry_flag=""
15131       else
15132         # If we're using GNU nm, then we don't want the "-C" option.
15133         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15134         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15135           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'
15136         else
15137           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'
15138         fi
15139         aix_use_runtimelinking=no
15140
15141         # Test if we are trying to use run time linking or normal
15142         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15143         # need to do runtime linking.
15144         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15145           for ld_flag in $LDFLAGS; do
15146           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15147             aix_use_runtimelinking=yes
15148             break
15149           fi
15150           done
15151           ;;
15152         esac
15153
15154         exp_sym_flag='-bexport'
15155         no_entry_flag='-bnoentry'
15156       fi
15157
15158       # When large executables or shared objects are built, AIX ld can
15159       # have problems creating the table of contents.  If linking a library
15160       # or program results in "error TOC overflow" add -mminimal-toc to
15161       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15162       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15163
15164       archive_cmds_F77=''
15165       hardcode_direct_F77=yes
15166       hardcode_libdir_separator_F77=':'
15167       link_all_deplibs_F77=yes
15168
15169       if test "$GCC" = yes; then
15170         case $host_os in aix4.[012]|aix4.[012].*)
15171         # We only want to do this on AIX 4.2 and lower, the check
15172         # below for broken collect2 doesn't work under 4.3+
15173           collect2name=`${CC} -print-prog-name=collect2`
15174           if test -f "$collect2name" && \
15175            strings "$collect2name" | grep resolve_lib_name >/dev/null
15176           then
15177           # We have reworked collect2
15178           :
15179           else
15180           # We have old collect2
15181           hardcode_direct_F77=unsupported
15182           # It fails to find uninstalled libraries when the uninstalled
15183           # path is not listed in the libpath.  Setting hardcode_minus_L
15184           # to unsupported forces relinking
15185           hardcode_minus_L_F77=yes
15186           hardcode_libdir_flag_spec_F77='-L$libdir'
15187           hardcode_libdir_separator_F77=
15188           fi
15189           ;;
15190         esac
15191         shared_flag='-shared'
15192         if test "$aix_use_runtimelinking" = yes; then
15193           shared_flag="$shared_flag "'${wl}-G'
15194         fi
15195       else
15196         # not using gcc
15197         if test "$host_cpu" = ia64; then
15198         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15199         # chokes on -Wl,-G. The following line is correct:
15200           shared_flag='-G'
15201         else
15202           if test "$aix_use_runtimelinking" = yes; then
15203             shared_flag='${wl}-G'
15204           else
15205             shared_flag='${wl}-bM:SRE'
15206           fi
15207         fi
15208       fi
15209
15210       # It seems that -bexpall does not export symbols beginning with
15211       # underscore (_), so it is better to generate a list of symbols to export.
15212       always_export_symbols_F77=yes
15213       if test "$aix_use_runtimelinking" = yes; then
15214         # Warning - without using the other runtime loading flags (-brtl),
15215         # -berok will link without error, but may produce a broken library.
15216         allow_undefined_flag_F77='-berok'
15217        # Determine the default libpath from the value encoded in an empty executable.
15218        cat >conftest.$ac_ext <<_ACEOF
15219       program main
15220
15221       end
15222 _ACEOF
15223 rm -f conftest.$ac_objext conftest$ac_exeext
15224 if { (ac_try="$ac_link"
15225 case "(($ac_try" in
15226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227   *) ac_try_echo=$ac_try;;
15228 esac
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230   (eval "$ac_link") 2>conftest.er1
15231   ac_status=$?
15232   grep -v '^ *+' conftest.er1 >conftest.err
15233   rm -f conftest.er1
15234   cat conftest.err >&5
15235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236   (exit $ac_status); } && {
15237          test -z "$ac_f77_werror_flag" ||
15238          test ! -s conftest.err
15239        } && test -s conftest$ac_exeext &&
15240        $as_test_x conftest$ac_exeext; then
15241
15242 lt_aix_libpath_sed='
15243     /Import File Strings/,/^$/ {
15244         /^0/ {
15245             s/^0  *\(.*\)$/\1/
15246             p
15247         }
15248     }'
15249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15250 # Check for a 64-bit object if we didn't find anything.
15251 if test -z "$aix_libpath"; then
15252   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15253 fi
15254 else
15255   echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.$ac_ext >&5
15257
15258
15259 fi
15260
15261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15262       conftest$ac_exeext conftest.$ac_ext
15263 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15264
15265        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15266         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"
15267        else
15268         if test "$host_cpu" = ia64; then
15269           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15270           allow_undefined_flag_F77="-z nodefs"
15271           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"
15272         else
15273          # Determine the default libpath from the value encoded in an empty executable.
15274          cat >conftest.$ac_ext <<_ACEOF
15275       program main
15276
15277       end
15278 _ACEOF
15279 rm -f conftest.$ac_objext conftest$ac_exeext
15280 if { (ac_try="$ac_link"
15281 case "(($ac_try" in
15282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283   *) ac_try_echo=$ac_try;;
15284 esac
15285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286   (eval "$ac_link") 2>conftest.er1
15287   ac_status=$?
15288   grep -v '^ *+' conftest.er1 >conftest.err
15289   rm -f conftest.er1
15290   cat conftest.err >&5
15291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292   (exit $ac_status); } && {
15293          test -z "$ac_f77_werror_flag" ||
15294          test ! -s conftest.err
15295        } && test -s conftest$ac_exeext &&
15296        $as_test_x conftest$ac_exeext; then
15297
15298 lt_aix_libpath_sed='
15299     /Import File Strings/,/^$/ {
15300         /^0/ {
15301             s/^0  *\(.*\)$/\1/
15302             p
15303         }
15304     }'
15305 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15306 # Check for a 64-bit object if we didn't find anything.
15307 if test -z "$aix_libpath"; then
15308   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15309 fi
15310 else
15311   echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15313
15314
15315 fi
15316
15317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15318       conftest$ac_exeext conftest.$ac_ext
15319 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15320
15321          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15322           # Warning - without using the other run time loading flags,
15323           # -berok will link without error, but may produce a broken library.
15324           no_undefined_flag_F77=' ${wl}-bernotok'
15325           allow_undefined_flag_F77=' ${wl}-berok'
15326           # Exported symbols can be pulled into shared objects from archives
15327           whole_archive_flag_spec_F77='$convenience'
15328           archive_cmds_need_lc_F77=yes
15329           # This is similar to how AIX traditionally builds its shared libraries.
15330           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'
15331         fi
15332       fi
15333       ;;
15334
15335     amigaos*)
15336       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)'
15337       hardcode_libdir_flag_spec_F77='-L$libdir'
15338       hardcode_minus_L_F77=yes
15339       # see comment about different semantics on the GNU ld section
15340       ld_shlibs_F77=no
15341       ;;
15342
15343     bsdi[45]*)
15344       export_dynamic_flag_spec_F77=-rdynamic
15345       ;;
15346
15347     cygwin* | mingw* | pw32*)
15348       # When not using gcc, we currently assume that we are using
15349       # Microsoft Visual C++.
15350       # hardcode_libdir_flag_spec is actually meaningless, as there is
15351       # no search path for DLLs.
15352       hardcode_libdir_flag_spec_F77=' '
15353       allow_undefined_flag_F77=unsupported
15354       # Tell ltmain to make .lib files, not .a files.
15355       libext=lib
15356       # Tell ltmain to make .dll files, not .so files.
15357       shrext_cmds=".dll"
15358       # FIXME: Setting linknames here is a bad hack.
15359       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15360       # The linker will automatically build a .lib file if we build a DLL.
15361       old_archive_From_new_cmds_F77='true'
15362       # FIXME: Should let the user specify the lib program.
15363       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15364       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15365       enable_shared_with_static_runtimes_F77=yes
15366       ;;
15367
15368     darwin* | rhapsody*)
15369       case $host_os in
15370         rhapsody* | darwin1.[012])
15371          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15372          ;;
15373        *) # Darwin 1.3 on
15374          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15375            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15376          else
15377            case ${MACOSX_DEPLOYMENT_TARGET} in
15378              10.[012])
15379                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15380                ;;
15381              10.*)
15382                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15383                ;;
15384            esac
15385          fi
15386          ;;
15387       esac
15388       archive_cmds_need_lc_F77=no
15389       hardcode_direct_F77=no
15390       hardcode_automatic_F77=yes
15391       hardcode_shlibpath_var_F77=unsupported
15392       whole_archive_flag_spec_F77=''
15393       link_all_deplibs_F77=yes
15394     if test "$GCC" = yes ; then
15395         output_verbose_link_cmd='echo'
15396         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15397         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15398         archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15399         module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15400     else
15401       case $cc_basename in
15402         xlc*)
15403          output_verbose_link_cmd='echo'
15404          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15405          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15406           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15407          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15408           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}'
15409           ;;
15410        *)
15411          ld_shlibs_F77=no
15412           ;;
15413       esac
15414     fi
15415       ;;
15416
15417     dgux*)
15418       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15419       hardcode_libdir_flag_spec_F77='-L$libdir'
15420       hardcode_shlibpath_var_F77=no
15421       ;;
15422
15423     freebsd1*)
15424       ld_shlibs_F77=no
15425       ;;
15426
15427     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15428     # support.  Future versions do this automatically, but an explicit c++rt0.o
15429     # does not break anything, and helps significantly (at the cost of a little
15430     # extra space).
15431     freebsd2.2*)
15432       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15433       hardcode_libdir_flag_spec_F77='-R$libdir'
15434       hardcode_direct_F77=yes
15435       hardcode_shlibpath_var_F77=no
15436       ;;
15437
15438     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15439     freebsd2*)
15440       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15441       hardcode_direct_F77=yes
15442       hardcode_minus_L_F77=yes
15443       hardcode_shlibpath_var_F77=no
15444       ;;
15445
15446     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15447     freebsd* | dragonfly*)
15448       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15449       hardcode_libdir_flag_spec_F77='-R$libdir'
15450       hardcode_direct_F77=yes
15451       hardcode_shlibpath_var_F77=no
15452       ;;
15453
15454     hpux9*)
15455       if test "$GCC" = yes; then
15456         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'
15457       else
15458         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'
15459       fi
15460       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15461       hardcode_libdir_separator_F77=:
15462       hardcode_direct_F77=yes
15463
15464       # hardcode_minus_L: Not really in the search PATH,
15465       # but as the default location of the library.
15466       hardcode_minus_L_F77=yes
15467       export_dynamic_flag_spec_F77='${wl}-E'
15468       ;;
15469
15470     hpux10*)
15471       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15472         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15473       else
15474         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15475       fi
15476       if test "$with_gnu_ld" = no; then
15477         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15478         hardcode_libdir_separator_F77=:
15479
15480         hardcode_direct_F77=yes
15481         export_dynamic_flag_spec_F77='${wl}-E'
15482
15483         # hardcode_minus_L: Not really in the search PATH,
15484         # but as the default location of the library.
15485         hardcode_minus_L_F77=yes
15486       fi
15487       ;;
15488
15489     hpux11*)
15490       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15491         case $host_cpu in
15492         hppa*64*)
15493           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15494           ;;
15495         ia64*)
15496           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15497           ;;
15498         *)
15499           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15500           ;;
15501         esac
15502       else
15503         case $host_cpu in
15504         hppa*64*)
15505           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15506           ;;
15507         ia64*)
15508           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15509           ;;
15510         *)
15511           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15512           ;;
15513         esac
15514       fi
15515       if test "$with_gnu_ld" = no; then
15516         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15517         hardcode_libdir_separator_F77=:
15518
15519         case $host_cpu in
15520         hppa*64*|ia64*)
15521           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15522           hardcode_direct_F77=no
15523           hardcode_shlibpath_var_F77=no
15524           ;;
15525         *)
15526           hardcode_direct_F77=yes
15527           export_dynamic_flag_spec_F77='${wl}-E'
15528
15529           # hardcode_minus_L: Not really in the search PATH,
15530           # but as the default location of the library.
15531           hardcode_minus_L_F77=yes
15532           ;;
15533         esac
15534       fi
15535       ;;
15536
15537     irix5* | irix6* | nonstopux*)
15538       if test "$GCC" = yes; then
15539         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'
15540       else
15541         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'
15542         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15543       fi
15544       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15545       hardcode_libdir_separator_F77=:
15546       link_all_deplibs_F77=yes
15547       ;;
15548
15549     netbsd* | netbsdelf*-gnu)
15550       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15551         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15552       else
15553         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15554       fi
15555       hardcode_libdir_flag_spec_F77='-R$libdir'
15556       hardcode_direct_F77=yes
15557       hardcode_shlibpath_var_F77=no
15558       ;;
15559
15560     newsos6)
15561       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15562       hardcode_direct_F77=yes
15563       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15564       hardcode_libdir_separator_F77=:
15565       hardcode_shlibpath_var_F77=no
15566       ;;
15567
15568     openbsd*)
15569       if test -f /usr/libexec/ld.so; then
15570         hardcode_direct_F77=yes
15571         hardcode_shlibpath_var_F77=no
15572         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15573           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15574           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15575           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15576           export_dynamic_flag_spec_F77='${wl}-E'
15577         else
15578           case $host_os in
15579            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15580              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15581              hardcode_libdir_flag_spec_F77='-R$libdir'
15582              ;;
15583            *)
15584              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15585              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15586              ;;
15587           esac
15588         fi
15589       else
15590         ld_shlibs_F77=no
15591       fi
15592       ;;
15593
15594     os2*)
15595       hardcode_libdir_flag_spec_F77='-L$libdir'
15596       hardcode_minus_L_F77=yes
15597       allow_undefined_flag_F77=unsupported
15598       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'
15599       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15600       ;;
15601
15602     osf3*)
15603       if test "$GCC" = yes; then
15604         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15605         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'
15606       else
15607         allow_undefined_flag_F77=' -expect_unresolved \*'
15608         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'
15609       fi
15610       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15611       hardcode_libdir_separator_F77=:
15612       ;;
15613
15614     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15615       if test "$GCC" = yes; then
15616         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15617         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'
15618         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15619       else
15620         allow_undefined_flag_F77=' -expect_unresolved \*'
15621         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'
15622         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~
15623         $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'
15624
15625         # Both c and cxx compiler support -rpath directly
15626         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15627       fi
15628       hardcode_libdir_separator_F77=:
15629       ;;
15630
15631     solaris*)
15632       no_undefined_flag_F77=' -z text'
15633       if test "$GCC" = yes; then
15634         wlarc='${wl}'
15635         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15636         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15637           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15638       else
15639         wlarc=''
15640         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15641         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15642         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15643       fi
15644       hardcode_libdir_flag_spec_F77='-R$libdir'
15645       hardcode_shlibpath_var_F77=no
15646       case $host_os in
15647       solaris2.[0-5] | solaris2.[0-5].*) ;;
15648       *)
15649         # The compiler driver will combine and reorder linker options,
15650         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15651         # but is careful enough not to reorder.
15652         # Supported since Solaris 2.6 (maybe 2.5.1?)
15653         if test "$GCC" = yes; then
15654           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15655         else
15656           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15657         fi
15658         ;;
15659       esac
15660       link_all_deplibs_F77=yes
15661       ;;
15662
15663     sunos4*)
15664       if test "x$host_vendor" = xsequent; then
15665         # Use $CC to link under sequent, because it throws in some extra .o
15666         # files that make .init and .fini sections work.
15667         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15668       else
15669         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15670       fi
15671       hardcode_libdir_flag_spec_F77='-L$libdir'
15672       hardcode_direct_F77=yes
15673       hardcode_minus_L_F77=yes
15674       hardcode_shlibpath_var_F77=no
15675       ;;
15676
15677     sysv4)
15678       case $host_vendor in
15679         sni)
15680           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15681           hardcode_direct_F77=yes # is this really true???
15682         ;;
15683         siemens)
15684           ## LD is ld it makes a PLAMLIB
15685           ## CC just makes a GrossModule.
15686           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15687           reload_cmds_F77='$CC -r -o $output$reload_objs'
15688           hardcode_direct_F77=no
15689         ;;
15690         motorola)
15691           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15692           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15693         ;;
15694       esac
15695       runpath_var='LD_RUN_PATH'
15696       hardcode_shlibpath_var_F77=no
15697       ;;
15698
15699     sysv4.3*)
15700       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15701       hardcode_shlibpath_var_F77=no
15702       export_dynamic_flag_spec_F77='-Bexport'
15703       ;;
15704
15705     sysv4*MP*)
15706       if test -d /usr/nec; then
15707         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15708         hardcode_shlibpath_var_F77=no
15709         runpath_var=LD_RUN_PATH
15710         hardcode_runpath_var=yes
15711         ld_shlibs_F77=yes
15712       fi
15713       ;;
15714
15715     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15716       no_undefined_flag_F77='${wl}-z,text'
15717       archive_cmds_need_lc_F77=no
15718       hardcode_shlibpath_var_F77=no
15719       runpath_var='LD_RUN_PATH'
15720
15721       if test "$GCC" = yes; then
15722         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15723         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15724       else
15725         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15726         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15727       fi
15728       ;;
15729
15730     sysv5* | sco3.2v5* | sco5v6*)
15731       # Note: We can NOT use -z defs as we might desire, because we do not
15732       # link with -lc, and that would cause any symbols used from libc to
15733       # always be unresolved, which means just about no library would
15734       # ever link correctly.  If we're not using GNU ld we use -z text
15735       # though, which does catch some bad symbols but isn't as heavy-handed
15736       # as -z defs.
15737       no_undefined_flag_F77='${wl}-z,text'
15738       allow_undefined_flag_F77='${wl}-z,nodefs'
15739       archive_cmds_need_lc_F77=no
15740       hardcode_shlibpath_var_F77=no
15741       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15742       hardcode_libdir_separator_F77=':'
15743       link_all_deplibs_F77=yes
15744       export_dynamic_flag_spec_F77='${wl}-Bexport'
15745       runpath_var='LD_RUN_PATH'
15746
15747       if test "$GCC" = yes; then
15748         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15749         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15750       else
15751         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15752         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15753       fi
15754       ;;
15755
15756     uts4*)
15757       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15758       hardcode_libdir_flag_spec_F77='-L$libdir'
15759       hardcode_shlibpath_var_F77=no
15760       ;;
15761
15762     *)
15763       ld_shlibs_F77=no
15764       ;;
15765     esac
15766   fi
15767
15768 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15769 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15770 test "$ld_shlibs_F77" = no && can_build_shared=no
15771
15772 #
15773 # Do we need to explicitly link libc?
15774 #
15775 case "x$archive_cmds_need_lc_F77" in
15776 x|xyes)
15777   # Assume -lc should be added
15778   archive_cmds_need_lc_F77=yes
15779
15780   if test "$enable_shared" = yes && test "$GCC" = yes; then
15781     case $archive_cmds_F77 in
15782     *'~'*)
15783       # FIXME: we may have to deal with multi-command sequences.
15784       ;;
15785     '$CC '*)
15786       # Test whether the compiler implicitly links with -lc since on some
15787       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15788       # to ld, don't add -lc before -lgcc.
15789       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15790 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15791       $rm conftest*
15792       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15793
15794       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15795   (eval $ac_compile) 2>&5
15796   ac_status=$?
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); } 2>conftest.err; then
15799         soname=conftest
15800         lib=conftest
15801         libobjs=conftest.$ac_objext
15802         deplibs=
15803         wl=$lt_prog_compiler_wl_F77
15804         pic_flag=$lt_prog_compiler_pic_F77
15805         compiler_flags=-v
15806         linker_flags=-v
15807         verstring=
15808         output_objdir=.
15809         libname=conftest
15810         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15811         allow_undefined_flag_F77=
15812         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15813   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15814   ac_status=$?
15815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816   (exit $ac_status); }
15817         then
15818           archive_cmds_need_lc_F77=no
15819         else
15820           archive_cmds_need_lc_F77=yes
15821         fi
15822         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15823       else
15824         cat conftest.err 1>&5
15825       fi
15826       $rm conftest*
15827       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15828 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15829       ;;
15830     esac
15831   fi
15832   ;;
15833 esac
15834
15835 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15836 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15837 library_names_spec=
15838 libname_spec='lib$name'
15839 soname_spec=
15840 shrext_cmds=".so"
15841 postinstall_cmds=
15842 postuninstall_cmds=
15843 finish_cmds=
15844 finish_eval=
15845 shlibpath_var=
15846 shlibpath_overrides_runpath=unknown
15847 version_type=none
15848 dynamic_linker="$host_os ld.so"
15849 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15850
15851 need_lib_prefix=unknown
15852 hardcode_into_libs=no
15853
15854 # when you set need_version to no, make sure it does not cause -set_version
15855 # flags to be left without arguments
15856 need_version=unknown
15857
15858 case $host_os in
15859 aix3*)
15860   version_type=linux
15861   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15862   shlibpath_var=LIBPATH
15863
15864   # AIX 3 has no versioning support, so we append a major version to the name.
15865   soname_spec='${libname}${release}${shared_ext}$major'
15866   ;;
15867
15868 aix[4-9]*)
15869   version_type=linux
15870   need_lib_prefix=no
15871   need_version=no
15872   hardcode_into_libs=yes
15873   if test "$host_cpu" = ia64; then
15874     # AIX 5 supports IA64
15875     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15876     shlibpath_var=LD_LIBRARY_PATH
15877   else
15878     # With GCC up to 2.95.x, collect2 would create an import file
15879     # for dependence libraries.  The import file would start with
15880     # the line `#! .'.  This would cause the generated library to
15881     # depend on `.', always an invalid library.  This was fixed in
15882     # development snapshots of GCC prior to 3.0.
15883     case $host_os in
15884       aix4 | aix4.[01] | aix4.[01].*)
15885       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15886            echo ' yes '
15887            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15888         :
15889       else
15890         can_build_shared=no
15891       fi
15892       ;;
15893     esac
15894     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15895     # soname into executable. Probably we can add versioning support to
15896     # collect2, so additional links can be useful in future.
15897     if test "$aix_use_runtimelinking" = yes; then
15898       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15899       # instead of lib<name>.a to let people know that these are not
15900       # typical AIX shared libraries.
15901       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15902     else
15903       # We preserve .a as extension for shared libraries through AIX4.2
15904       # and later when we are not doing run time linking.
15905       library_names_spec='${libname}${release}.a $libname.a'
15906       soname_spec='${libname}${release}${shared_ext}$major'
15907     fi
15908     shlibpath_var=LIBPATH
15909   fi
15910   ;;
15911
15912 amigaos*)
15913   library_names_spec='$libname.ixlibrary $libname.a'
15914   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15915   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'
15916   ;;
15917
15918 beos*)
15919   library_names_spec='${libname}${shared_ext}'
15920   dynamic_linker="$host_os ld.so"
15921   shlibpath_var=LIBRARY_PATH
15922   ;;
15923
15924 bsdi[45]*)
15925   version_type=linux
15926   need_version=no
15927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15928   soname_spec='${libname}${release}${shared_ext}$major'
15929   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15930   shlibpath_var=LD_LIBRARY_PATH
15931   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15932   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15933   # the default ld.so.conf also contains /usr/contrib/lib and
15934   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15935   # libtool to hard-code these into programs
15936   ;;
15937
15938 cygwin* | mingw* | pw32*)
15939   version_type=windows
15940   shrext_cmds=".dll"
15941   need_version=no
15942   need_lib_prefix=no
15943
15944   case $GCC,$host_os in
15945   yes,cygwin* | yes,mingw* | yes,pw32*)
15946     library_names_spec='$libname.dll.a'
15947     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15948     postinstall_cmds='base_file=`basename \${file}`~
15949       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15950       dldir=$destdir/`dirname \$dlpath`~
15951       test -d \$dldir || mkdir -p \$dldir~
15952       $install_prog $dir/$dlname \$dldir/$dlname~
15953       chmod a+x \$dldir/$dlname'
15954     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15955       dlpath=$dir/\$dldll~
15956        $rm \$dlpath'
15957     shlibpath_overrides_runpath=yes
15958
15959     case $host_os in
15960     cygwin*)
15961       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15962       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15963       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15964       ;;
15965     mingw*)
15966       # MinGW DLLs use traditional 'lib' prefix
15967       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15968       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15969       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15970         # It is most probably a Windows format PATH printed by
15971         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15972         # path with ; separators, and with drive letters. We can handle the
15973         # drive letters (cygwin fileutils understands them), so leave them,
15974         # especially as we might pass files found there to a mingw objdump,
15975         # which wouldn't understand a cygwinified path. Ahh.
15976         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15977       else
15978         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15979       fi
15980       ;;
15981     pw32*)
15982       # pw32 DLLs use 'pw' prefix rather than 'lib'
15983       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15984       ;;
15985     esac
15986     ;;
15987
15988   *)
15989     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15990     ;;
15991   esac
15992   dynamic_linker='Win32 ld.exe'
15993   # FIXME: first we should search . and the directory the executable is in
15994   shlibpath_var=PATH
15995   ;;
15996
15997 darwin* | rhapsody*)
15998   dynamic_linker="$host_os dyld"
15999   version_type=darwin
16000   need_lib_prefix=no
16001   need_version=no
16002   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16003   soname_spec='${libname}${release}${major}$shared_ext'
16004   shlibpath_overrides_runpath=yes
16005   shlibpath_var=DYLD_LIBRARY_PATH
16006   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16007
16008   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16009   ;;
16010
16011 dgux*)
16012   version_type=linux
16013   need_lib_prefix=no
16014   need_version=no
16015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16016   soname_spec='${libname}${release}${shared_ext}$major'
16017   shlibpath_var=LD_LIBRARY_PATH
16018   ;;
16019
16020 freebsd1*)
16021   dynamic_linker=no
16022   ;;
16023
16024 freebsd* | dragonfly*)
16025   # DragonFly does not have aout.  When/if they implement a new
16026   # versioning mechanism, adjust this.
16027   if test -x /usr/bin/objformat; then
16028     objformat=`/usr/bin/objformat`
16029   else
16030     case $host_os in
16031     freebsd[123]*) objformat=aout ;;
16032     *) objformat=elf ;;
16033     esac
16034   fi
16035   version_type=freebsd-$objformat
16036   case $version_type in
16037     freebsd-elf*)
16038       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16039       need_version=no
16040       need_lib_prefix=no
16041       ;;
16042     freebsd-*)
16043       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16044       need_version=yes
16045       ;;
16046   esac
16047   shlibpath_var=LD_LIBRARY_PATH
16048   case $host_os in
16049   freebsd2*)
16050     shlibpath_overrides_runpath=yes
16051     ;;
16052   freebsd3.[01]* | freebsdelf3.[01]*)
16053     shlibpath_overrides_runpath=yes
16054     hardcode_into_libs=yes
16055     ;;
16056   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16057   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16058     shlibpath_overrides_runpath=no
16059     hardcode_into_libs=yes
16060     ;;
16061   *) # from 4.6 on, and DragonFly
16062     shlibpath_overrides_runpath=yes
16063     hardcode_into_libs=yes
16064     ;;
16065   esac
16066   ;;
16067
16068 gnu*)
16069   version_type=linux
16070   need_lib_prefix=no
16071   need_version=no
16072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16073   soname_spec='${libname}${release}${shared_ext}$major'
16074   shlibpath_var=LD_LIBRARY_PATH
16075   hardcode_into_libs=yes
16076   ;;
16077
16078 hpux9* | hpux10* | hpux11*)
16079   # Give a soname corresponding to the major version so that dld.sl refuses to
16080   # link against other versions.
16081   version_type=sunos
16082   need_lib_prefix=no
16083   need_version=no
16084   case $host_cpu in
16085   ia64*)
16086     shrext_cmds='.so'
16087     hardcode_into_libs=yes
16088     dynamic_linker="$host_os dld.so"
16089     shlibpath_var=LD_LIBRARY_PATH
16090     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16091     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16092     soname_spec='${libname}${release}${shared_ext}$major'
16093     if test "X$HPUX_IA64_MODE" = X32; then
16094       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16095     else
16096       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16097     fi
16098     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16099     ;;
16100    hppa*64*)
16101      shrext_cmds='.sl'
16102      hardcode_into_libs=yes
16103      dynamic_linker="$host_os dld.sl"
16104      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16105      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16106      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16107      soname_spec='${libname}${release}${shared_ext}$major'
16108      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16109      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16110      ;;
16111    *)
16112     shrext_cmds='.sl'
16113     dynamic_linker="$host_os dld.sl"
16114     shlibpath_var=SHLIB_PATH
16115     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16116     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117     soname_spec='${libname}${release}${shared_ext}$major'
16118     ;;
16119   esac
16120   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16121   postinstall_cmds='chmod 555 $lib'
16122   ;;
16123
16124 interix[3-9]*)
16125   version_type=linux
16126   need_lib_prefix=no
16127   need_version=no
16128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16129   soname_spec='${libname}${release}${shared_ext}$major'
16130   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16131   shlibpath_var=LD_LIBRARY_PATH
16132   shlibpath_overrides_runpath=no
16133   hardcode_into_libs=yes
16134   ;;
16135
16136 irix5* | irix6* | nonstopux*)
16137   case $host_os in
16138     nonstopux*) version_type=nonstopux ;;
16139     *)
16140         if test "$lt_cv_prog_gnu_ld" = yes; then
16141                 version_type=linux
16142         else
16143                 version_type=irix
16144         fi ;;
16145   esac
16146   need_lib_prefix=no
16147   need_version=no
16148   soname_spec='${libname}${release}${shared_ext}$major'
16149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16150   case $host_os in
16151   irix5* | nonstopux*)
16152     libsuff= shlibsuff=
16153     ;;
16154   *)
16155     case $LD in # libtool.m4 will add one of these switches to LD
16156     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16157       libsuff= shlibsuff= libmagic=32-bit;;
16158     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16159       libsuff=32 shlibsuff=N32 libmagic=N32;;
16160     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16161       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16162     *) libsuff= shlibsuff= libmagic=never-match;;
16163     esac
16164     ;;
16165   esac
16166   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16167   shlibpath_overrides_runpath=no
16168   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16169   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16170   hardcode_into_libs=yes
16171   ;;
16172
16173 # No shared lib support for Linux oldld, aout, or coff.
16174 linux*oldld* | linux*aout* | linux*coff*)
16175   dynamic_linker=no
16176   ;;
16177
16178 # This must be Linux ELF.
16179 linux* | k*bsd*-gnu)
16180   version_type=linux
16181   need_lib_prefix=no
16182   need_version=no
16183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16184   soname_spec='${libname}${release}${shared_ext}$major'
16185   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16186   shlibpath_var=LD_LIBRARY_PATH
16187   shlibpath_overrides_runpath=no
16188   # This implies no fast_install, which is unacceptable.
16189   # Some rework will be needed to allow for fast_install
16190   # before this can be enabled.
16191   hardcode_into_libs=yes
16192
16193   # Append ld.so.conf contents to the search path
16194   if test -f /etc/ld.so.conf; then
16195     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16196     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16197   fi
16198
16199   # We used to test for /lib/ld.so.1 and disable shared libraries on
16200   # powerpc, because MkLinux only supported shared libraries with the
16201   # GNU dynamic linker.  Since this was broken with cross compilers,
16202   # most powerpc-linux boxes support dynamic linking these days and
16203   # people can always --disable-shared, the test was removed, and we
16204   # assume the GNU/Linux dynamic linker is in use.
16205   dynamic_linker='GNU/Linux ld.so'
16206   ;;
16207
16208 netbsdelf*-gnu)
16209   version_type=linux
16210   need_lib_prefix=no
16211   need_version=no
16212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16213   soname_spec='${libname}${release}${shared_ext}$major'
16214   shlibpath_var=LD_LIBRARY_PATH
16215   shlibpath_overrides_runpath=no
16216   hardcode_into_libs=yes
16217   dynamic_linker='NetBSD ld.elf_so'
16218   ;;
16219
16220 netbsd*)
16221   version_type=sunos
16222   need_lib_prefix=no
16223   need_version=no
16224   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16225     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16226     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16227     dynamic_linker='NetBSD (a.out) ld.so'
16228   else
16229     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16230     soname_spec='${libname}${release}${shared_ext}$major'
16231     dynamic_linker='NetBSD ld.elf_so'
16232   fi
16233   shlibpath_var=LD_LIBRARY_PATH
16234   shlibpath_overrides_runpath=yes
16235   hardcode_into_libs=yes
16236   ;;
16237
16238 newsos6)
16239   version_type=linux
16240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16241   shlibpath_var=LD_LIBRARY_PATH
16242   shlibpath_overrides_runpath=yes
16243   ;;
16244
16245 nto-qnx*)
16246   version_type=linux
16247   need_lib_prefix=no
16248   need_version=no
16249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16250   soname_spec='${libname}${release}${shared_ext}$major'
16251   shlibpath_var=LD_LIBRARY_PATH
16252   shlibpath_overrides_runpath=yes
16253   ;;
16254
16255 openbsd*)
16256   version_type=sunos
16257   sys_lib_dlsearch_path_spec="/usr/lib"
16258   need_lib_prefix=no
16259   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16260   case $host_os in
16261     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16262     *)                         need_version=no  ;;
16263   esac
16264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16265   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16266   shlibpath_var=LD_LIBRARY_PATH
16267   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16268     case $host_os in
16269       openbsd2.[89] | openbsd2.[89].*)
16270         shlibpath_overrides_runpath=no
16271         ;;
16272       *)
16273         shlibpath_overrides_runpath=yes
16274         ;;
16275       esac
16276   else
16277     shlibpath_overrides_runpath=yes
16278   fi
16279   ;;
16280
16281 os2*)
16282   libname_spec='$name'
16283   shrext_cmds=".dll"
16284   need_lib_prefix=no
16285   library_names_spec='$libname${shared_ext} $libname.a'
16286   dynamic_linker='OS/2 ld.exe'
16287   shlibpath_var=LIBPATH
16288   ;;
16289
16290 osf3* | osf4* | osf5*)
16291   version_type=osf
16292   need_lib_prefix=no
16293   need_version=no
16294   soname_spec='${libname}${release}${shared_ext}$major'
16295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16296   shlibpath_var=LD_LIBRARY_PATH
16297   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16298   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16299   ;;
16300
16301 rdos*)
16302   dynamic_linker=no
16303   ;;
16304
16305 solaris*)
16306   version_type=linux
16307   need_lib_prefix=no
16308   need_version=no
16309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16310   soname_spec='${libname}${release}${shared_ext}$major'
16311   shlibpath_var=LD_LIBRARY_PATH
16312   shlibpath_overrides_runpath=yes
16313   hardcode_into_libs=yes
16314   # ldd complains unless libraries are executable
16315   postinstall_cmds='chmod +x $lib'
16316   ;;
16317
16318 sunos4*)
16319   version_type=sunos
16320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16321   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16322   shlibpath_var=LD_LIBRARY_PATH
16323   shlibpath_overrides_runpath=yes
16324   if test "$with_gnu_ld" = yes; then
16325     need_lib_prefix=no
16326   fi
16327   need_version=yes
16328   ;;
16329
16330 sysv4 | sysv4.3*)
16331   version_type=linux
16332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16333   soname_spec='${libname}${release}${shared_ext}$major'
16334   shlibpath_var=LD_LIBRARY_PATH
16335   case $host_vendor in
16336     sni)
16337       shlibpath_overrides_runpath=no
16338       need_lib_prefix=no
16339       export_dynamic_flag_spec='${wl}-Blargedynsym'
16340       runpath_var=LD_RUN_PATH
16341       ;;
16342     siemens)
16343       need_lib_prefix=no
16344       ;;
16345     motorola)
16346       need_lib_prefix=no
16347       need_version=no
16348       shlibpath_overrides_runpath=no
16349       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16350       ;;
16351   esac
16352   ;;
16353
16354 sysv4*MP*)
16355   if test -d /usr/nec ;then
16356     version_type=linux
16357     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16358     soname_spec='$libname${shared_ext}.$major'
16359     shlibpath_var=LD_LIBRARY_PATH
16360   fi
16361   ;;
16362
16363 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16364   version_type=freebsd-elf
16365   need_lib_prefix=no
16366   need_version=no
16367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16368   soname_spec='${libname}${release}${shared_ext}$major'
16369   shlibpath_var=LD_LIBRARY_PATH
16370   hardcode_into_libs=yes
16371   if test "$with_gnu_ld" = yes; then
16372     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16373     shlibpath_overrides_runpath=no
16374   else
16375     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16376     shlibpath_overrides_runpath=yes
16377     case $host_os in
16378       sco3.2v5*)
16379         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16380         ;;
16381     esac
16382   fi
16383   sys_lib_dlsearch_path_spec='/usr/lib'
16384   ;;
16385
16386 uts4*)
16387   version_type=linux
16388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16389   soname_spec='${libname}${release}${shared_ext}$major'
16390   shlibpath_var=LD_LIBRARY_PATH
16391   ;;
16392
16393 *)
16394   dynamic_linker=no
16395   ;;
16396 esac
16397 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16398 echo "${ECHO_T}$dynamic_linker" >&6; }
16399 test "$dynamic_linker" = no && can_build_shared=no
16400
16401 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16402   echo $ECHO_N "(cached) $ECHO_C" >&6
16403 else
16404   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16405 fi
16406
16407 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16408 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16409   echo $ECHO_N "(cached) $ECHO_C" >&6
16410 else
16411   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16412 fi
16413
16414 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16415
16416 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16417 if test "$GCC" = yes; then
16418   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16419 fi
16420
16421 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16422 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16423 hardcode_action_F77=
16424 if test -n "$hardcode_libdir_flag_spec_F77" || \
16425    test -n "$runpath_var_F77" || \
16426    test "X$hardcode_automatic_F77" = "Xyes" ; then
16427
16428   # We can hardcode non-existant directories.
16429   if test "$hardcode_direct_F77" != no &&
16430      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16431      # have to relink, otherwise we might link with an installed library
16432      # when we should be linking with a yet-to-be-installed one
16433      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16434      test "$hardcode_minus_L_F77" != no; then
16435     # Linking always hardcodes the temporary library directory.
16436     hardcode_action_F77=relink
16437   else
16438     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16439     hardcode_action_F77=immediate
16440   fi
16441 else
16442   # We cannot hardcode anything, or else we can only hardcode existing
16443   # directories.
16444   hardcode_action_F77=unsupported
16445 fi
16446 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16447 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16448
16449 if test "$hardcode_action_F77" = relink; then
16450   # Fast installation is not supported
16451   enable_fast_install=no
16452 elif test "$shlibpath_overrides_runpath" = yes ||
16453      test "$enable_shared" = no; then
16454   # Fast installation is not necessary
16455   enable_fast_install=needless
16456 fi
16457
16458
16459 # The else clause should only fire when bootstrapping the
16460 # libtool distribution, otherwise you forgot to ship ltmain.sh
16461 # with your package, and you will get complaints that there are
16462 # no rules to generate ltmain.sh.
16463 if test -f "$ltmain"; then
16464   # See if we are running on zsh, and set the options which allow our commands through
16465   # without removal of \ escapes.
16466   if test -n "${ZSH_VERSION+set}" ; then
16467     setopt NO_GLOB_SUBST
16468   fi
16469   # Now quote all the things that may contain metacharacters while being
16470   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16471   # variables and quote the copies for generation of the libtool script.
16472   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16473     SED SHELL STRIP \
16474     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16475     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16476     deplibs_check_method reload_flag reload_cmds need_locks \
16477     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16478     lt_cv_sys_global_symbol_to_c_name_address \
16479     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16480     old_postinstall_cmds old_postuninstall_cmds \
16481     compiler_F77 \
16482     CC_F77 \
16483     LD_F77 \
16484     lt_prog_compiler_wl_F77 \
16485     lt_prog_compiler_pic_F77 \
16486     lt_prog_compiler_static_F77 \
16487     lt_prog_compiler_no_builtin_flag_F77 \
16488     export_dynamic_flag_spec_F77 \
16489     thread_safe_flag_spec_F77 \
16490     whole_archive_flag_spec_F77 \
16491     enable_shared_with_static_runtimes_F77 \
16492     old_archive_cmds_F77 \
16493     old_archive_from_new_cmds_F77 \
16494     predep_objects_F77 \
16495     postdep_objects_F77 \
16496     predeps_F77 \
16497     postdeps_F77 \
16498     compiler_lib_search_path_F77 \
16499     compiler_lib_search_dirs_F77 \
16500     archive_cmds_F77 \
16501     archive_expsym_cmds_F77 \
16502     postinstall_cmds_F77 \
16503     postuninstall_cmds_F77 \
16504     old_archive_from_expsyms_cmds_F77 \
16505     allow_undefined_flag_F77 \
16506     no_undefined_flag_F77 \
16507     export_symbols_cmds_F77 \
16508     hardcode_libdir_flag_spec_F77 \
16509     hardcode_libdir_flag_spec_ld_F77 \
16510     hardcode_libdir_separator_F77 \
16511     hardcode_automatic_F77 \
16512     module_cmds_F77 \
16513     module_expsym_cmds_F77 \
16514     lt_cv_prog_compiler_c_o_F77 \
16515     fix_srcfile_path_F77 \
16516     exclude_expsyms_F77 \
16517     include_expsyms_F77; do
16518
16519     case $var in
16520     old_archive_cmds_F77 | \
16521     old_archive_from_new_cmds_F77 | \
16522     archive_cmds_F77 | \
16523     archive_expsym_cmds_F77 | \
16524     module_cmds_F77 | \
16525     module_expsym_cmds_F77 | \
16526     old_archive_from_expsyms_cmds_F77 | \
16527     export_symbols_cmds_F77 | \
16528     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16529     postinstall_cmds | postuninstall_cmds | \
16530     old_postinstall_cmds | old_postuninstall_cmds | \
16531     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16532       # Double-quote double-evaled strings.
16533       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16534       ;;
16535     *)
16536       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16537       ;;
16538     esac
16539   done
16540
16541   case $lt_echo in
16542   *'\$0 --fallback-echo"')
16543     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16544     ;;
16545   esac
16546
16547 cfgfile="$ofile"
16548
16549   cat <<__EOF__ >> "$cfgfile"
16550 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16551
16552 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16553
16554 # Shell to use when invoking shell scripts.
16555 SHELL=$lt_SHELL
16556
16557 # Whether or not to build shared libraries.
16558 build_libtool_libs=$enable_shared
16559
16560 # Whether or not to build static libraries.
16561 build_old_libs=$enable_static
16562
16563 # Whether or not to add -lc for building shared libraries.
16564 build_libtool_need_lc=$archive_cmds_need_lc_F77
16565
16566 # Whether or not to disallow shared libs when runtime libs are static
16567 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16568
16569 # Whether or not to optimize for fast installation.
16570 fast_install=$enable_fast_install
16571
16572 # The host system.
16573 host_alias=$host_alias
16574 host=$host
16575 host_os=$host_os
16576
16577 # The build system.
16578 build_alias=$build_alias
16579 build=$build
16580 build_os=$build_os
16581
16582 # An echo program that does not interpret backslashes.
16583 echo=$lt_echo
16584
16585 # The archiver.
16586 AR=$lt_AR
16587 AR_FLAGS=$lt_AR_FLAGS
16588
16589 # A C compiler.
16590 LTCC=$lt_LTCC
16591
16592 # LTCC compiler flags.
16593 LTCFLAGS=$lt_LTCFLAGS
16594
16595 # A language-specific compiler.
16596 CC=$lt_compiler_F77
16597
16598 # Is the compiler the GNU C compiler?
16599 with_gcc=$GCC_F77
16600
16601 # An ERE matcher.
16602 EGREP=$lt_EGREP
16603
16604 # The linker used to build libraries.
16605 LD=$lt_LD_F77
16606
16607 # Whether we need hard or soft links.
16608 LN_S=$lt_LN_S
16609
16610 # A BSD-compatible nm program.
16611 NM=$lt_NM
16612
16613 # A symbol stripping program
16614 STRIP=$lt_STRIP
16615
16616 # Used to examine libraries when file_magic_cmd begins "file"
16617 MAGIC_CMD=$MAGIC_CMD
16618
16619 # Used on cygwin: DLL creation program.
16620 DLLTOOL="$DLLTOOL"
16621
16622 # Used on cygwin: object dumper.
16623 OBJDUMP="$OBJDUMP"
16624
16625 # Used on cygwin: assembler.
16626 AS="$AS"
16627
16628 # The name of the directory that contains temporary libtool files.
16629 objdir=$objdir
16630
16631 # How to create reloadable object files.
16632 reload_flag=$lt_reload_flag
16633 reload_cmds=$lt_reload_cmds
16634
16635 # How to pass a linker flag through the compiler.
16636 wl=$lt_lt_prog_compiler_wl_F77
16637
16638 # Object file suffix (normally "o").
16639 objext="$ac_objext"
16640
16641 # Old archive suffix (normally "a").
16642 libext="$libext"
16643
16644 # Shared library suffix (normally ".so").
16645 shrext_cmds='$shrext_cmds'
16646
16647 # Executable file suffix (normally "").
16648 exeext="$exeext"
16649
16650 # Additional compiler flags for building library objects.
16651 pic_flag=$lt_lt_prog_compiler_pic_F77
16652 pic_mode=$pic_mode
16653
16654 # What is the maximum length of a command?
16655 max_cmd_len=$lt_cv_sys_max_cmd_len
16656
16657 # Does compiler simultaneously support -c and -o options?
16658 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16659
16660 # Must we lock files when doing compilation?
16661 need_locks=$lt_need_locks
16662
16663 # Do we need the lib prefix for modules?
16664 need_lib_prefix=$need_lib_prefix
16665
16666 # Do we need a version for libraries?
16667 need_version=$need_version
16668
16669 # Whether dlopen is supported.
16670 dlopen_support=$enable_dlopen
16671
16672 # Whether dlopen of programs is supported.
16673 dlopen_self=$enable_dlopen_self
16674
16675 # Whether dlopen of statically linked programs is supported.
16676 dlopen_self_static=$enable_dlopen_self_static
16677
16678 # Compiler flag to prevent dynamic linking.
16679 link_static_flag=$lt_lt_prog_compiler_static_F77
16680
16681 # Compiler flag to turn off builtin functions.
16682 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16683
16684 # Compiler flag to allow reflexive dlopens.
16685 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16686
16687 # Compiler flag to generate shared objects directly from archives.
16688 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16689
16690 # Compiler flag to generate thread-safe objects.
16691 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16692
16693 # Library versioning type.
16694 version_type=$version_type
16695
16696 # Format of library name prefix.
16697 libname_spec=$lt_libname_spec
16698
16699 # List of archive names.  First name is the real one, the rest are links.
16700 # The last name is the one that the linker finds with -lNAME.
16701 library_names_spec=$lt_library_names_spec
16702
16703 # The coded name of the library, if different from the real name.
16704 soname_spec=$lt_soname_spec
16705
16706 # Commands used to build and install an old-style archive.
16707 RANLIB=$lt_RANLIB
16708 old_archive_cmds=$lt_old_archive_cmds_F77
16709 old_postinstall_cmds=$lt_old_postinstall_cmds
16710 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16711
16712 # Create an old-style archive from a shared archive.
16713 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16714
16715 # Create a temporary old-style archive to link instead of a shared archive.
16716 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16717
16718 # Commands used to build and install a shared archive.
16719 archive_cmds=$lt_archive_cmds_F77
16720 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16721 postinstall_cmds=$lt_postinstall_cmds
16722 postuninstall_cmds=$lt_postuninstall_cmds
16723
16724 # Commands used to build a loadable module (assumed same as above if empty)
16725 module_cmds=$lt_module_cmds_F77
16726 module_expsym_cmds=$lt_module_expsym_cmds_F77
16727
16728 # Commands to strip libraries.
16729 old_striplib=$lt_old_striplib
16730 striplib=$lt_striplib
16731
16732 # Dependencies to place before the objects being linked to create a
16733 # shared library.
16734 predep_objects=$lt_predep_objects_F77
16735
16736 # Dependencies to place after the objects being linked to create a
16737 # shared library.
16738 postdep_objects=$lt_postdep_objects_F77
16739
16740 # Dependencies to place before the objects being linked to create a
16741 # shared library.
16742 predeps=$lt_predeps_F77
16743
16744 # Dependencies to place after the objects being linked to create a
16745 # shared library.
16746 postdeps=$lt_postdeps_F77
16747
16748 # The directories searched by this compiler when creating a shared
16749 # library
16750 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16751
16752 # The library search path used internally by the compiler when linking
16753 # a shared library.
16754 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16755
16756 # Method to check whether dependent libraries are shared objects.
16757 deplibs_check_method=$lt_deplibs_check_method
16758
16759 # Command to use when deplibs_check_method == file_magic.
16760 file_magic_cmd=$lt_file_magic_cmd
16761
16762 # Flag that allows shared libraries with undefined symbols to be built.
16763 allow_undefined_flag=$lt_allow_undefined_flag_F77
16764
16765 # Flag that forces no undefined symbols.
16766 no_undefined_flag=$lt_no_undefined_flag_F77
16767
16768 # Commands used to finish a libtool library installation in a directory.
16769 finish_cmds=$lt_finish_cmds
16770
16771 # Same as above, but a single script fragment to be evaled but not shown.
16772 finish_eval=$lt_finish_eval
16773
16774 # Take the output of nm and produce a listing of raw symbols and C names.
16775 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16776
16777 # Transform the output of nm in a proper C declaration
16778 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16779
16780 # Transform the output of nm in a C name address pair
16781 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16782
16783 # This is the shared library runtime path variable.
16784 runpath_var=$runpath_var
16785
16786 # This is the shared library path variable.
16787 shlibpath_var=$shlibpath_var
16788
16789 # Is shlibpath searched before the hard-coded library search path?
16790 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16791
16792 # How to hardcode a shared library path into an executable.
16793 hardcode_action=$hardcode_action_F77
16794
16795 # Whether we should hardcode library paths into libraries.
16796 hardcode_into_libs=$hardcode_into_libs
16797
16798 # Flag to hardcode \$libdir into a binary during linking.
16799 # This must work even if \$libdir does not exist.
16800 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16801
16802 # If ld is used when linking, flag to hardcode \$libdir into
16803 # a binary during linking. This must work even if \$libdir does
16804 # not exist.
16805 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16806
16807 # Whether we need a single -rpath flag with a separated argument.
16808 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16809
16810 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16811 # resulting binary.
16812 hardcode_direct=$hardcode_direct_F77
16813
16814 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16815 # resulting binary.
16816 hardcode_minus_L=$hardcode_minus_L_F77
16817
16818 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16819 # the resulting binary.
16820 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16821
16822 # Set to yes if building a shared library automatically hardcodes DIR into the library
16823 # and all subsequent libraries and executables linked against it.
16824 hardcode_automatic=$hardcode_automatic_F77
16825
16826 # Variables whose values should be saved in libtool wrapper scripts and
16827 # restored at relink time.
16828 variables_saved_for_relink="$variables_saved_for_relink"
16829
16830 # Whether libtool must link a program against all its dependency libraries.
16831 link_all_deplibs=$link_all_deplibs_F77
16832
16833 # Compile-time system search path for libraries
16834 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16835
16836 # Run-time system search path for libraries
16837 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16838
16839 # Fix the shell variable \$srcfile for the compiler.
16840 fix_srcfile_path=$lt_fix_srcfile_path
16841
16842 # Set to yes if exported symbols are required.
16843 always_export_symbols=$always_export_symbols_F77
16844
16845 # The commands to list exported symbols.
16846 export_symbols_cmds=$lt_export_symbols_cmds_F77
16847
16848 # The commands to extract the exported symbol list from a shared archive.
16849 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16850
16851 # Symbols that should not be listed in the preloaded symbols.
16852 exclude_expsyms=$lt_exclude_expsyms_F77
16853
16854 # Symbols that must always be exported.
16855 include_expsyms=$lt_include_expsyms_F77
16856
16857 # ### END LIBTOOL TAG CONFIG: $tagname
16858
16859 __EOF__
16860
16861
16862 else
16863   # If there is no Makefile yet, we rely on a make rule to execute
16864   # `config.status --recheck' to rerun these tests and create the
16865   # libtool script then.
16866   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16867   if test -f "$ltmain_in"; then
16868     test -f Makefile && make "$ltmain"
16869   fi
16870 fi
16871
16872
16873 ac_ext=c
16874 ac_cpp='$CPP $CPPFLAGS'
16875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16878
16879 CC="$lt_save_CC"
16880
16881         else
16882           tagname=""
16883         fi
16884         ;;
16885
16886       GCJ)
16887         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16888
16889
16890 # Source file extension for Java test sources.
16891 ac_ext=java
16892
16893 # Object file extension for compiled Java test sources.
16894 objext=o
16895 objext_GCJ=$objext
16896
16897 # Code to be used in simple compile tests
16898 lt_simple_compile_test_code="class foo {}"
16899
16900 # Code to be used in simple link tests
16901 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16902
16903 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16904
16905 # If no C compiler was specified, use CC.
16906 LTCC=${LTCC-"$CC"}
16907
16908 # If no C compiler flags were specified, use CFLAGS.
16909 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16910
16911 # Allow CC to be a program name with arguments.
16912 compiler=$CC
16913
16914
16915 # save warnings/boilerplate of simple test code
16916 ac_outfile=conftest.$ac_objext
16917 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16918 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16919 _lt_compiler_boilerplate=`cat conftest.err`
16920 $rm conftest*
16921
16922 ac_outfile=conftest.$ac_objext
16923 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16924 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16925 _lt_linker_boilerplate=`cat conftest.err`
16926 $rm -r conftest*
16927
16928
16929 # Allow CC to be a program name with arguments.
16930 lt_save_CC="$CC"
16931 CC=${GCJ-"gcj"}
16932 compiler=$CC
16933 compiler_GCJ=$CC
16934 for cc_temp in $compiler""; do
16935   case $cc_temp in
16936     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16937     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16938     \-*) ;;
16939     *) break;;
16940   esac
16941 done
16942 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16943
16944
16945 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16946 archive_cmds_need_lc_GCJ=no
16947
16948 old_archive_cmds_GCJ=$old_archive_cmds
16949
16950
16951 lt_prog_compiler_no_builtin_flag_GCJ=
16952
16953 if test "$GCC" = yes; then
16954   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16955
16956
16957 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16958 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16959 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16960   echo $ECHO_N "(cached) $ECHO_C" >&6
16961 else
16962   lt_cv_prog_compiler_rtti_exceptions=no
16963   ac_outfile=conftest.$ac_objext
16964    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16965    lt_compiler_flag="-fno-rtti -fno-exceptions"
16966    # Insert the option either (1) after the last *FLAGS variable, or
16967    # (2) before a word containing "conftest.", or (3) at the end.
16968    # Note that $ac_compile itself does not contain backslashes and begins
16969    # with a dollar sign (not a hyphen), so the echo should work correctly.
16970    # The option is referenced via a variable to avoid confusing sed.
16971    lt_compile=`echo "$ac_compile" | $SED \
16972    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16973    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16974    -e 's:$: $lt_compiler_flag:'`
16975    (eval echo "\"\$as_me:16975: $lt_compile\"" >&5)
16976    (eval "$lt_compile" 2>conftest.err)
16977    ac_status=$?
16978    cat conftest.err >&5
16979    echo "$as_me:16979: \$? = $ac_status" >&5
16980    if (exit $ac_status) && test -s "$ac_outfile"; then
16981      # The compiler can only warn and ignore the option if not recognized
16982      # So say no if there are warnings other than the usual output.
16983      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16984      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16985      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16986        lt_cv_prog_compiler_rtti_exceptions=yes
16987      fi
16988    fi
16989    $rm conftest*
16990
16991 fi
16992 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16993 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16994
16995 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16996     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16997 else
16998     :
16999 fi
17000
17001 fi
17002
17003 lt_prog_compiler_wl_GCJ=
17004 lt_prog_compiler_pic_GCJ=
17005 lt_prog_compiler_static_GCJ=
17006
17007 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17008 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17009
17010   if test "$GCC" = yes; then
17011     lt_prog_compiler_wl_GCJ='-Wl,'
17012     lt_prog_compiler_static_GCJ='-static'
17013
17014     case $host_os in
17015       aix*)
17016       # All AIX code is PIC.
17017       if test "$host_cpu" = ia64; then
17018         # AIX 5 now supports IA64 processor
17019         lt_prog_compiler_static_GCJ='-Bstatic'
17020       fi
17021       ;;
17022
17023     amigaos*)
17024       # FIXME: we need at least 68020 code to build shared libraries, but
17025       # adding the `-m68020' flag to GCC prevents building anything better,
17026       # like `-m68040'.
17027       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17028       ;;
17029
17030     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17031       # PIC is the default for these OSes.
17032       ;;
17033
17034     mingw* | cygwin* | pw32* | os2*)
17035       # This hack is so that the source file can tell whether it is being
17036       # built for inclusion in a dll (and should export symbols for example).
17037       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17038       # (--disable-auto-import) libraries
17039
17040       ;;
17041
17042     darwin* | rhapsody*)
17043       # PIC is the default on this platform
17044       # Common symbols not allowed in MH_DYLIB files
17045       lt_prog_compiler_pic_GCJ='-fno-common'
17046       ;;
17047
17048     interix[3-9]*)
17049       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17050       # Instead, we relocate shared libraries at runtime.
17051       ;;
17052
17053     msdosdjgpp*)
17054       # Just because we use GCC doesn't mean we suddenly get shared libraries
17055       # on systems that don't support them.
17056       lt_prog_compiler_can_build_shared_GCJ=no
17057       enable_shared=no
17058       ;;
17059
17060     sysv4*MP*)
17061       if test -d /usr/nec; then
17062         lt_prog_compiler_pic_GCJ=-Kconform_pic
17063       fi
17064       ;;
17065
17066     hpux*)
17067       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17068       # not for PA HP-UX.
17069       case $host_cpu in
17070       hppa*64*|ia64*)
17071         # +Z the default
17072         ;;
17073       *)
17074         lt_prog_compiler_pic_GCJ='-fPIC'
17075         ;;
17076       esac
17077       ;;
17078
17079     *)
17080       lt_prog_compiler_pic_GCJ='-fPIC'
17081       ;;
17082     esac
17083   else
17084     # PORTME Check for flag to pass linker flags through the system compiler.
17085     case $host_os in
17086     aix*)
17087       lt_prog_compiler_wl_GCJ='-Wl,'
17088       if test "$host_cpu" = ia64; then
17089         # AIX 5 now supports IA64 processor
17090         lt_prog_compiler_static_GCJ='-Bstatic'
17091       else
17092         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17093       fi
17094       ;;
17095       darwin*)
17096         # PIC is the default on this platform
17097         # Common symbols not allowed in MH_DYLIB files
17098        case $cc_basename in
17099          xlc*)
17100          lt_prog_compiler_pic_GCJ='-qnocommon'
17101          lt_prog_compiler_wl_GCJ='-Wl,'
17102          ;;
17103        esac
17104        ;;
17105
17106     mingw* | cygwin* | pw32* | os2*)
17107       # This hack is so that the source file can tell whether it is being
17108       # built for inclusion in a dll (and should export symbols for example).
17109
17110       ;;
17111
17112     hpux9* | hpux10* | hpux11*)
17113       lt_prog_compiler_wl_GCJ='-Wl,'
17114       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17115       # not for PA HP-UX.
17116       case $host_cpu in
17117       hppa*64*|ia64*)
17118         # +Z the default
17119         ;;
17120       *)
17121         lt_prog_compiler_pic_GCJ='+Z'
17122         ;;
17123       esac
17124       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17125       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17126       ;;
17127
17128     irix5* | irix6* | nonstopux*)
17129       lt_prog_compiler_wl_GCJ='-Wl,'
17130       # PIC (with -KPIC) is the default.
17131       lt_prog_compiler_static_GCJ='-non_shared'
17132       ;;
17133
17134     newsos6)
17135       lt_prog_compiler_pic_GCJ='-KPIC'
17136       lt_prog_compiler_static_GCJ='-Bstatic'
17137       ;;
17138
17139     linux* | k*bsd*-gnu)
17140       case $cc_basename in
17141       icc* | ecc*)
17142         lt_prog_compiler_wl_GCJ='-Wl,'
17143         lt_prog_compiler_pic_GCJ='-KPIC'
17144         lt_prog_compiler_static_GCJ='-static'
17145         ;;
17146       pgcc* | pgf77* | pgf90* | pgf95*)
17147         # Portland Group compilers (*not* the Pentium gcc compiler,
17148         # which looks to be a dead project)
17149         lt_prog_compiler_wl_GCJ='-Wl,'
17150         lt_prog_compiler_pic_GCJ='-fpic'
17151         lt_prog_compiler_static_GCJ='-Bstatic'
17152         ;;
17153       ccc*)
17154         lt_prog_compiler_wl_GCJ='-Wl,'
17155         # All Alpha code is PIC.
17156         lt_prog_compiler_static_GCJ='-non_shared'
17157         ;;
17158       *)
17159         case `$CC -V 2>&1 | sed 5q` in
17160         *Sun\ C*)
17161           # Sun C 5.9
17162           lt_prog_compiler_pic_GCJ='-KPIC'
17163           lt_prog_compiler_static_GCJ='-Bstatic'
17164           lt_prog_compiler_wl_GCJ='-Wl,'
17165           ;;
17166         *Sun\ F*)
17167           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17168           lt_prog_compiler_pic_GCJ='-KPIC'
17169           lt_prog_compiler_static_GCJ='-Bstatic'
17170           lt_prog_compiler_wl_GCJ=''
17171           ;;
17172         esac
17173         ;;
17174       esac
17175       ;;
17176
17177     osf3* | osf4* | osf5*)
17178       lt_prog_compiler_wl_GCJ='-Wl,'
17179       # All OSF/1 code is PIC.
17180       lt_prog_compiler_static_GCJ='-non_shared'
17181       ;;
17182
17183     rdos*)
17184       lt_prog_compiler_static_GCJ='-non_shared'
17185       ;;
17186
17187     solaris*)
17188       lt_prog_compiler_pic_GCJ='-KPIC'
17189       lt_prog_compiler_static_GCJ='-Bstatic'
17190       case $cc_basename in
17191       f77* | f90* | f95*)
17192         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17193       *)
17194         lt_prog_compiler_wl_GCJ='-Wl,';;
17195       esac
17196       ;;
17197
17198     sunos4*)
17199       lt_prog_compiler_wl_GCJ='-Qoption ld '
17200       lt_prog_compiler_pic_GCJ='-PIC'
17201       lt_prog_compiler_static_GCJ='-Bstatic'
17202       ;;
17203
17204     sysv4 | sysv4.2uw2* | sysv4.3*)
17205       lt_prog_compiler_wl_GCJ='-Wl,'
17206       lt_prog_compiler_pic_GCJ='-KPIC'
17207       lt_prog_compiler_static_GCJ='-Bstatic'
17208       ;;
17209
17210     sysv4*MP*)
17211       if test -d /usr/nec ;then
17212         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17213         lt_prog_compiler_static_GCJ='-Bstatic'
17214       fi
17215       ;;
17216
17217     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17218       lt_prog_compiler_wl_GCJ='-Wl,'
17219       lt_prog_compiler_pic_GCJ='-KPIC'
17220       lt_prog_compiler_static_GCJ='-Bstatic'
17221       ;;
17222
17223     unicos*)
17224       lt_prog_compiler_wl_GCJ='-Wl,'
17225       lt_prog_compiler_can_build_shared_GCJ=no
17226       ;;
17227
17228     uts4*)
17229       lt_prog_compiler_pic_GCJ='-pic'
17230       lt_prog_compiler_static_GCJ='-Bstatic'
17231       ;;
17232
17233     *)
17234       lt_prog_compiler_can_build_shared_GCJ=no
17235       ;;
17236     esac
17237   fi
17238
17239 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17240 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17241
17242 #
17243 # Check to make sure the PIC flag actually works.
17244 #
17245 if test -n "$lt_prog_compiler_pic_GCJ"; then
17246
17247 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17248 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17249 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17250   echo $ECHO_N "(cached) $ECHO_C" >&6
17251 else
17252   lt_cv_prog_compiler_pic_works_GCJ=no
17253   ac_outfile=conftest.$ac_objext
17254    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17255    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17256    # Insert the option either (1) after the last *FLAGS variable, or
17257    # (2) before a word containing "conftest.", or (3) at the end.
17258    # Note that $ac_compile itself does not contain backslashes and begins
17259    # with a dollar sign (not a hyphen), so the echo should work correctly.
17260    # The option is referenced via a variable to avoid confusing sed.
17261    lt_compile=`echo "$ac_compile" | $SED \
17262    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17263    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17264    -e 's:$: $lt_compiler_flag:'`
17265    (eval echo "\"\$as_me:17265: $lt_compile\"" >&5)
17266    (eval "$lt_compile" 2>conftest.err)
17267    ac_status=$?
17268    cat conftest.err >&5
17269    echo "$as_me:17269: \$? = $ac_status" >&5
17270    if (exit $ac_status) && test -s "$ac_outfile"; then
17271      # The compiler can only warn and ignore the option if not recognized
17272      # So say no if there are warnings other than the usual output.
17273      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17274      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17275      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17276        lt_cv_prog_compiler_pic_works_GCJ=yes
17277      fi
17278    fi
17279    $rm conftest*
17280
17281 fi
17282 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17283 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17284
17285 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17286     case $lt_prog_compiler_pic_GCJ in
17287      "" | " "*) ;;
17288      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17289      esac
17290 else
17291     lt_prog_compiler_pic_GCJ=
17292      lt_prog_compiler_can_build_shared_GCJ=no
17293 fi
17294
17295 fi
17296 case $host_os in
17297   # For platforms which do not support PIC, -DPIC is meaningless:
17298   *djgpp*)
17299     lt_prog_compiler_pic_GCJ=
17300     ;;
17301   *)
17302     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17303     ;;
17304 esac
17305
17306 #
17307 # Check to make sure the static flag actually works.
17308 #
17309 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17310 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17311 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17312 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17313   echo $ECHO_N "(cached) $ECHO_C" >&6
17314 else
17315   lt_cv_prog_compiler_static_works_GCJ=no
17316    save_LDFLAGS="$LDFLAGS"
17317    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17318    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17319    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17320      # The linker can only warn and ignore the option if not recognized
17321      # So say no if there are warnings
17322      if test -s conftest.err; then
17323        # Append any errors to the config.log.
17324        cat conftest.err 1>&5
17325        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17326        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17327        if diff conftest.exp conftest.er2 >/dev/null; then
17328          lt_cv_prog_compiler_static_works_GCJ=yes
17329        fi
17330      else
17331        lt_cv_prog_compiler_static_works_GCJ=yes
17332      fi
17333    fi
17334    $rm -r conftest*
17335    LDFLAGS="$save_LDFLAGS"
17336
17337 fi
17338 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17339 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17340
17341 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17342     :
17343 else
17344     lt_prog_compiler_static_GCJ=
17345 fi
17346
17347
17348 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17349 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17350 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17351   echo $ECHO_N "(cached) $ECHO_C" >&6
17352 else
17353   lt_cv_prog_compiler_c_o_GCJ=no
17354    $rm -r conftest 2>/dev/null
17355    mkdir conftest
17356    cd conftest
17357    mkdir out
17358    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17359
17360    lt_compiler_flag="-o out/conftest2.$ac_objext"
17361    # Insert the option either (1) after the last *FLAGS variable, or
17362    # (2) before a word containing "conftest.", or (3) at the end.
17363    # Note that $ac_compile itself does not contain backslashes and begins
17364    # with a dollar sign (not a hyphen), so the echo should work correctly.
17365    lt_compile=`echo "$ac_compile" | $SED \
17366    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17367    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17368    -e 's:$: $lt_compiler_flag:'`
17369    (eval echo "\"\$as_me:17369: $lt_compile\"" >&5)
17370    (eval "$lt_compile" 2>out/conftest.err)
17371    ac_status=$?
17372    cat out/conftest.err >&5
17373    echo "$as_me:17373: \$? = $ac_status" >&5
17374    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17375    then
17376      # The compiler can only warn and ignore the option if not recognized
17377      # So say no if there are warnings
17378      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17379      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17380      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17381        lt_cv_prog_compiler_c_o_GCJ=yes
17382      fi
17383    fi
17384    chmod u+w . 2>&5
17385    $rm conftest*
17386    # SGI C++ compiler will create directory out/ii_files/ for
17387    # template instantiation
17388    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17389    $rm out/* && rmdir out
17390    cd ..
17391    rmdir conftest
17392    $rm conftest*
17393
17394 fi
17395 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17396 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17397
17398
17399 hard_links="nottested"
17400 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17401   # do not overwrite the value of need_locks provided by the user
17402   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17403 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17404   hard_links=yes
17405   $rm conftest*
17406   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17407   touch conftest.a
17408   ln conftest.a conftest.b 2>&5 || hard_links=no
17409   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17410   { echo "$as_me:$LINENO: result: $hard_links" >&5
17411 echo "${ECHO_T}$hard_links" >&6; }
17412   if test "$hard_links" = no; then
17413     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17414 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17415     need_locks=warn
17416   fi
17417 else
17418   need_locks=no
17419 fi
17420
17421 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17422 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17423
17424   runpath_var=
17425   allow_undefined_flag_GCJ=
17426   enable_shared_with_static_runtimes_GCJ=no
17427   archive_cmds_GCJ=
17428   archive_expsym_cmds_GCJ=
17429   old_archive_From_new_cmds_GCJ=
17430   old_archive_from_expsyms_cmds_GCJ=
17431   export_dynamic_flag_spec_GCJ=
17432   whole_archive_flag_spec_GCJ=
17433   thread_safe_flag_spec_GCJ=
17434   hardcode_libdir_flag_spec_GCJ=
17435   hardcode_libdir_flag_spec_ld_GCJ=
17436   hardcode_libdir_separator_GCJ=
17437   hardcode_direct_GCJ=no
17438   hardcode_minus_L_GCJ=no
17439   hardcode_shlibpath_var_GCJ=unsupported
17440   link_all_deplibs_GCJ=unknown
17441   hardcode_automatic_GCJ=no
17442   module_cmds_GCJ=
17443   module_expsym_cmds_GCJ=
17444   always_export_symbols_GCJ=no
17445   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17446   # include_expsyms should be a list of space-separated symbols to be *always*
17447   # included in the symbol list
17448   include_expsyms_GCJ=
17449   # exclude_expsyms can be an extended regexp of symbols to exclude
17450   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17451   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17452   # as well as any symbol that contains `d'.
17453   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17454   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17455   # platforms (ab)use it in PIC code, but their linkers get confused if
17456   # the symbol is explicitly referenced.  Since portable code cannot
17457   # rely on this symbol name, it's probably fine to never include it in
17458   # preloaded symbol tables.
17459   # Exclude shared library initialization/finalization symbols.
17460   extract_expsyms_cmds=
17461   # Just being paranoid about ensuring that cc_basename is set.
17462   for cc_temp in $compiler""; do
17463   case $cc_temp in
17464     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17465     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17466     \-*) ;;
17467     *) break;;
17468   esac
17469 done
17470 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17471
17472   case $host_os in
17473   cygwin* | mingw* | pw32*)
17474     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17475     # When not using gcc, we currently assume that we are using
17476     # Microsoft Visual C++.
17477     if test "$GCC" != yes; then
17478       with_gnu_ld=no
17479     fi
17480     ;;
17481   interix*)
17482     # we just hope/assume this is gcc and not c89 (= MSVC++)
17483     with_gnu_ld=yes
17484     ;;
17485   openbsd*)
17486     with_gnu_ld=no
17487     ;;
17488   esac
17489
17490   ld_shlibs_GCJ=yes
17491   if test "$with_gnu_ld" = yes; then
17492     # If archive_cmds runs LD, not CC, wlarc should be empty
17493     wlarc='${wl}'
17494
17495     # Set some defaults for GNU ld with shared library support. These
17496     # are reset later if shared libraries are not supported. Putting them
17497     # here allows them to be overridden if necessary.
17498     runpath_var=LD_RUN_PATH
17499     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17500     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17501     # ancient GNU ld didn't support --whole-archive et. al.
17502     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17503         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17504       else
17505         whole_archive_flag_spec_GCJ=
17506     fi
17507     supports_anon_versioning=no
17508     case `$LD -v 2>/dev/null` in
17509       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17510       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17511       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17512       *\ 2.11.*) ;; # other 2.11 versions
17513       *) supports_anon_versioning=yes ;;
17514     esac
17515
17516     # See if GNU ld supports shared libraries.
17517     case $host_os in
17518     aix[3-9]*)
17519       # On AIX/PPC, the GNU linker is very broken
17520       if test "$host_cpu" != ia64; then
17521         ld_shlibs_GCJ=no
17522         cat <<EOF 1>&2
17523
17524 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17525 *** to be unable to reliably create shared libraries on AIX.
17526 *** Therefore, libtool is disabling shared libraries support.  If you
17527 *** really care for shared libraries, you may want to modify your PATH
17528 *** so that a non-GNU linker is found, and then restart.
17529
17530 EOF
17531       fi
17532       ;;
17533
17534     amigaos*)
17535       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)'
17536       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17537       hardcode_minus_L_GCJ=yes
17538
17539       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17540       # that the semantics of dynamic libraries on AmigaOS, at least up
17541       # to version 4, is to share data among multiple programs linked
17542       # with the same dynamic library.  Since this doesn't match the
17543       # behavior of shared libraries on other platforms, we can't use
17544       # them.
17545       ld_shlibs_GCJ=no
17546       ;;
17547
17548     beos*)
17549       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17550         allow_undefined_flag_GCJ=unsupported
17551         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17552         # support --undefined.  This deserves some investigation.  FIXME
17553         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17554       else
17555         ld_shlibs_GCJ=no
17556       fi
17557       ;;
17558
17559     cygwin* | mingw* | pw32*)
17560       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17561       # as there is no search path for DLLs.
17562       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17563       allow_undefined_flag_GCJ=unsupported
17564       always_export_symbols_GCJ=no
17565       enable_shared_with_static_runtimes_GCJ=yes
17566       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17567
17568       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17569         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17570         # If the export-symbols file already is a .def file (1st line
17571         # is EXPORTS), use it as is; otherwise, prepend...
17572         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17573           cp $export_symbols $output_objdir/$soname.def;
17574         else
17575           echo EXPORTS > $output_objdir/$soname.def;
17576           cat $export_symbols >> $output_objdir/$soname.def;
17577         fi~
17578         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17579       else
17580         ld_shlibs_GCJ=no
17581       fi
17582       ;;
17583
17584     interix[3-9]*)
17585       hardcode_direct_GCJ=no
17586       hardcode_shlibpath_var_GCJ=no
17587       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17588       export_dynamic_flag_spec_GCJ='${wl}-E'
17589       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17590       # Instead, shared libraries are loaded at an image base (0x10000000 by
17591       # default) and relocated if they conflict, which is a slow very memory
17592       # consuming and fragmenting process.  To avoid this, we pick a random,
17593       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17594       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17595       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'
17596       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'
17597       ;;
17598
17599     gnu* | linux* | k*bsd*-gnu)
17600       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17601         tmp_addflag=
17602         case $cc_basename,$host_cpu in
17603         pgcc*)                          # Portland Group C compiler
17604           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'
17605           tmp_addflag=' $pic_flag'
17606           ;;
17607         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17608           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'
17609           tmp_addflag=' $pic_flag -Mnomain' ;;
17610         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17611           tmp_addflag=' -i_dynamic' ;;
17612         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17613           tmp_addflag=' -i_dynamic -nofor_main' ;;
17614         ifc* | ifort*)                  # Intel Fortran compiler
17615           tmp_addflag=' -nofor_main' ;;
17616         esac
17617         case `$CC -V 2>&1 | sed 5q` in
17618         *Sun\ C*)                       # Sun C 5.9
17619           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17620           tmp_sharedflag='-G' ;;
17621         *Sun\ F*)                       # Sun Fortran 8.3
17622           tmp_sharedflag='-G' ;;
17623         *)
17624           tmp_sharedflag='-shared' ;;
17625         esac
17626         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17627
17628         if test $supports_anon_versioning = yes; then
17629           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17630   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17631   $echo "local: *; };" >> $output_objdir/$libname.ver~
17632           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17633         fi
17634         link_all_deplibs_GCJ=no
17635       else
17636         ld_shlibs_GCJ=no
17637       fi
17638       ;;
17639
17640     netbsd* | netbsdelf*-gnu)
17641       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17642         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17643         wlarc=
17644       else
17645         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17646         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17647       fi
17648       ;;
17649
17650     solaris*)
17651       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17652         ld_shlibs_GCJ=no
17653         cat <<EOF 1>&2
17654
17655 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17656 *** create shared libraries on Solaris systems.  Therefore, libtool
17657 *** is disabling shared libraries support.  We urge you to upgrade GNU
17658 *** binutils to release 2.9.1 or newer.  Another option is to modify
17659 *** your PATH or compiler configuration so that the native linker is
17660 *** used, and then restart.
17661
17662 EOF
17663       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17664         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17665         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17666       else
17667         ld_shlibs_GCJ=no
17668       fi
17669       ;;
17670
17671     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17672       case `$LD -v 2>&1` in
17673         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17674         ld_shlibs_GCJ=no
17675         cat <<_LT_EOF 1>&2
17676
17677 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17678 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17679 *** is disabling shared libraries support.  We urge you to upgrade GNU
17680 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17681 *** your PATH or compiler configuration so that the native linker is
17682 *** used, and then restart.
17683
17684 _LT_EOF
17685         ;;
17686         *)
17687           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17688             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17689             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17690             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17691           else
17692             ld_shlibs_GCJ=no
17693           fi
17694         ;;
17695       esac
17696       ;;
17697
17698     sunos4*)
17699       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17700       wlarc=
17701       hardcode_direct_GCJ=yes
17702       hardcode_shlibpath_var_GCJ=no
17703       ;;
17704
17705     *)
17706       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17707         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17708         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17709       else
17710         ld_shlibs_GCJ=no
17711       fi
17712       ;;
17713     esac
17714
17715     if test "$ld_shlibs_GCJ" = no; then
17716       runpath_var=
17717       hardcode_libdir_flag_spec_GCJ=
17718       export_dynamic_flag_spec_GCJ=
17719       whole_archive_flag_spec_GCJ=
17720     fi
17721   else
17722     # PORTME fill in a description of your system's linker (not GNU ld)
17723     case $host_os in
17724     aix3*)
17725       allow_undefined_flag_GCJ=unsupported
17726       always_export_symbols_GCJ=yes
17727       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'
17728       # Note: this linker hardcodes the directories in LIBPATH if there
17729       # are no directories specified by -L.
17730       hardcode_minus_L_GCJ=yes
17731       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17732         # Neither direct hardcoding nor static linking is supported with a
17733         # broken collect2.
17734         hardcode_direct_GCJ=unsupported
17735       fi
17736       ;;
17737
17738     aix[4-9]*)
17739       if test "$host_cpu" = ia64; then
17740         # On IA64, the linker does run time linking by default, so we don't
17741         # have to do anything special.
17742         aix_use_runtimelinking=no
17743         exp_sym_flag='-Bexport'
17744         no_entry_flag=""
17745       else
17746         # If we're using GNU nm, then we don't want the "-C" option.
17747         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17748         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17749           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'
17750         else
17751           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'
17752         fi
17753         aix_use_runtimelinking=no
17754
17755         # Test if we are trying to use run time linking or normal
17756         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17757         # need to do runtime linking.
17758         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17759           for ld_flag in $LDFLAGS; do
17760           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17761             aix_use_runtimelinking=yes
17762             break
17763           fi
17764           done
17765           ;;
17766         esac
17767
17768         exp_sym_flag='-bexport'
17769         no_entry_flag='-bnoentry'
17770       fi
17771
17772       # When large executables or shared objects are built, AIX ld can
17773       # have problems creating the table of contents.  If linking a library
17774       # or program results in "error TOC overflow" add -mminimal-toc to
17775       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17776       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17777
17778       archive_cmds_GCJ=''
17779       hardcode_direct_GCJ=yes
17780       hardcode_libdir_separator_GCJ=':'
17781       link_all_deplibs_GCJ=yes
17782
17783       if test "$GCC" = yes; then
17784         case $host_os in aix4.[012]|aix4.[012].*)
17785         # We only want to do this on AIX 4.2 and lower, the check
17786         # below for broken collect2 doesn't work under 4.3+
17787           collect2name=`${CC} -print-prog-name=collect2`
17788           if test -f "$collect2name" && \
17789            strings "$collect2name" | grep resolve_lib_name >/dev/null
17790           then
17791           # We have reworked collect2
17792           :
17793           else
17794           # We have old collect2
17795           hardcode_direct_GCJ=unsupported
17796           # It fails to find uninstalled libraries when the uninstalled
17797           # path is not listed in the libpath.  Setting hardcode_minus_L
17798           # to unsupported forces relinking
17799           hardcode_minus_L_GCJ=yes
17800           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17801           hardcode_libdir_separator_GCJ=
17802           fi
17803           ;;
17804         esac
17805         shared_flag='-shared'
17806         if test "$aix_use_runtimelinking" = yes; then
17807           shared_flag="$shared_flag "'${wl}-G'
17808         fi
17809       else
17810         # not using gcc
17811         if test "$host_cpu" = ia64; then
17812         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17813         # chokes on -Wl,-G. The following line is correct:
17814           shared_flag='-G'
17815         else
17816           if test "$aix_use_runtimelinking" = yes; then
17817             shared_flag='${wl}-G'
17818           else
17819             shared_flag='${wl}-bM:SRE'
17820           fi
17821         fi
17822       fi
17823
17824       # It seems that -bexpall does not export symbols beginning with
17825       # underscore (_), so it is better to generate a list of symbols to export.
17826       always_export_symbols_GCJ=yes
17827       if test "$aix_use_runtimelinking" = yes; then
17828         # Warning - without using the other runtime loading flags (-brtl),
17829         # -berok will link without error, but may produce a broken library.
17830         allow_undefined_flag_GCJ='-berok'
17831        # Determine the default libpath from the value encoded in an empty executable.
17832        cat >conftest.$ac_ext <<_ACEOF
17833 /* confdefs.h.  */
17834 _ACEOF
17835 cat confdefs.h >>conftest.$ac_ext
17836 cat >>conftest.$ac_ext <<_ACEOF
17837 /* end confdefs.h.  */
17838
17839 int
17840 main ()
17841 {
17842
17843   ;
17844   return 0;
17845 }
17846 _ACEOF
17847 rm -f conftest.$ac_objext conftest$ac_exeext
17848 if { (ac_try="$ac_link"
17849 case "(($ac_try" in
17850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851   *) ac_try_echo=$ac_try;;
17852 esac
17853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854   (eval "$ac_link") 2>conftest.er1
17855   ac_status=$?
17856   grep -v '^ *+' conftest.er1 >conftest.err
17857   rm -f conftest.er1
17858   cat conftest.err >&5
17859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860   (exit $ac_status); } && {
17861          test -z "$ac_c_werror_flag" ||
17862          test ! -s conftest.err
17863        } && test -s conftest$ac_exeext &&
17864        $as_test_x conftest$ac_exeext; then
17865
17866 lt_aix_libpath_sed='
17867     /Import File Strings/,/^$/ {
17868         /^0/ {
17869             s/^0  *\(.*\)$/\1/
17870             p
17871         }
17872     }'
17873 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17874 # Check for a 64-bit object if we didn't find anything.
17875 if test -z "$aix_libpath"; then
17876   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17877 fi
17878 else
17879   echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17881
17882
17883 fi
17884
17885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17886       conftest$ac_exeext conftest.$ac_ext
17887 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17888
17889        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17890         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"
17891        else
17892         if test "$host_cpu" = ia64; then
17893           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17894           allow_undefined_flag_GCJ="-z nodefs"
17895           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"
17896         else
17897          # Determine the default libpath from the value encoded in an empty executable.
17898          cat >conftest.$ac_ext <<_ACEOF
17899 /* confdefs.h.  */
17900 _ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h.  */
17904
17905 int
17906 main ()
17907 {
17908
17909   ;
17910   return 0;
17911 }
17912 _ACEOF
17913 rm -f conftest.$ac_objext conftest$ac_exeext
17914 if { (ac_try="$ac_link"
17915 case "(($ac_try" in
17916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917   *) ac_try_echo=$ac_try;;
17918 esac
17919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920   (eval "$ac_link") 2>conftest.er1
17921   ac_status=$?
17922   grep -v '^ *+' conftest.er1 >conftest.err
17923   rm -f conftest.er1
17924   cat conftest.err >&5
17925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926   (exit $ac_status); } && {
17927          test -z "$ac_c_werror_flag" ||
17928          test ! -s conftest.err
17929        } && test -s conftest$ac_exeext &&
17930        $as_test_x conftest$ac_exeext; then
17931
17932 lt_aix_libpath_sed='
17933     /Import File Strings/,/^$/ {
17934         /^0/ {
17935             s/^0  *\(.*\)$/\1/
17936             p
17937         }
17938     }'
17939 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17940 # Check for a 64-bit object if we didn't find anything.
17941 if test -z "$aix_libpath"; then
17942   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17943 fi
17944 else
17945   echo "$as_me: failed program was:" >&5
17946 sed 's/^/| /' conftest.$ac_ext >&5
17947
17948
17949 fi
17950
17951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17952       conftest$ac_exeext conftest.$ac_ext
17953 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17954
17955          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17956           # Warning - without using the other run time loading flags,
17957           # -berok will link without error, but may produce a broken library.
17958           no_undefined_flag_GCJ=' ${wl}-bernotok'
17959           allow_undefined_flag_GCJ=' ${wl}-berok'
17960           # Exported symbols can be pulled into shared objects from archives
17961           whole_archive_flag_spec_GCJ='$convenience'
17962           archive_cmds_need_lc_GCJ=yes
17963           # This is similar to how AIX traditionally builds its shared libraries.
17964           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'
17965         fi
17966       fi
17967       ;;
17968
17969     amigaos*)
17970       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)'
17971       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17972       hardcode_minus_L_GCJ=yes
17973       # see comment about different semantics on the GNU ld section
17974       ld_shlibs_GCJ=no
17975       ;;
17976
17977     bsdi[45]*)
17978       export_dynamic_flag_spec_GCJ=-rdynamic
17979       ;;
17980
17981     cygwin* | mingw* | pw32*)
17982       # When not using gcc, we currently assume that we are using
17983       # Microsoft Visual C++.
17984       # hardcode_libdir_flag_spec is actually meaningless, as there is
17985       # no search path for DLLs.
17986       hardcode_libdir_flag_spec_GCJ=' '
17987       allow_undefined_flag_GCJ=unsupported
17988       # Tell ltmain to make .lib files, not .a files.
17989       libext=lib
17990       # Tell ltmain to make .dll files, not .so files.
17991       shrext_cmds=".dll"
17992       # FIXME: Setting linknames here is a bad hack.
17993       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17994       # The linker will automatically build a .lib file if we build a DLL.
17995       old_archive_From_new_cmds_GCJ='true'
17996       # FIXME: Should let the user specify the lib program.
17997       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17998       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17999       enable_shared_with_static_runtimes_GCJ=yes
18000       ;;
18001
18002     darwin* | rhapsody*)
18003       case $host_os in
18004         rhapsody* | darwin1.[012])
18005          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18006          ;;
18007        *) # Darwin 1.3 on
18008          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18009            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18010          else
18011            case ${MACOSX_DEPLOYMENT_TARGET} in
18012              10.[012])
18013                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18014                ;;
18015              10.*)
18016                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18017                ;;
18018            esac
18019          fi
18020          ;;
18021       esac
18022       archive_cmds_need_lc_GCJ=no
18023       hardcode_direct_GCJ=no
18024       hardcode_automatic_GCJ=yes
18025       hardcode_shlibpath_var_GCJ=unsupported
18026       whole_archive_flag_spec_GCJ=''
18027       link_all_deplibs_GCJ=yes
18028     if test "$GCC" = yes ; then
18029         output_verbose_link_cmd='echo'
18030         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18031         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18032         archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18033         module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18034     else
18035       case $cc_basename in
18036         xlc*)
18037          output_verbose_link_cmd='echo'
18038          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18039          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18040           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18041          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18042           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}'
18043           ;;
18044        *)
18045          ld_shlibs_GCJ=no
18046           ;;
18047       esac
18048     fi
18049       ;;
18050
18051     dgux*)
18052       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18053       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18054       hardcode_shlibpath_var_GCJ=no
18055       ;;
18056
18057     freebsd1*)
18058       ld_shlibs_GCJ=no
18059       ;;
18060
18061     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18062     # support.  Future versions do this automatically, but an explicit c++rt0.o
18063     # does not break anything, and helps significantly (at the cost of a little
18064     # extra space).
18065     freebsd2.2*)
18066       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18067       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18068       hardcode_direct_GCJ=yes
18069       hardcode_shlibpath_var_GCJ=no
18070       ;;
18071
18072     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18073     freebsd2*)
18074       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18075       hardcode_direct_GCJ=yes
18076       hardcode_minus_L_GCJ=yes
18077       hardcode_shlibpath_var_GCJ=no
18078       ;;
18079
18080     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18081     freebsd* | dragonfly*)
18082       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18083       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18084       hardcode_direct_GCJ=yes
18085       hardcode_shlibpath_var_GCJ=no
18086       ;;
18087
18088     hpux9*)
18089       if test "$GCC" = yes; then
18090         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'
18091       else
18092         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'
18093       fi
18094       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18095       hardcode_libdir_separator_GCJ=:
18096       hardcode_direct_GCJ=yes
18097
18098       # hardcode_minus_L: Not really in the search PATH,
18099       # but as the default location of the library.
18100       hardcode_minus_L_GCJ=yes
18101       export_dynamic_flag_spec_GCJ='${wl}-E'
18102       ;;
18103
18104     hpux10*)
18105       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18106         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18107       else
18108         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18109       fi
18110       if test "$with_gnu_ld" = no; then
18111         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18112         hardcode_libdir_separator_GCJ=:
18113
18114         hardcode_direct_GCJ=yes
18115         export_dynamic_flag_spec_GCJ='${wl}-E'
18116
18117         # hardcode_minus_L: Not really in the search PATH,
18118         # but as the default location of the library.
18119         hardcode_minus_L_GCJ=yes
18120       fi
18121       ;;
18122
18123     hpux11*)
18124       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18125         case $host_cpu in
18126         hppa*64*)
18127           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18128           ;;
18129         ia64*)
18130           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18131           ;;
18132         *)
18133           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18134           ;;
18135         esac
18136       else
18137         case $host_cpu in
18138         hppa*64*)
18139           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18140           ;;
18141         ia64*)
18142           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18143           ;;
18144         *)
18145           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18146           ;;
18147         esac
18148       fi
18149       if test "$with_gnu_ld" = no; then
18150         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18151         hardcode_libdir_separator_GCJ=:
18152
18153         case $host_cpu in
18154         hppa*64*|ia64*)
18155           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18156           hardcode_direct_GCJ=no
18157           hardcode_shlibpath_var_GCJ=no
18158           ;;
18159         *)
18160           hardcode_direct_GCJ=yes
18161           export_dynamic_flag_spec_GCJ='${wl}-E'
18162
18163           # hardcode_minus_L: Not really in the search PATH,
18164           # but as the default location of the library.
18165           hardcode_minus_L_GCJ=yes
18166           ;;
18167         esac
18168       fi
18169       ;;
18170
18171     irix5* | irix6* | nonstopux*)
18172       if test "$GCC" = yes; then
18173         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'
18174       else
18175         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'
18176         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18177       fi
18178       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18179       hardcode_libdir_separator_GCJ=:
18180       link_all_deplibs_GCJ=yes
18181       ;;
18182
18183     netbsd* | netbsdelf*-gnu)
18184       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18185         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18186       else
18187         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18188       fi
18189       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18190       hardcode_direct_GCJ=yes
18191       hardcode_shlibpath_var_GCJ=no
18192       ;;
18193
18194     newsos6)
18195       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18196       hardcode_direct_GCJ=yes
18197       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18198       hardcode_libdir_separator_GCJ=:
18199       hardcode_shlibpath_var_GCJ=no
18200       ;;
18201
18202     openbsd*)
18203       if test -f /usr/libexec/ld.so; then
18204         hardcode_direct_GCJ=yes
18205         hardcode_shlibpath_var_GCJ=no
18206         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18207           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18208           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18209           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18210           export_dynamic_flag_spec_GCJ='${wl}-E'
18211         else
18212           case $host_os in
18213            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18214              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18215              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18216              ;;
18217            *)
18218              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18219              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18220              ;;
18221           esac
18222         fi
18223       else
18224         ld_shlibs_GCJ=no
18225       fi
18226       ;;
18227
18228     os2*)
18229       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18230       hardcode_minus_L_GCJ=yes
18231       allow_undefined_flag_GCJ=unsupported
18232       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'
18233       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18234       ;;
18235
18236     osf3*)
18237       if test "$GCC" = yes; then
18238         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18239         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'
18240       else
18241         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18242         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'
18243       fi
18244       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18245       hardcode_libdir_separator_GCJ=:
18246       ;;
18247
18248     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18249       if test "$GCC" = yes; then
18250         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18251         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'
18252         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18253       else
18254         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18255         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'
18256         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~
18257         $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'
18258
18259         # Both c and cxx compiler support -rpath directly
18260         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18261       fi
18262       hardcode_libdir_separator_GCJ=:
18263       ;;
18264
18265     solaris*)
18266       no_undefined_flag_GCJ=' -z text'
18267       if test "$GCC" = yes; then
18268         wlarc='${wl}'
18269         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18270         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18271           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18272       else
18273         wlarc=''
18274         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18275         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18276         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18277       fi
18278       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18279       hardcode_shlibpath_var_GCJ=no
18280       case $host_os in
18281       solaris2.[0-5] | solaris2.[0-5].*) ;;
18282       *)
18283         # The compiler driver will combine and reorder linker options,
18284         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18285         # but is careful enough not to reorder.
18286         # Supported since Solaris 2.6 (maybe 2.5.1?)
18287         if test "$GCC" = yes; then
18288           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18289         else
18290           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18291         fi
18292         ;;
18293       esac
18294       link_all_deplibs_GCJ=yes
18295       ;;
18296
18297     sunos4*)
18298       if test "x$host_vendor" = xsequent; then
18299         # Use $CC to link under sequent, because it throws in some extra .o
18300         # files that make .init and .fini sections work.
18301         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18302       else
18303         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18304       fi
18305       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18306       hardcode_direct_GCJ=yes
18307       hardcode_minus_L_GCJ=yes
18308       hardcode_shlibpath_var_GCJ=no
18309       ;;
18310
18311     sysv4)
18312       case $host_vendor in
18313         sni)
18314           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18315           hardcode_direct_GCJ=yes # is this really true???
18316         ;;
18317         siemens)
18318           ## LD is ld it makes a PLAMLIB
18319           ## CC just makes a GrossModule.
18320           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18321           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18322           hardcode_direct_GCJ=no
18323         ;;
18324         motorola)
18325           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18326           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18327         ;;
18328       esac
18329       runpath_var='LD_RUN_PATH'
18330       hardcode_shlibpath_var_GCJ=no
18331       ;;
18332
18333     sysv4.3*)
18334       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18335       hardcode_shlibpath_var_GCJ=no
18336       export_dynamic_flag_spec_GCJ='-Bexport'
18337       ;;
18338
18339     sysv4*MP*)
18340       if test -d /usr/nec; then
18341         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18342         hardcode_shlibpath_var_GCJ=no
18343         runpath_var=LD_RUN_PATH
18344         hardcode_runpath_var=yes
18345         ld_shlibs_GCJ=yes
18346       fi
18347       ;;
18348
18349     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18350       no_undefined_flag_GCJ='${wl}-z,text'
18351       archive_cmds_need_lc_GCJ=no
18352       hardcode_shlibpath_var_GCJ=no
18353       runpath_var='LD_RUN_PATH'
18354
18355       if test "$GCC" = yes; then
18356         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18357         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18358       else
18359         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18360         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18361       fi
18362       ;;
18363
18364     sysv5* | sco3.2v5* | sco5v6*)
18365       # Note: We can NOT use -z defs as we might desire, because we do not
18366       # link with -lc, and that would cause any symbols used from libc to
18367       # always be unresolved, which means just about no library would
18368       # ever link correctly.  If we're not using GNU ld we use -z text
18369       # though, which does catch some bad symbols but isn't as heavy-handed
18370       # as -z defs.
18371       no_undefined_flag_GCJ='${wl}-z,text'
18372       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18373       archive_cmds_need_lc_GCJ=no
18374       hardcode_shlibpath_var_GCJ=no
18375       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18376       hardcode_libdir_separator_GCJ=':'
18377       link_all_deplibs_GCJ=yes
18378       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18379       runpath_var='LD_RUN_PATH'
18380
18381       if test "$GCC" = yes; then
18382         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18383         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18384       else
18385         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18386         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18387       fi
18388       ;;
18389
18390     uts4*)
18391       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18392       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18393       hardcode_shlibpath_var_GCJ=no
18394       ;;
18395
18396     *)
18397       ld_shlibs_GCJ=no
18398       ;;
18399     esac
18400   fi
18401
18402 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18403 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18404 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18405
18406 #
18407 # Do we need to explicitly link libc?
18408 #
18409 case "x$archive_cmds_need_lc_GCJ" in
18410 x|xyes)
18411   # Assume -lc should be added
18412   archive_cmds_need_lc_GCJ=yes
18413
18414   if test "$enable_shared" = yes && test "$GCC" = yes; then
18415     case $archive_cmds_GCJ in
18416     *'~'*)
18417       # FIXME: we may have to deal with multi-command sequences.
18418       ;;
18419     '$CC '*)
18420       # Test whether the compiler implicitly links with -lc since on some
18421       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18422       # to ld, don't add -lc before -lgcc.
18423       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18424 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18425       $rm conftest*
18426       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18427
18428       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18429   (eval $ac_compile) 2>&5
18430   ac_status=$?
18431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432   (exit $ac_status); } 2>conftest.err; then
18433         soname=conftest
18434         lib=conftest
18435         libobjs=conftest.$ac_objext
18436         deplibs=
18437         wl=$lt_prog_compiler_wl_GCJ
18438         pic_flag=$lt_prog_compiler_pic_GCJ
18439         compiler_flags=-v
18440         linker_flags=-v
18441         verstring=
18442         output_objdir=.
18443         libname=conftest
18444         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18445         allow_undefined_flag_GCJ=
18446         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18447   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18448   ac_status=$?
18449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450   (exit $ac_status); }
18451         then
18452           archive_cmds_need_lc_GCJ=no
18453         else
18454           archive_cmds_need_lc_GCJ=yes
18455         fi
18456         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18457       else
18458         cat conftest.err 1>&5
18459       fi
18460       $rm conftest*
18461       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18462 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18463       ;;
18464     esac
18465   fi
18466   ;;
18467 esac
18468
18469 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18470 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18471 library_names_spec=
18472 libname_spec='lib$name'
18473 soname_spec=
18474 shrext_cmds=".so"
18475 postinstall_cmds=
18476 postuninstall_cmds=
18477 finish_cmds=
18478 finish_eval=
18479 shlibpath_var=
18480 shlibpath_overrides_runpath=unknown
18481 version_type=none
18482 dynamic_linker="$host_os ld.so"
18483 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18484
18485 need_lib_prefix=unknown
18486 hardcode_into_libs=no
18487
18488 # when you set need_version to no, make sure it does not cause -set_version
18489 # flags to be left without arguments
18490 need_version=unknown
18491
18492 case $host_os in
18493 aix3*)
18494   version_type=linux
18495   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18496   shlibpath_var=LIBPATH
18497
18498   # AIX 3 has no versioning support, so we append a major version to the name.
18499   soname_spec='${libname}${release}${shared_ext}$major'
18500   ;;
18501
18502 aix[4-9]*)
18503   version_type=linux
18504   need_lib_prefix=no
18505   need_version=no
18506   hardcode_into_libs=yes
18507   if test "$host_cpu" = ia64; then
18508     # AIX 5 supports IA64
18509     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18510     shlibpath_var=LD_LIBRARY_PATH
18511   else
18512     # With GCC up to 2.95.x, collect2 would create an import file
18513     # for dependence libraries.  The import file would start with
18514     # the line `#! .'.  This would cause the generated library to
18515     # depend on `.', always an invalid library.  This was fixed in
18516     # development snapshots of GCC prior to 3.0.
18517     case $host_os in
18518       aix4 | aix4.[01] | aix4.[01].*)
18519       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18520            echo ' yes '
18521            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18522         :
18523       else
18524         can_build_shared=no
18525       fi
18526       ;;
18527     esac
18528     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18529     # soname into executable. Probably we can add versioning support to
18530     # collect2, so additional links can be useful in future.
18531     if test "$aix_use_runtimelinking" = yes; then
18532       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18533       # instead of lib<name>.a to let people know that these are not
18534       # typical AIX shared libraries.
18535       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18536     else
18537       # We preserve .a as extension for shared libraries through AIX4.2
18538       # and later when we are not doing run time linking.
18539       library_names_spec='${libname}${release}.a $libname.a'
18540       soname_spec='${libname}${release}${shared_ext}$major'
18541     fi
18542     shlibpath_var=LIBPATH
18543   fi
18544   ;;
18545
18546 amigaos*)
18547   library_names_spec='$libname.ixlibrary $libname.a'
18548   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18549   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'
18550   ;;
18551
18552 beos*)
18553   library_names_spec='${libname}${shared_ext}'
18554   dynamic_linker="$host_os ld.so"
18555   shlibpath_var=LIBRARY_PATH
18556   ;;
18557
18558 bsdi[45]*)
18559   version_type=linux
18560   need_version=no
18561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18562   soname_spec='${libname}${release}${shared_ext}$major'
18563   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18564   shlibpath_var=LD_LIBRARY_PATH
18565   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18566   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18567   # the default ld.so.conf also contains /usr/contrib/lib and
18568   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18569   # libtool to hard-code these into programs
18570   ;;
18571
18572 cygwin* | mingw* | pw32*)
18573   version_type=windows
18574   shrext_cmds=".dll"
18575   need_version=no
18576   need_lib_prefix=no
18577
18578   case $GCC,$host_os in
18579   yes,cygwin* | yes,mingw* | yes,pw32*)
18580     library_names_spec='$libname.dll.a'
18581     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18582     postinstall_cmds='base_file=`basename \${file}`~
18583       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18584       dldir=$destdir/`dirname \$dlpath`~
18585       test -d \$dldir || mkdir -p \$dldir~
18586       $install_prog $dir/$dlname \$dldir/$dlname~
18587       chmod a+x \$dldir/$dlname'
18588     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18589       dlpath=$dir/\$dldll~
18590        $rm \$dlpath'
18591     shlibpath_overrides_runpath=yes
18592
18593     case $host_os in
18594     cygwin*)
18595       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18596       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18597       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18598       ;;
18599     mingw*)
18600       # MinGW DLLs use traditional 'lib' prefix
18601       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18602       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18603       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18604         # It is most probably a Windows format PATH printed by
18605         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18606         # path with ; separators, and with drive letters. We can handle the
18607         # drive letters (cygwin fileutils understands them), so leave them,
18608         # especially as we might pass files found there to a mingw objdump,
18609         # which wouldn't understand a cygwinified path. Ahh.
18610         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18611       else
18612         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18613       fi
18614       ;;
18615     pw32*)
18616       # pw32 DLLs use 'pw' prefix rather than 'lib'
18617       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18618       ;;
18619     esac
18620     ;;
18621
18622   *)
18623     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18624     ;;
18625   esac
18626   dynamic_linker='Win32 ld.exe'
18627   # FIXME: first we should search . and the directory the executable is in
18628   shlibpath_var=PATH
18629   ;;
18630
18631 darwin* | rhapsody*)
18632   dynamic_linker="$host_os dyld"
18633   version_type=darwin
18634   need_lib_prefix=no
18635   need_version=no
18636   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18637   soname_spec='${libname}${release}${major}$shared_ext'
18638   shlibpath_overrides_runpath=yes
18639   shlibpath_var=DYLD_LIBRARY_PATH
18640   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18641
18642   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18643   ;;
18644
18645 dgux*)
18646   version_type=linux
18647   need_lib_prefix=no
18648   need_version=no
18649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18650   soname_spec='${libname}${release}${shared_ext}$major'
18651   shlibpath_var=LD_LIBRARY_PATH
18652   ;;
18653
18654 freebsd1*)
18655   dynamic_linker=no
18656   ;;
18657
18658 freebsd* | dragonfly*)
18659   # DragonFly does not have aout.  When/if they implement a new
18660   # versioning mechanism, adjust this.
18661   if test -x /usr/bin/objformat; then
18662     objformat=`/usr/bin/objformat`
18663   else
18664     case $host_os in
18665     freebsd[123]*) objformat=aout ;;
18666     *) objformat=elf ;;
18667     esac
18668   fi
18669   version_type=freebsd-$objformat
18670   case $version_type in
18671     freebsd-elf*)
18672       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18673       need_version=no
18674       need_lib_prefix=no
18675       ;;
18676     freebsd-*)
18677       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18678       need_version=yes
18679       ;;
18680   esac
18681   shlibpath_var=LD_LIBRARY_PATH
18682   case $host_os in
18683   freebsd2*)
18684     shlibpath_overrides_runpath=yes
18685     ;;
18686   freebsd3.[01]* | freebsdelf3.[01]*)
18687     shlibpath_overrides_runpath=yes
18688     hardcode_into_libs=yes
18689     ;;
18690   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18691   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18692     shlibpath_overrides_runpath=no
18693     hardcode_into_libs=yes
18694     ;;
18695   *) # from 4.6 on, and DragonFly
18696     shlibpath_overrides_runpath=yes
18697     hardcode_into_libs=yes
18698     ;;
18699   esac
18700   ;;
18701
18702 gnu*)
18703   version_type=linux
18704   need_lib_prefix=no
18705   need_version=no
18706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18707   soname_spec='${libname}${release}${shared_ext}$major'
18708   shlibpath_var=LD_LIBRARY_PATH
18709   hardcode_into_libs=yes
18710   ;;
18711
18712 hpux9* | hpux10* | hpux11*)
18713   # Give a soname corresponding to the major version so that dld.sl refuses to
18714   # link against other versions.
18715   version_type=sunos
18716   need_lib_prefix=no
18717   need_version=no
18718   case $host_cpu in
18719   ia64*)
18720     shrext_cmds='.so'
18721     hardcode_into_libs=yes
18722     dynamic_linker="$host_os dld.so"
18723     shlibpath_var=LD_LIBRARY_PATH
18724     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18725     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18726     soname_spec='${libname}${release}${shared_ext}$major'
18727     if test "X$HPUX_IA64_MODE" = X32; then
18728       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18729     else
18730       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18731     fi
18732     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18733     ;;
18734    hppa*64*)
18735      shrext_cmds='.sl'
18736      hardcode_into_libs=yes
18737      dynamic_linker="$host_os dld.sl"
18738      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18739      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18740      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18741      soname_spec='${libname}${release}${shared_ext}$major'
18742      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18743      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18744      ;;
18745    *)
18746     shrext_cmds='.sl'
18747     dynamic_linker="$host_os dld.sl"
18748     shlibpath_var=SHLIB_PATH
18749     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18750     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18751     soname_spec='${libname}${release}${shared_ext}$major'
18752     ;;
18753   esac
18754   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18755   postinstall_cmds='chmod 555 $lib'
18756   ;;
18757
18758 interix[3-9]*)
18759   version_type=linux
18760   need_lib_prefix=no
18761   need_version=no
18762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18763   soname_spec='${libname}${release}${shared_ext}$major'
18764   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18765   shlibpath_var=LD_LIBRARY_PATH
18766   shlibpath_overrides_runpath=no
18767   hardcode_into_libs=yes
18768   ;;
18769
18770 irix5* | irix6* | nonstopux*)
18771   case $host_os in
18772     nonstopux*) version_type=nonstopux ;;
18773     *)
18774         if test "$lt_cv_prog_gnu_ld" = yes; then
18775                 version_type=linux
18776         else
18777                 version_type=irix
18778         fi ;;
18779   esac
18780   need_lib_prefix=no
18781   need_version=no
18782   soname_spec='${libname}${release}${shared_ext}$major'
18783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18784   case $host_os in
18785   irix5* | nonstopux*)
18786     libsuff= shlibsuff=
18787     ;;
18788   *)
18789     case $LD in # libtool.m4 will add one of these switches to LD
18790     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18791       libsuff= shlibsuff= libmagic=32-bit;;
18792     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18793       libsuff=32 shlibsuff=N32 libmagic=N32;;
18794     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18795       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18796     *) libsuff= shlibsuff= libmagic=never-match;;
18797     esac
18798     ;;
18799   esac
18800   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18801   shlibpath_overrides_runpath=no
18802   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18803   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18804   hardcode_into_libs=yes
18805   ;;
18806
18807 # No shared lib support for Linux oldld, aout, or coff.
18808 linux*oldld* | linux*aout* | linux*coff*)
18809   dynamic_linker=no
18810   ;;
18811
18812 # This must be Linux ELF.
18813 linux* | k*bsd*-gnu)
18814   version_type=linux
18815   need_lib_prefix=no
18816   need_version=no
18817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18818   soname_spec='${libname}${release}${shared_ext}$major'
18819   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18820   shlibpath_var=LD_LIBRARY_PATH
18821   shlibpath_overrides_runpath=no
18822   # This implies no fast_install, which is unacceptable.
18823   # Some rework will be needed to allow for fast_install
18824   # before this can be enabled.
18825   hardcode_into_libs=yes
18826
18827   # Append ld.so.conf contents to the search path
18828   if test -f /etc/ld.so.conf; then
18829     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18830     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18831   fi
18832
18833   # We used to test for /lib/ld.so.1 and disable shared libraries on
18834   # powerpc, because MkLinux only supported shared libraries with the
18835   # GNU dynamic linker.  Since this was broken with cross compilers,
18836   # most powerpc-linux boxes support dynamic linking these days and
18837   # people can always --disable-shared, the test was removed, and we
18838   # assume the GNU/Linux dynamic linker is in use.
18839   dynamic_linker='GNU/Linux ld.so'
18840   ;;
18841
18842 netbsdelf*-gnu)
18843   version_type=linux
18844   need_lib_prefix=no
18845   need_version=no
18846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18847   soname_spec='${libname}${release}${shared_ext}$major'
18848   shlibpath_var=LD_LIBRARY_PATH
18849   shlibpath_overrides_runpath=no
18850   hardcode_into_libs=yes
18851   dynamic_linker='NetBSD ld.elf_so'
18852   ;;
18853
18854 netbsd*)
18855   version_type=sunos
18856   need_lib_prefix=no
18857   need_version=no
18858   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18859     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18860     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18861     dynamic_linker='NetBSD (a.out) ld.so'
18862   else
18863     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18864     soname_spec='${libname}${release}${shared_ext}$major'
18865     dynamic_linker='NetBSD ld.elf_so'
18866   fi
18867   shlibpath_var=LD_LIBRARY_PATH
18868   shlibpath_overrides_runpath=yes
18869   hardcode_into_libs=yes
18870   ;;
18871
18872 newsos6)
18873   version_type=linux
18874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18875   shlibpath_var=LD_LIBRARY_PATH
18876   shlibpath_overrides_runpath=yes
18877   ;;
18878
18879 nto-qnx*)
18880   version_type=linux
18881   need_lib_prefix=no
18882   need_version=no
18883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18884   soname_spec='${libname}${release}${shared_ext}$major'
18885   shlibpath_var=LD_LIBRARY_PATH
18886   shlibpath_overrides_runpath=yes
18887   ;;
18888
18889 openbsd*)
18890   version_type=sunos
18891   sys_lib_dlsearch_path_spec="/usr/lib"
18892   need_lib_prefix=no
18893   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18894   case $host_os in
18895     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18896     *)                         need_version=no  ;;
18897   esac
18898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18899   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18900   shlibpath_var=LD_LIBRARY_PATH
18901   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18902     case $host_os in
18903       openbsd2.[89] | openbsd2.[89].*)
18904         shlibpath_overrides_runpath=no
18905         ;;
18906       *)
18907         shlibpath_overrides_runpath=yes
18908         ;;
18909       esac
18910   else
18911     shlibpath_overrides_runpath=yes
18912   fi
18913   ;;
18914
18915 os2*)
18916   libname_spec='$name'
18917   shrext_cmds=".dll"
18918   need_lib_prefix=no
18919   library_names_spec='$libname${shared_ext} $libname.a'
18920   dynamic_linker='OS/2 ld.exe'
18921   shlibpath_var=LIBPATH
18922   ;;
18923
18924 osf3* | osf4* | osf5*)
18925   version_type=osf
18926   need_lib_prefix=no
18927   need_version=no
18928   soname_spec='${libname}${release}${shared_ext}$major'
18929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18930   shlibpath_var=LD_LIBRARY_PATH
18931   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18932   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18933   ;;
18934
18935 rdos*)
18936   dynamic_linker=no
18937   ;;
18938
18939 solaris*)
18940   version_type=linux
18941   need_lib_prefix=no
18942   need_version=no
18943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18944   soname_spec='${libname}${release}${shared_ext}$major'
18945   shlibpath_var=LD_LIBRARY_PATH
18946   shlibpath_overrides_runpath=yes
18947   hardcode_into_libs=yes
18948   # ldd complains unless libraries are executable
18949   postinstall_cmds='chmod +x $lib'
18950   ;;
18951
18952 sunos4*)
18953   version_type=sunos
18954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18955   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18956   shlibpath_var=LD_LIBRARY_PATH
18957   shlibpath_overrides_runpath=yes
18958   if test "$with_gnu_ld" = yes; then
18959     need_lib_prefix=no
18960   fi
18961   need_version=yes
18962   ;;
18963
18964 sysv4 | sysv4.3*)
18965   version_type=linux
18966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18967   soname_spec='${libname}${release}${shared_ext}$major'
18968   shlibpath_var=LD_LIBRARY_PATH
18969   case $host_vendor in
18970     sni)
18971       shlibpath_overrides_runpath=no
18972       need_lib_prefix=no
18973       export_dynamic_flag_spec='${wl}-Blargedynsym'
18974       runpath_var=LD_RUN_PATH
18975       ;;
18976     siemens)
18977       need_lib_prefix=no
18978       ;;
18979     motorola)
18980       need_lib_prefix=no
18981       need_version=no
18982       shlibpath_overrides_runpath=no
18983       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18984       ;;
18985   esac
18986   ;;
18987
18988 sysv4*MP*)
18989   if test -d /usr/nec ;then
18990     version_type=linux
18991     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18992     soname_spec='$libname${shared_ext}.$major'
18993     shlibpath_var=LD_LIBRARY_PATH
18994   fi
18995   ;;
18996
18997 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18998   version_type=freebsd-elf
18999   need_lib_prefix=no
19000   need_version=no
19001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19002   soname_spec='${libname}${release}${shared_ext}$major'
19003   shlibpath_var=LD_LIBRARY_PATH
19004   hardcode_into_libs=yes
19005   if test "$with_gnu_ld" = yes; then
19006     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19007     shlibpath_overrides_runpath=no
19008   else
19009     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19010     shlibpath_overrides_runpath=yes
19011     case $host_os in
19012       sco3.2v5*)
19013         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19014         ;;
19015     esac
19016   fi
19017   sys_lib_dlsearch_path_spec='/usr/lib'
19018   ;;
19019
19020 uts4*)
19021   version_type=linux
19022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19023   soname_spec='${libname}${release}${shared_ext}$major'
19024   shlibpath_var=LD_LIBRARY_PATH
19025   ;;
19026
19027 *)
19028   dynamic_linker=no
19029   ;;
19030 esac
19031 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19032 echo "${ECHO_T}$dynamic_linker" >&6; }
19033 test "$dynamic_linker" = no && can_build_shared=no
19034
19035 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19036   echo $ECHO_N "(cached) $ECHO_C" >&6
19037 else
19038   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19039 fi
19040
19041 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19042 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19043   echo $ECHO_N "(cached) $ECHO_C" >&6
19044 else
19045   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19046 fi
19047
19048 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19049
19050 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19051 if test "$GCC" = yes; then
19052   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19053 fi
19054
19055 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19056 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19057 hardcode_action_GCJ=
19058 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19059    test -n "$runpath_var_GCJ" || \
19060    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19061
19062   # We can hardcode non-existant directories.
19063   if test "$hardcode_direct_GCJ" != no &&
19064      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19065      # have to relink, otherwise we might link with an installed library
19066      # when we should be linking with a yet-to-be-installed one
19067      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19068      test "$hardcode_minus_L_GCJ" != no; then
19069     # Linking always hardcodes the temporary library directory.
19070     hardcode_action_GCJ=relink
19071   else
19072     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19073     hardcode_action_GCJ=immediate
19074   fi
19075 else
19076   # We cannot hardcode anything, or else we can only hardcode existing
19077   # directories.
19078   hardcode_action_GCJ=unsupported
19079 fi
19080 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19081 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19082
19083 if test "$hardcode_action_GCJ" = relink; then
19084   # Fast installation is not supported
19085   enable_fast_install=no
19086 elif test "$shlibpath_overrides_runpath" = yes ||
19087      test "$enable_shared" = no; then
19088   # Fast installation is not necessary
19089   enable_fast_install=needless
19090 fi
19091
19092
19093 # The else clause should only fire when bootstrapping the
19094 # libtool distribution, otherwise you forgot to ship ltmain.sh
19095 # with your package, and you will get complaints that there are
19096 # no rules to generate ltmain.sh.
19097 if test -f "$ltmain"; then
19098   # See if we are running on zsh, and set the options which allow our commands through
19099   # without removal of \ escapes.
19100   if test -n "${ZSH_VERSION+set}" ; then
19101     setopt NO_GLOB_SUBST
19102   fi
19103   # Now quote all the things that may contain metacharacters while being
19104   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19105   # variables and quote the copies for generation of the libtool script.
19106   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19107     SED SHELL STRIP \
19108     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19109     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19110     deplibs_check_method reload_flag reload_cmds need_locks \
19111     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19112     lt_cv_sys_global_symbol_to_c_name_address \
19113     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19114     old_postinstall_cmds old_postuninstall_cmds \
19115     compiler_GCJ \
19116     CC_GCJ \
19117     LD_GCJ \
19118     lt_prog_compiler_wl_GCJ \
19119     lt_prog_compiler_pic_GCJ \
19120     lt_prog_compiler_static_GCJ \
19121     lt_prog_compiler_no_builtin_flag_GCJ \
19122     export_dynamic_flag_spec_GCJ \
19123     thread_safe_flag_spec_GCJ \
19124     whole_archive_flag_spec_GCJ \
19125     enable_shared_with_static_runtimes_GCJ \
19126     old_archive_cmds_GCJ \
19127     old_archive_from_new_cmds_GCJ \
19128     predep_objects_GCJ \
19129     postdep_objects_GCJ \
19130     predeps_GCJ \
19131     postdeps_GCJ \
19132     compiler_lib_search_path_GCJ \
19133     compiler_lib_search_dirs_GCJ \
19134     archive_cmds_GCJ \
19135     archive_expsym_cmds_GCJ \
19136     postinstall_cmds_GCJ \
19137     postuninstall_cmds_GCJ \
19138     old_archive_from_expsyms_cmds_GCJ \
19139     allow_undefined_flag_GCJ \
19140     no_undefined_flag_GCJ \
19141     export_symbols_cmds_GCJ \
19142     hardcode_libdir_flag_spec_GCJ \
19143     hardcode_libdir_flag_spec_ld_GCJ \
19144     hardcode_libdir_separator_GCJ \
19145     hardcode_automatic_GCJ \
19146     module_cmds_GCJ \
19147     module_expsym_cmds_GCJ \
19148     lt_cv_prog_compiler_c_o_GCJ \
19149     fix_srcfile_path_GCJ \
19150     exclude_expsyms_GCJ \
19151     include_expsyms_GCJ; do
19152
19153     case $var in
19154     old_archive_cmds_GCJ | \
19155     old_archive_from_new_cmds_GCJ | \
19156     archive_cmds_GCJ | \
19157     archive_expsym_cmds_GCJ | \
19158     module_cmds_GCJ | \
19159     module_expsym_cmds_GCJ | \
19160     old_archive_from_expsyms_cmds_GCJ | \
19161     export_symbols_cmds_GCJ | \
19162     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19163     postinstall_cmds | postuninstall_cmds | \
19164     old_postinstall_cmds | old_postuninstall_cmds | \
19165     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19166       # Double-quote double-evaled strings.
19167       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19168       ;;
19169     *)
19170       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19171       ;;
19172     esac
19173   done
19174
19175   case $lt_echo in
19176   *'\$0 --fallback-echo"')
19177     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19178     ;;
19179   esac
19180
19181 cfgfile="$ofile"
19182
19183   cat <<__EOF__ >> "$cfgfile"
19184 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19185
19186 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19187
19188 # Shell to use when invoking shell scripts.
19189 SHELL=$lt_SHELL
19190
19191 # Whether or not to build shared libraries.
19192 build_libtool_libs=$enable_shared
19193
19194 # Whether or not to build static libraries.
19195 build_old_libs=$enable_static
19196
19197 # Whether or not to add -lc for building shared libraries.
19198 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19199
19200 # Whether or not to disallow shared libs when runtime libs are static
19201 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19202
19203 # Whether or not to optimize for fast installation.
19204 fast_install=$enable_fast_install
19205
19206 # The host system.
19207 host_alias=$host_alias
19208 host=$host
19209 host_os=$host_os
19210
19211 # The build system.
19212 build_alias=$build_alias
19213 build=$build
19214 build_os=$build_os
19215
19216 # An echo program that does not interpret backslashes.
19217 echo=$lt_echo
19218
19219 # The archiver.
19220 AR=$lt_AR
19221 AR_FLAGS=$lt_AR_FLAGS
19222
19223 # A C compiler.
19224 LTCC=$lt_LTCC
19225
19226 # LTCC compiler flags.
19227 LTCFLAGS=$lt_LTCFLAGS
19228
19229 # A language-specific compiler.
19230 CC=$lt_compiler_GCJ
19231
19232 # Is the compiler the GNU C compiler?
19233 with_gcc=$GCC_GCJ
19234
19235 # An ERE matcher.
19236 EGREP=$lt_EGREP
19237
19238 # The linker used to build libraries.
19239 LD=$lt_LD_GCJ
19240
19241 # Whether we need hard or soft links.
19242 LN_S=$lt_LN_S
19243
19244 # A BSD-compatible nm program.
19245 NM=$lt_NM
19246
19247 # A symbol stripping program
19248 STRIP=$lt_STRIP
19249
19250 # Used to examine libraries when file_magic_cmd begins "file"
19251 MAGIC_CMD=$MAGIC_CMD
19252
19253 # Used on cygwin: DLL creation program.
19254 DLLTOOL="$DLLTOOL"
19255
19256 # Used on cygwin: object dumper.
19257 OBJDUMP="$OBJDUMP"
19258
19259 # Used on cygwin: assembler.
19260 AS="$AS"
19261
19262 # The name of the directory that contains temporary libtool files.
19263 objdir=$objdir
19264
19265 # How to create reloadable object files.
19266 reload_flag=$lt_reload_flag
19267 reload_cmds=$lt_reload_cmds
19268
19269 # How to pass a linker flag through the compiler.
19270 wl=$lt_lt_prog_compiler_wl_GCJ
19271
19272 # Object file suffix (normally "o").
19273 objext="$ac_objext"
19274
19275 # Old archive suffix (normally "a").
19276 libext="$libext"
19277
19278 # Shared library suffix (normally ".so").
19279 shrext_cmds='$shrext_cmds'
19280
19281 # Executable file suffix (normally "").
19282 exeext="$exeext"
19283
19284 # Additional compiler flags for building library objects.
19285 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19286 pic_mode=$pic_mode
19287
19288 # What is the maximum length of a command?
19289 max_cmd_len=$lt_cv_sys_max_cmd_len
19290
19291 # Does compiler simultaneously support -c and -o options?
19292 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19293
19294 # Must we lock files when doing compilation?
19295 need_locks=$lt_need_locks
19296
19297 # Do we need the lib prefix for modules?
19298 need_lib_prefix=$need_lib_prefix
19299
19300 # Do we need a version for libraries?
19301 need_version=$need_version
19302
19303 # Whether dlopen is supported.
19304 dlopen_support=$enable_dlopen
19305
19306 # Whether dlopen of programs is supported.
19307 dlopen_self=$enable_dlopen_self
19308
19309 # Whether dlopen of statically linked programs is supported.
19310 dlopen_self_static=$enable_dlopen_self_static
19311
19312 # Compiler flag to prevent dynamic linking.
19313 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19314
19315 # Compiler flag to turn off builtin functions.
19316 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19317
19318 # Compiler flag to allow reflexive dlopens.
19319 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19320
19321 # Compiler flag to generate shared objects directly from archives.
19322 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19323
19324 # Compiler flag to generate thread-safe objects.
19325 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19326
19327 # Library versioning type.
19328 version_type=$version_type
19329
19330 # Format of library name prefix.
19331 libname_spec=$lt_libname_spec
19332
19333 # List of archive names.  First name is the real one, the rest are links.
19334 # The last name is the one that the linker finds with -lNAME.
19335 library_names_spec=$lt_library_names_spec
19336
19337 # The coded name of the library, if different from the real name.
19338 soname_spec=$lt_soname_spec
19339
19340 # Commands used to build and install an old-style archive.
19341 RANLIB=$lt_RANLIB
19342 old_archive_cmds=$lt_old_archive_cmds_GCJ
19343 old_postinstall_cmds=$lt_old_postinstall_cmds
19344 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19345
19346 # Create an old-style archive from a shared archive.
19347 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19348
19349 # Create a temporary old-style archive to link instead of a shared archive.
19350 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19351
19352 # Commands used to build and install a shared archive.
19353 archive_cmds=$lt_archive_cmds_GCJ
19354 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19355 postinstall_cmds=$lt_postinstall_cmds
19356 postuninstall_cmds=$lt_postuninstall_cmds
19357
19358 # Commands used to build a loadable module (assumed same as above if empty)
19359 module_cmds=$lt_module_cmds_GCJ
19360 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19361
19362 # Commands to strip libraries.
19363 old_striplib=$lt_old_striplib
19364 striplib=$lt_striplib
19365
19366 # Dependencies to place before the objects being linked to create a
19367 # shared library.
19368 predep_objects=$lt_predep_objects_GCJ
19369
19370 # Dependencies to place after the objects being linked to create a
19371 # shared library.
19372 postdep_objects=$lt_postdep_objects_GCJ
19373
19374 # Dependencies to place before the objects being linked to create a
19375 # shared library.
19376 predeps=$lt_predeps_GCJ
19377
19378 # Dependencies to place after the objects being linked to create a
19379 # shared library.
19380 postdeps=$lt_postdeps_GCJ
19381
19382 # The directories searched by this compiler when creating a shared
19383 # library
19384 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19385
19386 # The library search path used internally by the compiler when linking
19387 # a shared library.
19388 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19389
19390 # Method to check whether dependent libraries are shared objects.
19391 deplibs_check_method=$lt_deplibs_check_method
19392
19393 # Command to use when deplibs_check_method == file_magic.
19394 file_magic_cmd=$lt_file_magic_cmd
19395
19396 # Flag that allows shared libraries with undefined symbols to be built.
19397 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19398
19399 # Flag that forces no undefined symbols.
19400 no_undefined_flag=$lt_no_undefined_flag_GCJ
19401
19402 # Commands used to finish a libtool library installation in a directory.
19403 finish_cmds=$lt_finish_cmds
19404
19405 # Same as above, but a single script fragment to be evaled but not shown.
19406 finish_eval=$lt_finish_eval
19407
19408 # Take the output of nm and produce a listing of raw symbols and C names.
19409 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19410
19411 # Transform the output of nm in a proper C declaration
19412 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19413
19414 # Transform the output of nm in a C name address pair
19415 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19416
19417 # This is the shared library runtime path variable.
19418 runpath_var=$runpath_var
19419
19420 # This is the shared library path variable.
19421 shlibpath_var=$shlibpath_var
19422
19423 # Is shlibpath searched before the hard-coded library search path?
19424 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19425
19426 # How to hardcode a shared library path into an executable.
19427 hardcode_action=$hardcode_action_GCJ
19428
19429 # Whether we should hardcode library paths into libraries.
19430 hardcode_into_libs=$hardcode_into_libs
19431
19432 # Flag to hardcode \$libdir into a binary during linking.
19433 # This must work even if \$libdir does not exist.
19434 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19435
19436 # If ld is used when linking, flag to hardcode \$libdir into
19437 # a binary during linking. This must work even if \$libdir does
19438 # not exist.
19439 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19440
19441 # Whether we need a single -rpath flag with a separated argument.
19442 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19443
19444 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19445 # resulting binary.
19446 hardcode_direct=$hardcode_direct_GCJ
19447
19448 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19449 # resulting binary.
19450 hardcode_minus_L=$hardcode_minus_L_GCJ
19451
19452 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19453 # the resulting binary.
19454 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19455
19456 # Set to yes if building a shared library automatically hardcodes DIR into the library
19457 # and all subsequent libraries and executables linked against it.
19458 hardcode_automatic=$hardcode_automatic_GCJ
19459
19460 # Variables whose values should be saved in libtool wrapper scripts and
19461 # restored at relink time.
19462 variables_saved_for_relink="$variables_saved_for_relink"
19463
19464 # Whether libtool must link a program against all its dependency libraries.
19465 link_all_deplibs=$link_all_deplibs_GCJ
19466
19467 # Compile-time system search path for libraries
19468 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19469
19470 # Run-time system search path for libraries
19471 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19472
19473 # Fix the shell variable \$srcfile for the compiler.
19474 fix_srcfile_path=$lt_fix_srcfile_path
19475
19476 # Set to yes if exported symbols are required.
19477 always_export_symbols=$always_export_symbols_GCJ
19478
19479 # The commands to list exported symbols.
19480 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19481
19482 # The commands to extract the exported symbol list from a shared archive.
19483 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19484
19485 # Symbols that should not be listed in the preloaded symbols.
19486 exclude_expsyms=$lt_exclude_expsyms_GCJ
19487
19488 # Symbols that must always be exported.
19489 include_expsyms=$lt_include_expsyms_GCJ
19490
19491 # ### END LIBTOOL TAG CONFIG: $tagname
19492
19493 __EOF__
19494
19495
19496 else
19497   # If there is no Makefile yet, we rely on a make rule to execute
19498   # `config.status --recheck' to rerun these tests and create the
19499   # libtool script then.
19500   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19501   if test -f "$ltmain_in"; then
19502     test -f Makefile && make "$ltmain"
19503   fi
19504 fi
19505
19506
19507 ac_ext=c
19508 ac_cpp='$CPP $CPPFLAGS'
19509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19512
19513 CC="$lt_save_CC"
19514
19515         else
19516           tagname=""
19517         fi
19518         ;;
19519
19520       RC)
19521
19522
19523 # Source file extension for RC test sources.
19524 ac_ext=rc
19525
19526 # Object file extension for compiled RC test sources.
19527 objext=o
19528 objext_RC=$objext
19529
19530 # Code to be used in simple compile tests
19531 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19532
19533 # Code to be used in simple link tests
19534 lt_simple_link_test_code="$lt_simple_compile_test_code"
19535
19536 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19537
19538 # If no C compiler was specified, use CC.
19539 LTCC=${LTCC-"$CC"}
19540
19541 # If no C compiler flags were specified, use CFLAGS.
19542 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19543
19544 # Allow CC to be a program name with arguments.
19545 compiler=$CC
19546
19547
19548 # save warnings/boilerplate of simple test code
19549 ac_outfile=conftest.$ac_objext
19550 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19551 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19552 _lt_compiler_boilerplate=`cat conftest.err`
19553 $rm conftest*
19554
19555 ac_outfile=conftest.$ac_objext
19556 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19557 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19558 _lt_linker_boilerplate=`cat conftest.err`
19559 $rm -r conftest*
19560
19561
19562 # Allow CC to be a program name with arguments.
19563 lt_save_CC="$CC"
19564 CC=${RC-"windres"}
19565 compiler=$CC
19566 compiler_RC=$CC
19567 for cc_temp in $compiler""; do
19568   case $cc_temp in
19569     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19570     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19571     \-*) ;;
19572     *) break;;
19573   esac
19574 done
19575 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19576
19577 lt_cv_prog_compiler_c_o_RC=yes
19578
19579 # The else clause should only fire when bootstrapping the
19580 # libtool distribution, otherwise you forgot to ship ltmain.sh
19581 # with your package, and you will get complaints that there are
19582 # no rules to generate ltmain.sh.
19583 if test -f "$ltmain"; then
19584   # See if we are running on zsh, and set the options which allow our commands through
19585   # without removal of \ escapes.
19586   if test -n "${ZSH_VERSION+set}" ; then
19587     setopt NO_GLOB_SUBST
19588   fi
19589   # Now quote all the things that may contain metacharacters while being
19590   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19591   # variables and quote the copies for generation of the libtool script.
19592   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19593     SED SHELL STRIP \
19594     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19595     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19596     deplibs_check_method reload_flag reload_cmds need_locks \
19597     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19598     lt_cv_sys_global_symbol_to_c_name_address \
19599     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19600     old_postinstall_cmds old_postuninstall_cmds \
19601     compiler_RC \
19602     CC_RC \
19603     LD_RC \
19604     lt_prog_compiler_wl_RC \
19605     lt_prog_compiler_pic_RC \
19606     lt_prog_compiler_static_RC \
19607     lt_prog_compiler_no_builtin_flag_RC \
19608     export_dynamic_flag_spec_RC \
19609     thread_safe_flag_spec_RC \
19610     whole_archive_flag_spec_RC \
19611     enable_shared_with_static_runtimes_RC \
19612     old_archive_cmds_RC \
19613     old_archive_from_new_cmds_RC \
19614     predep_objects_RC \
19615     postdep_objects_RC \
19616     predeps_RC \
19617     postdeps_RC \
19618     compiler_lib_search_path_RC \
19619     compiler_lib_search_dirs_RC \
19620     archive_cmds_RC \
19621     archive_expsym_cmds_RC \
19622     postinstall_cmds_RC \
19623     postuninstall_cmds_RC \
19624     old_archive_from_expsyms_cmds_RC \
19625     allow_undefined_flag_RC \
19626     no_undefined_flag_RC \
19627     export_symbols_cmds_RC \
19628     hardcode_libdir_flag_spec_RC \
19629     hardcode_libdir_flag_spec_ld_RC \
19630     hardcode_libdir_separator_RC \
19631     hardcode_automatic_RC \
19632     module_cmds_RC \
19633     module_expsym_cmds_RC \
19634     lt_cv_prog_compiler_c_o_RC \
19635     fix_srcfile_path_RC \
19636     exclude_expsyms_RC \
19637     include_expsyms_RC; do
19638
19639     case $var in
19640     old_archive_cmds_RC | \
19641     old_archive_from_new_cmds_RC | \
19642     archive_cmds_RC | \
19643     archive_expsym_cmds_RC | \
19644     module_cmds_RC | \
19645     module_expsym_cmds_RC | \
19646     old_archive_from_expsyms_cmds_RC | \
19647     export_symbols_cmds_RC | \
19648     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19649     postinstall_cmds | postuninstall_cmds | \
19650     old_postinstall_cmds | old_postuninstall_cmds | \
19651     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19652       # Double-quote double-evaled strings.
19653       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19654       ;;
19655     *)
19656       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19657       ;;
19658     esac
19659   done
19660
19661   case $lt_echo in
19662   *'\$0 --fallback-echo"')
19663     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19664     ;;
19665   esac
19666
19667 cfgfile="$ofile"
19668
19669   cat <<__EOF__ >> "$cfgfile"
19670 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19671
19672 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19673
19674 # Shell to use when invoking shell scripts.
19675 SHELL=$lt_SHELL
19676
19677 # Whether or not to build shared libraries.
19678 build_libtool_libs=$enable_shared
19679
19680 # Whether or not to build static libraries.
19681 build_old_libs=$enable_static
19682
19683 # Whether or not to add -lc for building shared libraries.
19684 build_libtool_need_lc=$archive_cmds_need_lc_RC
19685
19686 # Whether or not to disallow shared libs when runtime libs are static
19687 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19688
19689 # Whether or not to optimize for fast installation.
19690 fast_install=$enable_fast_install
19691
19692 # The host system.
19693 host_alias=$host_alias
19694 host=$host
19695 host_os=$host_os
19696
19697 # The build system.
19698 build_alias=$build_alias
19699 build=$build
19700 build_os=$build_os
19701
19702 # An echo program that does not interpret backslashes.
19703 echo=$lt_echo
19704
19705 # The archiver.
19706 AR=$lt_AR
19707 AR_FLAGS=$lt_AR_FLAGS
19708
19709 # A C compiler.
19710 LTCC=$lt_LTCC
19711
19712 # LTCC compiler flags.
19713 LTCFLAGS=$lt_LTCFLAGS
19714
19715 # A language-specific compiler.
19716 CC=$lt_compiler_RC
19717
19718 # Is the compiler the GNU C compiler?
19719 with_gcc=$GCC_RC
19720
19721 # An ERE matcher.
19722 EGREP=$lt_EGREP
19723
19724 # The linker used to build libraries.
19725 LD=$lt_LD_RC
19726
19727 # Whether we need hard or soft links.
19728 LN_S=$lt_LN_S
19729
19730 # A BSD-compatible nm program.
19731 NM=$lt_NM
19732
19733 # A symbol stripping program
19734 STRIP=$lt_STRIP
19735
19736 # Used to examine libraries when file_magic_cmd begins "file"
19737 MAGIC_CMD=$MAGIC_CMD
19738
19739 # Used on cygwin: DLL creation program.
19740 DLLTOOL="$DLLTOOL"
19741
19742 # Used on cygwin: object dumper.
19743 OBJDUMP="$OBJDUMP"
19744
19745 # Used on cygwin: assembler.
19746 AS="$AS"
19747
19748 # The name of the directory that contains temporary libtool files.
19749 objdir=$objdir
19750
19751 # How to create reloadable object files.
19752 reload_flag=$lt_reload_flag
19753 reload_cmds=$lt_reload_cmds
19754
19755 # How to pass a linker flag through the compiler.
19756 wl=$lt_lt_prog_compiler_wl_RC
19757
19758 # Object file suffix (normally "o").
19759 objext="$ac_objext"
19760
19761 # Old archive suffix (normally "a").
19762 libext="$libext"
19763
19764 # Shared library suffix (normally ".so").
19765 shrext_cmds='$shrext_cmds'
19766
19767 # Executable file suffix (normally "").
19768 exeext="$exeext"
19769
19770 # Additional compiler flags for building library objects.
19771 pic_flag=$lt_lt_prog_compiler_pic_RC
19772 pic_mode=$pic_mode
19773
19774 # What is the maximum length of a command?
19775 max_cmd_len=$lt_cv_sys_max_cmd_len
19776
19777 # Does compiler simultaneously support -c and -o options?
19778 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19779
19780 # Must we lock files when doing compilation?
19781 need_locks=$lt_need_locks
19782
19783 # Do we need the lib prefix for modules?
19784 need_lib_prefix=$need_lib_prefix
19785
19786 # Do we need a version for libraries?
19787 need_version=$need_version
19788
19789 # Whether dlopen is supported.
19790 dlopen_support=$enable_dlopen
19791
19792 # Whether dlopen of programs is supported.
19793 dlopen_self=$enable_dlopen_self
19794
19795 # Whether dlopen of statically linked programs is supported.
19796 dlopen_self_static=$enable_dlopen_self_static
19797
19798 # Compiler flag to prevent dynamic linking.
19799 link_static_flag=$lt_lt_prog_compiler_static_RC
19800
19801 # Compiler flag to turn off builtin functions.
19802 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19803
19804 # Compiler flag to allow reflexive dlopens.
19805 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19806
19807 # Compiler flag to generate shared objects directly from archives.
19808 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19809
19810 # Compiler flag to generate thread-safe objects.
19811 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19812
19813 # Library versioning type.
19814 version_type=$version_type
19815
19816 # Format of library name prefix.
19817 libname_spec=$lt_libname_spec
19818
19819 # List of archive names.  First name is the real one, the rest are links.
19820 # The last name is the one that the linker finds with -lNAME.
19821 library_names_spec=$lt_library_names_spec
19822
19823 # The coded name of the library, if different from the real name.
19824 soname_spec=$lt_soname_spec
19825
19826 # Commands used to build and install an old-style archive.
19827 RANLIB=$lt_RANLIB
19828 old_archive_cmds=$lt_old_archive_cmds_RC
19829 old_postinstall_cmds=$lt_old_postinstall_cmds
19830 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19831
19832 # Create an old-style archive from a shared archive.
19833 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19834
19835 # Create a temporary old-style archive to link instead of a shared archive.
19836 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19837
19838 # Commands used to build and install a shared archive.
19839 archive_cmds=$lt_archive_cmds_RC
19840 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19841 postinstall_cmds=$lt_postinstall_cmds
19842 postuninstall_cmds=$lt_postuninstall_cmds
19843
19844 # Commands used to build a loadable module (assumed same as above if empty)
19845 module_cmds=$lt_module_cmds_RC
19846 module_expsym_cmds=$lt_module_expsym_cmds_RC
19847
19848 # Commands to strip libraries.
19849 old_striplib=$lt_old_striplib
19850 striplib=$lt_striplib
19851
19852 # Dependencies to place before the objects being linked to create a
19853 # shared library.
19854 predep_objects=$lt_predep_objects_RC
19855
19856 # Dependencies to place after the objects being linked to create a
19857 # shared library.
19858 postdep_objects=$lt_postdep_objects_RC
19859
19860 # Dependencies to place before the objects being linked to create a
19861 # shared library.
19862 predeps=$lt_predeps_RC
19863
19864 # Dependencies to place after the objects being linked to create a
19865 # shared library.
19866 postdeps=$lt_postdeps_RC
19867
19868 # The directories searched by this compiler when creating a shared
19869 # library
19870 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19871
19872 # The library search path used internally by the compiler when linking
19873 # a shared library.
19874 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19875
19876 # Method to check whether dependent libraries are shared objects.
19877 deplibs_check_method=$lt_deplibs_check_method
19878
19879 # Command to use when deplibs_check_method == file_magic.
19880 file_magic_cmd=$lt_file_magic_cmd
19881
19882 # Flag that allows shared libraries with undefined symbols to be built.
19883 allow_undefined_flag=$lt_allow_undefined_flag_RC
19884
19885 # Flag that forces no undefined symbols.
19886 no_undefined_flag=$lt_no_undefined_flag_RC
19887
19888 # Commands used to finish a libtool library installation in a directory.
19889 finish_cmds=$lt_finish_cmds
19890
19891 # Same as above, but a single script fragment to be evaled but not shown.
19892 finish_eval=$lt_finish_eval
19893
19894 # Take the output of nm and produce a listing of raw symbols and C names.
19895 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19896
19897 # Transform the output of nm in a proper C declaration
19898 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19899
19900 # Transform the output of nm in a C name address pair
19901 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19902
19903 # This is the shared library runtime path variable.
19904 runpath_var=$runpath_var
19905
19906 # This is the shared library path variable.
19907 shlibpath_var=$shlibpath_var
19908
19909 # Is shlibpath searched before the hard-coded library search path?
19910 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19911
19912 # How to hardcode a shared library path into an executable.
19913 hardcode_action=$hardcode_action_RC
19914
19915 # Whether we should hardcode library paths into libraries.
19916 hardcode_into_libs=$hardcode_into_libs
19917
19918 # Flag to hardcode \$libdir into a binary during linking.
19919 # This must work even if \$libdir does not exist.
19920 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19921
19922 # If ld is used when linking, flag to hardcode \$libdir into
19923 # a binary during linking. This must work even if \$libdir does
19924 # not exist.
19925 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19926
19927 # Whether we need a single -rpath flag with a separated argument.
19928 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19929
19930 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19931 # resulting binary.
19932 hardcode_direct=$hardcode_direct_RC
19933
19934 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19935 # resulting binary.
19936 hardcode_minus_L=$hardcode_minus_L_RC
19937
19938 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19939 # the resulting binary.
19940 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19941
19942 # Set to yes if building a shared library automatically hardcodes DIR into the library
19943 # and all subsequent libraries and executables linked against it.
19944 hardcode_automatic=$hardcode_automatic_RC
19945
19946 # Variables whose values should be saved in libtool wrapper scripts and
19947 # restored at relink time.
19948 variables_saved_for_relink="$variables_saved_for_relink"
19949
19950 # Whether libtool must link a program against all its dependency libraries.
19951 link_all_deplibs=$link_all_deplibs_RC
19952
19953 # Compile-time system search path for libraries
19954 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19955
19956 # Run-time system search path for libraries
19957 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19958
19959 # Fix the shell variable \$srcfile for the compiler.
19960 fix_srcfile_path=$lt_fix_srcfile_path
19961
19962 # Set to yes if exported symbols are required.
19963 always_export_symbols=$always_export_symbols_RC
19964
19965 # The commands to list exported symbols.
19966 export_symbols_cmds=$lt_export_symbols_cmds_RC
19967
19968 # The commands to extract the exported symbol list from a shared archive.
19969 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19970
19971 # Symbols that should not be listed in the preloaded symbols.
19972 exclude_expsyms=$lt_exclude_expsyms_RC
19973
19974 # Symbols that must always be exported.
19975 include_expsyms=$lt_include_expsyms_RC
19976
19977 # ### END LIBTOOL TAG CONFIG: $tagname
19978
19979 __EOF__
19980
19981
19982 else
19983   # If there is no Makefile yet, we rely on a make rule to execute
19984   # `config.status --recheck' to rerun these tests and create the
19985   # libtool script then.
19986   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19987   if test -f "$ltmain_in"; then
19988     test -f Makefile && make "$ltmain"
19989   fi
19990 fi
19991
19992
19993 ac_ext=c
19994 ac_cpp='$CPP $CPPFLAGS'
19995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19998
19999 CC="$lt_save_CC"
20000
20001         ;;
20002
20003       *)
20004         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20005 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20006    { (exit 1); exit 1; }; }
20007         ;;
20008       esac
20009
20010       # Append the new tag name to the list of available tags.
20011       if test -n "$tagname" ; then
20012       available_tags="$available_tags $tagname"
20013     fi
20014     fi
20015   done
20016   IFS="$lt_save_ifs"
20017
20018   # Now substitute the updated list of available tags.
20019   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20020     mv "${ofile}T" "$ofile"
20021     chmod +x "$ofile"
20022   else
20023     rm -f "${ofile}T"
20024     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20025 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20026    { (exit 1); exit 1; }; }
20027   fi
20028 fi
20029
20030
20031
20032 # This can be used to rebuild libtool when needed
20033 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20034
20035 # Always use our own libtool.
20036 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20037
20038 # Prevent multiple expansion
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051 # Check whether --with-system-libtool was given.
20052 if test "${with_system_libtool+set}" = set; then
20053   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
20054 set dummy libtool; ac_word=$2
20055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20057 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20058   echo $ECHO_N "(cached) $ECHO_C" >&6
20059 else
20060   case $LIBTOOL in
20061   [\\/]* | ?:[\\/]*)
20062   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20063   ;;
20064   *)
20065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20066 as_dummy="$PATH:/usr/local/bin"
20067 for as_dir in $as_dummy
20068 do
20069   IFS=$as_save_IFS
20070   test -z "$as_dir" && as_dir=.
20071   for ac_exec_ext in '' $ac_executable_extensions; do
20072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20073     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20075     break 2
20076   fi
20077 done
20078 done
20079 IFS=$as_save_IFS
20080
20081   ;;
20082 esac
20083 fi
20084 LIBTOOL=$ac_cv_path_LIBTOOL
20085 if test -n "$LIBTOOL"; then
20086   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20087 echo "${ECHO_T}$LIBTOOL" >&6; }
20088 else
20089   { echo "$as_me:$LINENO: result: no" >&5
20090 echo "${ECHO_T}no" >&6; }
20091 fi
20092
20093
20094 else
20095
20096   LIBTOOL="`pwd`/libtool"
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111 fi
20112
20113
20114
20115
20116 # Check whether --enable-strict-dependencies was given.
20117 if test "${enable_strict_dependencies+set}" = set; then
20118   enableval=$enable_strict_dependencies;
20119 fi
20120
20121
20122 docdir='${datadir}/doc/freeradius'
20123 { echo "$as_me:$LINENO: checking docdir" >&5
20124 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
20125
20126 # Check whether --with-docdir was given.
20127 if test "${with_docdir+set}" = set; then
20128   withval=$with_docdir;  case "$withval" in
20129     no)
20130         docdir=no
20131         ;;
20132     yes)
20133         ;;
20134     [\\/$]* | ?:[\\/]* )
20135         docdir="$withval"
20136         ;;
20137     *)
20138         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
20139 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
20140    { (exit 1); exit 1; }; }
20141         ;;
20142   esac
20143
20144 fi
20145
20146
20147 { echo "$as_me:$LINENO: result: $docdir" >&5
20148 echo "${ECHO_T}$docdir" >&6; }
20149 if test "x$docdir" = xno; then
20150         { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
20151 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
20152 fi
20153
20154 logdir='${localstatedir}/log/radius'
20155 { echo "$as_me:$LINENO: checking logdir" >&5
20156 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
20157
20158 # Check whether --with-logdir was given.
20159 if test "${with_logdir+set}" = set; then
20160   withval=$with_logdir;  case "$withval" in
20161     no)
20162         { { echo "$as_me:$LINENO: error: Need logdir" >&5
20163 echo "$as_me: error: Need logdir" >&2;}
20164    { (exit 1); exit 1; }; }
20165         ;;
20166     yes)
20167         ;;
20168     [\\/$]* | ?:[\\/]* )
20169         logdir="$withval"
20170         ;;
20171     *)
20172         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
20173 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
20174    { (exit 1); exit 1; }; }
20175         ;;
20176   esac
20177
20178 fi
20179
20180
20181 { echo "$as_me:$LINENO: result: $logdir" >&5
20182 echo "${ECHO_T}$logdir" >&6; }
20183
20184 radacctdir='${logdir}/radacct'
20185 { echo "$as_me:$LINENO: checking radacctdir" >&5
20186 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
20187
20188 # Check whether --with-radacctdir was given.
20189 if test "${with_radacctdir+set}" = set; then
20190   withval=$with_radacctdir;  case "$withval" in
20191     no)
20192         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
20193 echo "$as_me: error: Need radacctdir" >&2;}
20194    { (exit 1); exit 1; }; }
20195         ;;
20196     yes)
20197         ;;
20198     [\\/$]* | ?:[\\/]* )
20199         radacctdir="$withval"
20200         ;;
20201     *)
20202         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
20203 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
20204    { (exit 1); exit 1; }; }
20205         ;;
20206   esac
20207
20208 fi
20209
20210
20211 { echo "$as_me:$LINENO: result: $radacctdir" >&5
20212 echo "${ECHO_T}$radacctdir" >&6; }
20213
20214 raddbdir='${sysconfdir}/raddb'
20215 { echo "$as_me:$LINENO: checking raddbdir" >&5
20216 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
20217
20218 # Check whether --with-raddbdir was given.
20219 if test "${with_raddbdir+set}" = set; then
20220   withval=$with_raddbdir;  case "$withval" in
20221     no)
20222         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
20223 echo "$as_me: error: Need raddbdir" >&2;}
20224    { (exit 1); exit 1; }; }
20225         ;;
20226     yes)
20227         ;;
20228     [\\/$]* | ?:[\\/]* )
20229         raddbdir="$withval"
20230         ;;
20231     *)
20232         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
20233 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
20234    { (exit 1); exit 1; }; }
20235         ;;
20236   esac
20237
20238 fi
20239
20240
20241 { echo "$as_me:$LINENO: result: $raddbdir" >&5
20242 echo "${ECHO_T}$raddbdir" >&6; }
20243
20244 ASCEND_BINARY=yes
20245
20246 # Check whether --with-ascend-binary was given.
20247 if test "${with_ascend_binary+set}" = set; then
20248   withval=$with_ascend_binary;  case "$withval" in
20249     yes)
20250         ;;
20251     *)
20252         ASCEND_BINARY=""
20253   esac
20254
20255 fi
20256
20257 if test "X$ASCEND_BINARY" = "Xyes"; then
20258
20259 cat >>confdefs.h <<\_ACEOF
20260 #define ASCEND_BINARY
20261 _ACEOF
20262
20263 fi
20264
20265 WITH_THREADS=yes
20266
20267 # Check whether --with-threads was given.
20268 if test "${with_threads+set}" = set; then
20269   withval=$with_threads;  case "$withval" in
20270     yes)
20271         ;;
20272     *)
20273         WITH_THREADS=""
20274   esac
20275
20276 fi
20277
20278
20279 WITH_VMPS=yes
20280
20281 # Check whether --with-vmps was given.
20282 if test "${with_vmps+set}" = set; then
20283   withval=$with_vmps;  case "$withval" in
20284     yes)
20285         ;;
20286     *)
20287         WITH_VMPS=no
20288   esac
20289
20290 fi
20291
20292 if test "x$WITH_VMPS" = "xyes"; then
20293
20294 cat >>confdefs.h <<\_ACEOF
20295 #define WITH_VMPS 1
20296 _ACEOF
20297
20298 fi
20299
20300
20301 # Check whether --with-dhcp was given.
20302 if test "${with_dhcp+set}" = set; then
20303   withval=$with_dhcp;  case "$withval" in
20304     yes)
20305
20306 cat >>confdefs.h <<\_ACEOF
20307 #define WITH_DHCP 1
20308 _ACEOF
20309
20310         ;;
20311     *)
20312         ;;
20313   esac
20314
20315 fi
20316
20317
20318
20319 STATIC_MODULES=
20320
20321 # Check whether --with-static_modules was given.
20322 if test "${with_static_modules+set}" = set; then
20323   withval=$with_static_modules;
20324   for i in $withval; do
20325     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
20326   done
20327
20328 fi
20329
20330
20331 MODULES=
20332
20333 # Check whether --with-modules was given.
20334 if test "${with_modules+set}" = set; then
20335   withval=$with_modules;
20336  for i in $withval; do
20337    MODULES="$MODULES $i"
20338  done
20339
20340 fi
20341
20342
20343 # Check whether --enable-developer was given.
20344 if test "${enable_developer+set}" = set; then
20345   enableval=$enable_developer;  case "$enableval" in
20346     no)
20347         developer=no
20348         ;;
20349     *)
20350         developer=yes
20351   esac
20352
20353 fi
20354
20355
20356 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
20357     developer="yes"
20358 fi
20359
20360 if test "x$developer" != "xno" -a -d $srcdir/.git; then
20361     developer="yes"
20362 fi
20363
20364 EXPERIMENTAL=
20365
20366 # Check whether --with-experimental-modules was given.
20367 if test "${with_experimental_modules+set}" = set; then
20368   withval=$with_experimental_modules;  case "$withval" in
20369     yes)
20370         EXPERIMENTAL=yes
20371         ;;
20372     *)
20373   esac
20374
20375 fi
20376
20377
20378 WITH_OPENSSL=yes
20379
20380 # Check whether --with-openssl was given.
20381 if test "${with_openssl+set}" = set; then
20382   withval=$with_openssl;  case "$withval" in
20383     no)
20384         WITH_OPENSSL=no
20385         ;;
20386     *)
20387         WITH_OPENSSL=yes
20388         ;;
20389   esac
20390
20391 fi
20392
20393
20394 OPENSSL_INCLUDE_DIR=
20395
20396 # Check whether --with-openssl-includes was given.
20397 if test "${with_openssl_includes+set}" = set; then
20398   withval=$with_openssl_includes;  case "$withval" in
20399     *) OPENSSL_INCLUDE_DIR="$withval"
20400         ;;
20401   esac
20402
20403 fi
20404
20405
20406 OPENSSL_LIB_DIR=
20407
20408 # Check whether --with-openssl-libraries was given.
20409 if test "${with_openssl_libraries+set}" = set; then
20410   withval=$with_openssl_libraries;  case "$withval" in
20411     *) OPENSSL_LIB_DIR="$withval"
20412         ;;
20413   esac
20414
20415 fi
20416
20417
20418
20419
20420 # Check whether --with-rlm-FOO-lib-dir was given.
20421 if test "${with_rlm_FOO_lib_dir+set}" = set; then
20422   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
20423     *)
20424         ;;
20425   esac
20426
20427 fi
20428
20429
20430
20431 # Check whether --with-rlm-FOO-include-dir was given.
20432 if test "${with_rlm_FOO_include_dir+set}" = set; then
20433   withval=$with_rlm_FOO_include_dir;  case "$withval" in
20434     *)
20435         ;;
20436   esac
20437
20438 fi
20439
20440
20441
20442 WITH_UDPFROMTO=no
20443
20444 # Check whether --with-udpfromto was given.
20445 if test "${with_udpfromto+set}" = set; then
20446   withval=$with_udpfromto;  case "$withval" in
20447     yes)
20448         WITH_UDPFROMTO=yes
20449         ;;
20450     *)
20451         WITH_UDPFROMTO=no
20452   esac
20453
20454 fi
20455
20456
20457 if test "x$WITH_UDPFROMTO" = "xyes"; then
20458
20459 cat >>confdefs.h <<\_ACEOF
20460 #define WITH_UDPFROMTO
20461 _ACEOF
20462
20463 fi
20464
20465
20466 CHECKRAD=checkrad.pl
20467 # Extract the first word of "perl", so it can be a program name with args.
20468 set dummy perl; ac_word=$2
20469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20471 if test "${ac_cv_path_PERL+set}" = set; then
20472   echo $ECHO_N "(cached) $ECHO_C" >&6
20473 else
20474   case $PERL in
20475   [\\/]* | ?:[\\/]*)
20476   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20477   ;;
20478   *)
20479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20480 for as_dir in $PATH
20481 do
20482   IFS=$as_save_IFS
20483   test -z "$as_dir" && as_dir=.
20484   for ac_exec_ext in '' $ac_executable_extensions; do
20485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20486     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
20487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20488     break 2
20489   fi
20490 done
20491 done
20492 IFS=$as_save_IFS
20493
20494   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
20495   ;;
20496 esac
20497 fi
20498 PERL=$ac_cv_path_PERL
20499 if test -n "$PERL"; then
20500   { echo "$as_me:$LINENO: result: $PERL" >&5
20501 echo "${ECHO_T}$PERL" >&6; }
20502 else
20503   { echo "$as_me:$LINENO: result: no" >&5
20504 echo "${ECHO_T}no" >&6; }
20505 fi
20506
20507
20508 if test "x$ac_cv_path_PERL" = "x"; then
20509   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
20510 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20511 fi
20512 # Extract the first word of "snmpget", so it can be a program name with args.
20513 set dummy snmpget; ac_word=$2
20514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20516 if test "${ac_cv_path_SNMPGET+set}" = set; then
20517   echo $ECHO_N "(cached) $ECHO_C" >&6
20518 else
20519   case $SNMPGET in
20520   [\\/]* | ?:[\\/]*)
20521   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
20522   ;;
20523   *)
20524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20525 for as_dir in $PATH
20526 do
20527   IFS=$as_save_IFS
20528   test -z "$as_dir" && as_dir=.
20529   for ac_exec_ext in '' $ac_executable_extensions; do
20530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20531     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
20532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20533     break 2
20534   fi
20535 done
20536 done
20537 IFS=$as_save_IFS
20538
20539   ;;
20540 esac
20541 fi
20542 SNMPGET=$ac_cv_path_SNMPGET
20543 if test -n "$SNMPGET"; then
20544   { echo "$as_me:$LINENO: result: $SNMPGET" >&5
20545 echo "${ECHO_T}$SNMPGET" >&6; }
20546 else
20547   { echo "$as_me:$LINENO: result: no" >&5
20548 echo "${ECHO_T}no" >&6; }
20549 fi
20550
20551
20552 if test "x$ac_cv_path_SNMPGET" = "x"; then
20553   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
20554 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20555 fi
20556
20557 # Extract the first word of "snmpwalk", so it can be a program name with args.
20558 set dummy snmpwalk; ac_word=$2
20559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20561 if test "${ac_cv_path_SNMPWALK+set}" = set; then
20562   echo $ECHO_N "(cached) $ECHO_C" >&6
20563 else
20564   case $SNMPWALK in
20565   [\\/]* | ?:[\\/]*)
20566   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20567   ;;
20568   *)
20569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20570 for as_dir in $PATH
20571 do
20572   IFS=$as_save_IFS
20573   test -z "$as_dir" && as_dir=.
20574   for ac_exec_ext in '' $ac_executable_extensions; do
20575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20576     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20578     break 2
20579   fi
20580 done
20581 done
20582 IFS=$as_save_IFS
20583
20584   ;;
20585 esac
20586 fi
20587 SNMPWALK=$ac_cv_path_SNMPWALK
20588 if test -n "$SNMPWALK"; then
20589   { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20590 echo "${ECHO_T}$SNMPWALK" >&6; }
20591 else
20592   { echo "$as_me:$LINENO: result: no" >&5
20593 echo "${ECHO_T}no" >&6; }
20594 fi
20595
20596
20597 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20598   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20599 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20600 fi
20601
20602 # Extract the first word of "rusers", so it can be a program name with args.
20603 set dummy rusers; ac_word=$2
20604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20606 if test "${ac_cv_path_RUSERS+set}" = set; then
20607   echo $ECHO_N "(cached) $ECHO_C" >&6
20608 else
20609   case $RUSERS in
20610   [\\/]* | ?:[\\/]*)
20611   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20612   ;;
20613   *)
20614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20615 for as_dir in $PATH
20616 do
20617   IFS=$as_save_IFS
20618   test -z "$as_dir" && as_dir=.
20619   for ac_exec_ext in '' $ac_executable_extensions; do
20620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20621     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20623     break 2
20624   fi
20625 done
20626 done
20627 IFS=$as_save_IFS
20628
20629   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20630   ;;
20631 esac
20632 fi
20633 RUSERS=$ac_cv_path_RUSERS
20634 if test -n "$RUSERS"; then
20635   { echo "$as_me:$LINENO: result: $RUSERS" >&5
20636 echo "${ECHO_T}$RUSERS" >&6; }
20637 else
20638   { echo "$as_me:$LINENO: result: no" >&5
20639 echo "${ECHO_T}no" >&6; }
20640 fi
20641
20642
20643
20644 missing_dir=`cd $ac_aux_dir && pwd`
20645 # expand $ac_aux_dir to an absolute path
20646 am_aux_dir=`cd $ac_aux_dir && pwd`
20647
20648 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20649 # Use eval to expand $SHELL
20650 if eval "$MISSING --run true"; then
20651   am_missing_run="$MISSING --run "
20652 else
20653   am_missing_run=
20654   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20655 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20656 fi
20657
20658
20659 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20660
20661
20662 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20663
20664
20665 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20666
20667
20668 # Extract the first word of "locate", so it can be a program name with args.
20669 set dummy locate; ac_word=$2
20670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20672 if test "${ac_cv_path_LOCATE+set}" = set; then
20673   echo $ECHO_N "(cached) $ECHO_C" >&6
20674 else
20675   case $LOCATE in
20676   [\\/]* | ?:[\\/]*)
20677   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20678   ;;
20679   *)
20680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20681 for as_dir in $PATH
20682 do
20683   IFS=$as_save_IFS
20684   test -z "$as_dir" && as_dir=.
20685   for ac_exec_ext in '' $ac_executable_extensions; do
20686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20687     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20689     break 2
20690   fi
20691 done
20692 done
20693 IFS=$as_save_IFS
20694
20695   ;;
20696 esac
20697 fi
20698 LOCATE=$ac_cv_path_LOCATE
20699 if test -n "$LOCATE"; then
20700   { echo "$as_me:$LINENO: result: $LOCATE" >&5
20701 echo "${ECHO_T}$LOCATE" >&6; }
20702 else
20703   { echo "$as_me:$LINENO: result: no" >&5
20704 echo "${ECHO_T}no" >&6; }
20705 fi
20706
20707
20708 # Extract the first word of "dirname", so it can be a program name with args.
20709 set dummy dirname; ac_word=$2
20710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20712 if test "${ac_cv_path_DIRNAME+set}" = set; then
20713   echo $ECHO_N "(cached) $ECHO_C" >&6
20714 else
20715   case $DIRNAME in
20716   [\\/]* | ?:[\\/]*)
20717   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20718   ;;
20719   *)
20720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20721 for as_dir in $PATH
20722 do
20723   IFS=$as_save_IFS
20724   test -z "$as_dir" && as_dir=.
20725   for ac_exec_ext in '' $ac_executable_extensions; do
20726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20727     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20729     break 2
20730   fi
20731 done
20732 done
20733 IFS=$as_save_IFS
20734
20735   ;;
20736 esac
20737 fi
20738 DIRNAME=$ac_cv_path_DIRNAME
20739 if test -n "$DIRNAME"; then
20740   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20741 echo "${ECHO_T}$DIRNAME" >&6; }
20742 else
20743   { echo "$as_me:$LINENO: result: no" >&5
20744 echo "${ECHO_T}no" >&6; }
20745 fi
20746
20747
20748 # Extract the first word of "grep", so it can be a program name with args.
20749 set dummy grep; ac_word=$2
20750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20752 if test "${ac_cv_path_GREP+set}" = set; then
20753   echo $ECHO_N "(cached) $ECHO_C" >&6
20754 else
20755   case $GREP in
20756   [\\/]* | ?:[\\/]*)
20757   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20758   ;;
20759   *)
20760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20761 for as_dir in $PATH
20762 do
20763   IFS=$as_save_IFS
20764   test -z "$as_dir" && as_dir=.
20765   for ac_exec_ext in '' $ac_executable_extensions; do
20766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20767     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20769     break 2
20770   fi
20771 done
20772 done
20773 IFS=$as_save_IFS
20774
20775   ;;
20776 esac
20777 fi
20778 GREP=$ac_cv_path_GREP
20779 if test -n "$GREP"; then
20780   { echo "$as_me:$LINENO: result: $GREP" >&5
20781 echo "${ECHO_T}$GREP" >&6; }
20782 else
20783   { echo "$as_me:$LINENO: result: no" >&5
20784 echo "${ECHO_T}no" >&6; }
20785 fi
20786
20787
20788
20789
20790 old_CFLAGS=$CFLAGS
20791 if test "x$WITH_THREADS" = "xyes"; then
20792   if test $ac_cv_prog_suncc = "yes"; then
20793     CFLAGS="$CFLAGS -mt"
20794   fi
20795
20796
20797 for ac_header in pthread.h
20798 do
20799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20801   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20804   echo $ECHO_N "(cached) $ECHO_C" >&6
20805 fi
20806 ac_res=`eval echo '${'$as_ac_Header'}'`
20807                { echo "$as_me:$LINENO: result: $ac_res" >&5
20808 echo "${ECHO_T}$ac_res" >&6; }
20809 else
20810   # Is the header compilable?
20811 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20813 cat >conftest.$ac_ext <<_ACEOF
20814 /* confdefs.h.  */
20815 _ACEOF
20816 cat confdefs.h >>conftest.$ac_ext
20817 cat >>conftest.$ac_ext <<_ACEOF
20818 /* end confdefs.h.  */
20819 $ac_includes_default
20820 #include <$ac_header>
20821 _ACEOF
20822 rm -f conftest.$ac_objext
20823 if { (ac_try="$ac_compile"
20824 case "(($ac_try" in
20825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20826   *) ac_try_echo=$ac_try;;
20827 esac
20828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20829   (eval "$ac_compile") 2>conftest.er1
20830   ac_status=$?
20831   grep -v '^ *+' conftest.er1 >conftest.err
20832   rm -f conftest.er1
20833   cat conftest.err >&5
20834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835   (exit $ac_status); } && {
20836          test -z "$ac_c_werror_flag" ||
20837          test ! -s conftest.err
20838        } && test -s conftest.$ac_objext; then
20839   ac_header_compiler=yes
20840 else
20841   echo "$as_me: failed program was:" >&5
20842 sed 's/^/| /' conftest.$ac_ext >&5
20843
20844         ac_header_compiler=no
20845 fi
20846
20847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20849 echo "${ECHO_T}$ac_header_compiler" >&6; }
20850
20851 # Is the header present?
20852 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20854 cat >conftest.$ac_ext <<_ACEOF
20855 /* confdefs.h.  */
20856 _ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h.  */
20860 #include <$ac_header>
20861 _ACEOF
20862 if { (ac_try="$ac_cpp conftest.$ac_ext"
20863 case "(($ac_try" in
20864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865   *) ac_try_echo=$ac_try;;
20866 esac
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20869   ac_status=$?
20870   grep -v '^ *+' conftest.er1 >conftest.err
20871   rm -f conftest.er1
20872   cat conftest.err >&5
20873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874   (exit $ac_status); } >/dev/null && {
20875          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20876          test ! -s conftest.err
20877        }; then
20878   ac_header_preproc=yes
20879 else
20880   echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20882
20883   ac_header_preproc=no
20884 fi
20885
20886 rm -f conftest.err conftest.$ac_ext
20887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20888 echo "${ECHO_T}$ac_header_preproc" >&6; }
20889
20890 # So?  What about this header?
20891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20892   yes:no: )
20893     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20897     ac_header_preproc=yes
20898     ;;
20899   no:yes:* )
20900     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20902     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20903 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20904     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20906     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20907 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20910     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20912
20913     ;;
20914 esac
20915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20918   echo $ECHO_N "(cached) $ECHO_C" >&6
20919 else
20920   eval "$as_ac_Header=\$ac_header_preproc"
20921 fi
20922 ac_res=`eval echo '${'$as_ac_Header'}'`
20923                { echo "$as_me:$LINENO: result: $ac_res" >&5
20924 echo "${ECHO_T}$ac_res" >&6; }
20925
20926 fi
20927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20928   cat >>confdefs.h <<_ACEOF
20929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20930 _ACEOF
20931
20932 else
20933    WITH_THREADS="no"
20934 fi
20935
20936 done
20937
20938
20939   { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20940 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20941 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20942   echo $ECHO_N "(cached) $ECHO_C" >&6
20943 else
20944   ac_check_lib_save_LIBS=$LIBS
20945 LIBS="-lpthread  $LIBS"
20946 cat >conftest.$ac_ext <<_ACEOF
20947 /* confdefs.h.  */
20948 _ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h.  */
20952
20953 /* Override any GCC internal prototype to avoid an error.
20954    Use char because int might match the return type of a GCC
20955    builtin and then its argument prototype would still apply.  */
20956 #ifdef __cplusplus
20957 extern "C"
20958 #endif
20959 char pthread_create ();
20960 int
20961 main ()
20962 {
20963 return pthread_create ();
20964   ;
20965   return 0;
20966 }
20967 _ACEOF
20968 rm -f conftest.$ac_objext conftest$ac_exeext
20969 if { (ac_try="$ac_link"
20970 case "(($ac_try" in
20971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972   *) ac_try_echo=$ac_try;;
20973 esac
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975   (eval "$ac_link") 2>conftest.er1
20976   ac_status=$?
20977   grep -v '^ *+' conftest.er1 >conftest.err
20978   rm -f conftest.er1
20979   cat conftest.err >&5
20980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981   (exit $ac_status); } && {
20982          test -z "$ac_c_werror_flag" ||
20983          test ! -s conftest.err
20984        } && test -s conftest$ac_exeext &&
20985        $as_test_x conftest$ac_exeext; then
20986   ac_cv_lib_pthread_pthread_create=yes
20987 else
20988   echo "$as_me: failed program was:" >&5
20989 sed 's/^/| /' conftest.$ac_ext >&5
20990
20991         ac_cv_lib_pthread_pthread_create=no
20992 fi
20993
20994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20995       conftest$ac_exeext conftest.$ac_ext
20996 LIBS=$ac_check_lib_save_LIBS
20997 fi
20998 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20999 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
21000 if test $ac_cv_lib_pthread_pthread_create = yes; then
21001    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
21002                   LIBS="$LIBS -lpthread"
21003 else
21004   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21005 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
21006 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21007   echo $ECHO_N "(cached) $ECHO_C" >&6
21008 else
21009   ac_check_lib_save_LIBS=$LIBS
21010 LIBS="-lc_r  $LIBS"
21011 cat >conftest.$ac_ext <<_ACEOF
21012 /* confdefs.h.  */
21013 _ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h.  */
21017
21018 /* Override any GCC internal prototype to avoid an error.
21019    Use char because int might match the return type of a GCC
21020    builtin and then its argument prototype would still apply.  */
21021 #ifdef __cplusplus
21022 extern "C"
21023 #endif
21024 char pthread_create ();
21025 int
21026 main ()
21027 {
21028 return pthread_create ();
21029   ;
21030   return 0;
21031 }
21032 _ACEOF
21033 rm -f conftest.$ac_objext conftest$ac_exeext
21034 if { (ac_try="$ac_link"
21035 case "(($ac_try" in
21036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21037   *) ac_try_echo=$ac_try;;
21038 esac
21039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21040   (eval "$ac_link") 2>conftest.er1
21041   ac_status=$?
21042   grep -v '^ *+' conftest.er1 >conftest.err
21043   rm -f conftest.er1
21044   cat conftest.err >&5
21045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046   (exit $ac_status); } && {
21047          test -z "$ac_c_werror_flag" ||
21048          test ! -s conftest.err
21049        } && test -s conftest$ac_exeext &&
21050        $as_test_x conftest$ac_exeext; then
21051   ac_cv_lib_c_r_pthread_create=yes
21052 else
21053   echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21055
21056         ac_cv_lib_c_r_pthread_create=no
21057 fi
21058
21059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21060       conftest$ac_exeext conftest.$ac_ext
21061 LIBS=$ac_check_lib_save_LIBS
21062 fi
21063 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21064 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
21065 if test $ac_cv_lib_c_r_pthread_create = yes; then
21066    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
21067 else
21068    WITH_THREADS="no"
21069
21070 fi
21071
21072
21073 fi
21074
21075 fi
21076
21077 if test "x$WITH_THREADS" != "xyes"; then
21078   CFLAGS=$old_CFLAGS
21079   ac_cv_header_pthread_h="no"
21080   WITH_THREADS=no
21081 else
21082
21083   { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
21084 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
21085 if test "${ac_cv_search_sem_init+set}" = set; then
21086   echo $ECHO_N "(cached) $ECHO_C" >&6
21087 else
21088   ac_func_search_save_LIBS=$LIBS
21089 cat >conftest.$ac_ext <<_ACEOF
21090 /* confdefs.h.  */
21091 _ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h.  */
21095
21096 /* Override any GCC internal prototype to avoid an error.
21097    Use char because int might match the return type of a GCC
21098    builtin and then its argument prototype would still apply.  */
21099 #ifdef __cplusplus
21100 extern "C"
21101 #endif
21102 char sem_init ();
21103 int
21104 main ()
21105 {
21106 return sem_init ();
21107   ;
21108   return 0;
21109 }
21110 _ACEOF
21111 for ac_lib in '' pthread sem posix4 rt semaphore; do
21112   if test -z "$ac_lib"; then
21113     ac_res="none required"
21114   else
21115     ac_res=-l$ac_lib
21116     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21117   fi
21118   rm -f conftest.$ac_objext conftest$ac_exeext
21119 if { (ac_try="$ac_link"
21120 case "(($ac_try" in
21121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21122   *) ac_try_echo=$ac_try;;
21123 esac
21124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21125   (eval "$ac_link") 2>conftest.er1
21126   ac_status=$?
21127   grep -v '^ *+' conftest.er1 >conftest.err
21128   rm -f conftest.er1
21129   cat conftest.err >&5
21130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131   (exit $ac_status); } && {
21132          test -z "$ac_c_werror_flag" ||
21133          test ! -s conftest.err
21134        } && test -s conftest$ac_exeext &&
21135        $as_test_x conftest$ac_exeext; then
21136   ac_cv_search_sem_init=$ac_res
21137 else
21138   echo "$as_me: failed program was:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21140
21141
21142 fi
21143
21144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21145       conftest$ac_exeext
21146   if test "${ac_cv_search_sem_init+set}" = set; then
21147   break
21148 fi
21149 done
21150 if test "${ac_cv_search_sem_init+set}" = set; then
21151   :
21152 else
21153   ac_cv_search_sem_init=no
21154 fi
21155 rm conftest.$ac_ext
21156 LIBS=$ac_func_search_save_LIBS
21157 fi
21158 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
21159 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
21160 ac_res=$ac_cv_search_sem_init
21161 if test "$ac_res" != no; then
21162   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21163
21164 else
21165   { { echo "$as_me:$LINENO: error: -lsem not found.  You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&5
21166 echo "$as_me: error: -lsem not found.  You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&2;}
21167    { (exit 1); exit 1; }; }
21168
21169 fi
21170
21171 fi
21172
21173
21174 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
21175 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
21176 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
21177   echo $ECHO_N "(cached) $ECHO_C" >&6
21178 else
21179   ac_check_lib_save_LIBS=$LIBS
21180 LIBS="-lsocket  $LIBS"
21181 cat >conftest.$ac_ext <<_ACEOF
21182 /* confdefs.h.  */
21183 _ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h.  */
21187
21188 /* Override any GCC internal prototype to avoid an error.
21189    Use char because int might match the return type of a GCC
21190    builtin and then its argument prototype would still apply.  */
21191 #ifdef __cplusplus
21192 extern "C"
21193 #endif
21194 char getsockname ();
21195 int
21196 main ()
21197 {
21198 return getsockname ();
21199   ;
21200   return 0;
21201 }
21202 _ACEOF
21203 rm -f conftest.$ac_objext conftest$ac_exeext
21204 if { (ac_try="$ac_link"
21205 case "(($ac_try" in
21206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21207   *) ac_try_echo=$ac_try;;
21208 esac
21209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21210   (eval "$ac_link") 2>conftest.er1
21211   ac_status=$?
21212   grep -v '^ *+' conftest.er1 >conftest.err
21213   rm -f conftest.er1
21214   cat conftest.err >&5
21215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216   (exit $ac_status); } && {
21217          test -z "$ac_c_werror_flag" ||
21218          test ! -s conftest.err
21219        } && test -s conftest$ac_exeext &&
21220        $as_test_x conftest$ac_exeext; then
21221   ac_cv_lib_socket_getsockname=yes
21222 else
21223   echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21225
21226         ac_cv_lib_socket_getsockname=no
21227 fi
21228
21229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21230       conftest$ac_exeext conftest.$ac_ext
21231 LIBS=$ac_check_lib_save_LIBS
21232 fi
21233 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
21234 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
21235 if test $ac_cv_lib_socket_getsockname = yes; then
21236   cat >>confdefs.h <<_ACEOF
21237 #define HAVE_LIBSOCKET 1
21238 _ACEOF
21239
21240   LIBS="-lsocket $LIBS"
21241
21242 fi
21243
21244
21245
21246 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
21247 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
21248 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
21249   echo $ECHO_N "(cached) $ECHO_C" >&6
21250 else
21251   ac_check_lib_save_LIBS=$LIBS
21252 LIBS="-lresolv  $LIBS"
21253 cat >conftest.$ac_ext <<_ACEOF
21254 /* confdefs.h.  */
21255 _ACEOF
21256 cat confdefs.h >>conftest.$ac_ext
21257 cat >>conftest.$ac_ext <<_ACEOF
21258 /* end confdefs.h.  */
21259
21260 /* Override any GCC internal prototype to avoid an error.
21261    Use char because int might match the return type of a GCC
21262    builtin and then its argument prototype would still apply.  */
21263 #ifdef __cplusplus
21264 extern "C"
21265 #endif
21266 char inet_aton ();
21267 int
21268 main ()
21269 {
21270 return inet_aton ();
21271   ;
21272   return 0;
21273 }
21274 _ACEOF
21275 rm -f conftest.$ac_objext conftest$ac_exeext
21276 if { (ac_try="$ac_link"
21277 case "(($ac_try" in
21278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21279   *) ac_try_echo=$ac_try;;
21280 esac
21281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21282   (eval "$ac_link") 2>conftest.er1
21283   ac_status=$?
21284   grep -v '^ *+' conftest.er1 >conftest.err
21285   rm -f conftest.er1
21286   cat conftest.err >&5
21287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288   (exit $ac_status); } && {
21289          test -z "$ac_c_werror_flag" ||
21290          test ! -s conftest.err
21291        } && test -s conftest$ac_exeext &&
21292        $as_test_x conftest$ac_exeext; then
21293   ac_cv_lib_resolv_inet_aton=yes
21294 else
21295   echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.$ac_ext >&5
21297
21298         ac_cv_lib_resolv_inet_aton=no
21299 fi
21300
21301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21302       conftest$ac_exeext conftest.$ac_ext
21303 LIBS=$ac_check_lib_save_LIBS
21304 fi
21305 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
21306 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
21307 if test $ac_cv_lib_resolv_inet_aton = yes; then
21308   cat >>confdefs.h <<_ACEOF
21309 #define HAVE_LIBRESOLV 1
21310 _ACEOF
21311
21312   LIBS="-lresolv $LIBS"
21313
21314 fi
21315
21316
21317
21318 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
21319 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
21320 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
21321   echo $ECHO_N "(cached) $ECHO_C" >&6
21322 else
21323   ac_check_lib_save_LIBS=$LIBS
21324 LIBS="-lnsl  $LIBS"
21325 cat >conftest.$ac_ext <<_ACEOF
21326 /* confdefs.h.  */
21327 _ACEOF
21328 cat confdefs.h >>conftest.$ac_ext
21329 cat >>conftest.$ac_ext <<_ACEOF
21330 /* end confdefs.h.  */
21331
21332 /* Override any GCC internal prototype to avoid an error.
21333    Use char because int might match the return type of a GCC
21334    builtin and then its argument prototype would still apply.  */
21335 #ifdef __cplusplus
21336 extern "C"
21337 #endif
21338 char inet_ntoa ();
21339 int
21340 main ()
21341 {
21342 return inet_ntoa ();
21343   ;
21344   return 0;
21345 }
21346 _ACEOF
21347 rm -f conftest.$ac_objext conftest$ac_exeext
21348 if { (ac_try="$ac_link"
21349 case "(($ac_try" in
21350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351   *) ac_try_echo=$ac_try;;
21352 esac
21353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354   (eval "$ac_link") 2>conftest.er1
21355   ac_status=$?
21356   grep -v '^ *+' conftest.er1 >conftest.err
21357   rm -f conftest.er1
21358   cat conftest.err >&5
21359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360   (exit $ac_status); } && {
21361          test -z "$ac_c_werror_flag" ||
21362          test ! -s conftest.err
21363        } && test -s conftest$ac_exeext &&
21364        $as_test_x conftest$ac_exeext; then
21365   ac_cv_lib_nsl_inet_ntoa=yes
21366 else
21367   echo "$as_me: failed program was:" >&5
21368 sed 's/^/| /' conftest.$ac_ext >&5
21369
21370         ac_cv_lib_nsl_inet_ntoa=no
21371 fi
21372
21373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21374       conftest$ac_exeext conftest.$ac_ext
21375 LIBS=$ac_check_lib_save_LIBS
21376 fi
21377 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
21378 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
21379 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
21380   cat >>confdefs.h <<_ACEOF
21381 #define HAVE_LIBNSL 1
21382 _ACEOF
21383
21384   LIBS="-lnsl $LIBS"
21385
21386 fi
21387
21388
21389 OPENSSL_LIBS=
21390 if test "x$WITH_OPENSSL" = xyes; then
21391   old_LIBS=$LIBS
21392   old_LDFLAGS="$LDFLAGS"
21393   if test "x$OPENSSL_LIB_DIR" != "x"; then
21394     LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
21395   fi
21396   { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21397 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
21398 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
21399   echo $ECHO_N "(cached) $ECHO_C" >&6
21400 else
21401   ac_check_lib_save_LIBS=$LIBS
21402 LIBS="-lcrypto  $LIBS"
21403 cat >conftest.$ac_ext <<_ACEOF
21404 /* confdefs.h.  */
21405 _ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h.  */
21409
21410 /* Override any GCC internal prototype to avoid an error.
21411    Use char because int might match the return type of a GCC
21412    builtin and then its argument prototype would still apply.  */
21413 #ifdef __cplusplus
21414 extern "C"
21415 #endif
21416 char DH_new ();
21417 int
21418 main ()
21419 {
21420 return DH_new ();
21421   ;
21422   return 0;
21423 }
21424 _ACEOF
21425 rm -f conftest.$ac_objext conftest$ac_exeext
21426 if { (ac_try="$ac_link"
21427 case "(($ac_try" in
21428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21429   *) ac_try_echo=$ac_try;;
21430 esac
21431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21432   (eval "$ac_link") 2>conftest.er1
21433   ac_status=$?
21434   grep -v '^ *+' conftest.er1 >conftest.err
21435   rm -f conftest.er1
21436   cat conftest.err >&5
21437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438   (exit $ac_status); } && {
21439          test -z "$ac_c_werror_flag" ||
21440          test ! -s conftest.err
21441        } && test -s conftest$ac_exeext &&
21442        $as_test_x conftest$ac_exeext; then
21443   ac_cv_lib_crypto_DH_new=yes
21444 else
21445   echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21447
21448         ac_cv_lib_crypto_DH_new=no
21449 fi
21450
21451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21452       conftest$ac_exeext conftest.$ac_ext
21453 LIBS=$ac_check_lib_save_LIBS
21454 fi
21455 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
21456 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
21457 if test $ac_cv_lib_crypto_DH_new = yes; then
21458
21459         LIBS="-lcrypto $LIBS"
21460
21461 cat >>confdefs.h <<\_ACEOF
21462 #define HAVE_LIBCRYPTO 1
21463 _ACEOF
21464
21465         { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21466 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
21467 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
21468   echo $ECHO_N "(cached) $ECHO_C" >&6
21469 else
21470   ac_check_lib_save_LIBS=$LIBS
21471 LIBS="-lssl  $LIBS"
21472 cat >conftest.$ac_ext <<_ACEOF
21473 /* confdefs.h.  */
21474 _ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h.  */
21478
21479 /* Override any GCC internal prototype to avoid an error.
21480    Use char because int might match the return type of a GCC
21481    builtin and then its argument prototype would still apply.  */
21482 #ifdef __cplusplus
21483 extern "C"
21484 #endif
21485 char SSL_new ();
21486 int
21487 main ()
21488 {
21489 return SSL_new ();
21490   ;
21491   return 0;
21492 }
21493 _ACEOF
21494 rm -f conftest.$ac_objext conftest$ac_exeext
21495 if { (ac_try="$ac_link"
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_link") 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          test -z "$ac_c_werror_flag" ||
21509          test ! -s conftest.err
21510        } && test -s conftest$ac_exeext &&
21511        $as_test_x conftest$ac_exeext; then
21512   ac_cv_lib_ssl_SSL_new=yes
21513 else
21514   echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21516
21517         ac_cv_lib_ssl_SSL_new=no
21518 fi
21519
21520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21521       conftest$ac_exeext conftest.$ac_ext
21522 LIBS=$ac_check_lib_save_LIBS
21523 fi
21524 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
21525 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
21526 if test $ac_cv_lib_ssl_SSL_new = yes; then
21527
21528
21529 cat >>confdefs.h <<\_ACEOF
21530 #define HAVE_LIBSSL 1
21531 _ACEOF
21532
21533                 if test "x$OPENSSL_LIB_DIR" != "x"; then
21534                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21535                 fi
21536                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21537
21538 fi
21539
21540
21541 fi
21542
21543   LIBS=$old_LIBS
21544   LDFLAGS="$old_LDFLAGS"
21545 fi
21546
21547
21548 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
21549 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
21550 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
21551   echo $ECHO_N "(cached) $ECHO_C" >&6
21552 else
21553   ac_check_lib_save_LIBS=$LIBS
21554 LIBS="-lws2_32  $LIBS"
21555 cat >conftest.$ac_ext <<_ACEOF
21556 /* confdefs.h.  */
21557 _ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h.  */
21561
21562 /* Override any GCC internal prototype to avoid an error.
21563    Use char because int might match the return type of a GCC
21564    builtin and then its argument prototype would still apply.  */
21565 #ifdef __cplusplus
21566 extern "C"
21567 #endif
21568 char htonl ();
21569 int
21570 main ()
21571 {
21572 return htonl ();
21573   ;
21574   return 0;
21575 }
21576 _ACEOF
21577 rm -f conftest.$ac_objext conftest$ac_exeext
21578 if { (ac_try="$ac_link"
21579 case "(($ac_try" in
21580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581   *) ac_try_echo=$ac_try;;
21582 esac
21583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584   (eval "$ac_link") 2>conftest.er1
21585   ac_status=$?
21586   grep -v '^ *+' conftest.er1 >conftest.err
21587   rm -f conftest.er1
21588   cat conftest.err >&5
21589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590   (exit $ac_status); } && {
21591          test -z "$ac_c_werror_flag" ||
21592          test ! -s conftest.err
21593        } && test -s conftest$ac_exeext &&
21594        $as_test_x conftest$ac_exeext; then
21595   ac_cv_lib_ws2_32_htonl=yes
21596 else
21597   echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21599
21600         ac_cv_lib_ws2_32_htonl=no
21601 fi
21602
21603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21604       conftest$ac_exeext conftest.$ac_ext
21605 LIBS=$ac_check_lib_save_LIBS
21606 fi
21607 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21608 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21609 if test $ac_cv_lib_ws2_32_htonl = yes; then
21610   cat >>confdefs.h <<_ACEOF
21611 #define HAVE_LIBWS2_32 1
21612 _ACEOF
21613
21614   LIBS="-lws2_32 $LIBS"
21615
21616 fi
21617
21618
21619 PCAP_LIBS=
21620 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21621 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21622 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21623   echo $ECHO_N "(cached) $ECHO_C" >&6
21624 else
21625   ac_check_lib_save_LIBS=$LIBS
21626 LIBS="-lpcap  $LIBS"
21627 cat >conftest.$ac_ext <<_ACEOF
21628 /* confdefs.h.  */
21629 _ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h.  */
21633
21634 /* Override any GCC internal prototype to avoid an error.
21635    Use char because int might match the return type of a GCC
21636    builtin and then its argument prototype would still apply.  */
21637 #ifdef __cplusplus
21638 extern "C"
21639 #endif
21640 char pcap_open_live ();
21641 int
21642 main ()
21643 {
21644 return pcap_open_live ();
21645   ;
21646   return 0;
21647 }
21648 _ACEOF
21649 rm -f conftest.$ac_objext conftest$ac_exeext
21650 if { (ac_try="$ac_link"
21651 case "(($ac_try" in
21652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21653   *) ac_try_echo=$ac_try;;
21654 esac
21655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21656   (eval "$ac_link") 2>conftest.er1
21657   ac_status=$?
21658   grep -v '^ *+' conftest.er1 >conftest.err
21659   rm -f conftest.er1
21660   cat conftest.err >&5
21661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662   (exit $ac_status); } && {
21663          test -z "$ac_c_werror_flag" ||
21664          test ! -s conftest.err
21665        } && test -s conftest$ac_exeext &&
21666        $as_test_x conftest$ac_exeext; then
21667   ac_cv_lib_pcap_pcap_open_live=yes
21668 else
21669   echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.$ac_ext >&5
21671
21672         ac_cv_lib_pcap_pcap_open_live=no
21673 fi
21674
21675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21676       conftest$ac_exeext conftest.$ac_ext
21677 LIBS=$ac_check_lib_save_LIBS
21678 fi
21679 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21680 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21681 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21682    PCAP_LIBS="-lpcap"
21683
21684 cat >>confdefs.h <<\_ACEOF
21685 #define HAVE_LIBPCAP 1
21686 _ACEOF
21687
21688
21689 else
21690    { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21691 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21692 fi
21693
21694
21695
21696   { echo "$as_me:$LINENO: checking for a readline compatible library" >&5
21697 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6; }
21698 if test "${ac_cv_lib_readline+set}" = set; then
21699   echo $ECHO_N "(cached) $ECHO_C" >&6
21700 else
21701
21702     ORIG_LIBS=$LIBS
21703     for readline_lib in readline edit editline; do
21704       for termcap_lib in "" termcap curses ncurses; do
21705         if test -z "$termcap_lib"; then
21706           TRY_LIB="-l$readline_lib"
21707         else
21708           TRY_LIB="-l$readline_lib -l$termcap_lib"
21709         fi
21710         LIBS="$ORIG_LIBS $TRY_LIB"
21711         cat >conftest.$ac_ext <<_ACEOF
21712 /* confdefs.h.  */
21713 _ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h.  */
21717
21718 /* Override any GCC internal prototype to avoid an error.
21719    Use char because int might match the return type of a GCC
21720    builtin and then its argument prototype would still apply.  */
21721 #ifdef __cplusplus
21722 extern "C"
21723 #endif
21724 char readline ();
21725 int
21726 main ()
21727 {
21728 return readline ();
21729   ;
21730   return 0;
21731 }
21732 _ACEOF
21733 rm -f conftest.$ac_objext conftest$ac_exeext
21734 if { (ac_try="$ac_link"
21735 case "(($ac_try" in
21736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737   *) ac_try_echo=$ac_try;;
21738 esac
21739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21740   (eval "$ac_link") 2>conftest.er1
21741   ac_status=$?
21742   grep -v '^ *+' conftest.er1 >conftest.err
21743   rm -f conftest.er1
21744   cat conftest.err >&5
21745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746   (exit $ac_status); } && {
21747          test -z "$ac_c_werror_flag" ||
21748          test ! -s conftest.err
21749        } && test -s conftest$ac_exeext &&
21750        $as_test_x conftest$ac_exeext; then
21751   ac_cv_lib_readline="$TRY_LIB"
21752 else
21753   echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21755
21756
21757 fi
21758
21759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21760       conftest$ac_exeext conftest.$ac_ext
21761         if test -n "$ac_cv_lib_readline"; then
21762           LIBREADLINE="$TRY_LIB"
21763
21764           break
21765         fi
21766       done
21767       if test -n "$ac_cv_lib_readline"; then
21768         break
21769       fi
21770     done
21771     if test -z "$ac_cv_lib_readline"; then
21772       ac_cv_lib_readline="no"
21773     fi
21774     LIBS=$ORIG_LIBS
21775
21776 fi
21777 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
21778 echo "${ECHO_T}$ac_cv_lib_readline" >&6; }
21779
21780   if test "$ac_cv_lib_readline" != "no"; then
21781
21782 cat >>confdefs.h <<\_ACEOF
21783 #define HAVE_LIBREADLINE 1
21784 _ACEOF
21785
21786
21787
21788 for ac_header in readline.h readline/readline.h
21789 do
21790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21792   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21795   echo $ECHO_N "(cached) $ECHO_C" >&6
21796 fi
21797 ac_res=`eval echo '${'$as_ac_Header'}'`
21798                { echo "$as_me:$LINENO: result: $ac_res" >&5
21799 echo "${ECHO_T}$ac_res" >&6; }
21800 else
21801   # Is the header compilable?
21802 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21804 cat >conftest.$ac_ext <<_ACEOF
21805 /* confdefs.h.  */
21806 _ACEOF
21807 cat confdefs.h >>conftest.$ac_ext
21808 cat >>conftest.$ac_ext <<_ACEOF
21809 /* end confdefs.h.  */
21810 $ac_includes_default
21811 #include <$ac_header>
21812 _ACEOF
21813 rm -f conftest.$ac_objext
21814 if { (ac_try="$ac_compile"
21815 case "(($ac_try" in
21816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817   *) ac_try_echo=$ac_try;;
21818 esac
21819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21820   (eval "$ac_compile") 2>conftest.er1
21821   ac_status=$?
21822   grep -v '^ *+' conftest.er1 >conftest.err
21823   rm -f conftest.er1
21824   cat conftest.err >&5
21825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826   (exit $ac_status); } && {
21827          test -z "$ac_c_werror_flag" ||
21828          test ! -s conftest.err
21829        } && test -s conftest.$ac_objext; then
21830   ac_header_compiler=yes
21831 else
21832   echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21834
21835         ac_header_compiler=no
21836 fi
21837
21838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21840 echo "${ECHO_T}$ac_header_compiler" >&6; }
21841
21842 # Is the header present?
21843 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21845 cat >conftest.$ac_ext <<_ACEOF
21846 /* confdefs.h.  */
21847 _ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h.  */
21851 #include <$ac_header>
21852 _ACEOF
21853 if { (ac_try="$ac_cpp conftest.$ac_ext"
21854 case "(($ac_try" in
21855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21856   *) ac_try_echo=$ac_try;;
21857 esac
21858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21859   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21860   ac_status=$?
21861   grep -v '^ *+' conftest.er1 >conftest.err
21862   rm -f conftest.er1
21863   cat conftest.err >&5
21864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865   (exit $ac_status); } >/dev/null && {
21866          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21867          test ! -s conftest.err
21868        }; then
21869   ac_header_preproc=yes
21870 else
21871   echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21873
21874   ac_header_preproc=no
21875 fi
21876
21877 rm -f conftest.err conftest.$ac_ext
21878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21879 echo "${ECHO_T}$ac_header_preproc" >&6; }
21880
21881 # So?  What about this header?
21882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21883   yes:no: )
21884     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21888     ac_header_preproc=yes
21889     ;;
21890   no:yes:* )
21891     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21893     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21894 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21895     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21897     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21898 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21899     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21901     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21903
21904     ;;
21905 esac
21906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21909   echo $ECHO_N "(cached) $ECHO_C" >&6
21910 else
21911   eval "$as_ac_Header=\$ac_header_preproc"
21912 fi
21913 ac_res=`eval echo '${'$as_ac_Header'}'`
21914                { echo "$as_me:$LINENO: result: $ac_res" >&5
21915 echo "${ECHO_T}$ac_res" >&6; }
21916
21917 fi
21918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21919   cat >>confdefs.h <<_ACEOF
21920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21921 _ACEOF
21922
21923 fi
21924
21925 done
21926
21927     { echo "$as_me:$LINENO: checking whether readline supports history" >&5
21928 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6; }
21929 if test "${ac_cv_lib_readline_history+set}" = set; then
21930   echo $ECHO_N "(cached) $ECHO_C" >&6
21931 else
21932
21933       ac_cv_lib_readline_history="no"
21934       cat >conftest.$ac_ext <<_ACEOF
21935 /* confdefs.h.  */
21936 _ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h.  */
21940
21941 /* Override any GCC internal prototype to avoid an error.
21942    Use char because int might match the return type of a GCC
21943    builtin and then its argument prototype would still apply.  */
21944 #ifdef __cplusplus
21945 extern "C"
21946 #endif
21947 char add_history ();
21948 int
21949 main ()
21950 {
21951 return add_history ();
21952   ;
21953   return 0;
21954 }
21955 _ACEOF
21956 rm -f conftest.$ac_objext conftest$ac_exeext
21957 if { (ac_try="$ac_link"
21958 case "(($ac_try" in
21959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21960   *) ac_try_echo=$ac_try;;
21961 esac
21962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21963   (eval "$ac_link") 2>conftest.er1
21964   ac_status=$?
21965   grep -v '^ *+' conftest.er1 >conftest.err
21966   rm -f conftest.er1
21967   cat conftest.err >&5
21968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969   (exit $ac_status); } && {
21970          test -z "$ac_c_werror_flag" ||
21971          test ! -s conftest.err
21972        } && test -s conftest$ac_exeext &&
21973        $as_test_x conftest$ac_exeext; then
21974   ac_cv_lib_readline_history="yes"
21975 else
21976   echo "$as_me: failed program was:" >&5
21977 sed 's/^/| /' conftest.$ac_ext >&5
21978
21979
21980 fi
21981
21982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21983       conftest$ac_exeext conftest.$ac_ext
21984
21985 fi
21986 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
21987 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6; }
21988     if test "$ac_cv_lib_readline_history" = "yes"; then
21989
21990 cat >>confdefs.h <<\_ACEOF
21991 #define HAVE_READLINE_HISTORY 1
21992 _ACEOF
21993
21994
21995
21996 for ac_header in history.h readline/history.h
21997 do
21998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22000   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22003   echo $ECHO_N "(cached) $ECHO_C" >&6
22004 fi
22005 ac_res=`eval echo '${'$as_ac_Header'}'`
22006                { echo "$as_me:$LINENO: result: $ac_res" >&5
22007 echo "${ECHO_T}$ac_res" >&6; }
22008 else
22009   # Is the header compilable?
22010 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22011 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22012 cat >conftest.$ac_ext <<_ACEOF
22013 /* confdefs.h.  */
22014 _ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h.  */
22018 $ac_includes_default
22019 #include <$ac_header>
22020 _ACEOF
22021 rm -f conftest.$ac_objext
22022 if { (ac_try="$ac_compile"
22023 case "(($ac_try" in
22024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22025   *) ac_try_echo=$ac_try;;
22026 esac
22027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22028   (eval "$ac_compile") 2>conftest.er1
22029   ac_status=$?
22030   grep -v '^ *+' conftest.er1 >conftest.err
22031   rm -f conftest.er1
22032   cat conftest.err >&5
22033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034   (exit $ac_status); } && {
22035          test -z "$ac_c_werror_flag" ||
22036          test ! -s conftest.err
22037        } && test -s conftest.$ac_objext; then
22038   ac_header_compiler=yes
22039 else
22040   echo "$as_me: failed program was:" >&5
22041 sed 's/^/| /' conftest.$ac_ext >&5
22042
22043         ac_header_compiler=no
22044 fi
22045
22046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22047 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22048 echo "${ECHO_T}$ac_header_compiler" >&6; }
22049
22050 # Is the header present?
22051 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22053 cat >conftest.$ac_ext <<_ACEOF
22054 /* confdefs.h.  */
22055 _ACEOF
22056 cat confdefs.h >>conftest.$ac_ext
22057 cat >>conftest.$ac_ext <<_ACEOF
22058 /* end confdefs.h.  */
22059 #include <$ac_header>
22060 _ACEOF
22061 if { (ac_try="$ac_cpp conftest.$ac_ext"
22062 case "(($ac_try" in
22063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22064   *) ac_try_echo=$ac_try;;
22065 esac
22066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22067   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22068   ac_status=$?
22069   grep -v '^ *+' conftest.er1 >conftest.err
22070   rm -f conftest.er1
22071   cat conftest.err >&5
22072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073   (exit $ac_status); } >/dev/null && {
22074          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22075          test ! -s conftest.err
22076        }; then
22077   ac_header_preproc=yes
22078 else
22079   echo "$as_me: failed program was:" >&5
22080 sed 's/^/| /' conftest.$ac_ext >&5
22081
22082   ac_header_preproc=no
22083 fi
22084
22085 rm -f conftest.err conftest.$ac_ext
22086 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22087 echo "${ECHO_T}$ac_header_preproc" >&6; }
22088
22089 # So?  What about this header?
22090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22091   yes:no: )
22092     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22096     ac_header_preproc=yes
22097     ;;
22098   no:yes:* )
22099     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22101     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22102 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22103     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22105     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22106 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22109     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22111
22112     ;;
22113 esac
22114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22117   echo $ECHO_N "(cached) $ECHO_C" >&6
22118 else
22119   eval "$as_ac_Header=\$ac_header_preproc"
22120 fi
22121 ac_res=`eval echo '${'$as_ac_Header'}'`
22122                { echo "$as_me:$LINENO: result: $ac_res" >&5
22123 echo "${ECHO_T}$ac_res" >&6; }
22124
22125 fi
22126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22127   cat >>confdefs.h <<_ACEOF
22128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22129 _ACEOF
22130
22131 fi
22132
22133 done
22134
22135     fi
22136   fi
22137
22138
22139
22140 case "$host" in
22141 *-interix*)
22142         CFLAGS="$CFLAGS -D_ALL_SOURCE"
22143         ;;
22144 *-darwin*)
22145         CFLAGS="$CFLAGS -DDARWIN"
22146         LIBS="-framework DirectoryService $LIBS"
22147         ;;
22148 esac
22149
22150
22151
22152
22153
22154
22155 ac_header_dirent=no
22156 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22157   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22158 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22159 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22161   echo $ECHO_N "(cached) $ECHO_C" >&6
22162 else
22163   cat >conftest.$ac_ext <<_ACEOF
22164 /* confdefs.h.  */
22165 _ACEOF
22166 cat confdefs.h >>conftest.$ac_ext
22167 cat >>conftest.$ac_ext <<_ACEOF
22168 /* end confdefs.h.  */
22169 #include <sys/types.h>
22170 #include <$ac_hdr>
22171
22172 int
22173 main ()
22174 {
22175 if ((DIR *) 0)
22176 return 0;
22177   ;
22178   return 0;
22179 }
22180 _ACEOF
22181 rm -f conftest.$ac_objext
22182 if { (ac_try="$ac_compile"
22183 case "(($ac_try" in
22184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22185   *) ac_try_echo=$ac_try;;
22186 esac
22187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22188   (eval "$ac_compile") 2>conftest.er1
22189   ac_status=$?
22190   grep -v '^ *+' conftest.er1 >conftest.err
22191   rm -f conftest.er1
22192   cat conftest.err >&5
22193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194   (exit $ac_status); } && {
22195          test -z "$ac_c_werror_flag" ||
22196          test ! -s conftest.err
22197        } && test -s conftest.$ac_objext; then
22198   eval "$as_ac_Header=yes"
22199 else
22200   echo "$as_me: failed program was:" >&5
22201 sed 's/^/| /' conftest.$ac_ext >&5
22202
22203         eval "$as_ac_Header=no"
22204 fi
22205
22206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22207 fi
22208 ac_res=`eval echo '${'$as_ac_Header'}'`
22209                { echo "$as_me:$LINENO: result: $ac_res" >&5
22210 echo "${ECHO_T}$ac_res" >&6; }
22211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22212   cat >>confdefs.h <<_ACEOF
22213 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22214 _ACEOF
22215
22216 ac_header_dirent=$ac_hdr; break
22217 fi
22218
22219 done
22220 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22221 if test $ac_header_dirent = dirent.h; then
22222   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22223 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22224 if test "${ac_cv_search_opendir+set}" = set; then
22225   echo $ECHO_N "(cached) $ECHO_C" >&6
22226 else
22227   ac_func_search_save_LIBS=$LIBS
22228 cat >conftest.$ac_ext <<_ACEOF
22229 /* confdefs.h.  */
22230 _ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h.  */
22234
22235 /* Override any GCC internal prototype to avoid an error.
22236    Use char because int might match the return type of a GCC
22237    builtin and then its argument prototype would still apply.  */
22238 #ifdef __cplusplus
22239 extern "C"
22240 #endif
22241 char opendir ();
22242 int
22243 main ()
22244 {
22245 return opendir ();
22246   ;
22247   return 0;
22248 }
22249 _ACEOF
22250 for ac_lib in '' dir; do
22251   if test -z "$ac_lib"; then
22252     ac_res="none required"
22253   else
22254     ac_res=-l$ac_lib
22255     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22256   fi
22257   rm -f conftest.$ac_objext conftest$ac_exeext
22258 if { (ac_try="$ac_link"
22259 case "(($ac_try" in
22260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261   *) ac_try_echo=$ac_try;;
22262 esac
22263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22264   (eval "$ac_link") 2>conftest.er1
22265   ac_status=$?
22266   grep -v '^ *+' conftest.er1 >conftest.err
22267   rm -f conftest.er1
22268   cat conftest.err >&5
22269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270   (exit $ac_status); } && {
22271          test -z "$ac_c_werror_flag" ||
22272          test ! -s conftest.err
22273        } && test -s conftest$ac_exeext &&
22274        $as_test_x conftest$ac_exeext; then
22275   ac_cv_search_opendir=$ac_res
22276 else
22277   echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22279
22280
22281 fi
22282
22283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22284       conftest$ac_exeext
22285   if test "${ac_cv_search_opendir+set}" = set; then
22286   break
22287 fi
22288 done
22289 if test "${ac_cv_search_opendir+set}" = set; then
22290   :
22291 else
22292   ac_cv_search_opendir=no
22293 fi
22294 rm conftest.$ac_ext
22295 LIBS=$ac_func_search_save_LIBS
22296 fi
22297 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22298 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22299 ac_res=$ac_cv_search_opendir
22300 if test "$ac_res" != no; then
22301   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22302
22303 fi
22304
22305 else
22306   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22307 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22308 if test "${ac_cv_search_opendir+set}" = set; then
22309   echo $ECHO_N "(cached) $ECHO_C" >&6
22310 else
22311   ac_func_search_save_LIBS=$LIBS
22312 cat >conftest.$ac_ext <<_ACEOF
22313 /* confdefs.h.  */
22314 _ACEOF
22315 cat confdefs.h >>conftest.$ac_ext
22316 cat >>conftest.$ac_ext <<_ACEOF
22317 /* end confdefs.h.  */
22318
22319 /* Override any GCC internal prototype to avoid an error.
22320    Use char because int might match the return type of a GCC
22321    builtin and then its argument prototype would still apply.  */
22322 #ifdef __cplusplus
22323 extern "C"
22324 #endif
22325 char opendir ();
22326 int
22327 main ()
22328 {
22329 return opendir ();
22330   ;
22331   return 0;
22332 }
22333 _ACEOF
22334 for ac_lib in '' x; do
22335   if test -z "$ac_lib"; then
22336     ac_res="none required"
22337   else
22338     ac_res=-l$ac_lib
22339     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22340   fi
22341   rm -f conftest.$ac_objext conftest$ac_exeext
22342 if { (ac_try="$ac_link"
22343 case "(($ac_try" in
22344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22345   *) ac_try_echo=$ac_try;;
22346 esac
22347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22348   (eval "$ac_link") 2>conftest.er1
22349   ac_status=$?
22350   grep -v '^ *+' conftest.er1 >conftest.err
22351   rm -f conftest.er1
22352   cat conftest.err >&5
22353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354   (exit $ac_status); } && {
22355          test -z "$ac_c_werror_flag" ||
22356          test ! -s conftest.err
22357        } && test -s conftest$ac_exeext &&
22358        $as_test_x conftest$ac_exeext; then
22359   ac_cv_search_opendir=$ac_res
22360 else
22361   echo "$as_me: failed program was:" >&5
22362 sed 's/^/| /' conftest.$ac_ext >&5
22363
22364
22365 fi
22366
22367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22368       conftest$ac_exeext
22369   if test "${ac_cv_search_opendir+set}" = set; then
22370   break
22371 fi
22372 done
22373 if test "${ac_cv_search_opendir+set}" = set; then
22374   :
22375 else
22376   ac_cv_search_opendir=no
22377 fi
22378 rm conftest.$ac_ext
22379 LIBS=$ac_func_search_save_LIBS
22380 fi
22381 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22382 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22383 ac_res=$ac_cv_search_opendir
22384 if test "$ac_res" != no; then
22385   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22386
22387 fi
22388
22389 fi
22390
22391 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22392 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22393 if test "${ac_cv_header_stdc+set}" = set; then
22394   echo $ECHO_N "(cached) $ECHO_C" >&6
22395 else
22396   cat >conftest.$ac_ext <<_ACEOF
22397 /* confdefs.h.  */
22398 _ACEOF
22399 cat confdefs.h >>conftest.$ac_ext
22400 cat >>conftest.$ac_ext <<_ACEOF
22401 /* end confdefs.h.  */
22402 #include <stdlib.h>
22403 #include <stdarg.h>
22404 #include <string.h>
22405 #include <float.h>
22406
22407 int
22408 main ()
22409 {
22410
22411   ;
22412   return 0;
22413 }
22414 _ACEOF
22415 rm -f conftest.$ac_objext
22416 if { (ac_try="$ac_compile"
22417 case "(($ac_try" in
22418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419   *) ac_try_echo=$ac_try;;
22420 esac
22421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22422   (eval "$ac_compile") 2>conftest.er1
22423   ac_status=$?
22424   grep -v '^ *+' conftest.er1 >conftest.err
22425   rm -f conftest.er1
22426   cat conftest.err >&5
22427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428   (exit $ac_status); } && {
22429          test -z "$ac_c_werror_flag" ||
22430          test ! -s conftest.err
22431        } && test -s conftest.$ac_objext; then
22432   ac_cv_header_stdc=yes
22433 else
22434   echo "$as_me: failed program was:" >&5
22435 sed 's/^/| /' conftest.$ac_ext >&5
22436
22437         ac_cv_header_stdc=no
22438 fi
22439
22440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22441
22442 if test $ac_cv_header_stdc = yes; then
22443   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22444   cat >conftest.$ac_ext <<_ACEOF
22445 /* confdefs.h.  */
22446 _ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h.  */
22450 #include <string.h>
22451
22452 _ACEOF
22453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22454   $EGREP "memchr" >/dev/null 2>&1; then
22455   :
22456 else
22457   ac_cv_header_stdc=no
22458 fi
22459 rm -f conftest*
22460
22461 fi
22462
22463 if test $ac_cv_header_stdc = yes; then
22464   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22465   cat >conftest.$ac_ext <<_ACEOF
22466 /* confdefs.h.  */
22467 _ACEOF
22468 cat confdefs.h >>conftest.$ac_ext
22469 cat >>conftest.$ac_ext <<_ACEOF
22470 /* end confdefs.h.  */
22471 #include <stdlib.h>
22472
22473 _ACEOF
22474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22475   $EGREP "free" >/dev/null 2>&1; then
22476   :
22477 else
22478   ac_cv_header_stdc=no
22479 fi
22480 rm -f conftest*
22481
22482 fi
22483
22484 if test $ac_cv_header_stdc = yes; then
22485   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22486   if test "$cross_compiling" = yes; then
22487   :
22488 else
22489   cat >conftest.$ac_ext <<_ACEOF
22490 /* confdefs.h.  */
22491 _ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h.  */
22495 #include <ctype.h>
22496 #include <stdlib.h>
22497 #if ((' ' & 0x0FF) == 0x020)
22498 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22499 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22500 #else
22501 # define ISLOWER(c) \
22502                    (('a' <= (c) && (c) <= 'i') \
22503                      || ('j' <= (c) && (c) <= 'r') \
22504                      || ('s' <= (c) && (c) <= 'z'))
22505 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22506 #endif
22507
22508 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22509 int
22510 main ()
22511 {
22512   int i;
22513   for (i = 0; i < 256; i++)
22514     if (XOR (islower (i), ISLOWER (i))
22515         || toupper (i) != TOUPPER (i))
22516       return 2;
22517   return 0;
22518 }
22519 _ACEOF
22520 rm -f conftest$ac_exeext
22521 if { (ac_try="$ac_link"
22522 case "(($ac_try" in
22523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22524   *) ac_try_echo=$ac_try;;
22525 esac
22526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22527   (eval "$ac_link") 2>&5
22528   ac_status=$?
22529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22531   { (case "(($ac_try" in
22532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22533   *) ac_try_echo=$ac_try;;
22534 esac
22535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22536   (eval "$ac_try") 2>&5
22537   ac_status=$?
22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); }; }; then
22540   :
22541 else
22542   echo "$as_me: program exited with status $ac_status" >&5
22543 echo "$as_me: failed program was:" >&5
22544 sed 's/^/| /' conftest.$ac_ext >&5
22545
22546 ( exit $ac_status )
22547 ac_cv_header_stdc=no
22548 fi
22549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22550 fi
22551
22552
22553 fi
22554 fi
22555 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22556 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22557 if test $ac_cv_header_stdc = yes; then
22558
22559 cat >>confdefs.h <<\_ACEOF
22560 #define STDC_HEADERS 1
22561 _ACEOF
22562
22563 fi
22564
22565 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22566 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22567 if test "${ac_cv_header_time+set}" = set; then
22568   echo $ECHO_N "(cached) $ECHO_C" >&6
22569 else
22570   cat >conftest.$ac_ext <<_ACEOF
22571 /* confdefs.h.  */
22572 _ACEOF
22573 cat confdefs.h >>conftest.$ac_ext
22574 cat >>conftest.$ac_ext <<_ACEOF
22575 /* end confdefs.h.  */
22576 #include <sys/types.h>
22577 #include <sys/time.h>
22578 #include <time.h>
22579
22580 int
22581 main ()
22582 {
22583 if ((struct tm *) 0)
22584 return 0;
22585   ;
22586   return 0;
22587 }
22588 _ACEOF
22589 rm -f conftest.$ac_objext
22590 if { (ac_try="$ac_compile"
22591 case "(($ac_try" in
22592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22593   *) ac_try_echo=$ac_try;;
22594 esac
22595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22596   (eval "$ac_compile") 2>conftest.er1
22597   ac_status=$?
22598   grep -v '^ *+' conftest.er1 >conftest.err
22599   rm -f conftest.er1
22600   cat conftest.err >&5
22601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602   (exit $ac_status); } && {
22603          test -z "$ac_c_werror_flag" ||
22604          test ! -s conftest.err
22605        } && test -s conftest.$ac_objext; then
22606   ac_cv_header_time=yes
22607 else
22608   echo "$as_me: failed program was:" >&5
22609 sed 's/^/| /' conftest.$ac_ext >&5
22610
22611         ac_cv_header_time=no
22612 fi
22613
22614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22615 fi
22616 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22617 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22618 if test $ac_cv_header_time = yes; then
22619
22620 cat >>confdefs.h <<\_ACEOF
22621 #define TIME_WITH_SYS_TIME 1
22622 _ACEOF
22623
22624 fi
22625
22626 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22627 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22628 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22629   echo $ECHO_N "(cached) $ECHO_C" >&6
22630 else
22631   cat >conftest.$ac_ext <<_ACEOF
22632 /* confdefs.h.  */
22633 _ACEOF
22634 cat confdefs.h >>conftest.$ac_ext
22635 cat >>conftest.$ac_ext <<_ACEOF
22636 /* end confdefs.h.  */
22637 #include <sys/types.h>
22638 #include <sys/wait.h>
22639 #ifndef WEXITSTATUS
22640 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22641 #endif
22642 #ifndef WIFEXITED
22643 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22644 #endif
22645
22646 int
22647 main ()
22648 {
22649   int s;
22650   wait (&s);
22651   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22652   ;
22653   return 0;
22654 }
22655 _ACEOF
22656 rm -f conftest.$ac_objext
22657 if { (ac_try="$ac_compile"
22658 case "(($ac_try" in
22659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22660   *) ac_try_echo=$ac_try;;
22661 esac
22662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22663   (eval "$ac_compile") 2>conftest.er1
22664   ac_status=$?
22665   grep -v '^ *+' conftest.er1 >conftest.err
22666   rm -f conftest.er1
22667   cat conftest.err >&5
22668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669   (exit $ac_status); } && {
22670          test -z "$ac_c_werror_flag" ||
22671          test ! -s conftest.err
22672        } && test -s conftest.$ac_objext; then
22673   ac_cv_header_sys_wait_h=yes
22674 else
22675   echo "$as_me: failed program was:" >&5
22676 sed 's/^/| /' conftest.$ac_ext >&5
22677
22678         ac_cv_header_sys_wait_h=no
22679 fi
22680
22681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22682 fi
22683 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22684 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22685 if test $ac_cv_header_sys_wait_h = yes; then
22686
22687 cat >>confdefs.h <<\_ACEOF
22688 #define HAVE_SYS_WAIT_H 1
22689 _ACEOF
22690
22691 fi
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729 for ac_header in \
22730         unistd.h \
22731         crypt.h \
22732         errno.h \
22733         resource.h \
22734         sys/resource.h \
22735         getopt.h \
22736         malloc.h \
22737         utmp.h \
22738         utmpx.h \
22739         signal.h \
22740         sys/select.h \
22741         syslog.h \
22742         inttypes.h \
22743         stdint.h \
22744         stdio.h \
22745         netdb.h \
22746         semaphore.h \
22747         arpa/inet.h \
22748         netinet/in.h \
22749         sys/types.h \
22750         sys/socket.h \
22751         winsock.h \
22752         sys/time.h \
22753         sys/wait.h \
22754         sys/security.h \
22755         fcntl.h \
22756         sys/fcntl.h \
22757         sys/prctl.h \
22758         sys/un.h \
22759         glob.h \
22760         prot.h \
22761         pwd.h \
22762         grp.h \
22763         sia.h \
22764         siad.h
22765
22766 do
22767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22769   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22772   echo $ECHO_N "(cached) $ECHO_C" >&6
22773 fi
22774 ac_res=`eval echo '${'$as_ac_Header'}'`
22775                { echo "$as_me:$LINENO: result: $ac_res" >&5
22776 echo "${ECHO_T}$ac_res" >&6; }
22777 else
22778   # Is the header compilable?
22779 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22780 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22781 cat >conftest.$ac_ext <<_ACEOF
22782 /* confdefs.h.  */
22783 _ACEOF
22784 cat confdefs.h >>conftest.$ac_ext
22785 cat >>conftest.$ac_ext <<_ACEOF
22786 /* end confdefs.h.  */
22787 $ac_includes_default
22788 #include <$ac_header>
22789 _ACEOF
22790 rm -f conftest.$ac_objext
22791 if { (ac_try="$ac_compile"
22792 case "(($ac_try" in
22793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22794   *) ac_try_echo=$ac_try;;
22795 esac
22796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22797   (eval "$ac_compile") 2>conftest.er1
22798   ac_status=$?
22799   grep -v '^ *+' conftest.er1 >conftest.err
22800   rm -f conftest.er1
22801   cat conftest.err >&5
22802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803   (exit $ac_status); } && {
22804          test -z "$ac_c_werror_flag" ||
22805          test ! -s conftest.err
22806        } && test -s conftest.$ac_objext; then
22807   ac_header_compiler=yes
22808 else
22809   echo "$as_me: failed program was:" >&5
22810 sed 's/^/| /' conftest.$ac_ext >&5
22811
22812         ac_header_compiler=no
22813 fi
22814
22815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22816 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22817 echo "${ECHO_T}$ac_header_compiler" >&6; }
22818
22819 # Is the header present?
22820 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22822 cat >conftest.$ac_ext <<_ACEOF
22823 /* confdefs.h.  */
22824 _ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h.  */
22828 #include <$ac_header>
22829 _ACEOF
22830 if { (ac_try="$ac_cpp conftest.$ac_ext"
22831 case "(($ac_try" in
22832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22833   *) ac_try_echo=$ac_try;;
22834 esac
22835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22836   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22837   ac_status=$?
22838   grep -v '^ *+' conftest.er1 >conftest.err
22839   rm -f conftest.er1
22840   cat conftest.err >&5
22841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842   (exit $ac_status); } >/dev/null && {
22843          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22844          test ! -s conftest.err
22845        }; then
22846   ac_header_preproc=yes
22847 else
22848   echo "$as_me: failed program was:" >&5
22849 sed 's/^/| /' conftest.$ac_ext >&5
22850
22851   ac_header_preproc=no
22852 fi
22853
22854 rm -f conftest.err conftest.$ac_ext
22855 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22856 echo "${ECHO_T}$ac_header_preproc" >&6; }
22857
22858 # So?  What about this header?
22859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22860   yes:no: )
22861     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22862 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22863     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22864 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22865     ac_header_preproc=yes
22866     ;;
22867   no:yes:* )
22868     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22869 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22870     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22871 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22872     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22873 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22874     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22875 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22876     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22877 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22878     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22879 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22880
22881     ;;
22882 esac
22883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22886   echo $ECHO_N "(cached) $ECHO_C" >&6
22887 else
22888   eval "$as_ac_Header=\$ac_header_preproc"
22889 fi
22890 ac_res=`eval echo '${'$as_ac_Header'}'`
22891                { echo "$as_me:$LINENO: result: $ac_res" >&5
22892 echo "${ECHO_T}$ac_res" >&6; }
22893
22894 fi
22895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22896   cat >>confdefs.h <<_ACEOF
22897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22898 _ACEOF
22899
22900 fi
22901
22902 done
22903
22904
22905
22906 for ac_header in net/if.h
22907 do
22908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22912   echo $ECHO_N "(cached) $ECHO_C" >&6
22913 else
22914   cat >conftest.$ac_ext <<_ACEOF
22915 /* confdefs.h.  */
22916 _ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h.  */
22920 #ifdef HAVE_SYS_SOCKET_H
22921 # include <sys/socket.h>
22922 # endif
22923
22924
22925 #include <$ac_header>
22926 _ACEOF
22927 rm -f conftest.$ac_objext
22928 if { (ac_try="$ac_compile"
22929 case "(($ac_try" in
22930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22931   *) ac_try_echo=$ac_try;;
22932 esac
22933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22934   (eval "$ac_compile") 2>conftest.er1
22935   ac_status=$?
22936   grep -v '^ *+' conftest.er1 >conftest.err
22937   rm -f conftest.er1
22938   cat conftest.err >&5
22939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940   (exit $ac_status); } && {
22941          test -z "$ac_c_werror_flag" ||
22942          test ! -s conftest.err
22943        } && test -s conftest.$ac_objext; then
22944   eval "$as_ac_Header=yes"
22945 else
22946   echo "$as_me: failed program was:" >&5
22947 sed 's/^/| /' conftest.$ac_ext >&5
22948
22949         eval "$as_ac_Header=no"
22950 fi
22951
22952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22953 fi
22954 ac_res=`eval echo '${'$as_ac_Header'}'`
22955                { echo "$as_me:$LINENO: result: $ac_res" >&5
22956 echo "${ECHO_T}$ac_res" >&6; }
22957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22958   cat >>confdefs.h <<_ACEOF
22959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22960 _ACEOF
22961
22962 fi
22963
22964 done
22965
22966
22967 REGEX=no
22968 if test "${ac_cv_header_regex_h+set}" = set; then
22969   { echo "$as_me:$LINENO: checking for regex.h" >&5
22970 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22971 if test "${ac_cv_header_regex_h+set}" = set; then
22972   echo $ECHO_N "(cached) $ECHO_C" >&6
22973 fi
22974 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22975 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22976 else
22977   # Is the header compilable?
22978 { echo "$as_me:$LINENO: checking regex.h usability" >&5
22979 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
22980 cat >conftest.$ac_ext <<_ACEOF
22981 /* confdefs.h.  */
22982 _ACEOF
22983 cat confdefs.h >>conftest.$ac_ext
22984 cat >>conftest.$ac_ext <<_ACEOF
22985 /* end confdefs.h.  */
22986 $ac_includes_default
22987 #include <regex.h>
22988 _ACEOF
22989 rm -f conftest.$ac_objext
22990 if { (ac_try="$ac_compile"
22991 case "(($ac_try" in
22992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22993   *) ac_try_echo=$ac_try;;
22994 esac
22995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22996   (eval "$ac_compile") 2>conftest.er1
22997   ac_status=$?
22998   grep -v '^ *+' conftest.er1 >conftest.err
22999   rm -f conftest.er1
23000   cat conftest.err >&5
23001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002   (exit $ac_status); } && {
23003          test -z "$ac_c_werror_flag" ||
23004          test ! -s conftest.err
23005        } && test -s conftest.$ac_objext; then
23006   ac_header_compiler=yes
23007 else
23008   echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23010
23011         ac_header_compiler=no
23012 fi
23013
23014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23016 echo "${ECHO_T}$ac_header_compiler" >&6; }
23017
23018 # Is the header present?
23019 { echo "$as_me:$LINENO: checking regex.h presence" >&5
23020 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
23021 cat >conftest.$ac_ext <<_ACEOF
23022 /* confdefs.h.  */
23023 _ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h.  */
23027 #include <regex.h>
23028 _ACEOF
23029 if { (ac_try="$ac_cpp conftest.$ac_ext"
23030 case "(($ac_try" in
23031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23032   *) ac_try_echo=$ac_try;;
23033 esac
23034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23035   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23036   ac_status=$?
23037   grep -v '^ *+' conftest.er1 >conftest.err
23038   rm -f conftest.er1
23039   cat conftest.err >&5
23040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041   (exit $ac_status); } >/dev/null && {
23042          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23043          test ! -s conftest.err
23044        }; then
23045   ac_header_preproc=yes
23046 else
23047   echo "$as_me: failed program was:" >&5
23048 sed 's/^/| /' conftest.$ac_ext >&5
23049
23050   ac_header_preproc=no
23051 fi
23052
23053 rm -f conftest.err conftest.$ac_ext
23054 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23055 echo "${ECHO_T}$ac_header_preproc" >&6; }
23056
23057 # So?  What about this header?
23058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23059   yes:no: )
23060     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23061 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23062     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23063 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23064     ac_header_preproc=yes
23065     ;;
23066   no:yes:* )
23067     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23068 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
23069     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
23070 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
23071     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23072 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23073     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
23074 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23075     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23076 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
23077     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23078 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
23079
23080     ;;
23081 esac
23082 { echo "$as_me:$LINENO: checking for regex.h" >&5
23083 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
23084 if test "${ac_cv_header_regex_h+set}" = set; then
23085   echo $ECHO_N "(cached) $ECHO_C" >&6
23086 else
23087   ac_cv_header_regex_h=$ac_header_preproc
23088 fi
23089 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23090 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
23091
23092 fi
23093 if test $ac_cv_header_regex_h = yes; then
23094
23095 cat >>confdefs.h <<\_ACEOF
23096 #define HAVE_REGEX_H
23097 _ACEOF
23098
23099 fi
23100
23101
23102 if test "x$ac_cv_header_regex_h" = "xyes"; then
23103   REGEX_EXTENDED=no
23104   REGEX=yes
23105   cat >conftest.$ac_ext <<_ACEOF
23106 /* confdefs.h.  */
23107 _ACEOF
23108 cat confdefs.h >>conftest.$ac_ext
23109 cat >>conftest.$ac_ext <<_ACEOF
23110 /* end confdefs.h.  */
23111 #include <regex.h>
23112      #ifdef REG_EXTENDED
23113        yes
23114      #endif
23115
23116 _ACEOF
23117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23118   $EGREP "yes" >/dev/null 2>&1; then
23119
23120 cat >>confdefs.h <<\_ACEOF
23121 #define HAVE_REG_EXTENDED
23122 _ACEOF
23123  REGEX_EXTENDED=yes
23124 fi
23125 rm -f conftest*
23126
23127 fi
23128
23129
23130
23131 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
23132 then
23133
23134 cat >>confdefs.h <<\_ACEOF
23135 #define OSFC2
23136 _ACEOF
23137
23138 fi
23139
23140 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
23141 then
23142
23143 cat >>confdefs.h <<\_ACEOF
23144 #define OSFSIA
23145 _ACEOF
23146
23147 fi
23148
23149 OPENSSL_INCLUDE="-DNO_OPENSSL"
23150 if test "x$WITH_OPENSSL" = xyes; then
23151   if test "x$OPENSSL_LIBS" = "x"; then
23152     { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
23153 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
23154   else
23155     old_CPPFLAGS=$CPPFLAGS
23156     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23157         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
23158     fi
23159         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
23160
23161
23162
23163
23164
23165 for ac_header in \
23166         openssl/ssl.h \
23167         openssl/crypto.h \
23168         openssl/err.h \
23169         openssl/evp.h \
23170         openssl/engine.h
23171 do
23172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23174   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23177   echo $ECHO_N "(cached) $ECHO_C" >&6
23178 fi
23179 ac_res=`eval echo '${'$as_ac_Header'}'`
23180                { echo "$as_me:$LINENO: result: $ac_res" >&5
23181 echo "${ECHO_T}$ac_res" >&6; }
23182 else
23183   # Is the header compilable?
23184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23186 cat >conftest.$ac_ext <<_ACEOF
23187 /* confdefs.h.  */
23188 _ACEOF
23189 cat confdefs.h >>conftest.$ac_ext
23190 cat >>conftest.$ac_ext <<_ACEOF
23191 /* end confdefs.h.  */
23192 $ac_includes_default
23193 #include <$ac_header>
23194 _ACEOF
23195 rm -f conftest.$ac_objext
23196 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23203   ac_status=$?
23204   grep -v '^ *+' conftest.er1 >conftest.err
23205   rm -f conftest.er1
23206   cat conftest.err >&5
23207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208   (exit $ac_status); } && {
23209          test -z "$ac_c_werror_flag" ||
23210          test ! -s conftest.err
23211        } && test -s conftest.$ac_objext; then
23212   ac_header_compiler=yes
23213 else
23214   echo "$as_me: failed program was:" >&5
23215 sed 's/^/| /' conftest.$ac_ext >&5
23216
23217         ac_header_compiler=no
23218 fi
23219
23220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23222 echo "${ECHO_T}$ac_header_compiler" >&6; }
23223
23224 # Is the header present?
23225 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23227 cat >conftest.$ac_ext <<_ACEOF
23228 /* confdefs.h.  */
23229 _ACEOF
23230 cat confdefs.h >>conftest.$ac_ext
23231 cat >>conftest.$ac_ext <<_ACEOF
23232 /* end confdefs.h.  */
23233 #include <$ac_header>
23234 _ACEOF
23235 if { (ac_try="$ac_cpp conftest.$ac_ext"
23236 case "(($ac_try" in
23237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23238   *) ac_try_echo=$ac_try;;
23239 esac
23240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23241   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23242   ac_status=$?
23243   grep -v '^ *+' conftest.er1 >conftest.err
23244   rm -f conftest.er1
23245   cat conftest.err >&5
23246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247   (exit $ac_status); } >/dev/null && {
23248          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23249          test ! -s conftest.err
23250        }; then
23251   ac_header_preproc=yes
23252 else
23253   echo "$as_me: failed program was:" >&5
23254 sed 's/^/| /' conftest.$ac_ext >&5
23255
23256   ac_header_preproc=no
23257 fi
23258
23259 rm -f conftest.err conftest.$ac_ext
23260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23261 echo "${ECHO_T}$ac_header_preproc" >&6; }
23262
23263 # So?  What about this header?
23264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23265   yes:no: )
23266     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23270     ac_header_preproc=yes
23271     ;;
23272   no:yes:* )
23273     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23275     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23276 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23277     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23279     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23280 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23283     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23285
23286     ;;
23287 esac
23288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23291   echo $ECHO_N "(cached) $ECHO_C" >&6
23292 else
23293   eval "$as_ac_Header=\$ac_header_preproc"
23294 fi
23295 ac_res=`eval echo '${'$as_ac_Header'}'`
23296                { echo "$as_me:$LINENO: result: $ac_res" >&5
23297 echo "${ECHO_T}$ac_res" >&6; }
23298
23299 fi
23300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23301   cat >>confdefs.h <<_ACEOF
23302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23303 _ACEOF
23304
23305 else
23306   OPENSSL_LIBS=
23307
23308 fi
23309
23310 done
23311
23312     if test "x$OPENSSL_LIBS" != "x"; then
23313         { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
23314 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
23315         cat >conftest.$ac_ext <<_ACEOF
23316 /* confdefs.h.  */
23317 _ACEOF
23318 cat confdefs.h >>conftest.$ac_ext
23319 cat >>conftest.$ac_ext <<_ACEOF
23320 /* end confdefs.h.  */
23321 #include <openssl/crypto.h>
23322              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
23323              yes
23324              #endif
23325
23326 _ACEOF
23327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23328   $EGREP "yes" >/dev/null 2>&1; then
23329   goodssl="yes"
23330 fi
23331 rm -f conftest*
23332
23333         if test "x$goodssl" != "xyes"; then
23334             { echo "$as_me:$LINENO: result: no" >&5
23335 echo "${ECHO_T}no" >&6; }
23336             OPENSSL_LIBS=
23337         else
23338             { echo "$as_me:$LINENO: result: yes" >&5
23339 echo "${ECHO_T}yes" >&6; }
23340             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23341                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
23342             else
23343                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
23344             fi
23345         fi
23346     fi
23347     CPPFLAGS=$old_CPPFLAGS
23348   fi
23349 fi
23350
23351
23352 export OPENSSL_LIBS
23353
23354 if test "x$PCAP_LIBS" = x; then
23355     { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
23356 echo "$as_me: skipping test for pcap.h." >&6;}
23357 else
23358     if test "${ac_cv_header_pcap_h+set}" = set; then
23359   { echo "$as_me:$LINENO: checking for pcap.h" >&5
23360 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23361 if test "${ac_cv_header_pcap_h+set}" = set; then
23362   echo $ECHO_N "(cached) $ECHO_C" >&6
23363 fi
23364 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23365 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23366 else
23367   # Is the header compilable?
23368 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
23369 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
23370 cat >conftest.$ac_ext <<_ACEOF
23371 /* confdefs.h.  */
23372 _ACEOF
23373 cat confdefs.h >>conftest.$ac_ext
23374 cat >>conftest.$ac_ext <<_ACEOF
23375 /* end confdefs.h.  */
23376 $ac_includes_default
23377 #include <pcap.h>
23378 _ACEOF
23379 rm -f conftest.$ac_objext
23380 if { (ac_try="$ac_compile"
23381 case "(($ac_try" in
23382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23383   *) ac_try_echo=$ac_try;;
23384 esac
23385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23386   (eval "$ac_compile") 2>conftest.er1
23387   ac_status=$?
23388   grep -v '^ *+' conftest.er1 >conftest.err
23389   rm -f conftest.er1
23390   cat conftest.err >&5
23391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392   (exit $ac_status); } && {
23393          test -z "$ac_c_werror_flag" ||
23394          test ! -s conftest.err
23395        } && test -s conftest.$ac_objext; then
23396   ac_header_compiler=yes
23397 else
23398   echo "$as_me: failed program was:" >&5
23399 sed 's/^/| /' conftest.$ac_ext >&5
23400
23401         ac_header_compiler=no
23402 fi
23403
23404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23406 echo "${ECHO_T}$ac_header_compiler" >&6; }
23407
23408 # Is the header present?
23409 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
23410 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
23411 cat >conftest.$ac_ext <<_ACEOF
23412 /* confdefs.h.  */
23413 _ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h.  */
23417 #include <pcap.h>
23418 _ACEOF
23419 if { (ac_try="$ac_cpp conftest.$ac_ext"
23420 case "(($ac_try" in
23421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23422   *) ac_try_echo=$ac_try;;
23423 esac
23424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23425   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23426   ac_status=$?
23427   grep -v '^ *+' conftest.er1 >conftest.err
23428   rm -f conftest.er1
23429   cat conftest.err >&5
23430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431   (exit $ac_status); } >/dev/null && {
23432          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23433          test ! -s conftest.err
23434        }; then
23435   ac_header_preproc=yes
23436 else
23437   echo "$as_me: failed program was:" >&5
23438 sed 's/^/| /' conftest.$ac_ext >&5
23439
23440   ac_header_preproc=no
23441 fi
23442
23443 rm -f conftest.err conftest.$ac_ext
23444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23445 echo "${ECHO_T}$ac_header_preproc" >&6; }
23446
23447 # So?  What about this header?
23448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23449   yes:no: )
23450     { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
23451 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23452     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
23453 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
23454     ac_header_preproc=yes
23455     ;;
23456   no:yes:* )
23457     { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
23458 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
23459     { echo "$as_me:$LINENO: WARNING: pcap.h:     check for missing prerequisite headers?" >&5
23460 echo "$as_me: WARNING: pcap.h:     check for missing prerequisite headers?" >&2;}
23461     { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
23462 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
23463     { echo "$as_me:$LINENO: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&5
23464 echo "$as_me: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23465     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
23466 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
23467     { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
23468 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
23469
23470     ;;
23471 esac
23472 { echo "$as_me:$LINENO: checking for pcap.h" >&5
23473 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23474 if test "${ac_cv_header_pcap_h+set}" = set; then
23475   echo $ECHO_N "(cached) $ECHO_C" >&6
23476 else
23477   ac_cv_header_pcap_h=$ac_header_preproc
23478 fi
23479 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23480 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23481
23482 fi
23483 if test $ac_cv_header_pcap_h = yes; then
23484
23485 cat >>confdefs.h <<\_ACEOF
23486 #define HAVE_PCAP_H 1
23487 _ACEOF
23488
23489 else
23490    PCAP_LIBS=
23491         { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
23492 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
23493
23494 fi
23495
23496
23497
23498     { echo "$as_me:$LINENO: checking for pcap_fopen_offline in -lpcap" >&5
23499 echo $ECHO_N "checking for pcap_fopen_offline in -lpcap... $ECHO_C" >&6; }
23500 if test "${ac_cv_lib_pcap_pcap_fopen_offline+set}" = set; then
23501   echo $ECHO_N "(cached) $ECHO_C" >&6
23502 else
23503   ac_check_lib_save_LIBS=$LIBS
23504 LIBS="-lpcap  $LIBS"
23505 cat >conftest.$ac_ext <<_ACEOF
23506 /* confdefs.h.  */
23507 _ACEOF
23508 cat confdefs.h >>conftest.$ac_ext
23509 cat >>conftest.$ac_ext <<_ACEOF
23510 /* end confdefs.h.  */
23511
23512 /* Override any GCC internal prototype to avoid an error.
23513    Use char because int might match the return type of a GCC
23514    builtin and then its argument prototype would still apply.  */
23515 #ifdef __cplusplus
23516 extern "C"
23517 #endif
23518 char pcap_fopen_offline ();
23519 int
23520 main ()
23521 {
23522 return pcap_fopen_offline ();
23523   ;
23524   return 0;
23525 }
23526 _ACEOF
23527 rm -f conftest.$ac_objext conftest$ac_exeext
23528 if { (ac_try="$ac_link"
23529 case "(($ac_try" in
23530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23531   *) ac_try_echo=$ac_try;;
23532 esac
23533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23534   (eval "$ac_link") 2>conftest.er1
23535   ac_status=$?
23536   grep -v '^ *+' conftest.er1 >conftest.err
23537   rm -f conftest.er1
23538   cat conftest.err >&5
23539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540   (exit $ac_status); } && {
23541          test -z "$ac_c_werror_flag" ||
23542          test ! -s conftest.err
23543        } && test -s conftest$ac_exeext &&
23544        $as_test_x conftest$ac_exeext; then
23545   ac_cv_lib_pcap_pcap_fopen_offline=yes
23546 else
23547   echo "$as_me: failed program was:" >&5
23548 sed 's/^/| /' conftest.$ac_ext >&5
23549
23550         ac_cv_lib_pcap_pcap_fopen_offline=no
23551 fi
23552
23553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23554       conftest$ac_exeext conftest.$ac_ext
23555 LIBS=$ac_check_lib_save_LIBS
23556 fi
23557 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
23558 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
23559 if test $ac_cv_lib_pcap_pcap_fopen_offline = yes; then
23560
23561 cat >>confdefs.h <<\_ACEOF
23562 #define HAVE_PCAP_FOPEN_OFFLINE 1
23563 _ACEOF
23564
23565
23566 fi
23567
23568     { echo "$as_me:$LINENO: checking for pcap_dump_fopen in -lpcap" >&5
23569 echo $ECHO_N "checking for pcap_dump_fopen in -lpcap... $ECHO_C" >&6; }
23570 if test "${ac_cv_lib_pcap_pcap_dump_fopen+set}" = set; then
23571   echo $ECHO_N "(cached) $ECHO_C" >&6
23572 else
23573   ac_check_lib_save_LIBS=$LIBS
23574 LIBS="-lpcap  $LIBS"
23575 cat >conftest.$ac_ext <<_ACEOF
23576 /* confdefs.h.  */
23577 _ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h.  */
23581
23582 /* Override any GCC internal prototype to avoid an error.
23583    Use char because int might match the return type of a GCC
23584    builtin and then its argument prototype would still apply.  */
23585 #ifdef __cplusplus
23586 extern "C"
23587 #endif
23588 char pcap_dump_fopen ();
23589 int
23590 main ()
23591 {
23592 return pcap_dump_fopen ();
23593   ;
23594   return 0;
23595 }
23596 _ACEOF
23597 rm -f conftest.$ac_objext conftest$ac_exeext
23598 if { (ac_try="$ac_link"
23599 case "(($ac_try" in
23600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23601   *) ac_try_echo=$ac_try;;
23602 esac
23603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23604   (eval "$ac_link") 2>conftest.er1
23605   ac_status=$?
23606   grep -v '^ *+' conftest.er1 >conftest.err
23607   rm -f conftest.er1
23608   cat conftest.err >&5
23609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610   (exit $ac_status); } && {
23611          test -z "$ac_c_werror_flag" ||
23612          test ! -s conftest.err
23613        } && test -s conftest$ac_exeext &&
23614        $as_test_x conftest$ac_exeext; then
23615   ac_cv_lib_pcap_pcap_dump_fopen=yes
23616 else
23617   echo "$as_me: failed program was:" >&5
23618 sed 's/^/| /' conftest.$ac_ext >&5
23619
23620         ac_cv_lib_pcap_pcap_dump_fopen=no
23621 fi
23622
23623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23624       conftest$ac_exeext conftest.$ac_ext
23625 LIBS=$ac_check_lib_save_LIBS
23626 fi
23627 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
23628 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
23629 if test $ac_cv_lib_pcap_pcap_dump_fopen = yes; then
23630
23631 cat >>confdefs.h <<\_ACEOF
23632 #define HAVE_PCAP_DUMP_FOPEN 1
23633 _ACEOF
23634
23635
23636 fi
23637
23638 fi
23639
23640
23641
23642 { echo "$as_me:$LINENO: checking for off_t" >&5
23643 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23644 if test "${ac_cv_type_off_t+set}" = set; then
23645   echo $ECHO_N "(cached) $ECHO_C" >&6
23646 else
23647   cat >conftest.$ac_ext <<_ACEOF
23648 /* confdefs.h.  */
23649 _ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h.  */
23653 $ac_includes_default
23654 typedef off_t ac__type_new_;
23655 int
23656 main ()
23657 {
23658 if ((ac__type_new_ *) 0)
23659   return 0;
23660 if (sizeof (ac__type_new_))
23661   return 0;
23662   ;
23663   return 0;
23664 }
23665 _ACEOF
23666 rm -f conftest.$ac_objext
23667 if { (ac_try="$ac_compile"
23668 case "(($ac_try" in
23669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23670   *) ac_try_echo=$ac_try;;
23671 esac
23672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23673   (eval "$ac_compile") 2>conftest.er1
23674   ac_status=$?
23675   grep -v '^ *+' conftest.er1 >conftest.err
23676   rm -f conftest.er1
23677   cat conftest.err >&5
23678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679   (exit $ac_status); } && {
23680          test -z "$ac_c_werror_flag" ||
23681          test ! -s conftest.err
23682        } && test -s conftest.$ac_objext; then
23683   ac_cv_type_off_t=yes
23684 else
23685   echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23687
23688         ac_cv_type_off_t=no
23689 fi
23690
23691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23692 fi
23693 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23694 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23695 if test $ac_cv_type_off_t = yes; then
23696   :
23697 else
23698
23699 cat >>confdefs.h <<_ACEOF
23700 #define off_t long int
23701 _ACEOF
23702
23703 fi
23704
23705 { echo "$as_me:$LINENO: checking for pid_t" >&5
23706 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23707 if test "${ac_cv_type_pid_t+set}" = set; then
23708   echo $ECHO_N "(cached) $ECHO_C" >&6
23709 else
23710   cat >conftest.$ac_ext <<_ACEOF
23711 /* confdefs.h.  */
23712 _ACEOF
23713 cat confdefs.h >>conftest.$ac_ext
23714 cat >>conftest.$ac_ext <<_ACEOF
23715 /* end confdefs.h.  */
23716 $ac_includes_default
23717 typedef pid_t ac__type_new_;
23718 int
23719 main ()
23720 {
23721 if ((ac__type_new_ *) 0)
23722   return 0;
23723 if (sizeof (ac__type_new_))
23724   return 0;
23725   ;
23726   return 0;
23727 }
23728 _ACEOF
23729 rm -f conftest.$ac_objext
23730 if { (ac_try="$ac_compile"
23731 case "(($ac_try" in
23732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23733   *) ac_try_echo=$ac_try;;
23734 esac
23735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23736   (eval "$ac_compile") 2>conftest.er1
23737   ac_status=$?
23738   grep -v '^ *+' conftest.er1 >conftest.err
23739   rm -f conftest.er1
23740   cat conftest.err >&5
23741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742   (exit $ac_status); } && {
23743          test -z "$ac_c_werror_flag" ||
23744          test ! -s conftest.err
23745        } && test -s conftest.$ac_objext; then
23746   ac_cv_type_pid_t=yes
23747 else
23748   echo "$as_me: failed program was:" >&5
23749 sed 's/^/| /' conftest.$ac_ext >&5
23750
23751         ac_cv_type_pid_t=no
23752 fi
23753
23754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23755 fi
23756 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23757 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23758 if test $ac_cv_type_pid_t = yes; then
23759   :
23760 else
23761
23762 cat >>confdefs.h <<_ACEOF
23763 #define pid_t int
23764 _ACEOF
23765
23766 fi
23767
23768 { echo "$as_me:$LINENO: checking for size_t" >&5
23769 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23770 if test "${ac_cv_type_size_t+set}" = set; then
23771   echo $ECHO_N "(cached) $ECHO_C" >&6
23772 else
23773   cat >conftest.$ac_ext <<_ACEOF
23774 /* confdefs.h.  */
23775 _ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h.  */
23779 $ac_includes_default
23780 typedef size_t ac__type_new_;
23781 int
23782 main ()
23783 {
23784 if ((ac__type_new_ *) 0)
23785   return 0;
23786 if (sizeof (ac__type_new_))
23787   return 0;
23788   ;
23789   return 0;
23790 }
23791 _ACEOF
23792 rm -f conftest.$ac_objext
23793 if { (ac_try="$ac_compile"
23794 case "(($ac_try" in
23795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796   *) ac_try_echo=$ac_try;;
23797 esac
23798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23799   (eval "$ac_compile") 2>conftest.er1
23800   ac_status=$?
23801   grep -v '^ *+' conftest.er1 >conftest.err
23802   rm -f conftest.er1
23803   cat conftest.err >&5
23804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805   (exit $ac_status); } && {
23806          test -z "$ac_c_werror_flag" ||
23807          test ! -s conftest.err
23808        } && test -s conftest.$ac_objext; then
23809   ac_cv_type_size_t=yes
23810 else
23811   echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.$ac_ext >&5
23813
23814         ac_cv_type_size_t=no
23815 fi
23816
23817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23818 fi
23819 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23820 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23821 if test $ac_cv_type_size_t = yes; then
23822   :
23823 else
23824
23825 cat >>confdefs.h <<_ACEOF
23826 #define size_t unsigned int
23827 _ACEOF
23828
23829 fi
23830
23831 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23832 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23833 if test "${ac_cv_type_uid_t+set}" = set; then
23834   echo $ECHO_N "(cached) $ECHO_C" >&6
23835 else
23836   cat >conftest.$ac_ext <<_ACEOF
23837 /* confdefs.h.  */
23838 _ACEOF
23839 cat confdefs.h >>conftest.$ac_ext
23840 cat >>conftest.$ac_ext <<_ACEOF
23841 /* end confdefs.h.  */
23842 #include <sys/types.h>
23843
23844 _ACEOF
23845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23846   $EGREP "uid_t" >/dev/null 2>&1; then
23847   ac_cv_type_uid_t=yes
23848 else
23849   ac_cv_type_uid_t=no
23850 fi
23851 rm -f conftest*
23852
23853 fi
23854 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23855 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23856 if test $ac_cv_type_uid_t = no; then
23857
23858 cat >>confdefs.h <<\_ACEOF
23859 #define uid_t int
23860 _ACEOF
23861
23862
23863 cat >>confdefs.h <<\_ACEOF
23864 #define gid_t int
23865 _ACEOF
23866
23867 fi
23868
23869
23870
23871   { echo "$as_me:$LINENO: checking for socklen_t" >&5
23872 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23873 if test "${ac_cv_type_socklen_t+set}" = set; then
23874   echo $ECHO_N "(cached) $ECHO_C" >&6
23875 else
23876    ac_cv_type_socklen_t=no
23877       cat >conftest.$ac_ext <<_ACEOF
23878 /* confdefs.h.  */
23879 _ACEOF
23880 cat confdefs.h >>conftest.$ac_ext
23881 cat >>conftest.$ac_ext <<_ACEOF
23882 /* end confdefs.h.  */
23883 #ifdef HAVE_SYS_TYPES_H
23884 #include <sys/types.h>
23885 #endif
23886 #ifdef HAVE_SYS_SOCKET_H
23887 #include <sys/socket.h>
23888 #endif
23889
23890 int
23891 main ()
23892 {
23893 socklen_t foo
23894   ;
23895   return 0;
23896 }
23897 _ACEOF
23898 rm -f conftest.$ac_objext
23899 if { (ac_try="$ac_compile"
23900 case "(($ac_try" in
23901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23902   *) ac_try_echo=$ac_try;;
23903 esac
23904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23905   (eval "$ac_compile") 2>conftest.er1
23906   ac_status=$?
23907   grep -v '^ *+' conftest.er1 >conftest.err
23908   rm -f conftest.er1
23909   cat conftest.err >&5
23910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911   (exit $ac_status); } && {
23912          test -z "$ac_c_werror_flag" ||
23913          test ! -s conftest.err
23914        } && test -s conftest.$ac_objext; then
23915   ac_cv_type_socklen_t=yes
23916 else
23917   echo "$as_me: failed program was:" >&5
23918 sed 's/^/| /' conftest.$ac_ext >&5
23919
23920
23921 fi
23922
23923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23924
23925
23926 fi
23927 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23928 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23929
23930   if test "$ac_cv_type_socklen_t" != "yes"; then
23931
23932 cat >>confdefs.h <<\_ACEOF
23933 #define socklen_t int
23934 _ACEOF
23935
23936   fi
23937
23938
23939
23940   { echo "$as_me:$LINENO: checking for uint8_t" >&5
23941 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23942 if test "${ac_cv_type_uint8_t+set}" = set; then
23943   echo $ECHO_N "(cached) $ECHO_C" >&6
23944 else
23945    ac_cv_type_uint8_t=no
23946       cat >conftest.$ac_ext <<_ACEOF
23947 /* confdefs.h.  */
23948 _ACEOF
23949 cat confdefs.h >>conftest.$ac_ext
23950 cat >>conftest.$ac_ext <<_ACEOF
23951 /* end confdefs.h.  */
23952 #ifdef HAVE_INTTYPES_H
23953 #include <inttypes.h>
23954 #endif
23955 #ifdef HAVE_STDINT_H
23956 #include <stdint.h>
23957 #endif
23958
23959 int
23960 main ()
23961 {
23962 uint8_t foo
23963   ;
23964   return 0;
23965 }
23966 _ACEOF
23967 rm -f conftest.$ac_objext
23968 if { (ac_try="$ac_compile"
23969 case "(($ac_try" in
23970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23971   *) ac_try_echo=$ac_try;;
23972 esac
23973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23974   (eval "$ac_compile") 2>conftest.er1
23975   ac_status=$?
23976   grep -v '^ *+' conftest.er1 >conftest.err
23977   rm -f conftest.er1
23978   cat conftest.err >&5
23979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980   (exit $ac_status); } && {
23981          test -z "$ac_c_werror_flag" ||
23982          test ! -s conftest.err
23983        } && test -s conftest.$ac_objext; then
23984   ac_cv_type_uint8_t=yes
23985 else
23986   echo "$as_me: failed program was:" >&5
23987 sed 's/^/| /' conftest.$ac_ext >&5
23988
23989
23990 fi
23991
23992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23993
23994
23995 fi
23996 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23997 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23998
23999   if test "$ac_cv_type_uint8_t" != "yes"; then
24000
24001 cat >>confdefs.h <<\_ACEOF
24002 #define uint8_t unsigned char
24003 _ACEOF
24004
24005   fi
24006
24007
24008
24009   { echo "$as_me:$LINENO: checking for uint16_t" >&5
24010 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
24011 if test "${ac_cv_type_uint16_t+set}" = set; then
24012   echo $ECHO_N "(cached) $ECHO_C" >&6
24013 else
24014    ac_cv_type_uint16_t=no
24015       cat >conftest.$ac_ext <<_ACEOF
24016 /* confdefs.h.  */
24017 _ACEOF
24018 cat confdefs.h >>conftest.$ac_ext
24019 cat >>conftest.$ac_ext <<_ACEOF
24020 /* end confdefs.h.  */
24021 #ifdef HAVE_INTTYPES_H
24022 #include <inttypes.h>
24023 #endif
24024 #ifdef HAVE_STDINT_H
24025 #include <stdint.h>
24026 #endif
24027
24028 int
24029 main ()
24030 {
24031 uint16_t foo
24032   ;
24033   return 0;
24034 }
24035 _ACEOF
24036 rm -f conftest.$ac_objext
24037 if { (ac_try="$ac_compile"
24038 case "(($ac_try" in
24039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24040   *) ac_try_echo=$ac_try;;
24041 esac
24042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24043   (eval "$ac_compile") 2>conftest.er1
24044   ac_status=$?
24045   grep -v '^ *+' conftest.er1 >conftest.err
24046   rm -f conftest.er1
24047   cat conftest.err >&5
24048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049   (exit $ac_status); } && {
24050          test -z "$ac_c_werror_flag" ||
24051          test ! -s conftest.err
24052        } && test -s conftest.$ac_objext; then
24053   ac_cv_type_uint16_t=yes
24054 else
24055   echo "$as_me: failed program was:" >&5
24056 sed 's/^/| /' conftest.$ac_ext >&5
24057
24058
24059 fi
24060
24061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24062
24063
24064 fi
24065 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
24066 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
24067
24068   if test "$ac_cv_type_uint16_t" != "yes"; then
24069
24070 cat >>confdefs.h <<\_ACEOF
24071 #define uint16_t unsigned short
24072 _ACEOF
24073
24074   fi
24075
24076
24077
24078   { echo "$as_me:$LINENO: checking for uint32_t" >&5
24079 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
24080 if test "${ac_cv_type_uint32_t+set}" = set; then
24081   echo $ECHO_N "(cached) $ECHO_C" >&6
24082 else
24083    ac_cv_type_uint32_t=no
24084       cat >conftest.$ac_ext <<_ACEOF
24085 /* confdefs.h.  */
24086 _ACEOF
24087 cat confdefs.h >>conftest.$ac_ext
24088 cat >>conftest.$ac_ext <<_ACEOF
24089 /* end confdefs.h.  */
24090 #ifdef HAVE_INTTYPES_H
24091 #include <inttypes.h>
24092 #endif
24093 #ifdef HAVE_STDINT_H
24094 #include <stdint.h>
24095 #endif
24096
24097 int
24098 main ()
24099 {
24100 uint32_t foo
24101   ;
24102   return 0;
24103 }
24104 _ACEOF
24105 rm -f conftest.$ac_objext
24106 if { (ac_try="$ac_compile"
24107 case "(($ac_try" in
24108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24109   *) ac_try_echo=$ac_try;;
24110 esac
24111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24112   (eval "$ac_compile") 2>conftest.er1
24113   ac_status=$?
24114   grep -v '^ *+' conftest.er1 >conftest.err
24115   rm -f conftest.er1
24116   cat conftest.err >&5
24117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118   (exit $ac_status); } && {
24119          test -z "$ac_c_werror_flag" ||
24120          test ! -s conftest.err
24121        } && test -s conftest.$ac_objext; then
24122   ac_cv_type_uint32_t=yes
24123 else
24124   echo "$as_me: failed program was:" >&5
24125 sed 's/^/| /' conftest.$ac_ext >&5
24126
24127
24128 fi
24129
24130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24131
24132
24133 fi
24134 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
24135 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
24136
24137   if test "$ac_cv_type_uint32_t" != "yes"; then
24138
24139 cat >>confdefs.h <<\_ACEOF
24140 #define uint32_t unsigned int
24141 _ACEOF
24142
24143   fi
24144
24145
24146 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
24147 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
24148 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
24149   echo $ECHO_N "(cached) $ECHO_C" >&6
24150 else
24151   cat >conftest.$ac_ext <<_ACEOF
24152 /* confdefs.h.  */
24153 _ACEOF
24154 cat confdefs.h >>conftest.$ac_ext
24155 cat >>conftest.$ac_ext <<_ACEOF
24156 /* end confdefs.h.  */
24157
24158 #ifdef HAVE_NETINET_IN_H
24159 #include <netinet/in.h>
24160 #endif
24161
24162
24163 typedef struct in6_addr ac__type_new_;
24164 int
24165 main ()
24166 {
24167 if ((ac__type_new_ *) 0)
24168   return 0;
24169 if (sizeof (ac__type_new_))
24170   return 0;
24171   ;
24172   return 0;
24173 }
24174 _ACEOF
24175 rm -f conftest.$ac_objext
24176 if { (ac_try="$ac_compile"
24177 case "(($ac_try" in
24178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24179   *) ac_try_echo=$ac_try;;
24180 esac
24181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24182   (eval "$ac_compile") 2>conftest.er1
24183   ac_status=$?
24184   grep -v '^ *+' conftest.er1 >conftest.err
24185   rm -f conftest.er1
24186   cat conftest.err >&5
24187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188   (exit $ac_status); } && {
24189          test -z "$ac_c_werror_flag" ||
24190          test ! -s conftest.err
24191        } && test -s conftest.$ac_objext; then
24192   ac_cv_type_struct_in6_addr=yes
24193 else
24194   echo "$as_me: failed program was:" >&5
24195 sed 's/^/| /' conftest.$ac_ext >&5
24196
24197         ac_cv_type_struct_in6_addr=no
24198 fi
24199
24200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24201 fi
24202 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
24203 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
24204 if test $ac_cv_type_struct_in6_addr = yes; then
24205
24206 cat >>confdefs.h <<\_ACEOF
24207 #define HAVE_STRUCT_IN6_ADDR 1
24208 _ACEOF
24209
24210 fi
24211
24212
24213 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
24214 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
24215 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
24216   echo $ECHO_N "(cached) $ECHO_C" >&6
24217 else
24218   cat >conftest.$ac_ext <<_ACEOF
24219 /* confdefs.h.  */
24220 _ACEOF
24221 cat confdefs.h >>conftest.$ac_ext
24222 cat >>conftest.$ac_ext <<_ACEOF
24223 /* end confdefs.h.  */
24224
24225 #ifdef HAVE_NETINET_IN_H
24226 #include <netinet/in.h>
24227 #endif
24228 #ifdef HAVE_SYS_SOCKET_H
24229 #include <sys/socket.h>
24230 #endif
24231
24232
24233 typedef struct sockaddr_storage ac__type_new_;
24234 int
24235 main ()
24236 {
24237 if ((ac__type_new_ *) 0)
24238   return 0;
24239 if (sizeof (ac__type_new_))
24240   return 0;
24241   ;
24242   return 0;
24243 }
24244 _ACEOF
24245 rm -f conftest.$ac_objext
24246 if { (ac_try="$ac_compile"
24247 case "(($ac_try" in
24248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24249   *) ac_try_echo=$ac_try;;
24250 esac
24251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24252   (eval "$ac_compile") 2>conftest.er1
24253   ac_status=$?
24254   grep -v '^ *+' conftest.er1 >conftest.err
24255   rm -f conftest.er1
24256   cat conftest.err >&5
24257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258   (exit $ac_status); } && {
24259          test -z "$ac_c_werror_flag" ||
24260          test ! -s conftest.err
24261        } && test -s conftest.$ac_objext; then
24262   ac_cv_type_struct_sockaddr_storage=yes
24263 else
24264   echo "$as_me: failed program was:" >&5
24265 sed 's/^/| /' conftest.$ac_ext >&5
24266
24267         ac_cv_type_struct_sockaddr_storage=no
24268 fi
24269
24270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24271 fi
24272 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
24273 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
24274 if test $ac_cv_type_struct_sockaddr_storage = yes; then
24275
24276 cat >>confdefs.h <<\_ACEOF
24277 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
24278 _ACEOF
24279
24280 fi
24281
24282
24283 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
24284 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
24285 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
24286   echo $ECHO_N "(cached) $ECHO_C" >&6
24287 else
24288   cat >conftest.$ac_ext <<_ACEOF
24289 /* confdefs.h.  */
24290 _ACEOF
24291 cat confdefs.h >>conftest.$ac_ext
24292 cat >>conftest.$ac_ext <<_ACEOF
24293 /* end confdefs.h.  */
24294
24295 #ifdef HAVE_NETINET_IN_H
24296 #include <netinet/in.h>
24297 #endif
24298
24299
24300 typedef struct sockaddr_in6 ac__type_new_;
24301 int
24302 main ()
24303 {
24304 if ((ac__type_new_ *) 0)
24305   return 0;
24306 if (sizeof (ac__type_new_))
24307   return 0;
24308   ;
24309   return 0;
24310 }
24311 _ACEOF
24312 rm -f conftest.$ac_objext
24313 if { (ac_try="$ac_compile"
24314 case "(($ac_try" in
24315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24316   *) ac_try_echo=$ac_try;;
24317 esac
24318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24319   (eval "$ac_compile") 2>conftest.er1
24320   ac_status=$?
24321   grep -v '^ *+' conftest.er1 >conftest.err
24322   rm -f conftest.er1
24323   cat conftest.err >&5
24324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325   (exit $ac_status); } && {
24326          test -z "$ac_c_werror_flag" ||
24327          test ! -s conftest.err
24328        } && test -s conftest.$ac_objext; then
24329   ac_cv_type_struct_sockaddr_in6=yes
24330 else
24331   echo "$as_me: failed program was:" >&5
24332 sed 's/^/| /' conftest.$ac_ext >&5
24333
24334         ac_cv_type_struct_sockaddr_in6=no
24335 fi
24336
24337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24338 fi
24339 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
24340 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
24341 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
24342
24343 cat >>confdefs.h <<\_ACEOF
24344 #define HAVE_STRUCT_SOCKADDR_IN6 1
24345 _ACEOF
24346
24347 fi
24348
24349
24350 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24351 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
24352 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
24353   echo $ECHO_N "(cached) $ECHO_C" >&6
24354 else
24355   cat >conftest.$ac_ext <<_ACEOF
24356 /* confdefs.h.  */
24357 _ACEOF
24358 cat confdefs.h >>conftest.$ac_ext
24359 cat >>conftest.$ac_ext <<_ACEOF
24360 /* end confdefs.h.  */
24361
24362 #ifdef HAVE_SYS_TYPES_H
24363 #include <sys/types.h>
24364 #endif
24365 #ifdef HAVE_SYS_SOCKET_H
24366 #include <sys/socket.h>
24367 #endif
24368 #ifdef HAVE_NETDB_H
24369 #include <netdb.h>
24370 #endif
24371
24372
24373 typedef struct addrinfo ac__type_new_;
24374 int
24375 main ()
24376 {
24377 if ((ac__type_new_ *) 0)
24378   return 0;
24379 if (sizeof (ac__type_new_))
24380   return 0;
24381   ;
24382   return 0;
24383 }
24384 _ACEOF
24385 rm -f conftest.$ac_objext
24386 if { (ac_try="$ac_compile"
24387 case "(($ac_try" in
24388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24389   *) ac_try_echo=$ac_try;;
24390 esac
24391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24392   (eval "$ac_compile") 2>conftest.er1
24393   ac_status=$?
24394   grep -v '^ *+' conftest.er1 >conftest.err
24395   rm -f conftest.er1
24396   cat conftest.err >&5
24397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398   (exit $ac_status); } && {
24399          test -z "$ac_c_werror_flag" ||
24400          test ! -s conftest.err
24401        } && test -s conftest.$ac_objext; then
24402   ac_cv_type_struct_addrinfo=yes
24403 else
24404   echo "$as_me: failed program was:" >&5
24405 sed 's/^/| /' conftest.$ac_ext >&5
24406
24407         ac_cv_type_struct_addrinfo=no
24408 fi
24409
24410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24411 fi
24412 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
24413 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
24414 if test $ac_cv_type_struct_addrinfo = yes; then
24415
24416 cat >>confdefs.h <<\_ACEOF
24417 #define HAVE_STRUCT_ADDRINFO 1
24418 _ACEOF
24419
24420 fi
24421
24422
24423
24424
24425
24426
24427
24428
24429
24430
24431
24432
24433
24434
24435
24436
24437
24438
24439
24440
24441
24442
24443
24444
24445
24446
24447
24448
24449
24450
24451
24452
24453
24454
24455 for ac_func in \
24456         getopt_long \
24457         lockf \
24458         strsignal \
24459         sigaction \
24460         sigprocmask \
24461         pthread_sigmask \
24462         snprintf \
24463         vsnprintf \
24464         setsid \
24465         strncasecmp \
24466         strcasecmp \
24467         localtime_r \
24468         ctime_r \
24469         gmtime_r \
24470         strsep \
24471         inet_aton \
24472         inet_pton \
24473         inet_ntop \
24474         setlinebuf \
24475         setvbuf \
24476         getusershell \
24477         initgroups \
24478         getaddrinfo \
24479         getnameinfo \
24480         closefrom \
24481         gettimeofday \
24482         getpeereid \
24483         setuid \
24484         setresuid \
24485         getresuid \
24486         strlcat \
24487         strlcpy
24488
24489 do
24490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24494   echo $ECHO_N "(cached) $ECHO_C" >&6
24495 else
24496   cat >conftest.$ac_ext <<_ACEOF
24497 /* confdefs.h.  */
24498 _ACEOF
24499 cat confdefs.h >>conftest.$ac_ext
24500 cat >>conftest.$ac_ext <<_ACEOF
24501 /* end confdefs.h.  */
24502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24504 #define $ac_func innocuous_$ac_func
24505
24506 /* System header to define __stub macros and hopefully few prototypes,
24507     which can conflict with char $ac_func (); below.
24508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24509     <limits.h> exists even on freestanding compilers.  */
24510
24511 #ifdef __STDC__
24512 # include <limits.h>
24513 #else
24514 # include <assert.h>
24515 #endif
24516
24517 #undef $ac_func
24518
24519 /* Override any GCC internal prototype to avoid an error.
24520    Use char because int might match the return type of a GCC
24521    builtin and then its argument prototype would still apply.  */
24522 #ifdef __cplusplus
24523 extern "C"
24524 #endif
24525 char $ac_func ();
24526 /* The GNU C library defines this for functions which it implements
24527     to always fail with ENOSYS.  Some functions are actually named
24528     something starting with __ and the normal name is an alias.  */
24529 #if defined __stub_$ac_func || defined __stub___$ac_func
24530 choke me
24531 #endif
24532
24533 int
24534 main ()
24535 {
24536 return $ac_func ();
24537   ;
24538   return 0;
24539 }
24540 _ACEOF
24541 rm -f conftest.$ac_objext conftest$ac_exeext
24542 if { (ac_try="$ac_link"
24543 case "(($ac_try" in
24544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24545   *) ac_try_echo=$ac_try;;
24546 esac
24547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24548   (eval "$ac_link") 2>conftest.er1
24549   ac_status=$?
24550   grep -v '^ *+' conftest.er1 >conftest.err
24551   rm -f conftest.er1
24552   cat conftest.err >&5
24553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554   (exit $ac_status); } && {
24555          test -z "$ac_c_werror_flag" ||
24556          test ! -s conftest.err
24557        } && test -s conftest$ac_exeext &&
24558        $as_test_x conftest$ac_exeext; then
24559   eval "$as_ac_var=yes"
24560 else
24561   echo "$as_me: failed program was:" >&5
24562 sed 's/^/| /' conftest.$ac_ext >&5
24563
24564         eval "$as_ac_var=no"
24565 fi
24566
24567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24568       conftest$ac_exeext conftest.$ac_ext
24569 fi
24570 ac_res=`eval echo '${'$as_ac_var'}'`
24571                { echo "$as_me:$LINENO: result: $ac_res" >&5
24572 echo "${ECHO_T}$ac_res" >&6; }
24573 if test `eval echo '${'$as_ac_var'}'` = yes; then
24574   cat >>confdefs.h <<_ACEOF
24575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24576 _ACEOF
24577
24578 fi
24579 done
24580
24581 for ac_func in \
24582         crypt \
24583         strncasecmp \
24584         strcasecmp \
24585         inet_aton \
24586         setlinebuf \
24587         getusershell \
24588         endusershell
24589
24590 do
24591 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
24592 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
24593 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
24594   echo $ECHO_N "(cached) $ECHO_C" >&6
24595 else
24596   cat >conftest.$ac_ext <<_ACEOF
24597 /* confdefs.h.  */
24598 _ACEOF
24599 cat confdefs.h >>conftest.$ac_ext
24600 cat >>conftest.$ac_ext <<_ACEOF
24601 /* end confdefs.h.  */
24602
24603 #include <stdio.h>
24604 #include <string.h>
24605 #ifdef HAVE_UNISTD_H
24606 #include <unistd.h>
24607 #endif
24608 #ifdef HAVE_CRYPT_H
24609 #include <crypt.h>
24610 #endif
24611 #ifdef HAVE_ERRNO_H
24612 #include <errno.h>
24613 #endif
24614 #ifdef HAVE_RESOURCE_H
24615 #include <resource.h>
24616 #endif
24617 #ifdef HAVE_GETOPT_H
24618 #include <getopt.h>
24619 #endif
24620 #ifdef HAVE_MALLOC_H
24621 #include <malloc.h>
24622 #endif
24623 #ifdef HAVE_UTMP_H
24624 #include <utmp.h>
24625 #endif
24626 #ifdef HAVE_UTMPX_H
24627 #include <utmpx.h>
24628 #endif
24629 #ifdef HAVE_SYS_SELECT_H
24630 #include <sys/select.h>
24631 #endif
24632 #ifdef HAVE_DLFCN_H
24633 #include <dlfcn.h>
24634 #endif
24635 #ifdef HAVE_REGEX_H
24636 #include <regex.h>
24637 #endif
24638 #ifdef HAVE_SYSLOG_H
24639 #include <syslog.h>
24640 #endif
24641 #ifdef HAVE_INTTYPES_H
24642 #include <inttypes.h>
24643 #endif
24644 #ifdef HAVE_STDINT_H
24645 #include <stdint.h>
24646 #endif
24647 #ifdef HAVE_ARPA_INET_H
24648 #include <arpa/inet.h>
24649 #endif
24650
24651 int
24652 main ()
24653 {
24654 char *(*pfn) = (char *(*)) $ac_func
24655   ;
24656   return 0;
24657 }
24658 _ACEOF
24659 rm -f conftest.$ac_objext
24660 if { (ac_try="$ac_compile"
24661 case "(($ac_try" in
24662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24663   *) ac_try_echo=$ac_try;;
24664 esac
24665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24666   (eval "$ac_compile") 2>conftest.er1
24667   ac_status=$?
24668   grep -v '^ *+' conftest.er1 >conftest.err
24669   rm -f conftest.er1
24670   cat conftest.err >&5
24671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672   (exit $ac_status); } && {
24673          test -z "$ac_c_werror_flag" ||
24674          test ! -s conftest.err
24675        } && test -s conftest.$ac_objext; then
24676   eval "radius_cv_decl_needed_$ac_func=no"
24677 else
24678   echo "$as_me: failed program was:" >&5
24679 sed 's/^/| /' conftest.$ac_ext >&5
24680
24681         eval "radius_cv_decl_needed_$ac_func=yes"
24682 fi
24683
24684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24685 fi
24686
24687 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
24688   { echo "$as_me:$LINENO: result: yes" >&5
24689 echo "${ECHO_T}yes" >&6; }
24690   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24691   cat >>confdefs.h <<_ACEOF
24692 #define $radius_tr_decl 1
24693 _ACEOF
24694
24695 else
24696   { echo "$as_me:$LINENO: result: no" >&5
24697 echo "${ECHO_T}no" >&6; }
24698 fi
24699
24700 done
24701
24702
24703 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24704 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24705 if test "${ac_cv_type_signal+set}" = set; then
24706   echo $ECHO_N "(cached) $ECHO_C" >&6
24707 else
24708   cat >conftest.$ac_ext <<_ACEOF
24709 /* confdefs.h.  */
24710 _ACEOF
24711 cat confdefs.h >>conftest.$ac_ext
24712 cat >>conftest.$ac_ext <<_ACEOF
24713 /* end confdefs.h.  */
24714 #include <sys/types.h>
24715 #include <signal.h>
24716
24717 int
24718 main ()
24719 {
24720 return *(signal (0, 0)) (0) == 1;
24721   ;
24722   return 0;
24723 }
24724 _ACEOF
24725 rm -f conftest.$ac_objext
24726 if { (ac_try="$ac_compile"
24727 case "(($ac_try" in
24728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24729   *) ac_try_echo=$ac_try;;
24730 esac
24731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24732   (eval "$ac_compile") 2>conftest.er1
24733   ac_status=$?
24734   grep -v '^ *+' conftest.er1 >conftest.err
24735   rm -f conftest.er1
24736   cat conftest.err >&5
24737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738   (exit $ac_status); } && {
24739          test -z "$ac_c_werror_flag" ||
24740          test ! -s conftest.err
24741        } && test -s conftest.$ac_objext; then
24742   ac_cv_type_signal=int
24743 else
24744   echo "$as_me: failed program was:" >&5
24745 sed 's/^/| /' conftest.$ac_ext >&5
24746
24747         ac_cv_type_signal=void
24748 fi
24749
24750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24751 fi
24752 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24753 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24754
24755 cat >>confdefs.h <<_ACEOF
24756 #define RETSIGTYPE $ac_cv_type_signal
24757 _ACEOF
24758
24759
24760
24761 if test "x$ac_cv_header_utmpx_h" = "xyes"
24762 then
24763
24764   { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
24765 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
24766
24767
24768   cat >conftest.$ac_ext <<_ACEOF
24769 /* confdefs.h.  */
24770 _ACEOF
24771 cat confdefs.h >>conftest.$ac_ext
24772 cat >>conftest.$ac_ext <<_ACEOF
24773 /* end confdefs.h.  */
24774
24775 #include <utmpx.h>
24776 #ifndef offsetof
24777 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24778 #endif
24779
24780 int
24781 main ()
24782 {
24783  int foo = offsetof(struct utmpx, ut_xtime)
24784   ;
24785   return 0;
24786 }
24787 _ACEOF
24788 rm -f conftest.$ac_objext
24789 if { (ac_try="$ac_compile"
24790 case "(($ac_try" in
24791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24792   *) ac_try_echo=$ac_try;;
24793 esac
24794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24795   (eval "$ac_compile") 2>conftest.er1
24796   ac_status=$?
24797   grep -v '^ *+' conftest.er1 >conftest.err
24798   rm -f conftest.er1
24799   cat conftest.err >&5
24800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801   (exit $ac_status); } && {
24802          test -z "$ac_c_werror_flag" ||
24803          test ! -s conftest.err
24804        } && test -s conftest.$ac_objext; then
24805   has_element=" "
24806 else
24807   echo "$as_me: failed program was:" >&5
24808 sed 's/^/| /' conftest.$ac_ext >&5
24809
24810         has_element=
24811 fi
24812
24813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24814
24815   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
24816   if test "x$has_element" != "x"; then
24817     { echo "$as_me:$LINENO: result: yes" >&5
24818 echo "${ECHO_T}yes" >&6; }
24819     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
24820   else
24821     { echo "$as_me:$LINENO: result: no" >&5
24822 echo "${ECHO_T}no" >&6; }
24823     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
24824  fi
24825
24826  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
24827  then
24828
24829 cat >>confdefs.h <<\_ACEOF
24830 #define ut_xtime ut_tv.tv_sec
24831 _ACEOF
24832
24833  fi
24834 fi
24835
24836
24837   { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
24838 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
24839
24840
24841   cat >conftest.$ac_ext <<_ACEOF
24842 /* confdefs.h.  */
24843 _ACEOF
24844 cat confdefs.h >>conftest.$ac_ext
24845 cat >>conftest.$ac_ext <<_ACEOF
24846 /* end confdefs.h.  */
24847
24848 #include <netinet/in.h>
24849 #ifndef offsetof
24850 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24851 #endif
24852
24853 int
24854 main ()
24855 {
24856  int foo = offsetof(struct in_pktinfo, ipi_addr)
24857   ;
24858   return 0;
24859 }
24860 _ACEOF
24861 rm -f conftest.$ac_objext
24862 if { (ac_try="$ac_compile"
24863 case "(($ac_try" in
24864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24865   *) ac_try_echo=$ac_try;;
24866 esac
24867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24868   (eval "$ac_compile") 2>conftest.er1
24869   ac_status=$?
24870   grep -v '^ *+' conftest.er1 >conftest.err
24871   rm -f conftest.er1
24872   cat conftest.err >&5
24873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874   (exit $ac_status); } && {
24875          test -z "$ac_c_werror_flag" ||
24876          test ! -s conftest.err
24877        } && test -s conftest.$ac_objext; then
24878   has_element=" "
24879 else
24880   echo "$as_me: failed program was:" >&5
24881 sed 's/^/| /' conftest.$ac_ext >&5
24882
24883         has_element=
24884 fi
24885
24886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24887
24888   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
24889   if test "x$has_element" != "x"; then
24890     { echo "$as_me:$LINENO: result: yes" >&5
24891 echo "${ECHO_T}yes" >&6; }
24892     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
24893   else
24894     { echo "$as_me:$LINENO: result: no" >&5
24895 echo "${ECHO_T}no" >&6; }
24896     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
24897  fi
24898
24899 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
24900 then
24901
24902 cat >>confdefs.h <<\_ACEOF
24903 #define HAVE_IP_PKTINFO
24904 _ACEOF
24905
24906 fi
24907
24908
24909   { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
24910 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
24911
24912
24913   cat >conftest.$ac_ext <<_ACEOF
24914 /* confdefs.h.  */
24915 _ACEOF
24916 cat confdefs.h >>conftest.$ac_ext
24917 cat >>conftest.$ac_ext <<_ACEOF
24918 /* end confdefs.h.  */
24919
24920 #include <netinet/in.h>
24921 #ifndef offsetof
24922 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24923 #endif
24924
24925 int
24926 main ()
24927 {
24928  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
24929   ;
24930   return 0;
24931 }
24932 _ACEOF
24933 rm -f conftest.$ac_objext
24934 if { (ac_try="$ac_compile"
24935 case "(($ac_try" in
24936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24937   *) ac_try_echo=$ac_try;;
24938 esac
24939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24940   (eval "$ac_compile") 2>conftest.er1
24941   ac_status=$?
24942   grep -v '^ *+' conftest.er1 >conftest.err
24943   rm -f conftest.er1
24944   cat conftest.err >&5
24945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946   (exit $ac_status); } && {
24947          test -z "$ac_c_werror_flag" ||
24948          test ! -s conftest.err
24949        } && test -s conftest.$ac_objext; then
24950   has_element=" "
24951 else
24952   echo "$as_me: failed program was:" >&5
24953 sed 's/^/| /' conftest.$ac_ext >&5
24954
24955         has_element=
24956 fi
24957
24958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24959
24960   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
24961   if test "x$has_element" != "x"; then
24962     { echo "$as_me:$LINENO: result: yes" >&5
24963 echo "${ECHO_T}yes" >&6; }
24964     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
24965   else
24966     { echo "$as_me:$LINENO: result: no" >&5
24967 echo "${ECHO_T}no" >&6; }
24968     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
24969  fi
24970
24971 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
24972 then
24973
24974 cat >>confdefs.h <<\_ACEOF
24975 #define HAVE_IN6_PKTINFO
24976 _ACEOF
24977
24978 fi
24979
24980
24981 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24982 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24983 if test "${ac_cv_c_const+set}" = set; then
24984   echo $ECHO_N "(cached) $ECHO_C" >&6
24985 else
24986   cat >conftest.$ac_ext <<_ACEOF
24987 /* confdefs.h.  */
24988 _ACEOF
24989 cat confdefs.h >>conftest.$ac_ext
24990 cat >>conftest.$ac_ext <<_ACEOF
24991 /* end confdefs.h.  */
24992
24993 int
24994 main ()
24995 {
24996 /* FIXME: Include the comments suggested by Paul. */
24997 #ifndef __cplusplus
24998   /* Ultrix mips cc rejects this.  */
24999   typedef int charset[2];
25000   const charset cs;
25001   /* SunOS 4.1.1 cc rejects this.  */
25002   char const *const *pcpcc;
25003   char **ppc;
25004   /* NEC SVR4.0.2 mips cc rejects this.  */
25005   struct point {int x, y;};
25006   static struct point const zero = {0,0};
25007   /* AIX XL C 1.02.0.0 rejects this.
25008      It does not let you subtract one const X* pointer from another in
25009      an arm of an if-expression whose if-part is not a constant
25010      expression */
25011   const char *g = "string";
25012   pcpcc = &g + (g ? g-g : 0);
25013   /* HPUX 7.0 cc rejects these. */
25014   ++pcpcc;
25015   ppc = (char**) pcpcc;
25016   pcpcc = (char const *const *) ppc;
25017   { /* SCO 3.2v4 cc rejects this.  */
25018     char *t;
25019     char const *s = 0 ? (char *) 0 : (char const *) 0;
25020
25021     *t++ = 0;
25022     if (s) return 0;
25023   }
25024   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25025     int x[] = {25, 17};
25026     const int *foo = &x[0];
25027     ++foo;
25028   }
25029   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25030     typedef const int *iptr;
25031     iptr p = 0;
25032     ++p;
25033   }
25034   { /* AIX XL C 1.02.0.0 rejects this saying
25035        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25036     struct s { int j; const int *ap[3]; };
25037     struct s *b; b->j = 5;
25038   }
25039   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25040     const int foo = 10;
25041     if (!foo) return 0;
25042   }
25043   return !cs[0] && !zero.x;
25044 #endif
25045
25046   ;
25047   return 0;
25048 }
25049 _ACEOF
25050 rm -f conftest.$ac_objext
25051 if { (ac_try="$ac_compile"
25052 case "(($ac_try" in
25053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25054   *) ac_try_echo=$ac_try;;
25055 esac
25056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25057   (eval "$ac_compile") 2>conftest.er1
25058   ac_status=$?
25059   grep -v '^ *+' conftest.er1 >conftest.err
25060   rm -f conftest.er1
25061   cat conftest.err >&5
25062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063   (exit $ac_status); } && {
25064          test -z "$ac_c_werror_flag" ||
25065          test ! -s conftest.err
25066        } && test -s conftest.$ac_objext; then
25067   ac_cv_c_const=yes
25068 else
25069   echo "$as_me: failed program was:" >&5
25070 sed 's/^/| /' conftest.$ac_ext >&5
25071
25072         ac_cv_c_const=no
25073 fi
25074
25075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25076 fi
25077 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25078 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25079 if test $ac_cv_c_const = no; then
25080
25081 cat >>confdefs.h <<\_ACEOF
25082 #define const
25083 _ACEOF
25084
25085 fi
25086
25087
25088 { echo "$as_me:$LINENO: checking type of OS" >&5
25089 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
25090 OS=`uname -s`
25091 { echo "$as_me:$LINENO: result: $OS" >&5
25092 echo "${ECHO_T}$OS" >&6; }
25093 if test "$OS" = "OS/2"; then
25094         LIBPREFIX=
25095 else
25096         LIBPREFIX=lib
25097 fi
25098
25099
25100 if test "x$GCC" = "xyes"; then
25101     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
25102 fi
25103
25104 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
25105 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
25106 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
25107   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
25108   CFLAGS="$CFLAGS $devflags"
25109   INSTALLSTRIP=""
25110   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
25111 echo "${ECHO_T}yes.  Using $devflags" >&6; }
25112 else
25113   devflags=""
25114   CFLAGS="$CFLAGS -DNDEBUG"
25115   INSTALLSTRIP=""
25116   { echo "$as_me:$LINENO: result: no." >&5
25117 echo "${ECHO_T}no." >&6; }
25118 fi
25119
25120
25121     { echo "$as_me:$LINENO: checking for TLS" >&5
25122 echo $ECHO_N "checking for TLS... $ECHO_C" >&6; }
25123     if test "$cross_compiling" = yes; then
25124   have_tls=no
25125 else
25126   cat >conftest.$ac_ext <<_ACEOF
25127 /* confdefs.h.  */
25128 _ACEOF
25129 cat confdefs.h >>conftest.$ac_ext
25130 cat >>conftest.$ac_ext <<_ACEOF
25131 /* end confdefs.h.  */
25132  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
25133 _ACEOF
25134 rm -f conftest$ac_exeext
25135 if { (ac_try="$ac_link"
25136 case "(($ac_try" in
25137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25138   *) ac_try_echo=$ac_try;;
25139 esac
25140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25141   (eval "$ac_link") 2>&5
25142   ac_status=$?
25143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25145   { (case "(($ac_try" in
25146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25147   *) ac_try_echo=$ac_try;;
25148 esac
25149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25150   (eval "$ac_try") 2>&5
25151   ac_status=$?
25152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153   (exit $ac_status); }; }; then
25154   have_tls=yes
25155 else
25156   echo "$as_me: program exited with status $ac_status" >&5
25157 echo "$as_me: failed program was:" >&5
25158 sed 's/^/| /' conftest.$ac_ext >&5
25159
25160 ( exit $ac_status )
25161 have_tls=no
25162 fi
25163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25164 fi
25165
25166
25167     { echo "$as_me:$LINENO: result: $have_tls" >&5
25168 echo "${ECHO_T}$have_tls" >&6; }
25169     if test "$have_tls" = "yes"; then
25170
25171 cat >>confdefs.h <<\_ACEOF
25172 #define HAVE_THREAD_TLS 1
25173 _ACEOF
25174
25175     fi
25176
25177
25178
25179 old_LIBS="$LIBS"
25180 LIBS="$LIBS $LIBLTDL"
25181 { echo "$as_me:$LINENO: checking for lt_dladvise_init" >&5
25182 echo $ECHO_N "checking for lt_dladvise_init... $ECHO_C" >&6; }
25183 if test "${ac_cv_func_lt_dladvise_init+set}" = set; then
25184   echo $ECHO_N "(cached) $ECHO_C" >&6
25185 else
25186   cat >conftest.$ac_ext <<_ACEOF
25187 /* confdefs.h.  */
25188 _ACEOF
25189 cat confdefs.h >>conftest.$ac_ext
25190 cat >>conftest.$ac_ext <<_ACEOF
25191 /* end confdefs.h.  */
25192 /* Define lt_dladvise_init to an innocuous variant, in case <limits.h> declares lt_dladvise_init.
25193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25194 #define lt_dladvise_init innocuous_lt_dladvise_init
25195
25196 /* System header to define __stub macros and hopefully few prototypes,
25197     which can conflict with char lt_dladvise_init (); below.
25198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25199     <limits.h> exists even on freestanding compilers.  */
25200
25201 #ifdef __STDC__
25202 # include <limits.h>
25203 #else
25204 # include <assert.h>
25205 #endif
25206
25207 #undef lt_dladvise_init
25208
25209 /* Override any GCC internal prototype to avoid an error.
25210    Use char because int might match the return type of a GCC
25211    builtin and then its argument prototype would still apply.  */
25212 #ifdef __cplusplus
25213 extern "C"
25214 #endif
25215 char lt_dladvise_init ();
25216 /* The GNU C library defines this for functions which it implements
25217     to always fail with ENOSYS.  Some functions are actually named
25218     something starting with __ and the normal name is an alias.  */
25219 #if defined __stub_lt_dladvise_init || defined __stub___lt_dladvise_init
25220 choke me
25221 #endif
25222
25223 int
25224 main ()
25225 {
25226 return lt_dladvise_init ();
25227   ;
25228   return 0;
25229 }
25230 _ACEOF
25231 rm -f conftest.$ac_objext conftest$ac_exeext
25232 if { (ac_try="$ac_link"
25233 case "(($ac_try" in
25234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25235   *) ac_try_echo=$ac_try;;
25236 esac
25237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25238   (eval "$ac_link") 2>conftest.er1
25239   ac_status=$?
25240   grep -v '^ *+' conftest.er1 >conftest.err
25241   rm -f conftest.er1
25242   cat conftest.err >&5
25243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244   (exit $ac_status); } && {
25245          test -z "$ac_c_werror_flag" ||
25246          test ! -s conftest.err
25247        } && test -s conftest$ac_exeext &&
25248        $as_test_x conftest$ac_exeext; then
25249   ac_cv_func_lt_dladvise_init=yes
25250 else
25251   echo "$as_me: failed program was:" >&5
25252 sed 's/^/| /' conftest.$ac_ext >&5
25253
25254         ac_cv_func_lt_dladvise_init=no
25255 fi
25256
25257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25258       conftest$ac_exeext conftest.$ac_ext
25259 fi
25260 { echo "$as_me:$LINENO: result: $ac_cv_func_lt_dladvise_init" >&5
25261 echo "${ECHO_T}$ac_cv_func_lt_dladvise_init" >&6; }
25262 if test $ac_cv_func_lt_dladvise_init = yes; then
25263
25264 cat >>confdefs.h <<\_ACEOF
25265 #define HAVE_HAVE_LT_DLADVISE_INIT
25266 _ACEOF
25267
25268 fi
25269
25270 LIBS="$old_LIBS"
25271
25272 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
25273 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
25274 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
25275   echo $ECHO_N "(cached) $ECHO_C" >&6
25276 else
25277   ac_check_lib_save_LIBS=$LIBS
25278 LIBS="-lcrypt  $LIBS"
25279 cat >conftest.$ac_ext <<_ACEOF
25280 /* confdefs.h.  */
25281 _ACEOF
25282 cat confdefs.h >>conftest.$ac_ext
25283 cat >>conftest.$ac_ext <<_ACEOF
25284 /* end confdefs.h.  */
25285
25286 /* Override any GCC internal prototype to avoid an error.
25287    Use char because int might match the return type of a GCC
25288    builtin and then its argument prototype would still apply.  */
25289 #ifdef __cplusplus
25290 extern "C"
25291 #endif
25292 char crypt ();
25293 int
25294 main ()
25295 {
25296 return crypt ();
25297   ;
25298   return 0;
25299 }
25300 _ACEOF
25301 rm -f conftest.$ac_objext conftest$ac_exeext
25302 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
25309   ac_status=$?
25310   grep -v '^ *+' conftest.er1 >conftest.err
25311   rm -f conftest.er1
25312   cat conftest.err >&5
25313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314   (exit $ac_status); } && {
25315          test -z "$ac_c_werror_flag" ||
25316          test ! -s conftest.err
25317        } && test -s conftest$ac_exeext &&
25318        $as_test_x conftest$ac_exeext; then
25319   ac_cv_lib_crypt_crypt=yes
25320 else
25321   echo "$as_me: failed program was:" >&5
25322 sed 's/^/| /' conftest.$ac_ext >&5
25323
25324         ac_cv_lib_crypt_crypt=no
25325 fi
25326
25327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25328       conftest$ac_exeext conftest.$ac_ext
25329 LIBS=$ac_check_lib_save_LIBS
25330 fi
25331 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
25332 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
25333 if test $ac_cv_lib_crypt_crypt = yes; then
25334   CRYPTLIB="-lcrypt"
25335
25336 fi
25337
25338 if test "$CRYPTLIB" != ""; then
25339
25340 cat >>confdefs.h <<\_ACEOF
25341 #define HAVE_CRYPT
25342 _ACEOF
25343
25344 else
25345   { echo "$as_me:$LINENO: checking for crypt" >&5
25346 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
25347 if test "${ac_cv_func_crypt+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 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
25357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25358 #define crypt innocuous_crypt
25359
25360 /* System header to define __stub macros and hopefully few prototypes,
25361     which can conflict with char crypt (); below.
25362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25363     <limits.h> exists even on freestanding compilers.  */
25364
25365 #ifdef __STDC__
25366 # include <limits.h>
25367 #else
25368 # include <assert.h>
25369 #endif
25370
25371 #undef crypt
25372
25373 /* Override any GCC internal prototype to avoid an error.
25374    Use char because int might match the return type of a GCC
25375    builtin and then its argument prototype would still apply.  */
25376 #ifdef __cplusplus
25377 extern "C"
25378 #endif
25379 char crypt ();
25380 /* The GNU C library defines this for functions which it implements
25381     to always fail with ENOSYS.  Some functions are actually named
25382     something starting with __ and the normal name is an alias.  */
25383 #if defined __stub_crypt || defined __stub___crypt
25384 choke me
25385 #endif
25386
25387 int
25388 main ()
25389 {
25390 return crypt ();
25391   ;
25392   return 0;
25393 }
25394 _ACEOF
25395 rm -f conftest.$ac_objext conftest$ac_exeext
25396 if { (ac_try="$ac_link"
25397 case "(($ac_try" in
25398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25399   *) ac_try_echo=$ac_try;;
25400 esac
25401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25402   (eval "$ac_link") 2>conftest.er1
25403   ac_status=$?
25404   grep -v '^ *+' conftest.er1 >conftest.err
25405   rm -f conftest.er1
25406   cat conftest.err >&5
25407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408   (exit $ac_status); } && {
25409          test -z "$ac_c_werror_flag" ||
25410          test ! -s conftest.err
25411        } && test -s conftest$ac_exeext &&
25412        $as_test_x conftest$ac_exeext; then
25413   ac_cv_func_crypt=yes
25414 else
25415   echo "$as_me: failed program was:" >&5
25416 sed 's/^/| /' conftest.$ac_ext >&5
25417
25418         ac_cv_func_crypt=no
25419 fi
25420
25421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25422       conftest$ac_exeext conftest.$ac_ext
25423 fi
25424 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
25425 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
25426 if test $ac_cv_func_crypt = yes; then
25427
25428 cat >>confdefs.h <<\_ACEOF
25429 #define HAVE_CRYPT
25430 _ACEOF
25431
25432 fi
25433
25434 fi
25435
25436 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
25437 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
25438 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
25439   echo $ECHO_N "(cached) $ECHO_C" >&6
25440 else
25441   ac_check_lib_save_LIBS=$LIBS
25442 LIBS="-lcipher  $LIBS"
25443 cat >conftest.$ac_ext <<_ACEOF
25444 /* confdefs.h.  */
25445 _ACEOF
25446 cat confdefs.h >>conftest.$ac_ext
25447 cat >>conftest.$ac_ext <<_ACEOF
25448 /* end confdefs.h.  */
25449
25450 /* Override any GCC internal prototype to avoid an error.
25451    Use char because int might match the return type of a GCC
25452    builtin and then its argument prototype would still apply.  */
25453 #ifdef __cplusplus
25454 extern "C"
25455 #endif
25456 char setkey ();
25457 int
25458 main ()
25459 {
25460 return setkey ();
25461   ;
25462   return 0;
25463 }
25464 _ACEOF
25465 rm -f conftest.$ac_objext conftest$ac_exeext
25466 if { (ac_try="$ac_link"
25467 case "(($ac_try" in
25468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25469   *) ac_try_echo=$ac_try;;
25470 esac
25471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25472   (eval "$ac_link") 2>conftest.er1
25473   ac_status=$?
25474   grep -v '^ *+' conftest.er1 >conftest.err
25475   rm -f conftest.er1
25476   cat conftest.err >&5
25477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478   (exit $ac_status); } && {
25479          test -z "$ac_c_werror_flag" ||
25480          test ! -s conftest.err
25481        } && test -s conftest$ac_exeext &&
25482        $as_test_x conftest$ac_exeext; then
25483   ac_cv_lib_cipher_setkey=yes
25484 else
25485   echo "$as_me: failed program was:" >&5
25486 sed 's/^/| /' conftest.$ac_ext >&5
25487
25488         ac_cv_lib_cipher_setkey=no
25489 fi
25490
25491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25492       conftest$ac_exeext conftest.$ac_ext
25493 LIBS=$ac_check_lib_save_LIBS
25494 fi
25495 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
25496 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
25497 if test $ac_cv_lib_cipher_setkey = yes; then
25498   CRYPTLIB="${CRYPTLIB} -lcipher"
25499
25500 fi
25501
25502
25503
25504
25505 cat >>confdefs.h <<\_ACEOF
25506 #define GNUSTYLE 1
25507 _ACEOF
25508
25509
25510 cat >>confdefs.h <<\_ACEOF
25511 #define SYSVSTYLE 2
25512 _ACEOF
25513
25514
25515 cat >>confdefs.h <<\_ACEOF
25516 #define BSDSTYLE 3
25517 _ACEOF
25518
25519 gethostbyaddrrstyle=""
25520 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
25521 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
25522 case "$host" in
25523 *-freebsd*)
25524         { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
25525 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
25526 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
25527   echo $ECHO_N "(cached) $ECHO_C" >&6
25528 else
25529   cat >conftest.$ac_ext <<_ACEOF
25530 /* confdefs.h.  */
25531 _ACEOF
25532 cat confdefs.h >>conftest.$ac_ext
25533 cat >>conftest.$ac_ext <<_ACEOF
25534 /* end confdefs.h.  */
25535
25536 #ifdef HAVE_NETDB_H
25537 #include <netdb.h>
25538 #endif
25539
25540
25541 int
25542 main ()
25543 {
25544 #ifndef gethostbyaddr_r
25545   (void) gethostbyaddr_r;
25546 #endif
25547
25548   ;
25549   return 0;
25550 }
25551 _ACEOF
25552 rm -f conftest.$ac_objext
25553 if { (ac_try="$ac_compile"
25554 case "(($ac_try" in
25555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25556   *) ac_try_echo=$ac_try;;
25557 esac
25558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25559   (eval "$ac_compile") 2>conftest.er1
25560   ac_status=$?
25561   grep -v '^ *+' conftest.er1 >conftest.err
25562   rm -f conftest.er1
25563   cat conftest.err >&5
25564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25565   (exit $ac_status); } && {
25566          test -z "$ac_c_werror_flag" ||
25567          test ! -s conftest.err
25568        } && test -s conftest.$ac_objext; then
25569   ac_cv_have_decl_gethostbyaddr_r=yes
25570 else
25571   echo "$as_me: failed program was:" >&5
25572 sed 's/^/| /' conftest.$ac_ext >&5
25573
25574         ac_cv_have_decl_gethostbyaddr_r=no
25575 fi
25576
25577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25578 fi
25579 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
25580 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
25581 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
25582
25583 cat >>confdefs.h <<_ACEOF
25584 #define HAVE_DECL_GETHOSTBYADDR_R 1
25585 _ACEOF
25586
25587
25588 else
25589   cat >>confdefs.h <<_ACEOF
25590 #define HAVE_DECL_GETHOSTBYADDR_R 0
25591 _ACEOF
25592
25593
25594
25595 cat >>confdefs.h <<\_ACEOF
25596 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25597 _ACEOF
25598
25599                 gethostbyaddrrstyle=BSD
25600                 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
25601 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
25602
25603 fi
25604
25605
25606         ;;
25607 esac
25608 if test "x$gethostbyaddrrstyle" = "x"; then
25609         cat >conftest.$ac_ext <<_ACEOF
25610 /* confdefs.h.  */
25611 _ACEOF
25612 cat confdefs.h >>conftest.$ac_ext
25613 cat >>conftest.$ac_ext <<_ACEOF
25614 /* end confdefs.h.  */
25615
25616 #include <stdio.h>
25617 #include <netdb.h>
25618
25619 int
25620 main ()
25621 {
25622  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
25623   ;
25624   return 0;
25625 }
25626 _ACEOF
25627 rm -f conftest.$ac_objext conftest$ac_exeext
25628 if { (ac_try="$ac_link"
25629 case "(($ac_try" in
25630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25631   *) ac_try_echo=$ac_try;;
25632 esac
25633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25634   (eval "$ac_link") 2>conftest.er1
25635   ac_status=$?
25636   grep -v '^ *+' conftest.er1 >conftest.err
25637   rm -f conftest.er1
25638   cat conftest.err >&5
25639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640   (exit $ac_status); } && {
25641          test -z "$ac_c_werror_flag" ||
25642          test ! -s conftest.err
25643        } && test -s conftest$ac_exeext &&
25644        $as_test_x conftest$ac_exeext; then
25645
25646
25647 cat >>confdefs.h <<\_ACEOF
25648 #define GETHOSTBYADDRRSTYLE GNUSTYLE
25649 _ACEOF
25650
25651         gethostbyaddrrstyle=GNU
25652
25653 else
25654   echo "$as_me: failed program was:" >&5
25655 sed 's/^/| /' conftest.$ac_ext >&5
25656
25657
25658 fi
25659
25660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25661       conftest$ac_exeext conftest.$ac_ext
25662 fi
25663 if test "x$gethostbyaddrrstyle" = "x"; then
25664         cat >conftest.$ac_ext <<_ACEOF
25665 /* confdefs.h.  */
25666 _ACEOF
25667 cat confdefs.h >>conftest.$ac_ext
25668 cat >>conftest.$ac_ext <<_ACEOF
25669 /* end confdefs.h.  */
25670
25671 #include <stdio.h>
25672 #include <netdb.h>
25673
25674 int
25675 main ()
25676 {
25677  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
25678   ;
25679   return 0;
25680 }
25681 _ACEOF
25682 rm -f conftest.$ac_objext conftest$ac_exeext
25683 if { (ac_try="$ac_link"
25684 case "(($ac_try" in
25685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25686   *) ac_try_echo=$ac_try;;
25687 esac
25688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25689   (eval "$ac_link") 2>conftest.er1
25690   ac_status=$?
25691   grep -v '^ *+' conftest.er1 >conftest.err
25692   rm -f conftest.er1
25693   cat conftest.err >&5
25694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695   (exit $ac_status); } && {
25696          test -z "$ac_c_werror_flag" ||
25697          test ! -s conftest.err
25698        } && test -s conftest$ac_exeext &&
25699        $as_test_x conftest$ac_exeext; then
25700
25701
25702 cat >>confdefs.h <<\_ACEOF
25703 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
25704 _ACEOF
25705
25706                 gethostbyaddrrstyle=SYSV
25707
25708 else
25709   echo "$as_me: failed program was:" >&5
25710 sed 's/^/| /' conftest.$ac_ext >&5
25711
25712
25713 fi
25714
25715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25716       conftest$ac_exeext conftest.$ac_ext
25717 fi
25718 if test "x$gethostbyaddrrstyle" = "x"; then
25719         cat >conftest.$ac_ext <<_ACEOF
25720 /* confdefs.h.  */
25721 _ACEOF
25722 cat confdefs.h >>conftest.$ac_ext
25723 cat >>conftest.$ac_ext <<_ACEOF
25724 /* end confdefs.h.  */
25725
25726 #include <stdio.h>
25727 #include <netdb.h>
25728
25729 int
25730 main ()
25731 {
25732  gethostbyaddr(NULL, 0, 0)
25733   ;
25734   return 0;
25735 }
25736 _ACEOF
25737 rm -f conftest.$ac_objext conftest$ac_exeext
25738 if { (ac_try="$ac_link"
25739 case "(($ac_try" in
25740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25741   *) ac_try_echo=$ac_try;;
25742 esac
25743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25744   (eval "$ac_link") 2>conftest.er1
25745   ac_status=$?
25746   grep -v '^ *+' conftest.er1 >conftest.err
25747   rm -f conftest.er1
25748   cat conftest.err >&5
25749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750   (exit $ac_status); } && {
25751          test -z "$ac_c_werror_flag" ||
25752          test ! -s conftest.err
25753        } && test -s conftest$ac_exeext &&
25754        $as_test_x conftest$ac_exeext; then
25755
25756
25757 cat >>confdefs.h <<\_ACEOF
25758 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25759 _ACEOF
25760
25761                 gethostbyaddrrstyle=BSD
25762
25763 else
25764   echo "$as_me: failed program was:" >&5
25765 sed 's/^/| /' conftest.$ac_ext >&5
25766
25767
25768 fi
25769
25770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25771       conftest$ac_exeext conftest.$ac_ext
25772 fi
25773
25774 if test "x$gethostbyaddrrstyle" = "x"; then
25775         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25776 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25777 else
25778         { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
25779 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
25780 fi
25781
25782 if test "x$gethostbyaddrrstyle" = "xBSD"; then
25783         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
25784 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
25785 fi
25786
25787 gethostbynamerstyle=""
25788 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
25789 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
25790 cat >conftest.$ac_ext <<_ACEOF
25791 /* confdefs.h.  */
25792 _ACEOF
25793 cat confdefs.h >>conftest.$ac_ext
25794 cat >>conftest.$ac_ext <<_ACEOF
25795 /* end confdefs.h.  */
25796
25797 #include <stdio.h>
25798 #include <netdb.h>
25799
25800 int
25801 main ()
25802 {
25803  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
25804   ;
25805   return 0;
25806 }
25807 _ACEOF
25808 rm -f conftest.$ac_objext conftest$ac_exeext
25809 if { (ac_try="$ac_link"
25810 case "(($ac_try" in
25811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25812   *) ac_try_echo=$ac_try;;
25813 esac
25814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25815   (eval "$ac_link") 2>conftest.er1
25816   ac_status=$?
25817   grep -v '^ *+' conftest.er1 >conftest.err
25818   rm -f conftest.er1
25819   cat conftest.err >&5
25820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821   (exit $ac_status); } && {
25822          test -z "$ac_c_werror_flag" ||
25823          test ! -s conftest.err
25824        } && test -s conftest$ac_exeext &&
25825        $as_test_x conftest$ac_exeext; then
25826
25827
25828 cat >>confdefs.h <<\_ACEOF
25829 #define GETHOSTBYNAMERSTYLE GNUSTYLE
25830 _ACEOF
25831
25832         gethostbynamerstyle=GNU
25833
25834 else
25835   echo "$as_me: failed program was:" >&5
25836 sed 's/^/| /' conftest.$ac_ext >&5
25837
25838
25839 fi
25840
25841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25842       conftest$ac_exeext conftest.$ac_ext
25843 if test "x$gethostbynamerstyle" = "x"; then
25844         cat >conftest.$ac_ext <<_ACEOF
25845 /* confdefs.h.  */
25846 _ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h.  */
25850
25851 #include <stdio.h>
25852 #include <netdb.h>
25853
25854 int
25855 main ()
25856 {
25857  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25858   ;
25859   return 0;
25860 }
25861 _ACEOF
25862 rm -f conftest.$ac_objext conftest$ac_exeext
25863 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
25870   ac_status=$?
25871   grep -v '^ *+' conftest.er1 >conftest.err
25872   rm -f conftest.er1
25873   cat conftest.err >&5
25874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875   (exit $ac_status); } && {
25876          test -z "$ac_c_werror_flag" ||
25877          test ! -s conftest.err
25878        } && test -s conftest$ac_exeext &&
25879        $as_test_x conftest$ac_exeext; then
25880
25881
25882 cat >>confdefs.h <<\_ACEOF
25883 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25884 _ACEOF
25885
25886                 gethostbynamerstyle=SYSV
25887
25888 else
25889   echo "$as_me: failed program was:" >&5
25890 sed 's/^/| /' conftest.$ac_ext >&5
25891
25892
25893 fi
25894
25895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25896       conftest$ac_exeext conftest.$ac_ext
25897 fi
25898 if test "x$gethostbynamerstyle" = "x"; then
25899         cat >conftest.$ac_ext <<_ACEOF
25900 /* confdefs.h.  */
25901 _ACEOF
25902 cat confdefs.h >>conftest.$ac_ext
25903 cat >>conftest.$ac_ext <<_ACEOF
25904 /* end confdefs.h.  */
25905
25906 #include <stdio.h>
25907 #include <netdb.h>
25908
25909 int
25910 main ()
25911 {
25912  gethostbyname(NULL)
25913   ;
25914   return 0;
25915 }
25916 _ACEOF
25917 rm -f conftest.$ac_objext conftest$ac_exeext
25918 if { (ac_try="$ac_link"
25919 case "(($ac_try" in
25920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25921   *) ac_try_echo=$ac_try;;
25922 esac
25923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25924   (eval "$ac_link") 2>conftest.er1
25925   ac_status=$?
25926   grep -v '^ *+' conftest.er1 >conftest.err
25927   rm -f conftest.er1
25928   cat conftest.err >&5
25929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930   (exit $ac_status); } && {
25931          test -z "$ac_c_werror_flag" ||
25932          test ! -s conftest.err
25933        } && test -s conftest$ac_exeext &&
25934        $as_test_x conftest$ac_exeext; then
25935
25936
25937 cat >>confdefs.h <<\_ACEOF
25938 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25939 _ACEOF
25940
25941                 gethostbynamerstyle=BSD
25942
25943 else
25944   echo "$as_me: failed program was:" >&5
25945 sed 's/^/| /' conftest.$ac_ext >&5
25946
25947
25948 fi
25949
25950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25951       conftest$ac_exeext conftest.$ac_ext
25952 fi
25953
25954 if test "x$gethostbynamerstyle" = "x"; then
25955         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25956 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25957 else
25958         { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25959 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25960 fi
25961
25962 if test "x$gethostbynamerstyle" = "xBSD"; then
25963         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25964 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25965 fi
25966
25967
25968 cat >>confdefs.h <<\_ACEOF
25969 #define POSIXSTYLE 1
25970 _ACEOF
25971
25972
25973 cat >>confdefs.h <<\_ACEOF
25974 #define SOLARISSTYLE 2
25975 _ACEOF
25976
25977 ctimerstyle=""
25978 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25979 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
25980 cat >conftest.$ac_ext <<_ACEOF
25981 /* confdefs.h.  */
25982 _ACEOF
25983 cat confdefs.h >>conftest.$ac_ext
25984 cat >>conftest.$ac_ext <<_ACEOF
25985 /* end confdefs.h.  */
25986
25987 #include <time.h>
25988
25989 int
25990 main ()
25991 {
25992  ctime_r(NULL, NULL, 0)
25993   ;
25994   return 0;
25995 }
25996 _ACEOF
25997 rm -f conftest.$ac_objext conftest$ac_exeext
25998 if { (ac_try="$ac_link"
25999 case "(($ac_try" in
26000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26001   *) ac_try_echo=$ac_try;;
26002 esac
26003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26004   (eval "$ac_link") 2>conftest.er1
26005   ac_status=$?
26006   grep -v '^ *+' conftest.er1 >conftest.err
26007   rm -f conftest.er1
26008   cat conftest.err >&5
26009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010   (exit $ac_status); } && {
26011          test -z "$ac_c_werror_flag" ||
26012          test ! -s conftest.err
26013        } && test -s conftest$ac_exeext &&
26014        $as_test_x conftest$ac_exeext; then
26015
26016
26017 cat >>confdefs.h <<\_ACEOF
26018 #define CTIMERSTYLE SOLARISSTYLE
26019 _ACEOF
26020
26021         ctimerstyle="SOLARIS"
26022
26023 else
26024   echo "$as_me: failed program was:" >&5
26025 sed 's/^/| /' conftest.$ac_ext >&5
26026
26027
26028 fi
26029
26030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26031       conftest$ac_exeext conftest.$ac_ext
26032 if test "x$ctimerstyle" = "x"; then
26033         cat >conftest.$ac_ext <<_ACEOF
26034 /* confdefs.h.  */
26035 _ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h.  */
26039
26040 #include <time.h>
26041
26042 int
26043 main ()
26044 {
26045  ctime_r(NULL, NULL)
26046   ;
26047   return 0;
26048 }
26049 _ACEOF
26050 rm -f conftest.$ac_objext conftest$ac_exeext
26051 if { (ac_try="$ac_link"
26052 case "(($ac_try" in
26053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26054   *) ac_try_echo=$ac_try;;
26055 esac
26056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26057   (eval "$ac_link") 2>conftest.er1
26058   ac_status=$?
26059   grep -v '^ *+' conftest.er1 >conftest.err
26060   rm -f conftest.er1
26061   cat conftest.err >&5
26062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063   (exit $ac_status); } && {
26064          test -z "$ac_c_werror_flag" ||
26065          test ! -s conftest.err
26066        } && test -s conftest$ac_exeext &&
26067        $as_test_x conftest$ac_exeext; then
26068
26069
26070 cat >>confdefs.h <<\_ACEOF
26071 #define CTIMERSTYLE POSIXSTYLE
26072 _ACEOF
26073
26074                 ctimerstyle="POSIX"
26075
26076 else
26077   echo "$as_me: failed program was:" >&5
26078 sed 's/^/| /' conftest.$ac_ext >&5
26079
26080
26081 fi
26082
26083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26084       conftest$ac_exeext conftest.$ac_ext
26085 fi
26086
26087 if test "x$ctimerstyle" = "x"; then
26088         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
26089 echo "${ECHO_T}none!  It must not exist, here." >&6; }
26090 else
26091         { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
26092 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
26093 fi
26094
26095 HOSTINFO=$host
26096
26097
26098
26099 top_builddir=`pwd`
26100 export top_builddir
26101 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
26102 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
26103
26104
26105
26106
26107
26108 mysubdirs="$LIBLTDLPATH"
26109 if test "x$EXPERIMENTAL" = "xyes"; then
26110   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
26111     mysubdirs=`echo $mysubdirs $bar`
26112 else
26113         for bar in `cat "${srcdir}"/src/modules/stable`; do
26114     if test -f "${srcdir}"/src/modules/$bar/configure; then
26115       mysubdirs="$mysubdirs src/modules/$bar"
26116     fi
26117   done
26118 fi
26119
26120 if test "x$EXPERIMENTAL" = "xyes"; then
26121   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
26122     MODULES="$MODULES $foo"
26123   done
26124 else
26125             for foo in `cat "${srcdir}"/src/modules/stable`; do
26126     MODULES="$MODULES $foo"
26127    done
26128 fi
26129
26130 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
26131
26132
26133
26134
26135 ac_config_commands="$ac_config_commands stamp-h"
26136
26137 ac_config_commands="$ac_config_commands build-radpaths-h"
26138
26139 ac_config_commands="$ac_config_commands main-chmod"
26140
26141 ac_config_commands="$ac_config_commands scripts-chmod"
26142
26143
26144
26145
26146
26147 USE_SHARED_LIBS=$enable_shared
26148
26149 USE_STATIC_LIBS=$enable_static
26150
26151
26152
26153
26154
26155
26156
26157   unset ac_cv_env_LIBS_set
26158   unset ac_cv_env_LIBS_value
26159
26160   ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
26161
26162 cat >confcache <<\_ACEOF
26163 # This file is a shell script that caches the results of configure
26164 # tests run on this system so they can be shared between configure
26165 # scripts and configure runs, see configure's option --config-cache.
26166 # It is not useful on other systems.  If it contains results you don't
26167 # want to keep, you may remove or edit it.
26168 #
26169 # config.status only pays attention to the cache file if you give it
26170 # the --recheck option to rerun configure.
26171 #
26172 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26173 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26174 # following values.
26175
26176 _ACEOF
26177
26178 # The following way of writing the cache mishandles newlines in values,
26179 # but we know of no workaround that is simple, portable, and efficient.
26180 # So, we kill variables containing newlines.
26181 # Ultrix sh set writes to stderr and can't be redirected directly,
26182 # and sets the high bit in the cache file unless we assign to the vars.
26183 (
26184   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26185     eval ac_val=\$$ac_var
26186     case $ac_val in #(
26187     *${as_nl}*)
26188       case $ac_var in #(
26189       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26190 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26191       esac
26192       case $ac_var in #(
26193       _ | IFS | as_nl) ;; #(
26194       *) $as_unset $ac_var ;;
26195       esac ;;
26196     esac
26197   done
26198
26199   (set) 2>&1 |
26200     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26201     *${as_nl}ac_space=\ *)
26202       # `set' does not quote correctly, so add quotes (double-quote
26203       # substitution turns \\\\ into \\, and sed turns \\ into \).
26204       sed -n \
26205         "s/'/'\\\\''/g;
26206           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26207       ;; #(
26208     *)
26209       # `set' quotes correctly as required by POSIX, so do not add quotes.
26210       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26211       ;;
26212     esac |
26213     sort
26214 ) |
26215   sed '
26216      /^ac_cv_env_/b end
26217      t clear
26218      :clear
26219      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26220      t end
26221      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26222      :end' >>confcache
26223 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26224   if test -w "$cache_file"; then
26225     test "x$cache_file" != "x/dev/null" &&
26226       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26227 echo "$as_me: updating cache $cache_file" >&6;}
26228     cat confcache >$cache_file
26229   else
26230     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26231 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26232   fi
26233 fi
26234 rm -f confcache
26235
26236 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26237 # Let make expand exec_prefix.
26238 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26239
26240 DEFS=-DHAVE_CONFIG_H
26241
26242 ac_libobjs=
26243 ac_ltlibobjs=
26244 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26245   # 1. Remove the extension, and $U if already installed.
26246   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26247   ac_i=`echo "$ac_i" | sed "$ac_script"`
26248   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26249   #    will be set to the directory where LIBOBJS objects are built.
26250   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26251   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26252 done
26253 LIBOBJS=$ac_libobjs
26254
26255 LTLIBOBJS=$ac_ltlibobjs
26256
26257
26258
26259 : ${CONFIG_STATUS=./config.status}
26260 ac_clean_files_save=$ac_clean_files
26261 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26262 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26263 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26264 cat >$CONFIG_STATUS <<_ACEOF
26265 #! $SHELL
26266 # Generated by $as_me.
26267 # Run this file to recreate the current configuration.
26268 # Compiler output produced by configure, useful for debugging
26269 # configure, is in config.log if it exists.
26270
26271 debug=false
26272 ac_cs_recheck=false
26273 ac_cs_silent=false
26274 SHELL=\${CONFIG_SHELL-$SHELL}
26275 _ACEOF
26276
26277 cat >>$CONFIG_STATUS <<\_ACEOF
26278 ## --------------------- ##
26279 ## M4sh Initialization.  ##
26280 ## --------------------- ##
26281
26282 # Be more Bourne compatible
26283 DUALCASE=1; export DUALCASE # for MKS sh
26284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26285   emulate sh
26286   NULLCMD=:
26287   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26288   # is contrary to our usage.  Disable this feature.
26289   alias -g '${1+"$@"}'='"$@"'
26290   setopt NO_GLOB_SUBST
26291 else
26292   case `(set -o) 2>/dev/null` in
26293   *posix*) set -o posix ;;
26294 esac
26295
26296 fi
26297
26298
26299
26300
26301 # PATH needs CR
26302 # Avoid depending upon Character Ranges.
26303 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26304 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26305 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26306 as_cr_digits='0123456789'
26307 as_cr_alnum=$as_cr_Letters$as_cr_digits
26308
26309 # The user is always right.
26310 if test "${PATH_SEPARATOR+set}" != set; then
26311   echo "#! /bin/sh" >conf$$.sh
26312   echo  "exit 0"   >>conf$$.sh
26313   chmod +x conf$$.sh
26314   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26315     PATH_SEPARATOR=';'
26316   else
26317     PATH_SEPARATOR=:
26318   fi
26319   rm -f conf$$.sh
26320 fi
26321
26322 # Support unset when possible.
26323 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26324   as_unset=unset
26325 else
26326   as_unset=false
26327 fi
26328
26329
26330 # IFS
26331 # We need space, tab and new line, in precisely that order.  Quoting is
26332 # there to prevent editors from complaining about space-tab.
26333 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26334 # splitting by setting IFS to empty value.)
26335 as_nl='
26336 '
26337 IFS=" ""        $as_nl"
26338
26339 # Find who we are.  Look in the path if we contain no directory separator.
26340 case $0 in
26341   *[\\/]* ) as_myself=$0 ;;
26342   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26343 for as_dir in $PATH
26344 do
26345   IFS=$as_save_IFS
26346   test -z "$as_dir" && as_dir=.
26347   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26348 done
26349 IFS=$as_save_IFS
26350
26351      ;;
26352 esac
26353 # We did not find ourselves, most probably we were run as `sh COMMAND'
26354 # in which case we are not to be found in the path.
26355 if test "x$as_myself" = x; then
26356   as_myself=$0
26357 fi
26358 if test ! -f "$as_myself"; then
26359   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26360   { (exit 1); exit 1; }
26361 fi
26362
26363 # Work around bugs in pre-3.0 UWIN ksh.
26364 for as_var in ENV MAIL MAILPATH
26365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26366 done
26367 PS1='$ '
26368 PS2='> '
26369 PS4='+ '
26370
26371 # NLS nuisances.
26372 for as_var in \
26373   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26374   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26375   LC_TELEPHONE LC_TIME
26376 do
26377   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26378     eval $as_var=C; export $as_var
26379   else
26380     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26381   fi
26382 done
26383
26384 # Required to use basename.
26385 if expr a : '\(a\)' >/dev/null 2>&1 &&
26386    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26387   as_expr=expr
26388 else
26389   as_expr=false
26390 fi
26391
26392 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26393   as_basename=basename
26394 else
26395   as_basename=false
26396 fi
26397
26398
26399 # Name of the executable.
26400 as_me=`$as_basename -- "$0" ||
26401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26402          X"$0" : 'X\(//\)$' \| \
26403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26404 echo X/"$0" |
26405     sed '/^.*\/\([^/][^/]*\)\/*$/{
26406             s//\1/
26407             q
26408           }
26409           /^X\/\(\/\/\)$/{
26410             s//\1/
26411             q
26412           }
26413           /^X\/\(\/\).*/{
26414             s//\1/
26415             q
26416           }
26417           s/.*/./; q'`
26418
26419 # CDPATH.
26420 $as_unset CDPATH
26421
26422
26423
26424   as_lineno_1=$LINENO
26425   as_lineno_2=$LINENO
26426   test "x$as_lineno_1" != "x$as_lineno_2" &&
26427   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26428
26429   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26430   # uniformly replaced by the line number.  The first 'sed' inserts a
26431   # line-number line after each line using $LINENO; the second 'sed'
26432   # does the real work.  The second script uses 'N' to pair each
26433   # line-number line with the line containing $LINENO, and appends
26434   # trailing '-' during substitution so that $LINENO is not a special
26435   # case at line end.
26436   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26437   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26438   # E. McMahon (1931-1989) for sed's syntax.  :-)
26439   sed -n '
26440     p
26441     /[$]LINENO/=
26442   ' <$as_myself |
26443     sed '
26444       s/[$]LINENO.*/&-/
26445       t lineno
26446       b
26447       :lineno
26448       N
26449       :loop
26450       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26451       t loop
26452       s/-\n.*//
26453     ' >$as_me.lineno &&
26454   chmod +x "$as_me.lineno" ||
26455     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26456    { (exit 1); exit 1; }; }
26457
26458   # Don't try to exec as it changes $[0], causing all sort of problems
26459   # (the dirname of $[0] is not the place where we might find the
26460   # original and so on.  Autoconf is especially sensitive to this).
26461   . "./$as_me.lineno"
26462   # Exit status is that of the last command.
26463   exit
26464 }
26465
26466
26467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26468   as_dirname=dirname
26469 else
26470   as_dirname=false
26471 fi
26472
26473 ECHO_C= ECHO_N= ECHO_T=
26474 case `echo -n x` in
26475 -n*)
26476   case `echo 'x\c'` in
26477   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26478   *)   ECHO_C='\c';;
26479   esac;;
26480 *)
26481   ECHO_N='-n';;
26482 esac
26483
26484 if expr a : '\(a\)' >/dev/null 2>&1 &&
26485    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26486   as_expr=expr
26487 else
26488   as_expr=false
26489 fi
26490
26491 rm -f conf$$ conf$$.exe conf$$.file
26492 if test -d conf$$.dir; then
26493   rm -f conf$$.dir/conf$$.file
26494 else
26495   rm -f conf$$.dir
26496   mkdir conf$$.dir
26497 fi
26498 echo >conf$$.file
26499 if ln -s conf$$.file conf$$ 2>/dev/null; then
26500   as_ln_s='ln -s'
26501   # ... but there are two gotchas:
26502   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26503   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26504   # In both cases, we have to default to `cp -p'.
26505   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26506     as_ln_s='cp -p'
26507 elif ln conf$$.file conf$$ 2>/dev/null; then
26508   as_ln_s=ln
26509 else
26510   as_ln_s='cp -p'
26511 fi
26512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26513 rmdir conf$$.dir 2>/dev/null
26514
26515 if mkdir -p . 2>/dev/null; then
26516   as_mkdir_p=:
26517 else
26518   test -d ./-p && rmdir ./-p
26519   as_mkdir_p=false
26520 fi
26521
26522 if test -x / >/dev/null 2>&1; then
26523   as_test_x='test -x'
26524 else
26525   if ls -dL / >/dev/null 2>&1; then
26526     as_ls_L_option=L
26527   else
26528     as_ls_L_option=
26529   fi
26530   as_test_x='
26531     eval sh -c '\''
26532       if test -d "$1"; then
26533         test -d "$1/.";
26534       else
26535         case $1 in
26536         -*)set "./$1";;
26537         esac;
26538         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26539         ???[sx]*):;;*)false;;esac;fi
26540     '\'' sh
26541   '
26542 fi
26543 as_executable_p=$as_test_x
26544
26545 # Sed expression to map a string onto a valid CPP name.
26546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26547
26548 # Sed expression to map a string onto a valid variable name.
26549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26550
26551
26552 exec 6>&1
26553
26554 # Save the log message, to keep $[0] and so on meaningful, and to
26555 # report actual input values of CONFIG_FILES etc. instead of their
26556 # values after options handling.
26557 ac_log="
26558 This file was extended by $as_me, which was
26559 generated by GNU Autoconf 2.61.  Invocation command line was
26560
26561   CONFIG_FILES    = $CONFIG_FILES
26562   CONFIG_HEADERS  = $CONFIG_HEADERS
26563   CONFIG_LINKS    = $CONFIG_LINKS
26564   CONFIG_COMMANDS = $CONFIG_COMMANDS
26565   $ $0 $@
26566
26567 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26568 "
26569
26570 _ACEOF
26571
26572 cat >>$CONFIG_STATUS <<_ACEOF
26573 # Files that config.status was made for.
26574 config_files="$ac_config_files"
26575 config_headers="$ac_config_headers"
26576 config_commands="$ac_config_commands"
26577
26578 _ACEOF
26579
26580 cat >>$CONFIG_STATUS <<\_ACEOF
26581 ac_cs_usage="\
26582 \`$as_me' instantiates files from templates according to the
26583 current configuration.
26584
26585 Usage: $0 [OPTIONS] [FILE]...
26586
26587   -h, --help       print this help, then exit
26588   -V, --version    print version number and configuration settings, then exit
26589   -q, --quiet      do not print progress messages
26590   -d, --debug      don't remove temporary files
26591       --recheck    update $as_me by reconfiguring in the same conditions
26592   --file=FILE[:TEMPLATE]
26593                    instantiate the configuration file FILE
26594   --header=FILE[:TEMPLATE]
26595                    instantiate the configuration header FILE
26596
26597 Configuration files:
26598 $config_files
26599
26600 Configuration headers:
26601 $config_headers
26602
26603 Configuration commands:
26604 $config_commands
26605
26606 Report bugs to <bug-autoconf@gnu.org>."
26607
26608 _ACEOF
26609 cat >>$CONFIG_STATUS <<_ACEOF
26610 ac_cs_version="\\
26611 config.status
26612 configured by $0, generated by GNU Autoconf 2.61,
26613   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26614
26615 Copyright (C) 2006 Free Software Foundation, Inc.
26616 This config.status script is free software; the Free Software Foundation
26617 gives unlimited permission to copy, distribute and modify it."
26618
26619 ac_pwd='$ac_pwd'
26620 srcdir='$srcdir'
26621 _ACEOF
26622
26623 cat >>$CONFIG_STATUS <<\_ACEOF
26624 # If no file are specified by the user, then we need to provide default
26625 # value.  By we need to know if files were specified by the user.
26626 ac_need_defaults=:
26627 while test $# != 0
26628 do
26629   case $1 in
26630   --*=*)
26631     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26632     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26633     ac_shift=:
26634     ;;
26635   *)
26636     ac_option=$1
26637     ac_optarg=$2
26638     ac_shift=shift
26639     ;;
26640   esac
26641
26642   case $ac_option in
26643   # Handling of the options.
26644   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26645     ac_cs_recheck=: ;;
26646   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26647     echo "$ac_cs_version"; exit ;;
26648   --debug | --debu | --deb | --de | --d | -d )
26649     debug=: ;;
26650   --file | --fil | --fi | --f )
26651     $ac_shift
26652     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26653     ac_need_defaults=false;;
26654   --header | --heade | --head | --hea )
26655     $ac_shift
26656     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26657     ac_need_defaults=false;;
26658   --he | --h)
26659     # Conflict between --help and --header
26660     { echo "$as_me: error: ambiguous option: $1
26661 Try \`$0 --help' for more information." >&2
26662    { (exit 1); exit 1; }; };;
26663   --help | --hel | -h )
26664     echo "$ac_cs_usage"; exit ;;
26665   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26666   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26667     ac_cs_silent=: ;;
26668
26669   # This is an error.
26670   -*) { echo "$as_me: error: unrecognized option: $1
26671 Try \`$0 --help' for more information." >&2
26672    { (exit 1); exit 1; }; } ;;
26673
26674   *) ac_config_targets="$ac_config_targets $1"
26675      ac_need_defaults=false ;;
26676
26677   esac
26678   shift
26679 done
26680
26681 ac_configure_extra_args=
26682
26683 if $ac_cs_silent; then
26684   exec 6>/dev/null
26685   ac_configure_extra_args="$ac_configure_extra_args --silent"
26686 fi
26687
26688 _ACEOF
26689 cat >>$CONFIG_STATUS <<_ACEOF
26690 if \$ac_cs_recheck; then
26691   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26692   CONFIG_SHELL=$SHELL
26693   export CONFIG_SHELL
26694   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26695 fi
26696
26697 _ACEOF
26698 cat >>$CONFIG_STATUS <<\_ACEOF
26699 exec 5>>config.log
26700 {
26701   echo
26702   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26703 ## Running $as_me. ##
26704 _ASBOX
26705   echo "$ac_log"
26706 } >&5
26707
26708 _ACEOF
26709 cat >>$CONFIG_STATUS <<_ACEOF
26710 _ACEOF
26711
26712 cat >>$CONFIG_STATUS <<\_ACEOF
26713
26714 # Handling of arguments.
26715 for ac_config_target in $ac_config_targets
26716 do
26717   case $ac_config_target in
26718     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
26719     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
26720     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
26721     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
26722     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
26723     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
26724     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
26725     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
26726     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
26727     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
26728     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
26729     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
26730     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
26731     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
26732     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
26733     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
26734     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
26735     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
26736     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
26737
26738   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26739 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26740    { (exit 1); exit 1; }; };;
26741   esac
26742 done
26743
26744
26745 # If the user did not use the arguments to specify the items to instantiate,
26746 # then the envvar interface is used.  Set only those that are not.
26747 # We use the long form for the default assignment because of an extremely
26748 # bizarre bug on SunOS 4.1.3.
26749 if $ac_need_defaults; then
26750   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26751   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26752   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26753 fi
26754
26755 # Have a temporary directory for convenience.  Make it in the build tree
26756 # simply because there is no reason against having it here, and in addition,
26757 # creating and moving files from /tmp can sometimes cause problems.
26758 # Hook for its removal unless debugging.
26759 # Note that there is a small window in which the directory will not be cleaned:
26760 # after its creation but before its name has been assigned to `$tmp'.
26761 $debug ||
26762 {
26763   tmp=
26764   trap 'exit_status=$?
26765   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26766 ' 0
26767   trap '{ (exit 1); exit 1; }' 1 2 13 15
26768 }
26769 # Create a (secure) tmp directory for tmp files.
26770
26771 {
26772   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26773   test -n "$tmp" && test -d "$tmp"
26774 }  ||
26775 {
26776   tmp=./conf$$-$RANDOM
26777   (umask 077 && mkdir "$tmp")
26778 } ||
26779 {
26780    echo "$me: cannot create a temporary directory in ." >&2
26781    { (exit 1); exit 1; }
26782 }
26783
26784 #
26785 # Set up the sed scripts for CONFIG_FILES section.
26786 #
26787
26788 # No need to generate the scripts if there are no CONFIG_FILES.
26789 # This happens for instance when ./config.status config.h
26790 if test -n "$CONFIG_FILES"; then
26791
26792 _ACEOF
26793
26794
26795
26796 ac_delim='%!_!# '
26797 for ac_last_try in false false false false false :; do
26798   cat >conf$$subs.sed <<_ACEOF
26799 SHELL!$SHELL$ac_delim
26800 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26801 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26802 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26803 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26804 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26805 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26806 exec_prefix!$exec_prefix$ac_delim
26807 prefix!$prefix$ac_delim
26808 program_transform_name!$program_transform_name$ac_delim
26809 bindir!$bindir$ac_delim
26810 sbindir!$sbindir$ac_delim
26811 libexecdir!$libexecdir$ac_delim
26812 datarootdir!$datarootdir$ac_delim
26813 datadir!$datadir$ac_delim
26814 sysconfdir!$sysconfdir$ac_delim
26815 sharedstatedir!$sharedstatedir$ac_delim
26816 localstatedir!$localstatedir$ac_delim
26817 includedir!$includedir$ac_delim
26818 oldincludedir!$oldincludedir$ac_delim
26819 docdir!$docdir$ac_delim
26820 infodir!$infodir$ac_delim
26821 htmldir!$htmldir$ac_delim
26822 dvidir!$dvidir$ac_delim
26823 pdfdir!$pdfdir$ac_delim
26824 psdir!$psdir$ac_delim
26825 libdir!$libdir$ac_delim
26826 localedir!$localedir$ac_delim
26827 mandir!$mandir$ac_delim
26828 DEFS!$DEFS$ac_delim
26829 ECHO_C!$ECHO_C$ac_delim
26830 ECHO_N!$ECHO_N$ac_delim
26831 ECHO_T!$ECHO_T$ac_delim
26832 LIBS!$LIBS$ac_delim
26833 build_alias!$build_alias$ac_delim
26834 host_alias!$host_alias$ac_delim
26835 target_alias!$target_alias$ac_delim
26836 CC!$CC$ac_delim
26837 CFLAGS!$CFLAGS$ac_delim
26838 LDFLAGS!$LDFLAGS$ac_delim
26839 CPPFLAGS!$CPPFLAGS$ac_delim
26840 ac_ct_CC!$ac_ct_CC$ac_delim
26841 EXEEXT!$EXEEXT$ac_delim
26842 OBJEXT!$OBJEXT$ac_delim
26843 CXX!$CXX$ac_delim
26844 CXXFLAGS!$CXXFLAGS$ac_delim
26845 ac_ct_CXX!$ac_ct_CXX$ac_delim
26846 CPP!$CPP$ac_delim
26847 GREP!$GREP$ac_delim
26848 EGREP!$EGREP$ac_delim
26849 RANLIB!$RANLIB$ac_delim
26850 GMAKE!$GMAKE$ac_delim
26851 MAKE!$MAKE$ac_delim
26852 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
26853 LIBTOOL!$LIBTOOL$ac_delim
26854 build!$build$ac_delim
26855 build_cpu!$build_cpu$ac_delim
26856 build_vendor!$build_vendor$ac_delim
26857 build_os!$build_os$ac_delim
26858 host!$host$ac_delim
26859 host_cpu!$host_cpu$ac_delim
26860 host_vendor!$host_vendor$ac_delim
26861 host_os!$host_os$ac_delim
26862 SED!$SED$ac_delim
26863 LN_S!$LN_S$ac_delim
26864 ECHO!$ECHO$ac_delim
26865 AR!$AR$ac_delim
26866 STRIP!$STRIP$ac_delim
26867 DSYMUTIL!$DSYMUTIL$ac_delim
26868 NMEDIT!$NMEDIT$ac_delim
26869 CXXCPP!$CXXCPP$ac_delim
26870 F77!$F77$ac_delim
26871 FFLAGS!$FFLAGS$ac_delim
26872 ac_ct_F77!$ac_ct_F77$ac_delim
26873 logdir!$logdir$ac_delim
26874 radacctdir!$radacctdir$ac_delim
26875 raddbdir!$raddbdir$ac_delim
26876 PERL!$PERL$ac_delim
26877 SNMPGET!$SNMPGET$ac_delim
26878 SNMPWALK!$SNMPWALK$ac_delim
26879 RUSERS!$RUSERS$ac_delim
26880 ACLOCAL!$ACLOCAL$ac_delim
26881 AUTOCONF!$AUTOCONF$ac_delim
26882 AUTOHEADER!$AUTOHEADER$ac_delim
26883 LOCATE!$LOCATE$ac_delim
26884 DIRNAME!$DIRNAME$ac_delim
26885 LIBREADLINE!$LIBREADLINE$ac_delim
26886 REGEX!$REGEX$ac_delim
26887 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26888 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26889 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26890 PCAP_LIBS!$PCAP_LIBS$ac_delim
26891 LIBPREFIX!$LIBPREFIX$ac_delim
26892 CRYPTLIB!$CRYPTLIB$ac_delim
26893 HOSTINFO!$HOSTINFO$ac_delim
26894 LIBLTDL!$LIBLTDL$ac_delim
26895 INCLTDL!$INCLTDL$ac_delim
26896 _ACEOF
26897
26898   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26899     break
26900   elif $ac_last_try; then
26901     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26902 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26903    { (exit 1); exit 1; }; }
26904   else
26905     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26906   fi
26907 done
26908
26909 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26910 if test -n "$ac_eof"; then
26911   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26912   ac_eof=`expr $ac_eof + 1`
26913 fi
26914
26915 cat >>$CONFIG_STATUS <<_ACEOF
26916 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26918 _ACEOF
26919 sed '
26920 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26921 s/^/s,@/; s/!/@,|#_!!_#|/
26922 :n
26923 t n
26924 s/'"$ac_delim"'$/,g/; t
26925 s/$/\\/; p
26926 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26927 ' >>$CONFIG_STATUS <conf$$subs.sed
26928 rm -f conf$$subs.sed
26929 cat >>$CONFIG_STATUS <<_ACEOF
26930 CEOF$ac_eof
26931 _ACEOF
26932
26933
26934 ac_delim='%!_!# '
26935 for ac_last_try in false false false false false :; do
26936   cat >conf$$subs.sed <<_ACEOF
26937 subdirs!$subdirs$ac_delim
26938 MODULES!$MODULES$ac_delim
26939 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26940 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26941 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26942 STATIC_MODULES!$STATIC_MODULES$ac_delim
26943 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26944 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26945 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26946 LIBOBJS!$LIBOBJS$ac_delim
26947 LTLIBOBJS!$LTLIBOBJS$ac_delim
26948 _ACEOF
26949
26950   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
26951     break
26952   elif $ac_last_try; then
26953     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26954 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26955    { (exit 1); exit 1; }; }
26956   else
26957     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26958   fi
26959 done
26960
26961 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26962 if test -n "$ac_eof"; then
26963   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26964   ac_eof=`expr $ac_eof + 1`
26965 fi
26966
26967 cat >>$CONFIG_STATUS <<_ACEOF
26968 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26969 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26970 _ACEOF
26971 sed '
26972 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26973 s/^/s,@/; s/!/@,|#_!!_#|/
26974 :n
26975 t n
26976 s/'"$ac_delim"'$/,g/; t
26977 s/$/\\/; p
26978 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26979 ' >>$CONFIG_STATUS <conf$$subs.sed
26980 rm -f conf$$subs.sed
26981 cat >>$CONFIG_STATUS <<_ACEOF
26982 :end
26983 s/|#_!!_#|//g
26984 CEOF$ac_eof
26985 _ACEOF
26986
26987
26988 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26989 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26990 # trailing colons and then remove the whole line if VPATH becomes empty
26991 # (actually we leave an empty line to preserve line numbers).
26992 if test "x$srcdir" = x.; then
26993   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26994 s/:*\$(srcdir):*/:/
26995 s/:*\${srcdir}:*/:/
26996 s/:*@srcdir@:*/:/
26997 s/^\([^=]*=[     ]*\):*/\1/
26998 s/:*$//
26999 s/^[^=]*=[       ]*$//
27000 }'
27001 fi
27002
27003 cat >>$CONFIG_STATUS <<\_ACEOF
27004 fi # test -n "$CONFIG_FILES"
27005
27006
27007 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
27008 do
27009   case $ac_tag in
27010   :[FHLC]) ac_mode=$ac_tag; continue;;
27011   esac
27012   case $ac_mode$ac_tag in
27013   :[FHL]*:*);;
27014   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27015 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27016    { (exit 1); exit 1; }; };;
27017   :[FH]-) ac_tag=-:-;;
27018   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27019   esac
27020   ac_save_IFS=$IFS
27021   IFS=:
27022   set x $ac_tag
27023   IFS=$ac_save_IFS
27024   shift
27025   ac_file=$1
27026   shift
27027
27028   case $ac_mode in
27029   :L) ac_source=$1;;
27030   :[FH])
27031     ac_file_inputs=
27032     for ac_f
27033     do
27034       case $ac_f in
27035       -) ac_f="$tmp/stdin";;
27036       *) # Look for the file first in the build tree, then in the source tree
27037          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27038          # because $ac_f cannot contain `:'.
27039          test -f "$ac_f" ||
27040            case $ac_f in
27041            [\\/$]*) false;;
27042            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27043            esac ||
27044            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27045 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27046    { (exit 1); exit 1; }; };;
27047       esac
27048       ac_file_inputs="$ac_file_inputs $ac_f"
27049     done
27050
27051     # Let's still pretend it is `configure' which instantiates (i.e., don't
27052     # use $as_me), people would be surprised to read:
27053     #    /* config.h.  Generated by config.status.  */
27054     configure_input="Generated from "`IFS=:
27055           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27056     if test x"$ac_file" != x-; then
27057       configure_input="$ac_file.  $configure_input"
27058       { echo "$as_me:$LINENO: creating $ac_file" >&5
27059 echo "$as_me: creating $ac_file" >&6;}
27060     fi
27061
27062     case $ac_tag in
27063     *:-:* | *:-) cat >"$tmp/stdin";;
27064     esac
27065     ;;
27066   esac
27067
27068   ac_dir=`$as_dirname -- "$ac_file" ||
27069 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27070          X"$ac_file" : 'X\(//\)[^/]' \| \
27071          X"$ac_file" : 'X\(//\)$' \| \
27072          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27073 echo X"$ac_file" |
27074     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27075             s//\1/
27076             q
27077           }
27078           /^X\(\/\/\)[^/].*/{
27079             s//\1/
27080             q
27081           }
27082           /^X\(\/\/\)$/{
27083             s//\1/
27084             q
27085           }
27086           /^X\(\/\).*/{
27087             s//\1/
27088             q
27089           }
27090           s/.*/./; q'`
27091   { as_dir="$ac_dir"
27092   case $as_dir in #(
27093   -*) as_dir=./$as_dir;;
27094   esac
27095   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27096     as_dirs=
27097     while :; do
27098       case $as_dir in #(
27099       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27100       *) as_qdir=$as_dir;;
27101       esac
27102       as_dirs="'$as_qdir' $as_dirs"
27103       as_dir=`$as_dirname -- "$as_dir" ||
27104 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27105          X"$as_dir" : 'X\(//\)[^/]' \| \
27106          X"$as_dir" : 'X\(//\)$' \| \
27107          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27108 echo X"$as_dir" |
27109     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27110             s//\1/
27111             q
27112           }
27113           /^X\(\/\/\)[^/].*/{
27114             s//\1/
27115             q
27116           }
27117           /^X\(\/\/\)$/{
27118             s//\1/
27119             q
27120           }
27121           /^X\(\/\).*/{
27122             s//\1/
27123             q
27124           }
27125           s/.*/./; q'`
27126       test -d "$as_dir" && break
27127     done
27128     test -z "$as_dirs" || eval "mkdir $as_dirs"
27129   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27130 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27131    { (exit 1); exit 1; }; }; }
27132   ac_builddir=.
27133
27134 case "$ac_dir" in
27135 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27136 *)
27137   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27138   # A ".." for each directory in $ac_dir_suffix.
27139   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27140   case $ac_top_builddir_sub in
27141   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27142   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27143   esac ;;
27144 esac
27145 ac_abs_top_builddir=$ac_pwd
27146 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27147 # for backward compatibility:
27148 ac_top_builddir=$ac_top_build_prefix
27149
27150 case $srcdir in
27151   .)  # We are building in place.
27152     ac_srcdir=.
27153     ac_top_srcdir=$ac_top_builddir_sub
27154     ac_abs_top_srcdir=$ac_pwd ;;
27155   [\\/]* | ?:[\\/]* )  # Absolute name.
27156     ac_srcdir=$srcdir$ac_dir_suffix;
27157     ac_top_srcdir=$srcdir
27158     ac_abs_top_srcdir=$srcdir ;;
27159   *) # Relative name.
27160     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27161     ac_top_srcdir=$ac_top_build_prefix$srcdir
27162     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27163 esac
27164 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27165
27166
27167   case $ac_mode in
27168   :F)
27169   #
27170   # CONFIG_FILE
27171   #
27172
27173 _ACEOF
27174
27175 cat >>$CONFIG_STATUS <<\_ACEOF
27176 # If the template does not know about datarootdir, expand it.
27177 # FIXME: This hack should be removed a few years after 2.60.
27178 ac_datarootdir_hack=; ac_datarootdir_seen=
27179
27180 case `sed -n '/datarootdir/ {
27181   p
27182   q
27183 }
27184 /@datadir@/p
27185 /@docdir@/p
27186 /@infodir@/p
27187 /@localedir@/p
27188 /@mandir@/p
27189 ' $ac_file_inputs` in
27190 *datarootdir*) ac_datarootdir_seen=yes;;
27191 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27192   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27193 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27194 _ACEOF
27195 cat >>$CONFIG_STATUS <<_ACEOF
27196   ac_datarootdir_hack='
27197   s&@datadir@&$datadir&g
27198   s&@docdir@&$docdir&g
27199   s&@infodir@&$infodir&g
27200   s&@localedir@&$localedir&g
27201   s&@mandir@&$mandir&g
27202     s&\\\${datarootdir}&$datarootdir&g' ;;
27203 esac
27204 _ACEOF
27205
27206 # Neutralize VPATH when `$srcdir' = `.'.
27207 # Shell code in configure.ac might set extrasub.
27208 # FIXME: do we really want to maintain this feature?
27209 cat >>$CONFIG_STATUS <<_ACEOF
27210   sed "$ac_vpsub
27211 $extrasub
27212 _ACEOF
27213 cat >>$CONFIG_STATUS <<\_ACEOF
27214 :t
27215 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27216 s&@configure_input@&$configure_input&;t t
27217 s&@top_builddir@&$ac_top_builddir_sub&;t t
27218 s&@srcdir@&$ac_srcdir&;t t
27219 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27220 s&@top_srcdir@&$ac_top_srcdir&;t t
27221 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27222 s&@builddir@&$ac_builddir&;t t
27223 s&@abs_builddir@&$ac_abs_builddir&;t t
27224 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27225 $ac_datarootdir_hack
27226 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27227
27228 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27229   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27230   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27231   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27232 which seems to be undefined.  Please make sure it is defined." >&5
27233 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27234 which seems to be undefined.  Please make sure it is defined." >&2;}
27235
27236   rm -f "$tmp/stdin"
27237   case $ac_file in
27238   -) cat "$tmp/out"; rm -f "$tmp/out";;
27239   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27240   esac
27241  ;;
27242   :H)
27243   #
27244   # CONFIG_HEADER
27245   #
27246 _ACEOF
27247
27248 # Transform confdefs.h into a sed script `conftest.defines', that
27249 # substitutes the proper values into config.h.in to produce config.h.
27250 rm -f conftest.defines conftest.tail
27251 # First, append a space to every undef/define line, to ease matching.
27252 echo 's/$/ /' >conftest.defines
27253 # Then, protect against being on the right side of a sed subst, or in
27254 # an unquoted here document, in config.status.  If some macros were
27255 # called several times there might be several #defines for the same
27256 # symbol, which is useless.  But do not sort them, since the last
27257 # AC_DEFINE must be honored.
27258 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27259 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27260 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27261 # PARAMS is the parameter list in the macro definition--in most cases, it's
27262 # just an empty string.
27263 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27264 ac_dB='\\)[      (].*,\\1define\\2'
27265 ac_dC=' '
27266 ac_dD=' ,'
27267
27268 uniq confdefs.h |
27269   sed -n '
27270         t rset
27271         :rset
27272         s/^[     ]*#[    ]*define[       ][      ]*//
27273         t ok
27274         d
27275         :ok
27276         s/[\\&,]/\\&/g
27277         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27278         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27279   ' >>conftest.defines
27280
27281 # Remove the space that was appended to ease matching.
27282 # Then replace #undef with comments.  This is necessary, for
27283 # example, in the case of _POSIX_SOURCE, which is predefined and required
27284 # on some systems where configure will not decide to define it.
27285 # (The regexp can be short, since the line contains either #define or #undef.)
27286 echo 's/ $//
27287 s,^[     #]*u.*,/* & */,' >>conftest.defines
27288
27289 # Break up conftest.defines:
27290 ac_max_sed_lines=50
27291
27292 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27293 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27294 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27295 # et cetera.
27296 ac_in='$ac_file_inputs'
27297 ac_out='"$tmp/out1"'
27298 ac_nxt='"$tmp/out2"'
27299
27300 while :
27301 do
27302   # Write a here document:
27303     cat >>$CONFIG_STATUS <<_ACEOF
27304     # First, check the format of the line:
27305     cat >"\$tmp/defines.sed" <<\\CEOF
27306 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27307 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27308 b
27309 :def
27310 _ACEOF
27311   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27312   echo 'CEOF
27313     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27314   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27315   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27316   grep . conftest.tail >/dev/null || break
27317   rm -f conftest.defines
27318   mv conftest.tail conftest.defines
27319 done
27320 rm -f conftest.defines conftest.tail
27321
27322 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27323 cat >>$CONFIG_STATUS <<\_ACEOF
27324   if test x"$ac_file" != x-; then
27325     echo "/* $configure_input  */" >"$tmp/config.h"
27326     cat "$ac_result" >>"$tmp/config.h"
27327     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27328       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27329 echo "$as_me: $ac_file is unchanged" >&6;}
27330     else
27331       rm -f $ac_file
27332       mv "$tmp/config.h" $ac_file
27333     fi
27334   else
27335     echo "/* $configure_input  */"
27336     cat "$ac_result"
27337   fi
27338   rm -f "$tmp/out12"
27339  ;;
27340
27341   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27342 echo "$as_me: executing $ac_file commands" >&6;}
27343  ;;
27344   esac
27345
27346
27347   case $ac_file$ac_mode in
27348     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
27349     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
27350     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
27351     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
27352
27353   esac
27354 done # for ac_tag
27355
27356
27357 { (exit 0); exit 0; }
27358 _ACEOF
27359 chmod +x $CONFIG_STATUS
27360 ac_clean_files=$ac_clean_files_save
27361
27362
27363 # configure is writing to config.log, and then calls config.status.
27364 # config.status does its own redirection, appending to config.log.
27365 # Unfortunately, on DOS this fails, as config.log is still kept open
27366 # by configure, so config.status won't be able to write to it; its
27367 # output is simply discarded.  So we exec the FD to /dev/null,
27368 # effectively closing config.log, so it can be properly (re)opened and
27369 # appended to by config.status.  When coming back to configure, we
27370 # need to make the FD available again.
27371 if test "$no_create" != yes; then
27372   ac_cs_success=:
27373   ac_config_status_args=
27374   test "$silent" = yes &&
27375     ac_config_status_args="$ac_config_status_args --quiet"
27376   exec 5>/dev/null
27377   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27378   exec 5>>config.log
27379   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27380   # would make configure fail if this is the last instruction.
27381   $ac_cs_success || { (exit 1); exit 1; }
27382 fi
27383
27384 #
27385 # CONFIG_SUBDIRS section.
27386 #
27387 if test "$no_recursion" != yes; then
27388
27389   # Remove --cache-file and --srcdir arguments so they do not pile up.
27390   ac_sub_configure_args=
27391   ac_prev=
27392   eval "set x $ac_configure_args"
27393   shift
27394   for ac_arg
27395   do
27396     if test -n "$ac_prev"; then
27397       ac_prev=
27398       continue
27399     fi
27400     case $ac_arg in
27401     -cache-file | --cache-file | --cache-fil | --cache-fi \
27402     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27403       ac_prev=cache_file ;;
27404     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27405     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27406     | --c=*)
27407       ;;
27408     --config-cache | -C)
27409       ;;
27410     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27411       ac_prev=srcdir ;;
27412     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27413       ;;
27414     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27415       ac_prev=prefix ;;
27416     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27417       ;;
27418     *)
27419       case $ac_arg in
27420       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27421       esac
27422       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27423     esac
27424   done
27425
27426   # Always prepend --prefix to ensure using the same prefix
27427   # in subdir configurations.
27428   ac_arg="--prefix=$prefix"
27429   case $ac_arg in
27430   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27431   esac
27432   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27433
27434   # Pass --silent
27435   if test "$silent" = yes; then
27436     ac_sub_configure_args="--silent $ac_sub_configure_args"
27437   fi
27438
27439   ac_popdir=`pwd`
27440   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27441
27442     # Do not complain, so a configure script can configure whichever
27443     # parts of a large source tree are present.
27444     test -d "$srcdir/$ac_dir" || continue
27445
27446     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27447     echo "$as_me:$LINENO: $ac_msg" >&5
27448     echo "$ac_msg" >&6
27449     { as_dir="$ac_dir"
27450   case $as_dir in #(
27451   -*) as_dir=./$as_dir;;
27452   esac
27453   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27454     as_dirs=
27455     while :; do
27456       case $as_dir in #(
27457       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27458       *) as_qdir=$as_dir;;
27459       esac
27460       as_dirs="'$as_qdir' $as_dirs"
27461       as_dir=`$as_dirname -- "$as_dir" ||
27462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27463          X"$as_dir" : 'X\(//\)[^/]' \| \
27464          X"$as_dir" : 'X\(//\)$' \| \
27465          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27466 echo X"$as_dir" |
27467     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27468             s//\1/
27469             q
27470           }
27471           /^X\(\/\/\)[^/].*/{
27472             s//\1/
27473             q
27474           }
27475           /^X\(\/\/\)$/{
27476             s//\1/
27477             q
27478           }
27479           /^X\(\/\).*/{
27480             s//\1/
27481             q
27482           }
27483           s/.*/./; q'`
27484       test -d "$as_dir" && break
27485     done
27486     test -z "$as_dirs" || eval "mkdir $as_dirs"
27487   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27488 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27489    { (exit 1); exit 1; }; }; }
27490     ac_builddir=.
27491
27492 case "$ac_dir" in
27493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27494 *)
27495   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27496   # A ".." for each directory in $ac_dir_suffix.
27497   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27498   case $ac_top_builddir_sub in
27499   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27500   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27501   esac ;;
27502 esac
27503 ac_abs_top_builddir=$ac_pwd
27504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27505 # for backward compatibility:
27506 ac_top_builddir=$ac_top_build_prefix
27507
27508 case $srcdir in
27509   .)  # We are building in place.
27510     ac_srcdir=.
27511     ac_top_srcdir=$ac_top_builddir_sub
27512     ac_abs_top_srcdir=$ac_pwd ;;
27513   [\\/]* | ?:[\\/]* )  # Absolute name.
27514     ac_srcdir=$srcdir$ac_dir_suffix;
27515     ac_top_srcdir=$srcdir
27516     ac_abs_top_srcdir=$srcdir ;;
27517   *) # Relative name.
27518     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27519     ac_top_srcdir=$ac_top_build_prefix$srcdir
27520     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27521 esac
27522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27523
27524
27525     cd "$ac_dir"
27526
27527     # Check for guested configure; otherwise get Cygnus style configure.
27528     if test -f "$ac_srcdir/configure.gnu"; then
27529       ac_sub_configure=$ac_srcdir/configure.gnu
27530     elif test -f "$ac_srcdir/configure"; then
27531       ac_sub_configure=$ac_srcdir/configure
27532     elif test -f "$ac_srcdir/configure.in"; then
27533       # This should be Cygnus configure.
27534       ac_sub_configure=$ac_aux_dir/configure
27535     else
27536       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27537 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27538       ac_sub_configure=
27539     fi
27540
27541     # The recursion is here.
27542     if test -n "$ac_sub_configure"; then
27543       # Make the cache file name correct relative to the subdirectory.
27544       case $cache_file in
27545       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27546       *) # Relative name.
27547         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27548       esac
27549
27550       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27551 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27552       # The eval makes quoting arguments work.
27553       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27554            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27555         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27556 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27557    { (exit 1); exit 1; }; }
27558     fi
27559
27560     cd "$ac_popdir"
27561   done
27562 fi
27563
27564