More complete checks for readline
[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 LN_S
835 ECHO
836 AR
837 STRIP
838 CXXCPP
839 F77
840 FFLAGS
841 ac_ct_F77
842 logdir
843 radacctdir
844 raddbdir
845 PERL
846 SNMPGET
847 SNMPWALK
848 RUSERS
849 ACLOCAL
850 AUTOCONF
851 AUTOHEADER
852 LOCATE
853 DIRNAME
854 LIBREADLINE
855 REGEX
856 REGEX_EXTENDED
857 OPENSSL_INCLUDE
858 OPENSSL_LIBS
859 PCAP_LIBS
860 LIBPREFIX
861 CRYPTLIB
862 HOSTINFO
863 LIBLTDL
864 INCLTDL
865 subdirs
866 MODULES
867 INSTALLSTRIP
868 USE_SHARED_LIBS
869 USE_STATIC_LIBS
870 STATIC_MODULES
871 RADIUSD_MAJOR_VERSION
872 RADIUSD_MINOR_VERSION
873 RADIUSD_VERSION
874 LIBOBJS
875 LTLIBOBJS'
876 ac_subst_files=''
877       ac_precious_vars='build_alias
878 host_alias
879 target_alias
880 CC
881 CFLAGS
882 LDFLAGS
883 LIBS
884 CPPFLAGS
885 CXX
886 CXXFLAGS
887 CCC
888 CPP
889 CXXCPP
890 F77
891 FFLAGS'
892 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
893
894 # Initialize some variables set by options.
895 ac_init_help=
896 ac_init_version=false
897 # The variables have the same names as the options, with
898 # dashes changed to underlines.
899 cache_file=/dev/null
900 exec_prefix=NONE
901 no_create=
902 no_recursion=
903 prefix=NONE
904 program_prefix=NONE
905 program_suffix=NONE
906 program_transform_name=s,x,x,
907 silent=
908 site=
909 srcdir=
910 verbose=
911 x_includes=NONE
912 x_libraries=NONE
913
914 # Installation directory options.
915 # These are left unexpanded so users can "make install exec_prefix=/foo"
916 # and all the variables that are supposed to be based on exec_prefix
917 # by default will actually change.
918 # Use braces instead of parens because sh, perl, etc. also accept them.
919 # (The list follows the same order as the GNU Coding Standards.)
920 bindir='${exec_prefix}/bin'
921 sbindir='${exec_prefix}/sbin'
922 libexecdir='${exec_prefix}/libexec'
923 datarootdir='${prefix}/share'
924 datadir='${datarootdir}'
925 sysconfdir='${prefix}/etc'
926 sharedstatedir='${prefix}/com'
927 localstatedir='${prefix}/var'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE}'
931 infodir='${datarootdir}/info'
932 htmldir='${docdir}'
933 dvidir='${docdir}'
934 pdfdir='${docdir}'
935 psdir='${docdir}'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
939
940 ac_prev=
941 ac_dashdash=
942 for ac_option
943 do
944   # If the previous option needs an argument, assign it.
945   if test -n "$ac_prev"; then
946     eval $ac_prev=\$ac_option
947     ac_prev=
948     continue
949   fi
950
951   case $ac_option in
952   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953   *)    ac_optarg=yes ;;
954   esac
955
956   # Accept the important Cygnus configure options, so we can diagnose typos.
957
958   case $ac_dashdash$ac_option in
959   --)
960     ac_dashdash=yes ;;
961
962   -bindir | --bindir | --bindi | --bind | --bin | --bi)
963     ac_prev=bindir ;;
964   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965     bindir=$ac_optarg ;;
966
967   -build | --build | --buil | --bui | --bu)
968     ac_prev=build_alias ;;
969   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970     build_alias=$ac_optarg ;;
971
972   -cache-file | --cache-file | --cache-fil | --cache-fi \
973   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974     ac_prev=cache_file ;;
975   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977     cache_file=$ac_optarg ;;
978
979   --config-cache | -C)
980     cache_file=config.cache ;;
981
982   -datadir | --datadir | --datadi | --datad)
983     ac_prev=datadir ;;
984   -datadir=* | --datadir=* | --datadi=* | --datad=*)
985     datadir=$ac_optarg ;;
986
987   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988   | --dataroo | --dataro | --datar)
989     ac_prev=datarootdir ;;
990   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992     datarootdir=$ac_optarg ;;
993
994   -disable-* | --disable-*)
995     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996     # Reject names that are not valid shell variable names.
997     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
998       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
999    { (exit 1); exit 1; }; }
1000     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1001     eval enable_$ac_feature=no ;;
1002
1003   -docdir | --docdir | --docdi | --doc | --do)
1004     ac_prev=docdir ;;
1005   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006     docdir=$ac_optarg ;;
1007
1008   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009     ac_prev=dvidir ;;
1010   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011     dvidir=$ac_optarg ;;
1012
1013   -enable-* | --enable-*)
1014     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015     # Reject names that are not valid shell variable names.
1016     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018    { (exit 1); exit 1; }; }
1019     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1020     eval enable_$ac_feature=\$ac_optarg ;;
1021
1022   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024   | --exec | --exe | --ex)
1025     ac_prev=exec_prefix ;;
1026   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028   | --exec=* | --exe=* | --ex=*)
1029     exec_prefix=$ac_optarg ;;
1030
1031   -gas | --gas | --ga | --g)
1032     # Obsolete; use --with-gas.
1033     with_gas=yes ;;
1034
1035   -help | --help | --hel | --he | -h)
1036     ac_init_help=long ;;
1037   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038     ac_init_help=recursive ;;
1039   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040     ac_init_help=short ;;
1041
1042   -host | --host | --hos | --ho)
1043     ac_prev=host_alias ;;
1044   -host=* | --host=* | --hos=* | --ho=*)
1045     host_alias=$ac_optarg ;;
1046
1047   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048     ac_prev=htmldir ;;
1049   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050   | --ht=*)
1051     htmldir=$ac_optarg ;;
1052
1053   -includedir | --includedir | --includedi | --included | --include \
1054   | --includ | --inclu | --incl | --inc)
1055     ac_prev=includedir ;;
1056   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057   | --includ=* | --inclu=* | --incl=* | --inc=*)
1058     includedir=$ac_optarg ;;
1059
1060   -infodir | --infodir | --infodi | --infod | --info | --inf)
1061     ac_prev=infodir ;;
1062   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063     infodir=$ac_optarg ;;
1064
1065   -libdir | --libdir | --libdi | --libd)
1066     ac_prev=libdir ;;
1067   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068     libdir=$ac_optarg ;;
1069
1070   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071   | --libexe | --libex | --libe)
1072     ac_prev=libexecdir ;;
1073   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074   | --libexe=* | --libex=* | --libe=*)
1075     libexecdir=$ac_optarg ;;
1076
1077   -localedir | --localedir | --localedi | --localed | --locale)
1078     ac_prev=localedir ;;
1079   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080     localedir=$ac_optarg ;;
1081
1082   -localstatedir | --localstatedir | --localstatedi | --localstated \
1083   | --localstate | --localstat | --localsta | --localst | --locals)
1084     ac_prev=localstatedir ;;
1085   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087     localstatedir=$ac_optarg ;;
1088
1089   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090     ac_prev=mandir ;;
1091   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092     mandir=$ac_optarg ;;
1093
1094   -nfp | --nfp | --nf)
1095     # Obsolete; use --without-fp.
1096     with_fp=no ;;
1097
1098   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099   | --no-cr | --no-c | -n)
1100     no_create=yes ;;
1101
1102   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104     no_recursion=yes ;;
1105
1106   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108   | --oldin | --oldi | --old | --ol | --o)
1109     ac_prev=oldincludedir ;;
1110   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113     oldincludedir=$ac_optarg ;;
1114
1115   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116     ac_prev=prefix ;;
1117   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118     prefix=$ac_optarg ;;
1119
1120   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121   | --program-pre | --program-pr | --program-p)
1122     ac_prev=program_prefix ;;
1123   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125     program_prefix=$ac_optarg ;;
1126
1127   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128   | --program-suf | --program-su | --program-s)
1129     ac_prev=program_suffix ;;
1130   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132     program_suffix=$ac_optarg ;;
1133
1134   -program-transform-name | --program-transform-name \
1135   | --program-transform-nam | --program-transform-na \
1136   | --program-transform-n | --program-transform- \
1137   | --program-transform | --program-transfor \
1138   | --program-transfo | --program-transf \
1139   | --program-trans | --program-tran \
1140   | --progr-tra | --program-tr | --program-t)
1141     ac_prev=program_transform_name ;;
1142   -program-transform-name=* | --program-transform-name=* \
1143   | --program-transform-nam=* | --program-transform-na=* \
1144   | --program-transform-n=* | --program-transform-=* \
1145   | --program-transform=* | --program-transfor=* \
1146   | --program-transfo=* | --program-transf=* \
1147   | --program-trans=* | --program-tran=* \
1148   | --progr-tra=* | --program-tr=* | --program-t=*)
1149     program_transform_name=$ac_optarg ;;
1150
1151   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152     ac_prev=pdfdir ;;
1153   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154     pdfdir=$ac_optarg ;;
1155
1156   -psdir | --psdir | --psdi | --psd | --ps)
1157     ac_prev=psdir ;;
1158   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159     psdir=$ac_optarg ;;
1160
1161   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162   | -silent | --silent | --silen | --sile | --sil)
1163     silent=yes ;;
1164
1165   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166     ac_prev=sbindir ;;
1167   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168   | --sbi=* | --sb=*)
1169     sbindir=$ac_optarg ;;
1170
1171   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173   | --sharedst | --shareds | --shared | --share | --shar \
1174   | --sha | --sh)
1175     ac_prev=sharedstatedir ;;
1176   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179   | --sha=* | --sh=*)
1180     sharedstatedir=$ac_optarg ;;
1181
1182   -site | --site | --sit)
1183     ac_prev=site ;;
1184   -site=* | --site=* | --sit=*)
1185     site=$ac_optarg ;;
1186
1187   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188     ac_prev=srcdir ;;
1189   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190     srcdir=$ac_optarg ;;
1191
1192   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193   | --syscon | --sysco | --sysc | --sys | --sy)
1194     ac_prev=sysconfdir ;;
1195   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197     sysconfdir=$ac_optarg ;;
1198
1199   -target | --target | --targe | --targ | --tar | --ta | --t)
1200     ac_prev=target_alias ;;
1201   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202     target_alias=$ac_optarg ;;
1203
1204   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205     verbose=yes ;;
1206
1207   -version | --version | --versio | --versi | --vers | -V)
1208     ac_init_version=: ;;
1209
1210   -with-* | --with-*)
1211     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212     # Reject names that are not valid shell variable names.
1213     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214       { echo "$as_me: error: invalid package name: $ac_package" >&2
1215    { (exit 1); exit 1; }; }
1216     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1217     eval with_$ac_package=\$ac_optarg ;;
1218
1219   -without-* | --without-*)
1220     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221     # Reject names that are not valid shell variable names.
1222     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223       { echo "$as_me: error: invalid package name: $ac_package" >&2
1224    { (exit 1); exit 1; }; }
1225     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1226     eval with_$ac_package=no ;;
1227
1228   --x)
1229     # Obsolete; use --with-x.
1230     with_x=yes ;;
1231
1232   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233   | --x-incl | --x-inc | --x-in | --x-i)
1234     ac_prev=x_includes ;;
1235   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237     x_includes=$ac_optarg ;;
1238
1239   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241     ac_prev=x_libraries ;;
1242   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244     x_libraries=$ac_optarg ;;
1245
1246   -*) { echo "$as_me: error: unrecognized option: $ac_option
1247 Try \`$0 --help' for more information." >&2
1248    { (exit 1); exit 1; }; }
1249     ;;
1250
1251   *=*)
1252     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253     # Reject names that are not valid shell variable names.
1254     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1255       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1256    { (exit 1); exit 1; }; }
1257     eval $ac_envvar=\$ac_optarg
1258     export $ac_envvar ;;
1259
1260   *)
1261     # FIXME: should be removed in autoconf 3.0.
1262     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1266     ;;
1267
1268   esac
1269 done
1270
1271 if test -n "$ac_prev"; then
1272   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273   { echo "$as_me: error: missing argument to $ac_option" >&2
1274    { (exit 1); exit 1; }; }
1275 fi
1276
1277 # Be sure to have absolute directory names.
1278 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279                 datadir sysconfdir sharedstatedir localstatedir includedir \
1280                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281                 libdir localedir mandir
1282 do
1283   eval ac_val=\$$ac_var
1284   case $ac_val in
1285     [\\/$]* | ?:[\\/]* )  continue;;
1286     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287   esac
1288   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1289    { (exit 1); exit 1; }; }
1290 done
1291
1292 # There might be people who depend on the old broken behavior: `$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1295 build=$build_alias
1296 host=$host_alias
1297 target=$target_alias
1298
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x; then
1301   if test "x$build_alias" = x; then
1302     cross_compiling=maybe
1303     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1304     If a cross compiler is detected then cross compile mode will be used." >&2
1305   elif test "x$build_alias" != "x$host_alias"; then
1306     cross_compiling=yes
1307   fi
1308 fi
1309
1310 ac_tool_prefix=
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313 test "$silent" = yes && exec 6>/dev/null
1314
1315
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319   { echo "$as_me: error: Working directory cannot be determined" >&2
1320    { (exit 1); exit 1; }; }
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322   { echo "$as_me: error: pwd does not report name of working directory" >&2
1323    { (exit 1); exit 1; }; }
1324
1325
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328   ac_srcdir_defaulted=yes
1329   # Try the directory containing this script, then the parent directory.
1330   ac_confdir=`$as_dirname -- "$0" ||
1331 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332          X"$0" : 'X\(//\)[^/]' \| \
1333          X"$0" : 'X\(//\)$' \| \
1334          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1335 echo X"$0" |
1336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337             s//\1/
1338             q
1339           }
1340           /^X\(\/\/\)[^/].*/{
1341             s//\1/
1342             q
1343           }
1344           /^X\(\/\/\)$/{
1345             s//\1/
1346             q
1347           }
1348           /^X\(\/\).*/{
1349             s//\1/
1350             q
1351           }
1352           s/.*/./; q'`
1353   srcdir=$ac_confdir
1354   if test ! -r "$srcdir/$ac_unique_file"; then
1355     srcdir=..
1356   fi
1357 else
1358   ac_srcdir_defaulted=no
1359 fi
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1363    { (exit 1); exit 1; }; }
1364 fi
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 ac_abs_confdir=`(
1367         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1368    { (exit 1); exit 1; }; }
1369         pwd)`
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372   srcdir=.
1373 fi
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1377 case $srcdir in
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 esac
1380 for ac_var in $ac_precious_vars; do
1381   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382   eval ac_env_${ac_var}_value=\$${ac_var}
1383   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1386
1387 #
1388 # Report the --help message.
1389 #
1390 if test "$ac_init_help" = "long"; then
1391   # Omit some internal or obsolete options to make the list less imposing.
1392   # This message is too long to be a string in the A/UX 3.1 sh.
1393   cat <<_ACEOF
1394 \`configure' configures this package to adapt to many kinds of systems.
1395
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE.  See below for descriptions of some of the useful variables.
1400
1401 Defaults for the options are specified in brackets.
1402
1403 Configuration:
1404   -h, --help              display this help and exit
1405       --help=short        display options specific to this package
1406       --help=recursive    display the short help of all the included packages
1407   -V, --version           display version information and exit
1408   -q, --quiet, --silent   do not print \`checking...' messages
1409       --cache-file=FILE   cache test results in FILE [disabled]
1410   -C, --config-cache      alias for \`--cache-file=config.cache'
1411   -n, --no-create         do not create output files
1412       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1413
1414 Installation directories:
1415   --prefix=PREFIX         install architecture-independent files in PREFIX
1416                           [$ac_default_prefix]
1417   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1418                           [PREFIX]
1419
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1424
1425 For better control, use the options below.
1426
1427 Fine tuning of the installation directories:
1428   --bindir=DIR           user executables [EPREFIX/bin]
1429   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1430   --libexecdir=DIR       program executables [EPREFIX/libexec]
1431   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1432   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1433   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1434   --libdir=DIR           object code libraries [EPREFIX/lib]
1435   --includedir=DIR       C header files [PREFIX/include]
1436   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1437   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1438   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1439   --infodir=DIR          info documentation [DATAROOTDIR/info]
1440   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1441   --mandir=DIR           man documentation [DATAROOTDIR/man]
1442   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1443   --htmldir=DIR          html documentation [DOCDIR]
1444   --dvidir=DIR           dvi documentation [DOCDIR]
1445   --pdfdir=DIR           pdf documentation [DOCDIR]
1446   --psdir=DIR            ps documentation [DOCDIR]
1447 _ACEOF
1448
1449   cat <<\_ACEOF
1450
1451 System types:
1452   --build=BUILD     configure for building on BUILD [guessed]
1453   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1454 _ACEOF
1455 fi
1456
1457 if test -n "$ac_init_help"; then
1458
1459   cat <<\_ACEOF
1460
1461 Optional Features:
1462   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1463   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1464   --disable-largefile     omit support for large files
1465   --enable-shared[=PKGS]  build shared libraries [default=yes]
1466   --enable-static[=PKGS]  build static libraries [default=yes]
1467   --enable-fast-install[=PKGS]
1468                           optimize for fast installation [default=yes]
1469   --disable-libtool-lock  avoid locking (might break parallel builds)
1470   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1471   --enable-developer               Enables features of interest to developers.
1472
1473 Optional Packages:
1474   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1475   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1476   --with-system-libtool              try to use libtool installed in your system default=use our own
1477   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1478   --with-pic              try to use only PIC/non-PIC objects [default=use
1479                           both]
1480   --with-tags[=TAGS]      include additional configurations [automatic]
1481   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1482   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1483   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1484   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1485   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1486   --with-threads          Use threads, if available.  (default=yes)
1487   --with-vmps             Compile in VMPS support. (default=yes)
1488   --with-dhcp             Compile in DHCP support. (default=no)
1489   --with-static-modules=QUOTED-MODULE-LIST
1490  --with-modules=QUOTED-MODULE-LIST
1491   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1492   --with-openssl                   Use OpenSSL. (default=yes)
1493   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1494   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1495   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1496   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1497   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1498
1499 Some influential environment variables:
1500   CC          C compiler command
1501   CFLAGS      C compiler flags
1502   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1503               nonstandard directory <lib dir>
1504   LIBS        libraries to pass to the linker, e.g. -l<library>
1505   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1506               you have headers in a nonstandard directory <include dir>
1507   CXX         C++ compiler command
1508   CXXFLAGS    C++ compiler flags
1509   CPP         C preprocessor
1510   CXXCPP      C++ preprocessor
1511   F77         Fortran 77 compiler command
1512   FFLAGS      Fortran 77 compiler flags
1513
1514 Use these variables to override the choices made by `configure' or to help
1515 it to find libraries and programs with nonstandard names/locations.
1516
1517 _ACEOF
1518 ac_status=$?
1519 fi
1520
1521 if test "$ac_init_help" = "recursive"; then
1522   # If there are subdirs, report their specific --help.
1523   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1524     test -d "$ac_dir" || continue
1525     ac_builddir=.
1526
1527 case "$ac_dir" in
1528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *)
1530   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1531   # A ".." for each directory in $ac_dir_suffix.
1532   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1533   case $ac_top_builddir_sub in
1534   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536   esac ;;
1537 esac
1538 ac_abs_top_builddir=$ac_pwd
1539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540 # for backward compatibility:
1541 ac_top_builddir=$ac_top_build_prefix
1542
1543 case $srcdir in
1544   .)  # We are building in place.
1545     ac_srcdir=.
1546     ac_top_srcdir=$ac_top_builddir_sub
1547     ac_abs_top_srcdir=$ac_pwd ;;
1548   [\\/]* | ?:[\\/]* )  # Absolute name.
1549     ac_srcdir=$srcdir$ac_dir_suffix;
1550     ac_top_srcdir=$srcdir
1551     ac_abs_top_srcdir=$srcdir ;;
1552   *) # Relative name.
1553     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554     ac_top_srcdir=$ac_top_build_prefix$srcdir
1555     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556 esac
1557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558
1559     cd "$ac_dir" || { ac_status=$?; continue; }
1560     # Check for guested configure.
1561     if test -f "$ac_srcdir/configure.gnu"; then
1562       echo &&
1563       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564     elif test -f "$ac_srcdir/configure"; then
1565       echo &&
1566       $SHELL "$ac_srcdir/configure" --help=recursive
1567     else
1568       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569     fi || ac_status=$?
1570     cd "$ac_pwd" || { ac_status=$?; break; }
1571   done
1572 fi
1573
1574 test -n "$ac_init_help" && exit $ac_status
1575 if $ac_init_version; then
1576   cat <<\_ACEOF
1577 configure
1578 generated by GNU Autoconf 2.61
1579
1580 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1581 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1582 This configure script is free software; the Free Software Foundation
1583 gives unlimited permission to copy, distribute and modify it.
1584 _ACEOF
1585   exit
1586 fi
1587 cat >config.log <<_ACEOF
1588 This file contains any messages produced by compilers while
1589 running configure, to aid debugging if configure makes a mistake.
1590
1591 It was created by $as_me, which was
1592 generated by GNU Autoconf 2.61.  Invocation command line was
1593
1594   $ $0 $@
1595
1596 _ACEOF
1597 exec 5>>config.log
1598 {
1599 cat <<_ASUNAME
1600 ## --------- ##
1601 ## Platform. ##
1602 ## --------- ##
1603
1604 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1605 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1606 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1607 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1608 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1609
1610 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1611 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1612
1613 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1614 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1615 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1616 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1617 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1618 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1619 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1620
1621 _ASUNAME
1622
1623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624 for as_dir in $PATH
1625 do
1626   IFS=$as_save_IFS
1627   test -z "$as_dir" && as_dir=.
1628   echo "PATH: $as_dir"
1629 done
1630 IFS=$as_save_IFS
1631
1632 } >&5
1633
1634 cat >&5 <<_ACEOF
1635
1636
1637 ## ----------- ##
1638 ## Core tests. ##
1639 ## ----------- ##
1640
1641 _ACEOF
1642
1643
1644 # Keep a trace of the command line.
1645 # Strip out --no-create and --no-recursion so they do not pile up.
1646 # Strip out --silent because we don't want to record it for future runs.
1647 # Also quote any args containing shell meta-characters.
1648 # Make two passes to allow for proper duplicate-argument suppression.
1649 ac_configure_args=
1650 ac_configure_args0=
1651 ac_configure_args1=
1652 ac_must_keep_next=false
1653 for ac_pass in 1 2
1654 do
1655   for ac_arg
1656   do
1657     case $ac_arg in
1658     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1659     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1660     | -silent | --silent | --silen | --sile | --sil)
1661       continue ;;
1662     *\'*)
1663       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1664     esac
1665     case $ac_pass in
1666     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1667     2)
1668       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1669       if test $ac_must_keep_next = true; then
1670         ac_must_keep_next=false # Got value, back to normal.
1671       else
1672         case $ac_arg in
1673           *=* | --config-cache | -C | -disable-* | --disable-* \
1674           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1675           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1676           | -with-* | --with-* | -without-* | --without-* | --x)
1677             case "$ac_configure_args0 " in
1678               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1679             esac
1680             ;;
1681           -* ) ac_must_keep_next=true ;;
1682         esac
1683       fi
1684       ac_configure_args="$ac_configure_args '$ac_arg'"
1685       ;;
1686     esac
1687   done
1688 done
1689 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1690 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1691
1692 # When interrupted or exit'd, cleanup temporary files, and complete
1693 # config.log.  We remove comments because anyway the quotes in there
1694 # would cause problems or look ugly.
1695 # WARNING: Use '\'' to represent an apostrophe within the trap.
1696 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1697 trap 'exit_status=$?
1698   # Save into config.log some information that might help in debugging.
1699   {
1700     echo
1701
1702     cat <<\_ASBOX
1703 ## ---------------- ##
1704 ## Cache variables. ##
1705 ## ---------------- ##
1706 _ASBOX
1707     echo
1708     # The following way of writing the cache mishandles newlines in values,
1709 (
1710   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1711     eval ac_val=\$$ac_var
1712     case $ac_val in #(
1713     *${as_nl}*)
1714       case $ac_var in #(
1715       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1716 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1717       esac
1718       case $ac_var in #(
1719       _ | IFS | as_nl) ;; #(
1720       *) $as_unset $ac_var ;;
1721       esac ;;
1722     esac
1723   done
1724   (set) 2>&1 |
1725     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1726     *${as_nl}ac_space=\ *)
1727       sed -n \
1728         "s/'\''/'\''\\\\'\'''\''/g;
1729           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1730       ;; #(
1731     *)
1732       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1733       ;;
1734     esac |
1735     sort
1736 )
1737     echo
1738
1739     cat <<\_ASBOX
1740 ## ----------------- ##
1741 ## Output variables. ##
1742 ## ----------------- ##
1743 _ASBOX
1744     echo
1745     for ac_var in $ac_subst_vars
1746     do
1747       eval ac_val=\$$ac_var
1748       case $ac_val in
1749       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750       esac
1751       echo "$ac_var='\''$ac_val'\''"
1752     done | sort
1753     echo
1754
1755     if test -n "$ac_subst_files"; then
1756       cat <<\_ASBOX
1757 ## ------------------- ##
1758 ## File substitutions. ##
1759 ## ------------------- ##
1760 _ASBOX
1761       echo
1762       for ac_var in $ac_subst_files
1763       do
1764         eval ac_val=\$$ac_var
1765         case $ac_val in
1766         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1767         esac
1768         echo "$ac_var='\''$ac_val'\''"
1769       done | sort
1770       echo
1771     fi
1772
1773     if test -s confdefs.h; then
1774       cat <<\_ASBOX
1775 ## ----------- ##
1776 ## confdefs.h. ##
1777 ## ----------- ##
1778 _ASBOX
1779       echo
1780       cat confdefs.h
1781       echo
1782     fi
1783     test "$ac_signal" != 0 &&
1784       echo "$as_me: caught signal $ac_signal"
1785     echo "$as_me: exit $exit_status"
1786   } >&5
1787   rm -f core *.core core.conftest.* &&
1788     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1789     exit $exit_status
1790 ' 0
1791 for ac_signal in 1 2 13 15; do
1792   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1793 done
1794 ac_signal=0
1795
1796 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1797 rm -f -r conftest* confdefs.h
1798
1799 # Predefined preprocessor variables.
1800
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_NAME "$PACKAGE_NAME"
1803 _ACEOF
1804
1805
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1808 _ACEOF
1809
1810
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1813 _ACEOF
1814
1815
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_STRING "$PACKAGE_STRING"
1818 _ACEOF
1819
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1823 _ACEOF
1824
1825
1826 # Let the site file select an alternate cache file if it wants to.
1827 # Prefer explicitly selected file to automatically selected ones.
1828 if test -n "$CONFIG_SITE"; then
1829   set x "$CONFIG_SITE"
1830 elif test "x$prefix" != xNONE; then
1831   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1832 else
1833   set x "$ac_default_prefix/share/config.site" \
1834         "$ac_default_prefix/etc/config.site"
1835 fi
1836 shift
1837 for ac_site_file
1838 do
1839   if test -r "$ac_site_file"; then
1840     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1841 echo "$as_me: loading site script $ac_site_file" >&6;}
1842     sed 's/^/| /' "$ac_site_file" >&5
1843     . "$ac_site_file"
1844   fi
1845 done
1846
1847 if test -r "$cache_file"; then
1848   # Some versions of bash will fail to source /dev/null (special
1849   # files actually), so we avoid doing that.
1850   if test -f "$cache_file"; then
1851     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1852 echo "$as_me: loading cache $cache_file" >&6;}
1853     case $cache_file in
1854       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1855       *)                      . "./$cache_file";;
1856     esac
1857   fi
1858 else
1859   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1860 echo "$as_me: creating cache $cache_file" >&6;}
1861   >$cache_file
1862 fi
1863
1864 # Check that the precious variables saved in the cache have kept the same
1865 # value.
1866 ac_cache_corrupted=false
1867 for ac_var in $ac_precious_vars; do
1868   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1869   eval ac_new_set=\$ac_env_${ac_var}_set
1870   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1871   eval ac_new_val=\$ac_env_${ac_var}_value
1872   case $ac_old_set,$ac_new_set in
1873     set,)
1874       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1875 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1876       ac_cache_corrupted=: ;;
1877     ,set)
1878       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1879 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1880       ac_cache_corrupted=: ;;
1881     ,);;
1882     *)
1883       if test "x$ac_old_val" != "x$ac_new_val"; then
1884         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1885 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1886         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1887 echo "$as_me:   former value:  $ac_old_val" >&2;}
1888         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1889 echo "$as_me:   current value: $ac_new_val" >&2;}
1890         ac_cache_corrupted=:
1891       fi;;
1892   esac
1893   # Pass precious variables to config.status.
1894   if test "$ac_new_set" = set; then
1895     case $ac_new_val in
1896     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1897     *) ac_arg=$ac_var=$ac_new_val ;;
1898     esac
1899     case " $ac_configure_args " in
1900       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1901       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1902     esac
1903   fi
1904 done
1905 if $ac_cache_corrupted; then
1906   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1907 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1908   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1909 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1910    { (exit 1); exit 1; }; }
1911 fi
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929 ac_ext=c
1930 ac_cpp='$CPP $CPPFLAGS'
1931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934
1935
1936 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1937
1938
1939 RADIUSD_VERSION=`cat VERSION`
1940 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
1941 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^2\.//'`
1942 PACKAGE=freeradius
1943
1944
1945 ac_ext=c
1946 ac_cpp='$CPP $CPPFLAGS'
1947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1950 if test -n "$ac_tool_prefix"; then
1951   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1952 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1955 if test "${ac_cv_prog_CC+set}" = set; then
1956   echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958   if test -n "$CC"; then
1959   ac_cv_prog_CC="$CC" # Let the user override the test.
1960 else
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 for as_dir in $PATH
1963 do
1964   IFS=$as_save_IFS
1965   test -z "$as_dir" && as_dir=.
1966   for ac_exec_ext in '' $ac_executable_extensions; do
1967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1968     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970     break 2
1971   fi
1972 done
1973 done
1974 IFS=$as_save_IFS
1975
1976 fi
1977 fi
1978 CC=$ac_cv_prog_CC
1979 if test -n "$CC"; then
1980   { echo "$as_me:$LINENO: result: $CC" >&5
1981 echo "${ECHO_T}$CC" >&6; }
1982 else
1983   { echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6; }
1985 fi
1986
1987
1988 fi
1989 if test -z "$ac_cv_prog_CC"; then
1990   ac_ct_CC=$CC
1991   # Extract the first word of "gcc", so it can be a program name with args.
1992 set dummy gcc; ac_word=$2
1993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1995 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1996   echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998   if test -n "$ac_ct_CC"; then
1999   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2000 else
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002 for as_dir in $PATH
2003 do
2004   IFS=$as_save_IFS
2005   test -z "$as_dir" && as_dir=.
2006   for ac_exec_ext in '' $ac_executable_extensions; do
2007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2008     ac_cv_prog_ac_ct_CC="gcc"
2009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010     break 2
2011   fi
2012 done
2013 done
2014 IFS=$as_save_IFS
2015
2016 fi
2017 fi
2018 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2019 if test -n "$ac_ct_CC"; then
2020   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2021 echo "${ECHO_T}$ac_ct_CC" >&6; }
2022 else
2023   { echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6; }
2025 fi
2026
2027   if test "x$ac_ct_CC" = x; then
2028     CC=""
2029   else
2030     case $cross_compiling:$ac_tool_warned in
2031 yes:)
2032 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2033 whose name does not start with the host triplet.  If you think this
2034 configuration is useful to you, please write to autoconf@gnu.org." >&5
2035 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2036 whose name does not start with the host triplet.  If you think this
2037 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2038 ac_tool_warned=yes ;;
2039 esac
2040     CC=$ac_ct_CC
2041   fi
2042 else
2043   CC="$ac_cv_prog_CC"
2044 fi
2045
2046 if test -z "$CC"; then
2047           if test -n "$ac_tool_prefix"; then
2048     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2049 set dummy ${ac_tool_prefix}cc; ac_word=$2
2050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2052 if test "${ac_cv_prog_CC+set}" = set; then
2053   echo $ECHO_N "(cached) $ECHO_C" >&6
2054 else
2055   if test -n "$CC"; then
2056   ac_cv_prog_CC="$CC" # Let the user override the test.
2057 else
2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 for as_dir in $PATH
2060 do
2061   IFS=$as_save_IFS
2062   test -z "$as_dir" && as_dir=.
2063   for ac_exec_ext in '' $ac_executable_extensions; do
2064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2065     ac_cv_prog_CC="${ac_tool_prefix}cc"
2066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067     break 2
2068   fi
2069 done
2070 done
2071 IFS=$as_save_IFS
2072
2073 fi
2074 fi
2075 CC=$ac_cv_prog_CC
2076 if test -n "$CC"; then
2077   { echo "$as_me:$LINENO: result: $CC" >&5
2078 echo "${ECHO_T}$CC" >&6; }
2079 else
2080   { echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6; }
2082 fi
2083
2084
2085   fi
2086 fi
2087 if test -z "$CC"; then
2088   # Extract the first word of "cc", so it can be a program name with args.
2089 set dummy cc; ac_word=$2
2090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2092 if test "${ac_cv_prog_CC+set}" = set; then
2093   echo $ECHO_N "(cached) $ECHO_C" >&6
2094 else
2095   if test -n "$CC"; then
2096   ac_cv_prog_CC="$CC" # Let the user override the test.
2097 else
2098   ac_prog_rejected=no
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102   IFS=$as_save_IFS
2103   test -z "$as_dir" && as_dir=.
2104   for ac_exec_ext in '' $ac_executable_extensions; do
2105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2106     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2107        ac_prog_rejected=yes
2108        continue
2109      fi
2110     ac_cv_prog_CC="cc"
2111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112     break 2
2113   fi
2114 done
2115 done
2116 IFS=$as_save_IFS
2117
2118 if test $ac_prog_rejected = yes; then
2119   # We found a bogon in the path, so make sure we never use it.
2120   set dummy $ac_cv_prog_CC
2121   shift
2122   if test $# != 0; then
2123     # We chose a different compiler from the bogus one.
2124     # However, it has the same basename, so the bogon will be chosen
2125     # first if we set CC to just the basename; use the full file name.
2126     shift
2127     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2128   fi
2129 fi
2130 fi
2131 fi
2132 CC=$ac_cv_prog_CC
2133 if test -n "$CC"; then
2134   { echo "$as_me:$LINENO: result: $CC" >&5
2135 echo "${ECHO_T}$CC" >&6; }
2136 else
2137   { echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6; }
2139 fi
2140
2141
2142 fi
2143 if test -z "$CC"; then
2144   if test -n "$ac_tool_prefix"; then
2145   for ac_prog in cl.exe
2146   do
2147     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2148 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2151 if test "${ac_cv_prog_CC+set}" = set; then
2152   echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154   if test -n "$CC"; then
2155   ac_cv_prog_CC="$CC" # Let the user override the test.
2156 else
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 for as_dir in $PATH
2159 do
2160   IFS=$as_save_IFS
2161   test -z "$as_dir" && as_dir=.
2162   for ac_exec_ext in '' $ac_executable_extensions; do
2163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2164     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166     break 2
2167   fi
2168 done
2169 done
2170 IFS=$as_save_IFS
2171
2172 fi
2173 fi
2174 CC=$ac_cv_prog_CC
2175 if test -n "$CC"; then
2176   { echo "$as_me:$LINENO: result: $CC" >&5
2177 echo "${ECHO_T}$CC" >&6; }
2178 else
2179   { echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6; }
2181 fi
2182
2183
2184     test -n "$CC" && break
2185   done
2186 fi
2187 if test -z "$CC"; then
2188   ac_ct_CC=$CC
2189   for ac_prog in cl.exe
2190 do
2191   # Extract the first word of "$ac_prog", so it can be a program name with args.
2192 set dummy $ac_prog; ac_word=$2
2193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2195 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2196   echo $ECHO_N "(cached) $ECHO_C" >&6
2197 else
2198   if test -n "$ac_ct_CC"; then
2199   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2200 else
2201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 for as_dir in $PATH
2203 do
2204   IFS=$as_save_IFS
2205   test -z "$as_dir" && as_dir=.
2206   for ac_exec_ext in '' $ac_executable_extensions; do
2207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2208     ac_cv_prog_ac_ct_CC="$ac_prog"
2209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210     break 2
2211   fi
2212 done
2213 done
2214 IFS=$as_save_IFS
2215
2216 fi
2217 fi
2218 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2219 if test -n "$ac_ct_CC"; then
2220   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2221 echo "${ECHO_T}$ac_ct_CC" >&6; }
2222 else
2223   { echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6; }
2225 fi
2226
2227
2228   test -n "$ac_ct_CC" && break
2229 done
2230
2231   if test "x$ac_ct_CC" = x; then
2232     CC=""
2233   else
2234     case $cross_compiling:$ac_tool_warned in
2235 yes:)
2236 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2237 whose name does not start with the host triplet.  If you think this
2238 configuration is useful to you, please write to autoconf@gnu.org." >&5
2239 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2240 whose name does not start with the host triplet.  If you think this
2241 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2242 ac_tool_warned=yes ;;
2243 esac
2244     CC=$ac_ct_CC
2245   fi
2246 fi
2247
2248 fi
2249
2250
2251 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2252 See \`config.log' for more details." >&5
2253 echo "$as_me: error: no acceptable C compiler found in \$PATH
2254 See \`config.log' for more details." >&2;}
2255    { (exit 1); exit 1; }; }
2256
2257 # Provide some information about the compiler.
2258 echo "$as_me:$LINENO: checking for C compiler version" >&5
2259 ac_compiler=`set X $ac_compile; echo $2`
2260 { (ac_try="$ac_compiler --version >&5"
2261 case "(($ac_try" in
2262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2263   *) ac_try_echo=$ac_try;;
2264 esac
2265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2266   (eval "$ac_compiler --version >&5") 2>&5
2267   ac_status=$?
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); }
2270 { (ac_try="$ac_compiler -v >&5"
2271 case "(($ac_try" in
2272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273   *) ac_try_echo=$ac_try;;
2274 esac
2275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2276   (eval "$ac_compiler -v >&5") 2>&5
2277   ac_status=$?
2278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279   (exit $ac_status); }
2280 { (ac_try="$ac_compiler -V >&5"
2281 case "(($ac_try" in
2282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283   *) ac_try_echo=$ac_try;;
2284 esac
2285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2286   (eval "$ac_compiler -V >&5") 2>&5
2287   ac_status=$?
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); }
2290
2291 cat >conftest.$ac_ext <<_ACEOF
2292 /* confdefs.h.  */
2293 _ACEOF
2294 cat confdefs.h >>conftest.$ac_ext
2295 cat >>conftest.$ac_ext <<_ACEOF
2296 /* end confdefs.h.  */
2297
2298 int
2299 main ()
2300 {
2301
2302   ;
2303   return 0;
2304 }
2305 _ACEOF
2306 ac_clean_files_save=$ac_clean_files
2307 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2308 # Try to create an executable without -o first, disregard a.out.
2309 # It will help us diagnose broken compilers, and finding out an intuition
2310 # of exeext.
2311 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2312 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2313 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2314 #
2315 # List of possible output files, starting from the most likely.
2316 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2317 # only as a last resort.  b.out is created by i960 compilers.
2318 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2319 #
2320 # The IRIX 6 linker writes into existing files which may not be
2321 # executable, retaining their permissions.  Remove them first so a
2322 # subsequent execution test works.
2323 ac_rmfiles=
2324 for ac_file in $ac_files
2325 do
2326   case $ac_file in
2327     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2328     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2329   esac
2330 done
2331 rm -f $ac_rmfiles
2332
2333 if { (ac_try="$ac_link_default"
2334 case "(($ac_try" in
2335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2336   *) ac_try_echo=$ac_try;;
2337 esac
2338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2339   (eval "$ac_link_default") 2>&5
2340   ac_status=$?
2341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342   (exit $ac_status); }; then
2343   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2344 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2345 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2346 # so that the user can short-circuit this test for compilers unknown to
2347 # Autoconf.
2348 for ac_file in $ac_files ''
2349 do
2350   test -f "$ac_file" || continue
2351   case $ac_file in
2352     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2353         ;;
2354     [ab].out )
2355         # We found the default executable, but exeext='' is most
2356         # certainly right.
2357         break;;
2358     *.* )
2359         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2360         then :; else
2361            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2362         fi
2363         # We set ac_cv_exeext here because the later test for it is not
2364         # safe: cross compilers may not add the suffix if given an `-o'
2365         # argument, so we may need to know it at that point already.
2366         # Even if this section looks crufty: it has the advantage of
2367         # actually working.
2368         break;;
2369     * )
2370         break;;
2371   esac
2372 done
2373 test "$ac_cv_exeext" = no && ac_cv_exeext=
2374
2375 else
2376   ac_file=''
2377 fi
2378
2379 { echo "$as_me:$LINENO: result: $ac_file" >&5
2380 echo "${ECHO_T}$ac_file" >&6; }
2381 if test -z "$ac_file"; then
2382   echo "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.$ac_ext >&5
2384
2385 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2386 See \`config.log' for more details." >&5
2387 echo "$as_me: error: C compiler cannot create executables
2388 See \`config.log' for more details." >&2;}
2389    { (exit 77); exit 77; }; }
2390 fi
2391
2392 ac_exeext=$ac_cv_exeext
2393
2394 # Check that the compiler produces executables we can run.  If not, either
2395 # the compiler is broken, or we cross compile.
2396 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2397 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2398 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2399 # If not cross compiling, check that we can run a simple program.
2400 if test "$cross_compiling" != yes; then
2401   if { ac_try='./$ac_file'
2402   { (case "(($ac_try" in
2403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404   *) ac_try_echo=$ac_try;;
2405 esac
2406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2407   (eval "$ac_try") 2>&5
2408   ac_status=$?
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); }; }; then
2411     cross_compiling=no
2412   else
2413     if test "$cross_compiling" = maybe; then
2414         cross_compiling=yes
2415     else
2416         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2417 If you meant to cross compile, use \`--host'.
2418 See \`config.log' for more details." >&5
2419 echo "$as_me: error: cannot run C compiled programs.
2420 If you meant to cross compile, use \`--host'.
2421 See \`config.log' for more details." >&2;}
2422    { (exit 1); exit 1; }; }
2423     fi
2424   fi
2425 fi
2426 { echo "$as_me:$LINENO: result: yes" >&5
2427 echo "${ECHO_T}yes" >&6; }
2428
2429 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2430 ac_clean_files=$ac_clean_files_save
2431 # Check that the compiler produces executables we can run.  If not, either
2432 # the compiler is broken, or we cross compile.
2433 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2434 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2435 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2436 echo "${ECHO_T}$cross_compiling" >&6; }
2437
2438 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2439 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2440 if { (ac_try="$ac_link"
2441 case "(($ac_try" in
2442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443   *) ac_try_echo=$ac_try;;
2444 esac
2445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2446   (eval "$ac_link") 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); }; then
2450   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2451 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2452 # work properly (i.e., refer to `conftest.exe'), while it won't with
2453 # `rm'.
2454 for ac_file in conftest.exe conftest conftest.*; do
2455   test -f "$ac_file" || continue
2456   case $ac_file in
2457     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2458     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2459           break;;
2460     * ) break;;
2461   esac
2462 done
2463 else
2464   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2467 See \`config.log' for more details." >&2;}
2468    { (exit 1); exit 1; }; }
2469 fi
2470
2471 rm -f conftest$ac_cv_exeext
2472 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2473 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2474
2475 rm -f conftest.$ac_ext
2476 EXEEXT=$ac_cv_exeext
2477 ac_exeext=$EXEEXT
2478 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2479 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2480 if test "${ac_cv_objext+set}" = set; then
2481   echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483   cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h.  */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h.  */
2489
2490 int
2491 main ()
2492 {
2493
2494   ;
2495   return 0;
2496 }
2497 _ACEOF
2498 rm -f conftest.o conftest.obj
2499 if { (ac_try="$ac_compile"
2500 case "(($ac_try" in
2501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502   *) ac_try_echo=$ac_try;;
2503 esac
2504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2505   (eval "$ac_compile") 2>&5
2506   ac_status=$?
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); }; then
2509   for ac_file in conftest.o conftest.obj conftest.*; do
2510   test -f "$ac_file" || continue;
2511   case $ac_file in
2512     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2513     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2514        break;;
2515   esac
2516 done
2517 else
2518   echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2520
2521 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2522 See \`config.log' for more details." >&5
2523 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2524 See \`config.log' for more details." >&2;}
2525    { (exit 1); exit 1; }; }
2526 fi
2527
2528 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2529 fi
2530 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2531 echo "${ECHO_T}$ac_cv_objext" >&6; }
2532 OBJEXT=$ac_cv_objext
2533 ac_objext=$OBJEXT
2534 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2535 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2536 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2537   echo $ECHO_N "(cached) $ECHO_C" >&6
2538 else
2539   cat >conftest.$ac_ext <<_ACEOF
2540 /* confdefs.h.  */
2541 _ACEOF
2542 cat confdefs.h >>conftest.$ac_ext
2543 cat >>conftest.$ac_ext <<_ACEOF
2544 /* end confdefs.h.  */
2545
2546 int
2547 main ()
2548 {
2549 #ifndef __GNUC__
2550        choke me
2551 #endif
2552
2553   ;
2554   return 0;
2555 }
2556 _ACEOF
2557 rm -f conftest.$ac_objext
2558 if { (ac_try="$ac_compile"
2559 case "(($ac_try" in
2560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561   *) ac_try_echo=$ac_try;;
2562 esac
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564   (eval "$ac_compile") 2>conftest.er1
2565   ac_status=$?
2566   grep -v '^ *+' conftest.er1 >conftest.err
2567   rm -f conftest.er1
2568   cat conftest.err >&5
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); } && {
2571          test -z "$ac_c_werror_flag" ||
2572          test ! -s conftest.err
2573        } && test -s conftest.$ac_objext; then
2574   ac_compiler_gnu=yes
2575 else
2576   echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2578
2579         ac_compiler_gnu=no
2580 fi
2581
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2584
2585 fi
2586 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2587 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2588 GCC=`test $ac_compiler_gnu = yes && echo yes`
2589 ac_test_CFLAGS=${CFLAGS+set}
2590 ac_save_CFLAGS=$CFLAGS
2591 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2592 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2593 if test "${ac_cv_prog_cc_g+set}" = set; then
2594   echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596   ac_save_c_werror_flag=$ac_c_werror_flag
2597    ac_c_werror_flag=yes
2598    ac_cv_prog_cc_g=no
2599    CFLAGS="-g"
2600    cat >conftest.$ac_ext <<_ACEOF
2601 /* confdefs.h.  */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h.  */
2606
2607 int
2608 main ()
2609 {
2610
2611   ;
2612   return 0;
2613 }
2614 _ACEOF
2615 rm -f conftest.$ac_objext
2616 if { (ac_try="$ac_compile"
2617 case "(($ac_try" in
2618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619   *) ac_try_echo=$ac_try;;
2620 esac
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622   (eval "$ac_compile") 2>conftest.er1
2623   ac_status=$?
2624   grep -v '^ *+' conftest.er1 >conftest.err
2625   rm -f conftest.er1
2626   cat conftest.err >&5
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); } && {
2629          test -z "$ac_c_werror_flag" ||
2630          test ! -s conftest.err
2631        } && test -s conftest.$ac_objext; then
2632   ac_cv_prog_cc_g=yes
2633 else
2634   echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2636
2637         CFLAGS=""
2638       cat >conftest.$ac_ext <<_ACEOF
2639 /* confdefs.h.  */
2640 _ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h.  */
2644
2645 int
2646 main ()
2647 {
2648
2649   ;
2650   return 0;
2651 }
2652 _ACEOF
2653 rm -f conftest.$ac_objext
2654 if { (ac_try="$ac_compile"
2655 case "(($ac_try" in
2656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657   *) ac_try_echo=$ac_try;;
2658 esac
2659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2660   (eval "$ac_compile") 2>conftest.er1
2661   ac_status=$?
2662   grep -v '^ *+' conftest.er1 >conftest.err
2663   rm -f conftest.er1
2664   cat conftest.err >&5
2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666   (exit $ac_status); } && {
2667          test -z "$ac_c_werror_flag" ||
2668          test ! -s conftest.err
2669        } && test -s conftest.$ac_objext; then
2670   :
2671 else
2672   echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2674
2675         ac_c_werror_flag=$ac_save_c_werror_flag
2676          CFLAGS="-g"
2677          cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h.  */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h.  */
2683
2684 int
2685 main ()
2686 {
2687
2688   ;
2689   return 0;
2690 }
2691 _ACEOF
2692 rm -f conftest.$ac_objext
2693 if { (ac_try="$ac_compile"
2694 case "(($ac_try" in
2695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696   *) ac_try_echo=$ac_try;;
2697 esac
2698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2699   (eval "$ac_compile") 2>conftest.er1
2700   ac_status=$?
2701   grep -v '^ *+' conftest.er1 >conftest.err
2702   rm -f conftest.er1
2703   cat conftest.err >&5
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); } && {
2706          test -z "$ac_c_werror_flag" ||
2707          test ! -s conftest.err
2708        } && test -s conftest.$ac_objext; then
2709   ac_cv_prog_cc_g=yes
2710 else
2711   echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2713
2714
2715 fi
2716
2717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2718 fi
2719
2720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 fi
2722
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724    ac_c_werror_flag=$ac_save_c_werror_flag
2725 fi
2726 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2727 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2728 if test "$ac_test_CFLAGS" = set; then
2729   CFLAGS=$ac_save_CFLAGS
2730 elif test $ac_cv_prog_cc_g = yes; then
2731   if test "$GCC" = yes; then
2732     CFLAGS="-g -O2"
2733   else
2734     CFLAGS="-g"
2735   fi
2736 else
2737   if test "$GCC" = yes; then
2738     CFLAGS="-O2"
2739   else
2740     CFLAGS=
2741   fi
2742 fi
2743 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2744 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2745 if test "${ac_cv_prog_cc_c89+set}" = set; then
2746   echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748   ac_cv_prog_cc_c89=no
2749 ac_save_CC=$CC
2750 cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h.  */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h.  */
2756 #include <stdarg.h>
2757 #include <stdio.h>
2758 #include <sys/types.h>
2759 #include <sys/stat.h>
2760 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2761 struct buf { int x; };
2762 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2763 static char *e (p, i)
2764      char **p;
2765      int i;
2766 {
2767   return p[i];
2768 }
2769 static char *f (char * (*g) (char **, int), char **p, ...)
2770 {
2771   char *s;
2772   va_list v;
2773   va_start (v,p);
2774   s = g (p, va_arg (v,int));
2775   va_end (v);
2776   return s;
2777 }
2778
2779 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2780    function prototypes and stuff, but not '\xHH' hex character constants.
2781    These don't provoke an error unfortunately, instead are silently treated
2782    as 'x'.  The following induces an error, until -std is added to get
2783    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2784    array size at least.  It's necessary to write '\x00'==0 to get something
2785    that's true only with -std.  */
2786 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2787
2788 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2789    inside strings and character constants.  */
2790 #define FOO(x) 'x'
2791 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2792
2793 int test (int i, double x);
2794 struct s1 {int (*f) (int a);};
2795 struct s2 {int (*f) (double a);};
2796 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2797 int argc;
2798 char **argv;
2799 int
2800 main ()
2801 {
2802 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2803   ;
2804   return 0;
2805 }
2806 _ACEOF
2807 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2808         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2809 do
2810   CC="$ac_save_CC $ac_arg"
2811   rm -f conftest.$ac_objext
2812 if { (ac_try="$ac_compile"
2813 case "(($ac_try" in
2814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815   *) ac_try_echo=$ac_try;;
2816 esac
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818   (eval "$ac_compile") 2>conftest.er1
2819   ac_status=$?
2820   grep -v '^ *+' conftest.er1 >conftest.err
2821   rm -f conftest.er1
2822   cat conftest.err >&5
2823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824   (exit $ac_status); } && {
2825          test -z "$ac_c_werror_flag" ||
2826          test ! -s conftest.err
2827        } && test -s conftest.$ac_objext; then
2828   ac_cv_prog_cc_c89=$ac_arg
2829 else
2830   echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2832
2833
2834 fi
2835
2836 rm -f core conftest.err conftest.$ac_objext
2837   test "x$ac_cv_prog_cc_c89" != "xno" && break
2838 done
2839 rm -f conftest.$ac_ext
2840 CC=$ac_save_CC
2841
2842 fi
2843 # AC_CACHE_VAL
2844 case "x$ac_cv_prog_cc_c89" in
2845   x)
2846     { echo "$as_me:$LINENO: result: none needed" >&5
2847 echo "${ECHO_T}none needed" >&6; } ;;
2848   xno)
2849     { echo "$as_me:$LINENO: result: unsupported" >&5
2850 echo "${ECHO_T}unsupported" >&6; } ;;
2851   *)
2852     CC="$CC $ac_cv_prog_cc_c89"
2853     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2854 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2855 esac
2856
2857
2858 ac_ext=c
2859 ac_cpp='$CPP $CPPFLAGS'
2860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2863
2864 ac_ext=cpp
2865 ac_cpp='$CXXCPP $CPPFLAGS'
2866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2869 if test -z "$CXX"; then
2870   if test -n "$CCC"; then
2871     CXX=$CCC
2872   else
2873     if test -n "$ac_tool_prefix"; then
2874   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2875   do
2876     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2880 if test "${ac_cv_prog_CXX+set}" = set; then
2881   echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883   if test -n "$CXX"; then
2884   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2888 do
2889   IFS=$as_save_IFS
2890   test -z "$as_dir" && as_dir=.
2891   for ac_exec_ext in '' $ac_executable_extensions; do
2892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2895     break 2
2896   fi
2897 done
2898 done
2899 IFS=$as_save_IFS
2900
2901 fi
2902 fi
2903 CXX=$ac_cv_prog_CXX
2904 if test -n "$CXX"; then
2905   { echo "$as_me:$LINENO: result: $CXX" >&5
2906 echo "${ECHO_T}$CXX" >&6; }
2907 else
2908   { echo "$as_me:$LINENO: result: no" >&5
2909 echo "${ECHO_T}no" >&6; }
2910 fi
2911
2912
2913     test -n "$CXX" && break
2914   done
2915 fi
2916 if test -z "$CXX"; then
2917   ac_ct_CXX=$CXX
2918   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2919 do
2920   # Extract the first word of "$ac_prog", so it can be a program name with args.
2921 set dummy $ac_prog; ac_word=$2
2922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2924 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2925   echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927   if test -n "$ac_ct_CXX"; then
2928   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933   IFS=$as_save_IFS
2934   test -z "$as_dir" && as_dir=.
2935   for ac_exec_ext in '' $ac_executable_extensions; do
2936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937     ac_cv_prog_ac_ct_CXX="$ac_prog"
2938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2939     break 2
2940   fi
2941 done
2942 done
2943 IFS=$as_save_IFS
2944
2945 fi
2946 fi
2947 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2948 if test -n "$ac_ct_CXX"; then
2949   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2950 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2951 else
2952   { echo "$as_me:$LINENO: result: no" >&5
2953 echo "${ECHO_T}no" >&6; }
2954 fi
2955
2956
2957   test -n "$ac_ct_CXX" && break
2958 done
2959
2960   if test "x$ac_ct_CXX" = x; then
2961     CXX="g++"
2962   else
2963     case $cross_compiling:$ac_tool_warned in
2964 yes:)
2965 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2966 whose name does not start with the host triplet.  If you think this
2967 configuration is useful to you, please write to autoconf@gnu.org." >&5
2968 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2969 whose name does not start with the host triplet.  If you think this
2970 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2971 ac_tool_warned=yes ;;
2972 esac
2973     CXX=$ac_ct_CXX
2974   fi
2975 fi
2976
2977   fi
2978 fi
2979 # Provide some information about the compiler.
2980 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2981 ac_compiler=`set X $ac_compile; echo $2`
2982 { (ac_try="$ac_compiler --version >&5"
2983 case "(($ac_try" in
2984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985   *) ac_try_echo=$ac_try;;
2986 esac
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988   (eval "$ac_compiler --version >&5") 2>&5
2989   ac_status=$?
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); }
2992 { (ac_try="$ac_compiler -v >&5"
2993 case "(($ac_try" in
2994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995   *) ac_try_echo=$ac_try;;
2996 esac
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998   (eval "$ac_compiler -v >&5") 2>&5
2999   ac_status=$?
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); }
3002 { (ac_try="$ac_compiler -V >&5"
3003 case "(($ac_try" in
3004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005   *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008   (eval "$ac_compiler -V >&5") 2>&5
3009   ac_status=$?
3010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011   (exit $ac_status); }
3012
3013 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3014 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3015 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3016   echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018   cat >conftest.$ac_ext <<_ACEOF
3019 /* confdefs.h.  */
3020 _ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h.  */
3024
3025 int
3026 main ()
3027 {
3028 #ifndef __GNUC__
3029        choke me
3030 #endif
3031
3032   ;
3033   return 0;
3034 }
3035 _ACEOF
3036 rm -f conftest.$ac_objext
3037 if { (ac_try="$ac_compile"
3038 case "(($ac_try" in
3039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040   *) ac_try_echo=$ac_try;;
3041 esac
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043   (eval "$ac_compile") 2>conftest.er1
3044   ac_status=$?
3045   grep -v '^ *+' conftest.er1 >conftest.err
3046   rm -f conftest.er1
3047   cat conftest.err >&5
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); } && {
3050          test -z "$ac_cxx_werror_flag" ||
3051          test ! -s conftest.err
3052        } && test -s conftest.$ac_objext; then
3053   ac_compiler_gnu=yes
3054 else
3055   echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3057
3058         ac_compiler_gnu=no
3059 fi
3060
3061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3062 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3063
3064 fi
3065 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3066 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3067 GXX=`test $ac_compiler_gnu = yes && echo yes`
3068 ac_test_CXXFLAGS=${CXXFLAGS+set}
3069 ac_save_CXXFLAGS=$CXXFLAGS
3070 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3071 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3072 if test "${ac_cv_prog_cxx_g+set}" = set; then
3073   echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3076    ac_cxx_werror_flag=yes
3077    ac_cv_prog_cxx_g=no
3078    CXXFLAGS="-g"
3079    cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h.  */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h.  */
3085
3086 int
3087 main ()
3088 {
3089
3090   ;
3091   return 0;
3092 }
3093 _ACEOF
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3096 case "(($ac_try" in
3097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098   *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101   (eval "$ac_compile") 2>conftest.er1
3102   ac_status=$?
3103   grep -v '^ *+' conftest.er1 >conftest.err
3104   rm -f conftest.er1
3105   cat conftest.err >&5
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } && {
3108          test -z "$ac_cxx_werror_flag" ||
3109          test ! -s conftest.err
3110        } && test -s conftest.$ac_objext; then
3111   ac_cv_prog_cxx_g=yes
3112 else
3113   echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116         CXXFLAGS=""
3117       cat >conftest.$ac_ext <<_ACEOF
3118 /* confdefs.h.  */
3119 _ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h.  */
3123
3124 int
3125 main ()
3126 {
3127
3128   ;
3129   return 0;
3130 }
3131 _ACEOF
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3134 case "(($ac_try" in
3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136   *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139   (eval "$ac_compile") 2>conftest.er1
3140   ac_status=$?
3141   grep -v '^ *+' conftest.er1 >conftest.err
3142   rm -f conftest.er1
3143   cat conftest.err >&5
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); } && {
3146          test -z "$ac_cxx_werror_flag" ||
3147          test ! -s conftest.err
3148        } && test -s conftest.$ac_objext; then
3149   :
3150 else
3151   echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3153
3154         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3155          CXXFLAGS="-g"
3156          cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h.  */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h.  */
3162
3163 int
3164 main ()
3165 {
3166
3167   ;
3168   return 0;
3169 }
3170 _ACEOF
3171 rm -f conftest.$ac_objext
3172 if { (ac_try="$ac_compile"
3173 case "(($ac_try" in
3174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175   *) ac_try_echo=$ac_try;;
3176 esac
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178   (eval "$ac_compile") 2>conftest.er1
3179   ac_status=$?
3180   grep -v '^ *+' conftest.er1 >conftest.err
3181   rm -f conftest.er1
3182   cat conftest.err >&5
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); } && {
3185          test -z "$ac_cxx_werror_flag" ||
3186          test ! -s conftest.err
3187        } && test -s conftest.$ac_objext; then
3188   ac_cv_prog_cxx_g=yes
3189 else
3190   echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3192
3193
3194 fi
3195
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 fi
3198
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 fi
3201
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3204 fi
3205 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3206 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3207 if test "$ac_test_CXXFLAGS" = set; then
3208   CXXFLAGS=$ac_save_CXXFLAGS
3209 elif test $ac_cv_prog_cxx_g = yes; then
3210   if test "$GXX" = yes; then
3211     CXXFLAGS="-g -O2"
3212   else
3213     CXXFLAGS="-g"
3214   fi
3215 else
3216   if test "$GXX" = yes; then
3217     CXXFLAGS="-O2"
3218   else
3219     CXXFLAGS=
3220   fi
3221 fi
3222 ac_ext=c
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227
3228
3229
3230 ac_ext=c
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3236 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3237 # On Suns, sometimes $CPP names a directory.
3238 if test -n "$CPP" && test -d "$CPP"; then
3239   CPP=
3240 fi
3241 if test -z "$CPP"; then
3242   if test "${ac_cv_prog_CPP+set}" = set; then
3243   echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245       # Double quotes because CPP needs to be expanded
3246     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3247     do
3248       ac_preproc_ok=false
3249 for ac_c_preproc_warn_flag in '' yes
3250 do
3251   # Use a header file that comes with gcc, so configuring glibc
3252   # with a fresh cross-compiler works.
3253   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3254   # <limits.h> exists even on freestanding compilers.
3255   # On the NeXT, cc -E runs the code through the compiler's parser,
3256   # not just through cpp. "Syntax error" is here to catch this case.
3257   cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h.  */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h.  */
3263 #ifdef __STDC__
3264 # include <limits.h>
3265 #else
3266 # include <assert.h>
3267 #endif
3268                      Syntax error
3269 _ACEOF
3270 if { (ac_try="$ac_cpp conftest.$ac_ext"
3271 case "(($ac_try" in
3272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273   *) ac_try_echo=$ac_try;;
3274 esac
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3277   ac_status=$?
3278   grep -v '^ *+' conftest.er1 >conftest.err
3279   rm -f conftest.er1
3280   cat conftest.err >&5
3281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282   (exit $ac_status); } >/dev/null && {
3283          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3284          test ! -s conftest.err
3285        }; then
3286   :
3287 else
3288   echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3290
3291   # Broken: fails on valid input.
3292 continue
3293 fi
3294
3295 rm -f conftest.err conftest.$ac_ext
3296
3297   # OK, works on sane cases.  Now check whether nonexistent headers
3298   # can be detected and how.
3299   cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h.  */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h.  */
3305 #include <ac_nonexistent.h>
3306 _ACEOF
3307 if { (ac_try="$ac_cpp conftest.$ac_ext"
3308 case "(($ac_try" in
3309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310   *) ac_try_echo=$ac_try;;
3311 esac
3312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3314   ac_status=$?
3315   grep -v '^ *+' conftest.er1 >conftest.err
3316   rm -f conftest.er1
3317   cat conftest.err >&5
3318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319   (exit $ac_status); } >/dev/null && {
3320          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3321          test ! -s conftest.err
3322        }; then
3323   # Broken: success on invalid input.
3324 continue
3325 else
3326   echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3328
3329   # Passes both tests.
3330 ac_preproc_ok=:
3331 break
3332 fi
3333
3334 rm -f conftest.err conftest.$ac_ext
3335
3336 done
3337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3338 rm -f conftest.err conftest.$ac_ext
3339 if $ac_preproc_ok; then
3340   break
3341 fi
3342
3343     done
3344     ac_cv_prog_CPP=$CPP
3345
3346 fi
3347   CPP=$ac_cv_prog_CPP
3348 else
3349   ac_cv_prog_CPP=$CPP
3350 fi
3351 { echo "$as_me:$LINENO: result: $CPP" >&5
3352 echo "${ECHO_T}$CPP" >&6; }
3353 ac_preproc_ok=false
3354 for ac_c_preproc_warn_flag in '' yes
3355 do
3356   # Use a header file that comes with gcc, so configuring glibc
3357   # with a fresh cross-compiler works.
3358   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3359   # <limits.h> exists even on freestanding compilers.
3360   # On the NeXT, cc -E runs the code through the compiler's parser,
3361   # not just through cpp. "Syntax error" is here to catch this case.
3362   cat >conftest.$ac_ext <<_ACEOF
3363 /* confdefs.h.  */
3364 _ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h.  */
3368 #ifdef __STDC__
3369 # include <limits.h>
3370 #else
3371 # include <assert.h>
3372 #endif
3373                      Syntax error
3374 _ACEOF
3375 if { (ac_try="$ac_cpp conftest.$ac_ext"
3376 case "(($ac_try" in
3377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378   *) ac_try_echo=$ac_try;;
3379 esac
3380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3381   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3382   ac_status=$?
3383   grep -v '^ *+' conftest.er1 >conftest.err
3384   rm -f conftest.er1
3385   cat conftest.err >&5
3386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387   (exit $ac_status); } >/dev/null && {
3388          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3389          test ! -s conftest.err
3390        }; then
3391   :
3392 else
3393   echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3395
3396   # Broken: fails on valid input.
3397 continue
3398 fi
3399
3400 rm -f conftest.err conftest.$ac_ext
3401
3402   # OK, works on sane cases.  Now check whether nonexistent headers
3403   # can be detected and how.
3404   cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h.  */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h.  */
3410 #include <ac_nonexistent.h>
3411 _ACEOF
3412 if { (ac_try="$ac_cpp conftest.$ac_ext"
3413 case "(($ac_try" in
3414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415   *) ac_try_echo=$ac_try;;
3416 esac
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3419   ac_status=$?
3420   grep -v '^ *+' conftest.er1 >conftest.err
3421   rm -f conftest.er1
3422   cat conftest.err >&5
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); } >/dev/null && {
3425          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3426          test ! -s conftest.err
3427        }; then
3428   # Broken: success on invalid input.
3429 continue
3430 else
3431   echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3433
3434   # Passes both tests.
3435 ac_preproc_ok=:
3436 break
3437 fi
3438
3439 rm -f conftest.err conftest.$ac_ext
3440
3441 done
3442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3443 rm -f conftest.err conftest.$ac_ext
3444 if $ac_preproc_ok; then
3445   :
3446 else
3447   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3448 See \`config.log' for more details." >&5
3449 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3450 See \`config.log' for more details." >&2;}
3451    { (exit 1); exit 1; }; }
3452 fi
3453
3454 ac_ext=c
3455 ac_cpp='$CPP $CPPFLAGS'
3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
3460
3461 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3462 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3463 if test "${ac_cv_path_GREP+set}" = set; then
3464   echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466   # Extract the first word of "grep ggrep" to use in msg output
3467 if test -z "$GREP"; then
3468 set dummy grep ggrep; ac_prog_name=$2
3469 if test "${ac_cv_path_GREP+set}" = set; then
3470   echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472   ac_path_GREP_found=false
3473 # Loop through the user's path and test for each of PROGNAME-LIST
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3476 do
3477   IFS=$as_save_IFS
3478   test -z "$as_dir" && as_dir=.
3479   for ac_prog in grep ggrep; do
3480   for ac_exec_ext in '' $ac_executable_extensions; do
3481     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3482     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3483     # Check for GNU ac_path_GREP and select it if it is found.
3484   # Check for GNU $ac_path_GREP
3485 case `"$ac_path_GREP" --version 2>&1` in
3486 *GNU*)
3487   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3488 *)
3489   ac_count=0
3490   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3491   while :
3492   do
3493     cat "conftest.in" "conftest.in" >"conftest.tmp"
3494     mv "conftest.tmp" "conftest.in"
3495     cp "conftest.in" "conftest.nl"
3496     echo 'GREP' >> "conftest.nl"
3497     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3498     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3499     ac_count=`expr $ac_count + 1`
3500     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3501       # Best one so far, save it but keep looking for a better one
3502       ac_cv_path_GREP="$ac_path_GREP"
3503       ac_path_GREP_max=$ac_count
3504     fi
3505     # 10*(2^10) chars as input seems more than enough
3506     test $ac_count -gt 10 && break
3507   done
3508   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3509 esac
3510
3511
3512     $ac_path_GREP_found && break 3
3513   done
3514 done
3515
3516 done
3517 IFS=$as_save_IFS
3518
3519
3520 fi
3521
3522 GREP="$ac_cv_path_GREP"
3523 if test -z "$GREP"; then
3524   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3525 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3526    { (exit 1); exit 1; }; }
3527 fi
3528
3529 else
3530   ac_cv_path_GREP=$GREP
3531 fi
3532
3533
3534 fi
3535 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3536 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3537  GREP="$ac_cv_path_GREP"
3538
3539
3540 { echo "$as_me:$LINENO: checking for egrep" >&5
3541 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3542 if test "${ac_cv_path_EGREP+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3546    then ac_cv_path_EGREP="$GREP -E"
3547    else
3548      # Extract the first word of "egrep" to use in msg output
3549 if test -z "$EGREP"; then
3550 set dummy egrep; ac_prog_name=$2
3551 if test "${ac_cv_path_EGREP+set}" = set; then
3552   echo $ECHO_N "(cached) $ECHO_C" >&6
3553 else
3554   ac_path_EGREP_found=false
3555 # Loop through the user's path and test for each of PROGNAME-LIST
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3558 do
3559   IFS=$as_save_IFS
3560   test -z "$as_dir" && as_dir=.
3561   for ac_prog in egrep; do
3562   for ac_exec_ext in '' $ac_executable_extensions; do
3563     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3564     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3565     # Check for GNU ac_path_EGREP and select it if it is found.
3566   # Check for GNU $ac_path_EGREP
3567 case `"$ac_path_EGREP" --version 2>&1` in
3568 *GNU*)
3569   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3570 *)
3571   ac_count=0
3572   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3573   while :
3574   do
3575     cat "conftest.in" "conftest.in" >"conftest.tmp"
3576     mv "conftest.tmp" "conftest.in"
3577     cp "conftest.in" "conftest.nl"
3578     echo 'EGREP' >> "conftest.nl"
3579     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3580     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3581     ac_count=`expr $ac_count + 1`
3582     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3583       # Best one so far, save it but keep looking for a better one
3584       ac_cv_path_EGREP="$ac_path_EGREP"
3585       ac_path_EGREP_max=$ac_count
3586     fi
3587     # 10*(2^10) chars as input seems more than enough
3588     test $ac_count -gt 10 && break
3589   done
3590   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3591 esac
3592
3593
3594     $ac_path_EGREP_found && break 3
3595   done
3596 done
3597
3598 done
3599 IFS=$as_save_IFS
3600
3601
3602 fi
3603
3604 EGREP="$ac_cv_path_EGREP"
3605 if test -z "$EGREP"; then
3606   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3607 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3608    { (exit 1); exit 1; }; }
3609 fi
3610
3611 else
3612   ac_cv_path_EGREP=$EGREP
3613 fi
3614
3615
3616    fi
3617 fi
3618 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3619 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3620  EGREP="$ac_cv_path_EGREP"
3621
3622
3623
3624 { echo "$as_me:$LINENO: checking for AIX" >&5
3625 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3626 cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h.  */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h.  */
3632 #ifdef _AIX
3633   yes
3634 #endif
3635
3636 _ACEOF
3637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3638   $EGREP "yes" >/dev/null 2>&1; then
3639   { echo "$as_me:$LINENO: result: yes" >&5
3640 echo "${ECHO_T}yes" >&6; }
3641 cat >>confdefs.h <<\_ACEOF
3642 #define _ALL_SOURCE 1
3643 _ACEOF
3644
3645 else
3646   { echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6; }
3648 fi
3649 rm -f conftest*
3650
3651
3652
3653 if test $ac_cv_c_compiler_gnu = yes; then
3654     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3655 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3656 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3657   echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659     ac_pattern="Autoconf.*'x'"
3660   cat >conftest.$ac_ext <<_ACEOF
3661 /* confdefs.h.  */
3662 _ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h.  */
3666 #include <sgtty.h>
3667 Autoconf TIOCGETP
3668 _ACEOF
3669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3670   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3671   ac_cv_prog_gcc_traditional=yes
3672 else
3673   ac_cv_prog_gcc_traditional=no
3674 fi
3675 rm -f conftest*
3676
3677
3678   if test $ac_cv_prog_gcc_traditional = no; then
3679     cat >conftest.$ac_ext <<_ACEOF
3680 /* confdefs.h.  */
3681 _ACEOF
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h.  */
3685 #include <termio.h>
3686 Autoconf TCGETA
3687 _ACEOF
3688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3689   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3690   ac_cv_prog_gcc_traditional=yes
3691 fi
3692 rm -f conftest*
3693
3694   fi
3695 fi
3696 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3697 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3698   if test $ac_cv_prog_gcc_traditional = yes; then
3699     CC="$CC -traditional"
3700   fi
3701 fi
3702
3703 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3704 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3705 if test "${ac_cv_prog_suncc+set}" = set; then
3706   echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708   cat > conftest.c <<EOF
3709 #ifdef __SUNPRO_C
3710   yes;
3711 #endif
3712 EOF
3713 if { ac_try='${CC-cc} -E conftest.c'
3714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715   (eval $ac_try) 2>&5
3716   ac_status=$?
3717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3719   ac_cv_prog_suncc=yes
3720 else
3721   ac_cv_prog_suncc=no
3722 fi
3723 fi
3724 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3725 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3726 if test -n "$ac_tool_prefix"; then
3727   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3731 if test "${ac_cv_prog_RANLIB+set}" = set; then
3732   echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734   if test -n "$RANLIB"; then
3735   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3739 do
3740   IFS=$as_save_IFS
3741   test -z "$as_dir" && as_dir=.
3742   for ac_exec_ext in '' $ac_executable_extensions; do
3743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3744     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746     break 2
3747   fi
3748 done
3749 done
3750 IFS=$as_save_IFS
3751
3752 fi
3753 fi
3754 RANLIB=$ac_cv_prog_RANLIB
3755 if test -n "$RANLIB"; then
3756   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3757 echo "${ECHO_T}$RANLIB" >&6; }
3758 else
3759   { echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6; }
3761 fi
3762
3763
3764 fi
3765 if test -z "$ac_cv_prog_RANLIB"; then
3766   ac_ct_RANLIB=$RANLIB
3767   # Extract the first word of "ranlib", so it can be a program name with args.
3768 set dummy ranlib; ac_word=$2
3769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3771 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3772   echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774   if test -n "$ac_ct_RANLIB"; then
3775   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3776 else
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH
3779 do
3780   IFS=$as_save_IFS
3781   test -z "$as_dir" && as_dir=.
3782   for ac_exec_ext in '' $ac_executable_extensions; do
3783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3784     ac_cv_prog_ac_ct_RANLIB="ranlib"
3785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3786     break 2
3787   fi
3788 done
3789 done
3790 IFS=$as_save_IFS
3791
3792 fi
3793 fi
3794 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3795 if test -n "$ac_ct_RANLIB"; then
3796   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3797 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3798 else
3799   { echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6; }
3801 fi
3802
3803   if test "x$ac_ct_RANLIB" = x; then
3804     RANLIB=":"
3805   else
3806     case $cross_compiling:$ac_tool_warned in
3807 yes:)
3808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3809 whose name does not start with the host triplet.  If you think this
3810 configuration is useful to you, please write to autoconf@gnu.org." >&5
3811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3812 whose name does not start with the host triplet.  If you think this
3813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3814 ac_tool_warned=yes ;;
3815 esac
3816     RANLIB=$ac_ct_RANLIB
3817   fi
3818 else
3819   RANLIB="$ac_cv_prog_RANLIB"
3820 fi
3821
3822
3823 # Check whether --enable-largefile was given.
3824 if test "${enable_largefile+set}" = set; then
3825   enableval=$enable_largefile;
3826 fi
3827
3828 if test "$enable_largefile" != no; then
3829
3830   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3831 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3832 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3833   echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835   ac_cv_sys_largefile_CC=no
3836      if test "$GCC" != yes; then
3837        ac_save_CC=$CC
3838        while :; do
3839          # IRIX 6.2 and later do not support large files by default,
3840          # so use the C compiler's -n32 option if that helps.
3841          cat >conftest.$ac_ext <<_ACEOF
3842 /* confdefs.h.  */
3843 _ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h.  */
3847 #include <sys/types.h>
3848  /* Check that off_t can represent 2**63 - 1 correctly.
3849     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3850     since some C++ compilers masquerading as C compilers
3851     incorrectly reject 9223372036854775807.  */
3852 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3853   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3854                        && LARGE_OFF_T % 2147483647 == 1)
3855                       ? 1 : -1];
3856 int
3857 main ()
3858 {
3859
3860   ;
3861   return 0;
3862 }
3863 _ACEOF
3864          rm -f conftest.$ac_objext
3865 if { (ac_try="$ac_compile"
3866 case "(($ac_try" in
3867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868   *) ac_try_echo=$ac_try;;
3869 esac
3870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3871   (eval "$ac_compile") 2>conftest.er1
3872   ac_status=$?
3873   grep -v '^ *+' conftest.er1 >conftest.err
3874   rm -f conftest.er1
3875   cat conftest.err >&5
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); } && {
3878          test -z "$ac_c_werror_flag" ||
3879          test ! -s conftest.err
3880        } && test -s conftest.$ac_objext; then
3881   break
3882 else
3883   echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3885
3886
3887 fi
3888
3889 rm -f core conftest.err conftest.$ac_objext
3890          CC="$CC -n32"
3891          rm -f conftest.$ac_objext
3892 if { (ac_try="$ac_compile"
3893 case "(($ac_try" in
3894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895   *) ac_try_echo=$ac_try;;
3896 esac
3897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3898   (eval "$ac_compile") 2>conftest.er1
3899   ac_status=$?
3900   grep -v '^ *+' conftest.er1 >conftest.err
3901   rm -f conftest.er1
3902   cat conftest.err >&5
3903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904   (exit $ac_status); } && {
3905          test -z "$ac_c_werror_flag" ||
3906          test ! -s conftest.err
3907        } && test -s conftest.$ac_objext; then
3908   ac_cv_sys_largefile_CC=' -n32'; break
3909 else
3910   echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3912
3913
3914 fi
3915
3916 rm -f core conftest.err conftest.$ac_objext
3917          break
3918        done
3919        CC=$ac_save_CC
3920        rm -f conftest.$ac_ext
3921     fi
3922 fi
3923 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3924 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3925   if test "$ac_cv_sys_largefile_CC" != no; then
3926     CC=$CC$ac_cv_sys_largefile_CC
3927   fi
3928
3929   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3930 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3931 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3932   echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934   while :; do
3935   cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h.  */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h.  */
3941 #include <sys/types.h>
3942  /* Check that off_t can represent 2**63 - 1 correctly.
3943     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3944     since some C++ compilers masquerading as C compilers
3945     incorrectly reject 9223372036854775807.  */
3946 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3947   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3948                        && LARGE_OFF_T % 2147483647 == 1)
3949                       ? 1 : -1];
3950 int
3951 main ()
3952 {
3953
3954   ;
3955   return 0;
3956 }
3957 _ACEOF
3958 rm -f conftest.$ac_objext
3959 if { (ac_try="$ac_compile"
3960 case "(($ac_try" in
3961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962   *) ac_try_echo=$ac_try;;
3963 esac
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965   (eval "$ac_compile") 2>conftest.er1
3966   ac_status=$?
3967   grep -v '^ *+' conftest.er1 >conftest.err
3968   rm -f conftest.er1
3969   cat conftest.err >&5
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); } && {
3972          test -z "$ac_c_werror_flag" ||
3973          test ! -s conftest.err
3974        } && test -s conftest.$ac_objext; then
3975   ac_cv_sys_file_offset_bits=no; break
3976 else
3977   echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3979
3980
3981 fi
3982
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3984   cat >conftest.$ac_ext <<_ACEOF
3985 /* confdefs.h.  */
3986 _ACEOF
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h.  */
3990 #define _FILE_OFFSET_BITS 64
3991 #include <sys/types.h>
3992  /* Check that off_t can represent 2**63 - 1 correctly.
3993     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3994     since some C++ compilers masquerading as C compilers
3995     incorrectly reject 9223372036854775807.  */
3996 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3997   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3998                        && LARGE_OFF_T % 2147483647 == 1)
3999                       ? 1 : -1];
4000 int
4001 main ()
4002 {
4003
4004   ;
4005   return 0;
4006 }
4007 _ACEOF
4008 rm -f conftest.$ac_objext
4009 if { (ac_try="$ac_compile"
4010 case "(($ac_try" in
4011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012   *) ac_try_echo=$ac_try;;
4013 esac
4014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015   (eval "$ac_compile") 2>conftest.er1
4016   ac_status=$?
4017   grep -v '^ *+' conftest.er1 >conftest.err
4018   rm -f conftest.er1
4019   cat conftest.err >&5
4020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021   (exit $ac_status); } && {
4022          test -z "$ac_c_werror_flag" ||
4023          test ! -s conftest.err
4024        } && test -s conftest.$ac_objext; then
4025   ac_cv_sys_file_offset_bits=64; break
4026 else
4027   echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030
4031 fi
4032
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034   ac_cv_sys_file_offset_bits=unknown
4035   break
4036 done
4037 fi
4038 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4039 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4040 case $ac_cv_sys_file_offset_bits in #(
4041   no | unknown) ;;
4042   *)
4043 cat >>confdefs.h <<_ACEOF
4044 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4045 _ACEOF
4046 ;;
4047 esac
4048 rm -f conftest*
4049   if test $ac_cv_sys_file_offset_bits = unknown; then
4050     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4051 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4052 if test "${ac_cv_sys_large_files+set}" = set; then
4053   echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055   while :; do
4056   cat >conftest.$ac_ext <<_ACEOF
4057 /* confdefs.h.  */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h.  */
4062 #include <sys/types.h>
4063  /* Check that off_t can represent 2**63 - 1 correctly.
4064     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4065     since some C++ compilers masquerading as C compilers
4066     incorrectly reject 9223372036854775807.  */
4067 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4068   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4069                        && LARGE_OFF_T % 2147483647 == 1)
4070                       ? 1 : -1];
4071 int
4072 main ()
4073 {
4074
4075   ;
4076   return 0;
4077 }
4078 _ACEOF
4079 rm -f conftest.$ac_objext
4080 if { (ac_try="$ac_compile"
4081 case "(($ac_try" in
4082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083   *) ac_try_echo=$ac_try;;
4084 esac
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086   (eval "$ac_compile") 2>conftest.er1
4087   ac_status=$?
4088   grep -v '^ *+' conftest.er1 >conftest.err
4089   rm -f conftest.er1
4090   cat conftest.err >&5
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); } && {
4093          test -z "$ac_c_werror_flag" ||
4094          test ! -s conftest.err
4095        } && test -s conftest.$ac_objext; then
4096   ac_cv_sys_large_files=no; break
4097 else
4098   echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4100
4101
4102 fi
4103
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105   cat >conftest.$ac_ext <<_ACEOF
4106 /* confdefs.h.  */
4107 _ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h.  */
4111 #define _LARGE_FILES 1
4112 #include <sys/types.h>
4113  /* Check that off_t can represent 2**63 - 1 correctly.
4114     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4115     since some C++ compilers masquerading as C compilers
4116     incorrectly reject 9223372036854775807.  */
4117 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4118   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4119                        && LARGE_OFF_T % 2147483647 == 1)
4120                       ? 1 : -1];
4121 int
4122 main ()
4123 {
4124
4125   ;
4126   return 0;
4127 }
4128 _ACEOF
4129 rm -f conftest.$ac_objext
4130 if { (ac_try="$ac_compile"
4131 case "(($ac_try" in
4132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133   *) ac_try_echo=$ac_try;;
4134 esac
4135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136   (eval "$ac_compile") 2>conftest.er1
4137   ac_status=$?
4138   grep -v '^ *+' conftest.er1 >conftest.err
4139   rm -f conftest.er1
4140   cat conftest.err >&5
4141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142   (exit $ac_status); } && {
4143          test -z "$ac_c_werror_flag" ||
4144          test ! -s conftest.err
4145        } && test -s conftest.$ac_objext; then
4146   ac_cv_sys_large_files=1; break
4147 else
4148   echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4150
4151
4152 fi
4153
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155   ac_cv_sys_large_files=unknown
4156   break
4157 done
4158 fi
4159 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4160 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4161 case $ac_cv_sys_large_files in #(
4162   no | unknown) ;;
4163   *)
4164 cat >>confdefs.h <<_ACEOF
4165 #define _LARGE_FILES $ac_cv_sys_large_files
4166 _ACEOF
4167 ;;
4168 esac
4169 rm -f conftest*
4170   fi
4171 fi
4172
4173
4174 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4175 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4176 if test "${ac_cv_header_stdc+set}" = set; then
4177   echo $ECHO_N "(cached) $ECHO_C" >&6
4178 else
4179   cat >conftest.$ac_ext <<_ACEOF
4180 /* confdefs.h.  */
4181 _ACEOF
4182 cat confdefs.h >>conftest.$ac_ext
4183 cat >>conftest.$ac_ext <<_ACEOF
4184 /* end confdefs.h.  */
4185 #include <stdlib.h>
4186 #include <stdarg.h>
4187 #include <string.h>
4188 #include <float.h>
4189
4190 int
4191 main ()
4192 {
4193
4194   ;
4195   return 0;
4196 }
4197 _ACEOF
4198 rm -f conftest.$ac_objext
4199 if { (ac_try="$ac_compile"
4200 case "(($ac_try" in
4201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202   *) ac_try_echo=$ac_try;;
4203 esac
4204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4205   (eval "$ac_compile") 2>conftest.er1
4206   ac_status=$?
4207   grep -v '^ *+' conftest.er1 >conftest.err
4208   rm -f conftest.er1
4209   cat conftest.err >&5
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); } && {
4212          test -z "$ac_c_werror_flag" ||
4213          test ! -s conftest.err
4214        } && test -s conftest.$ac_objext; then
4215   ac_cv_header_stdc=yes
4216 else
4217   echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4219
4220         ac_cv_header_stdc=no
4221 fi
4222
4223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224
4225 if test $ac_cv_header_stdc = yes; then
4226   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4227   cat >conftest.$ac_ext <<_ACEOF
4228 /* confdefs.h.  */
4229 _ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h.  */
4233 #include <string.h>
4234
4235 _ACEOF
4236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4237   $EGREP "memchr" >/dev/null 2>&1; then
4238   :
4239 else
4240   ac_cv_header_stdc=no
4241 fi
4242 rm -f conftest*
4243
4244 fi
4245
4246 if test $ac_cv_header_stdc = yes; then
4247   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4248   cat >conftest.$ac_ext <<_ACEOF
4249 /* confdefs.h.  */
4250 _ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h.  */
4254 #include <stdlib.h>
4255
4256 _ACEOF
4257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4258   $EGREP "free" >/dev/null 2>&1; then
4259   :
4260 else
4261   ac_cv_header_stdc=no
4262 fi
4263 rm -f conftest*
4264
4265 fi
4266
4267 if test $ac_cv_header_stdc = yes; then
4268   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4269   if test "$cross_compiling" = yes; then
4270   :
4271 else
4272   cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h.  */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h.  */
4278 #include <ctype.h>
4279 #include <stdlib.h>
4280 #if ((' ' & 0x0FF) == 0x020)
4281 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4282 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4283 #else
4284 # define ISLOWER(c) \
4285                    (('a' <= (c) && (c) <= 'i') \
4286                      || ('j' <= (c) && (c) <= 'r') \
4287                      || ('s' <= (c) && (c) <= 'z'))
4288 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4289 #endif
4290
4291 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4292 int
4293 main ()
4294 {
4295   int i;
4296   for (i = 0; i < 256; i++)
4297     if (XOR (islower (i), ISLOWER (i))
4298         || toupper (i) != TOUPPER (i))
4299       return 2;
4300   return 0;
4301 }
4302 _ACEOF
4303 rm -f conftest$ac_exeext
4304 if { (ac_try="$ac_link"
4305 case "(($ac_try" in
4306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307   *) ac_try_echo=$ac_try;;
4308 esac
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310   (eval "$ac_link") 2>&5
4311   ac_status=$?
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4314   { (case "(($ac_try" in
4315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316   *) ac_try_echo=$ac_try;;
4317 esac
4318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319   (eval "$ac_try") 2>&5
4320   ac_status=$?
4321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322   (exit $ac_status); }; }; then
4323   :
4324 else
4325   echo "$as_me: program exited with status $ac_status" >&5
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4328
4329 ( exit $ac_status )
4330 ac_cv_header_stdc=no
4331 fi
4332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4333 fi
4334
4335
4336 fi
4337 fi
4338 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4339 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4340 if test $ac_cv_header_stdc = yes; then
4341
4342 cat >>confdefs.h <<\_ACEOF
4343 #define STDC_HEADERS 1
4344 _ACEOF
4345
4346 fi
4347
4348 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4359                   inttypes.h stdint.h unistd.h
4360 do
4361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4365   echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367   cat >conftest.$ac_ext <<_ACEOF
4368 /* confdefs.h.  */
4369 _ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h.  */
4373 $ac_includes_default
4374
4375 #include <$ac_header>
4376 _ACEOF
4377 rm -f conftest.$ac_objext
4378 if { (ac_try="$ac_compile"
4379 case "(($ac_try" in
4380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381   *) ac_try_echo=$ac_try;;
4382 esac
4383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384   (eval "$ac_compile") 2>conftest.er1
4385   ac_status=$?
4386   grep -v '^ *+' conftest.er1 >conftest.err
4387   rm -f conftest.er1
4388   cat conftest.err >&5
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); } && {
4391          test -z "$ac_c_werror_flag" ||
4392          test ! -s conftest.err
4393        } && test -s conftest.$ac_objext; then
4394   eval "$as_ac_Header=yes"
4395 else
4396   echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4398
4399         eval "$as_ac_Header=no"
4400 fi
4401
4402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403 fi
4404 ac_res=`eval echo '${'$as_ac_Header'}'`
4405                { echo "$as_me:$LINENO: result: $ac_res" >&5
4406 echo "${ECHO_T}$ac_res" >&6; }
4407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4408   cat >>confdefs.h <<_ACEOF
4409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4410 _ACEOF
4411
4412 fi
4413
4414 done
4415
4416
4417 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4418 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4419 if test "${ac_cv_c_bigendian+set}" = set; then
4420   echo $ECHO_N "(cached) $ECHO_C" >&6
4421 else
4422   # See if sys/param.h defines the BYTE_ORDER macro.
4423 cat >conftest.$ac_ext <<_ACEOF
4424 /* confdefs.h.  */
4425 _ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h.  */
4429 #include <sys/types.h>
4430 #include <sys/param.h>
4431
4432 int
4433 main ()
4434 {
4435 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4436         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4437  bogus endian macros
4438 #endif
4439
4440   ;
4441   return 0;
4442 }
4443 _ACEOF
4444 rm -f conftest.$ac_objext
4445 if { (ac_try="$ac_compile"
4446 case "(($ac_try" in
4447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448   *) ac_try_echo=$ac_try;;
4449 esac
4450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4451   (eval "$ac_compile") 2>conftest.er1
4452   ac_status=$?
4453   grep -v '^ *+' conftest.er1 >conftest.err
4454   rm -f conftest.er1
4455   cat conftest.err >&5
4456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457   (exit $ac_status); } && {
4458          test -z "$ac_c_werror_flag" ||
4459          test ! -s conftest.err
4460        } && test -s conftest.$ac_objext; then
4461   # It does; now see whether it defined to BIG_ENDIAN or not.
4462 cat >conftest.$ac_ext <<_ACEOF
4463 /* confdefs.h.  */
4464 _ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h.  */
4468 #include <sys/types.h>
4469 #include <sys/param.h>
4470
4471 int
4472 main ()
4473 {
4474 #if BYTE_ORDER != BIG_ENDIAN
4475  not big endian
4476 #endif
4477
4478   ;
4479   return 0;
4480 }
4481 _ACEOF
4482 rm -f conftest.$ac_objext
4483 if { (ac_try="$ac_compile"
4484 case "(($ac_try" in
4485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486   *) ac_try_echo=$ac_try;;
4487 esac
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489   (eval "$ac_compile") 2>conftest.er1
4490   ac_status=$?
4491   grep -v '^ *+' conftest.er1 >conftest.err
4492   rm -f conftest.er1
4493   cat conftest.err >&5
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); } && {
4496          test -z "$ac_c_werror_flag" ||
4497          test ! -s conftest.err
4498        } && test -s conftest.$ac_objext; then
4499   ac_cv_c_bigendian=yes
4500 else
4501   echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4503
4504         ac_cv_c_bigendian=no
4505 fi
4506
4507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508 else
4509   echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4511
4512         # It does not; compile a test program.
4513 if test "$cross_compiling" = yes; then
4514   # try to guess the endianness by grepping values into an object file
4515   ac_cv_c_bigendian=unknown
4516   cat >conftest.$ac_ext <<_ACEOF
4517 /* confdefs.h.  */
4518 _ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h.  */
4522 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4523 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4524 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4525 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4526 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4527 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4528 int
4529 main ()
4530 {
4531  _ascii (); _ebcdic ();
4532   ;
4533   return 0;
4534 }
4535 _ACEOF
4536 rm -f conftest.$ac_objext
4537 if { (ac_try="$ac_compile"
4538 case "(($ac_try" in
4539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540   *) ac_try_echo=$ac_try;;
4541 esac
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543   (eval "$ac_compile") 2>conftest.er1
4544   ac_status=$?
4545   grep -v '^ *+' conftest.er1 >conftest.err
4546   rm -f conftest.er1
4547   cat conftest.err >&5
4548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549   (exit $ac_status); } && {
4550          test -z "$ac_c_werror_flag" ||
4551          test ! -s conftest.err
4552        } && test -s conftest.$ac_objext; then
4553   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4554   ac_cv_c_bigendian=yes
4555 fi
4556 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4557   if test "$ac_cv_c_bigendian" = unknown; then
4558     ac_cv_c_bigendian=no
4559   else
4560     # finding both strings is unlikely to happen, but who knows?
4561     ac_cv_c_bigendian=unknown
4562   fi
4563 fi
4564 else
4565   echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4567
4568
4569 fi
4570
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 else
4573   cat >conftest.$ac_ext <<_ACEOF
4574 /* confdefs.h.  */
4575 _ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h.  */
4579 $ac_includes_default
4580 int
4581 main ()
4582 {
4583
4584   /* Are we little or big endian?  From Harbison&Steele.  */
4585   union
4586   {
4587     long int l;
4588     char c[sizeof (long int)];
4589   } u;
4590   u.l = 1;
4591   return u.c[sizeof (long int) - 1] == 1;
4592
4593   ;
4594   return 0;
4595 }
4596 _ACEOF
4597 rm -f conftest$ac_exeext
4598 if { (ac_try="$ac_link"
4599 case "(($ac_try" in
4600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601   *) ac_try_echo=$ac_try;;
4602 esac
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604   (eval "$ac_link") 2>&5
4605   ac_status=$?
4606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4608   { (case "(($ac_try" in
4609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610   *) ac_try_echo=$ac_try;;
4611 esac
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613   (eval "$ac_try") 2>&5
4614   ac_status=$?
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); }; }; then
4617   ac_cv_c_bigendian=no
4618 else
4619   echo "$as_me: program exited with status $ac_status" >&5
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4622
4623 ( exit $ac_status )
4624 ac_cv_c_bigendian=yes
4625 fi
4626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4627 fi
4628
4629
4630 fi
4631
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 fi
4634 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4635 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4636 case $ac_cv_c_bigendian in
4637   yes)
4638
4639 cat >>confdefs.h <<\_ACEOF
4640 #define WORDS_BIGENDIAN 1
4641 _ACEOF
4642  ;;
4643   no)
4644      ;;
4645   *)
4646     { { echo "$as_me:$LINENO: error: unknown endianness
4647 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4648 echo "$as_me: error: unknown endianness
4649 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4650    { (exit 1); exit 1; }; } ;;
4651 esac
4652
4653
4654 # Extract the first word of "gmake", so it can be a program name with args.
4655 set dummy gmake; ac_word=$2
4656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4658 if test "${ac_cv_prog_GMAKE+set}" = set; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661   if test -n "$GMAKE"; then
4662   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4663 else
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH
4666 do
4667   IFS=$as_save_IFS
4668   test -z "$as_dir" && as_dir=.
4669   for ac_exec_ext in '' $ac_executable_extensions; do
4670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671     ac_cv_prog_GMAKE="yes"
4672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673     break 2
4674   fi
4675 done
4676 done
4677 IFS=$as_save_IFS
4678
4679   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4680 fi
4681 fi
4682 GMAKE=$ac_cv_prog_GMAKE
4683 if test -n "$GMAKE"; then
4684   { echo "$as_me:$LINENO: result: $GMAKE" >&5
4685 echo "${ECHO_T}$GMAKE" >&6; }
4686 else
4687   { echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6; }
4689 fi
4690
4691
4692 if test $GMAKE = no; then
4693   # Extract the first word of "make", so it can be a program name with args.
4694 set dummy make; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_path_MAKE+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   case $MAKE in
4701   [\\/]* | ?:[\\/]*)
4702   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4703   ;;
4704   *)
4705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708   IFS=$as_save_IFS
4709   test -z "$as_dir" && as_dir=.
4710   for ac_exec_ext in '' $ac_executable_extensions; do
4711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714     break 2
4715   fi
4716 done
4717 done
4718 IFS=$as_save_IFS
4719
4720   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4721   ;;
4722 esac
4723 fi
4724 MAKE=$ac_cv_path_MAKE
4725 if test -n "$MAKE"; then
4726   { echo "$as_me:$LINENO: result: $MAKE" >&5
4727 echo "${ECHO_T}$MAKE" >&6; }
4728 else
4729   { echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6; }
4731 fi
4732
4733
4734 else
4735   # Extract the first word of "gmake", so it can be a program name with args.
4736 set dummy gmake; ac_word=$2
4737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4739 if test "${ac_cv_path_MAKE+set}" = set; then
4740   echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742   case $MAKE in
4743   [\\/]* | ?:[\\/]*)
4744   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4745   ;;
4746   *)
4747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH
4749 do
4750   IFS=$as_save_IFS
4751   test -z "$as_dir" && as_dir=.
4752   for ac_exec_ext in '' $ac_executable_extensions; do
4753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756     break 2
4757   fi
4758 done
4759 done
4760 IFS=$as_save_IFS
4761
4762   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4763   ;;
4764 esac
4765 fi
4766 MAKE=$ac_cv_path_MAKE
4767 if test -n "$MAKE"; then
4768   { echo "$as_me:$LINENO: result: $MAKE" >&5
4769 echo "${ECHO_T}$MAKE" >&6; }
4770 else
4771   { echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6; }
4773 fi
4774
4775
4776 fi
4777 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4778 if test -z "$makever"; then
4779   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
4780                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4781 echo "$as_me: error: GNU Make is not installed.  Please download and install it
4782                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4783    { (exit 1); exit 1; }; }
4784 fi
4785
4786   { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4787 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4788 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4789   echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791   ac_check_lib_save_LIBS=$LIBS
4792 LIBS="-lltdl  $LIBS"
4793 cat >conftest.$ac_ext <<_ACEOF
4794 /* confdefs.h.  */
4795 _ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h.  */
4799
4800 /* Override any GCC internal prototype to avoid an error.
4801    Use char because int might match the return type of a GCC
4802    builtin and then its argument prototype would still apply.  */
4803 #ifdef __cplusplus
4804 extern "C"
4805 #endif
4806 char lt_dlinit ();
4807 int
4808 main ()
4809 {
4810 return lt_dlinit ();
4811   ;
4812   return 0;
4813 }
4814 _ACEOF
4815 rm -f conftest.$ac_objext conftest$ac_exeext
4816 if { (ac_try="$ac_link"
4817 case "(($ac_try" in
4818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819   *) ac_try_echo=$ac_try;;
4820 esac
4821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4822   (eval "$ac_link") 2>conftest.er1
4823   ac_status=$?
4824   grep -v '^ *+' conftest.er1 >conftest.err
4825   rm -f conftest.er1
4826   cat conftest.err >&5
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); } && {
4829          test -z "$ac_c_werror_flag" ||
4830          test ! -s conftest.err
4831        } && test -s conftest$ac_exeext &&
4832        $as_test_x conftest$ac_exeext; then
4833   ac_cv_lib_ltdl_lt_dlinit=yes
4834 else
4835   echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4837
4838         ac_cv_lib_ltdl_lt_dlinit=no
4839 fi
4840
4841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4842       conftest$ac_exeext conftest.$ac_ext
4843 LIBS=$ac_check_lib_save_LIBS
4844 fi
4845 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4846 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4847 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4848   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4849 else
4850   if test x"$enable_ltdl_install" = xno; then
4851      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4852 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4853    else
4854      enable_ltdl_install=yes
4855    fi
4856
4857 fi
4858
4859   if test x"$enable_ltdl_install" = x"yes"; then
4860     ac_configure_args="$ac_configure_args --enable-ltdl-install"
4861     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4862     LTDLINCL='-I${top_srcdir}/''libltdl'
4863   else
4864     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4865     LIBLTDL="-lltdl"
4866     LTDLINCL=
4867   fi
4868   # For backwards non-gettext consistent compatibility...
4869   INCLTDL="$LTDLINCL"
4870
4871
4872 if test x"$enable_ltdl_install" = x"yes"; then
4873   LTDL_SUBDIRS=libltdl
4874 fi
4875
4876
4877 # Check whether --enable-shared was given.
4878 if test "${enable_shared+set}" = set; then
4879   enableval=$enable_shared; p=${PACKAGE-default}
4880     case $enableval in
4881     yes) enable_shared=yes ;;
4882     no) enable_shared=no ;;
4883     *)
4884       enable_shared=no
4885       # Look at the argument we got.  We use all the common list separators.
4886       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4887       for pkg in $enableval; do
4888         IFS="$lt_save_ifs"
4889         if test "X$pkg" = "X$p"; then
4890           enable_shared=yes
4891         fi
4892       done
4893       IFS="$lt_save_ifs"
4894       ;;
4895     esac
4896 else
4897   enable_shared=yes
4898 fi
4899
4900
4901 # Check whether --enable-static was given.
4902 if test "${enable_static+set}" = set; then
4903   enableval=$enable_static; p=${PACKAGE-default}
4904     case $enableval in
4905     yes) enable_static=yes ;;
4906     no) enable_static=no ;;
4907     *)
4908      enable_static=no
4909       # Look at the argument we got.  We use all the common list separators.
4910       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4911       for pkg in $enableval; do
4912         IFS="$lt_save_ifs"
4913         if test "X$pkg" = "X$p"; then
4914           enable_static=yes
4915         fi
4916       done
4917       IFS="$lt_save_ifs"
4918       ;;
4919     esac
4920 else
4921   enable_static=yes
4922 fi
4923
4924
4925 # Check whether --enable-fast-install was given.
4926 if test "${enable_fast_install+set}" = set; then
4927   enableval=$enable_fast_install; p=${PACKAGE-default}
4928     case $enableval in
4929     yes) enable_fast_install=yes ;;
4930     no) enable_fast_install=no ;;
4931     *)
4932       enable_fast_install=no
4933       # Look at the argument we got.  We use all the common list separators.
4934       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4935       for pkg in $enableval; do
4936         IFS="$lt_save_ifs"
4937         if test "X$pkg" = "X$p"; then
4938           enable_fast_install=yes
4939         fi
4940       done
4941       IFS="$lt_save_ifs"
4942       ;;
4943     esac
4944 else
4945   enable_fast_install=yes
4946 fi
4947
4948
4949 ac_aux_dir=
4950 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4951   if test -f "$ac_dir/install-sh"; then
4952     ac_aux_dir=$ac_dir
4953     ac_install_sh="$ac_aux_dir/install-sh -c"
4954     break
4955   elif test -f "$ac_dir/install.sh"; then
4956     ac_aux_dir=$ac_dir
4957     ac_install_sh="$ac_aux_dir/install.sh -c"
4958     break
4959   elif test -f "$ac_dir/shtool"; then
4960     ac_aux_dir=$ac_dir
4961     ac_install_sh="$ac_aux_dir/shtool install -c"
4962     break
4963   fi
4964 done
4965 if test -z "$ac_aux_dir"; then
4966   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4967 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4968    { (exit 1); exit 1; }; }
4969 fi
4970
4971 # These three variables are undocumented and unsupported,
4972 # and are intended to be withdrawn in a future Autoconf release.
4973 # They can cause serious problems if a builder's source tree is in a directory
4974 # whose full name contains unusual characters.
4975 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4976 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4977 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4978
4979
4980 # Make sure we can run config.sub.
4981 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4982   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4983 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4984    { (exit 1); exit 1; }; }
4985
4986 { echo "$as_me:$LINENO: checking build system type" >&5
4987 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4988 if test "${ac_cv_build+set}" = set; then
4989   echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991   ac_build_alias=$build_alias
4992 test "x$ac_build_alias" = x &&
4993   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4994 test "x$ac_build_alias" = x &&
4995   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4996 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4997    { (exit 1); exit 1; }; }
4998 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4999   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5000 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5001    { (exit 1); exit 1; }; }
5002
5003 fi
5004 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5005 echo "${ECHO_T}$ac_cv_build" >&6; }
5006 case $ac_cv_build in
5007 *-*-*) ;;
5008 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5009 echo "$as_me: error: invalid value of canonical build" >&2;}
5010    { (exit 1); exit 1; }; };;
5011 esac
5012 build=$ac_cv_build
5013 ac_save_IFS=$IFS; IFS='-'
5014 set x $ac_cv_build
5015 shift
5016 build_cpu=$1
5017 build_vendor=$2
5018 shift; shift
5019 # Remember, the first character of IFS is used to create $*,
5020 # except with old shells:
5021 build_os=$*
5022 IFS=$ac_save_IFS
5023 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5024
5025
5026 { echo "$as_me:$LINENO: checking host system type" >&5
5027 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5028 if test "${ac_cv_host+set}" = set; then
5029   echo $ECHO_N "(cached) $ECHO_C" >&6
5030 else
5031   if test "x$host_alias" = x; then
5032   ac_cv_host=$ac_cv_build
5033 else
5034   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5035     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5036 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5037    { (exit 1); exit 1; }; }
5038 fi
5039
5040 fi
5041 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5042 echo "${ECHO_T}$ac_cv_host" >&6; }
5043 case $ac_cv_host in
5044 *-*-*) ;;
5045 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5046 echo "$as_me: error: invalid value of canonical host" >&2;}
5047    { (exit 1); exit 1; }; };;
5048 esac
5049 host=$ac_cv_host
5050 ac_save_IFS=$IFS; IFS='-'
5051 set x $ac_cv_host
5052 shift
5053 host_cpu=$1
5054 host_vendor=$2
5055 shift; shift
5056 # Remember, the first character of IFS is used to create $*,
5057 # except with old shells:
5058 host_os=$*
5059 IFS=$ac_save_IFS
5060 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5061
5062
5063 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5064 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5065 if test "${lt_cv_path_SED+set}" = set; then
5066   echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068   # Loop through the user's path and test for sed and gsed.
5069 # Then use that list of sed's as ones to test for truncation.
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073   IFS=$as_save_IFS
5074   test -z "$as_dir" && as_dir=.
5075   for lt_ac_prog in sed gsed; do
5076     for ac_exec_ext in '' $ac_executable_extensions; do
5077       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5078         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5079       fi
5080     done
5081   done
5082 done
5083 lt_ac_max=0
5084 lt_ac_count=0
5085 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5086 # along with /bin/sed that truncates output.
5087 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5088   test ! -f $lt_ac_sed && continue
5089   cat /dev/null > conftest.in
5090   lt_ac_count=0
5091   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5092   # Check for GNU sed and select it if it is found.
5093   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5094     lt_cv_path_SED=$lt_ac_sed
5095     break
5096   fi
5097   while true; do
5098     cat conftest.in conftest.in >conftest.tmp
5099     mv conftest.tmp conftest.in
5100     cp conftest.in conftest.nl
5101     echo >>conftest.nl
5102     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5103     cmp -s conftest.out conftest.nl || break
5104     # 10000 chars as input seems more than enough
5105     test $lt_ac_count -gt 10 && break
5106     lt_ac_count=`expr $lt_ac_count + 1`
5107     if test $lt_ac_count -gt $lt_ac_max; then
5108       lt_ac_max=$lt_ac_count
5109       lt_cv_path_SED=$lt_ac_sed
5110     fi
5111   done
5112 done
5113
5114 fi
5115
5116 SED=$lt_cv_path_SED
5117 { echo "$as_me:$LINENO: result: $SED" >&5
5118 echo "${ECHO_T}$SED" >&6; }
5119
5120
5121 # Check whether --with-gnu-ld was given.
5122 if test "${with_gnu_ld+set}" = set; then
5123   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5124 else
5125   with_gnu_ld=no
5126 fi
5127
5128 ac_prog=ld
5129 if test "$GCC" = yes; then
5130   # Check if gcc -print-prog-name=ld gives a path.
5131   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5132 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5133   case $host in
5134   *-*-mingw*)
5135     # gcc leaves a trailing carriage return which upsets mingw
5136     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5137   *)
5138     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5139   esac
5140   case $ac_prog in
5141     # Accept absolute paths.
5142     [\\/]* | ?:[\\/]*)
5143       re_direlt='/[^/][^/]*/\.\./'
5144       # Canonicalize the pathname of ld
5145       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5146       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5147         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5148       done
5149       test -z "$LD" && LD="$ac_prog"
5150       ;;
5151   "")
5152     # If it fails, then pretend we aren't using GCC.
5153     ac_prog=ld
5154     ;;
5155   *)
5156     # If it is relative, then search for the first ld in PATH.
5157     with_gnu_ld=unknown
5158     ;;
5159   esac
5160 elif test "$with_gnu_ld" = yes; then
5161   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5162 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5163 else
5164   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5165 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5166 fi
5167 if test "${lt_cv_path_LD+set}" = set; then
5168   echo $ECHO_N "(cached) $ECHO_C" >&6
5169 else
5170   if test -z "$LD"; then
5171   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5172   for ac_dir in $PATH; do
5173     IFS="$lt_save_ifs"
5174     test -z "$ac_dir" && ac_dir=.
5175     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5176       lt_cv_path_LD="$ac_dir/$ac_prog"
5177       # Check to see if the program is GNU ld.  I'd rather use --version,
5178       # but apparently some variants of GNU ld only accept -v.
5179       # Break only if it was the GNU/non-GNU ld that we prefer.
5180       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5181       *GNU* | *'with BFD'*)
5182         test "$with_gnu_ld" != no && break
5183         ;;
5184       *)
5185         test "$with_gnu_ld" != yes && break
5186         ;;
5187       esac
5188     fi
5189   done
5190   IFS="$lt_save_ifs"
5191 else
5192   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5193 fi
5194 fi
5195
5196 LD="$lt_cv_path_LD"
5197 if test -n "$LD"; then
5198   { echo "$as_me:$LINENO: result: $LD" >&5
5199 echo "${ECHO_T}$LD" >&6; }
5200 else
5201   { echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6; }
5203 fi
5204 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5205 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5206    { (exit 1); exit 1; }; }
5207 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5208 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5209 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5210   echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5213 case `$LD -v 2>&1 </dev/null` in
5214 *GNU* | *'with BFD'*)
5215   lt_cv_prog_gnu_ld=yes
5216   ;;
5217 *)
5218   lt_cv_prog_gnu_ld=no
5219   ;;
5220 esac
5221 fi
5222 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5223 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5224 with_gnu_ld=$lt_cv_prog_gnu_ld
5225
5226
5227 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5228 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5229 if test "${lt_cv_ld_reload_flag+set}" = set; then
5230   echo $ECHO_N "(cached) $ECHO_C" >&6
5231 else
5232   lt_cv_ld_reload_flag='-r'
5233 fi
5234 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5235 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5236 reload_flag=$lt_cv_ld_reload_flag
5237 case $reload_flag in
5238 "" | " "*) ;;
5239 *) reload_flag=" $reload_flag" ;;
5240 esac
5241 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5242 case $host_os in
5243   darwin*)
5244     if test "$GCC" = yes; then
5245       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5246     else
5247       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5248     fi
5249     ;;
5250 esac
5251
5252 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5253 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5254 if test "${lt_cv_path_NM+set}" = set; then
5255   echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257   if test -n "$NM"; then
5258   # Let the user override the test.
5259   lt_cv_path_NM="$NM"
5260 else
5261   lt_nm_to_check="${ac_tool_prefix}nm"
5262   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5263     lt_nm_to_check="$lt_nm_to_check nm"
5264   fi
5265   for lt_tmp_nm in $lt_nm_to_check; do
5266     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5267     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5268       IFS="$lt_save_ifs"
5269       test -z "$ac_dir" && ac_dir=.
5270       tmp_nm="$ac_dir/$lt_tmp_nm"
5271       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5272         # Check to see if the nm accepts a BSD-compat flag.
5273         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5274         #   nm: unknown option "B" ignored
5275         # Tru64's nm complains that /dev/null is an invalid object file
5276         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5277         */dev/null* | *'Invalid file or object type'*)
5278           lt_cv_path_NM="$tmp_nm -B"
5279           break
5280           ;;
5281         *)
5282           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5283           */dev/null*)
5284             lt_cv_path_NM="$tmp_nm -p"
5285             break
5286             ;;
5287           *)
5288             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5289             continue # so that we can try to find one that supports BSD flags
5290             ;;
5291           esac
5292           ;;
5293         esac
5294       fi
5295     done
5296     IFS="$lt_save_ifs"
5297   done
5298   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5299 fi
5300 fi
5301 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5302 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5303 NM="$lt_cv_path_NM"
5304
5305 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5306 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5307 LN_S=$as_ln_s
5308 if test "$LN_S" = "ln -s"; then
5309   { echo "$as_me:$LINENO: result: yes" >&5
5310 echo "${ECHO_T}yes" >&6; }
5311 else
5312   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5313 echo "${ECHO_T}no, using $LN_S" >&6; }
5314 fi
5315
5316 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5317 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5318 if test "${lt_cv_deplibs_check_method+set}" = set; then
5319   echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321   lt_cv_file_magic_cmd='$MAGIC_CMD'
5322 lt_cv_file_magic_test_file=
5323 lt_cv_deplibs_check_method='unknown'
5324 # Need to set the preceding variable on all platforms that support
5325 # interlibrary dependencies.
5326 # 'none' -- dependencies not supported.
5327 # `unknown' -- same as none, but documents that we really don't know.
5328 # 'pass_all' -- all dependencies passed with no checks.
5329 # 'test_compile' -- check by making test program.
5330 # 'file_magic [[regex]]' -- check by looking for files in library path
5331 # which responds to the $file_magic_cmd with a given extended regex.
5332 # If you have `file' or equivalent on your system and you're not sure
5333 # whether `pass_all' will *always* work, you probably want this one.
5334
5335 case $host_os in
5336 aix4* | aix5*)
5337   lt_cv_deplibs_check_method=pass_all
5338   ;;
5339
5340 beos*)
5341   lt_cv_deplibs_check_method=pass_all
5342   ;;
5343
5344 bsdi[45]*)
5345   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5346   lt_cv_file_magic_cmd='/usr/bin/file -L'
5347   lt_cv_file_magic_test_file=/shlib/libc.so
5348   ;;
5349
5350 cygwin*)
5351   # func_win32_libid is a shell function defined in ltmain.sh
5352   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5353   lt_cv_file_magic_cmd='func_win32_libid'
5354   ;;
5355
5356 mingw* | pw32*)
5357   # Base MSYS/MinGW do not provide the 'file' command needed by
5358   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5359   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5360   lt_cv_file_magic_cmd='$OBJDUMP -f'
5361   ;;
5362
5363 darwin* | rhapsody*)
5364   lt_cv_deplibs_check_method=pass_all
5365   ;;
5366
5367 freebsd* | kfreebsd*-gnu | dragonfly*)
5368   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5369     case $host_cpu in
5370     i*86 )
5371       # Not sure whether the presence of OpenBSD here was a mistake.
5372       # Let's accept both of them until this is cleared up.
5373       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5374       lt_cv_file_magic_cmd=/usr/bin/file
5375       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5376       ;;
5377     esac
5378   else
5379     lt_cv_deplibs_check_method=pass_all
5380   fi
5381   ;;
5382
5383 gnu*)
5384   lt_cv_deplibs_check_method=pass_all
5385   ;;
5386
5387 hpux10.20* | hpux11*)
5388   lt_cv_file_magic_cmd=/usr/bin/file
5389   case $host_cpu in
5390   ia64*)
5391     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5392     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5393     ;;
5394   hppa*64*)
5395     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]'
5396     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5397     ;;
5398   *)
5399     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5400     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5401     ;;
5402   esac
5403   ;;
5404
5405 interix3*)
5406   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5407   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5408   ;;
5409
5410 irix5* | irix6* | nonstopux*)
5411   case $LD in
5412   *-32|*"-32 ") libmagic=32-bit;;
5413   *-n32|*"-n32 ") libmagic=N32;;
5414   *-64|*"-64 ") libmagic=64-bit;;
5415   *) libmagic=never-match;;
5416   esac
5417   lt_cv_deplibs_check_method=pass_all
5418   ;;
5419
5420 # This must be Linux ELF.
5421 linux*)
5422   lt_cv_deplibs_check_method=pass_all
5423   ;;
5424
5425 netbsd*)
5426   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5427     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5428   else
5429     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5430   fi
5431   ;;
5432
5433 newos6*)
5434   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5435   lt_cv_file_magic_cmd=/usr/bin/file
5436   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5437   ;;
5438
5439 nto-qnx*)
5440   lt_cv_deplibs_check_method=unknown
5441   ;;
5442
5443 openbsd*)
5444   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5445     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5446   else
5447     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5448   fi
5449   ;;
5450
5451 osf3* | osf4* | osf5*)
5452   lt_cv_deplibs_check_method=pass_all
5453   ;;
5454
5455 solaris*)
5456   lt_cv_deplibs_check_method=pass_all
5457   ;;
5458
5459 sysv4 | sysv4.3*)
5460   case $host_vendor in
5461   motorola)
5462     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]'
5463     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5464     ;;
5465   ncr)
5466     lt_cv_deplibs_check_method=pass_all
5467     ;;
5468   sequent)
5469     lt_cv_file_magic_cmd='/bin/file'
5470     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5471     ;;
5472   sni)
5473     lt_cv_file_magic_cmd='/bin/file'
5474     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5475     lt_cv_file_magic_test_file=/lib/libc.so
5476     ;;
5477   siemens)
5478     lt_cv_deplibs_check_method=pass_all
5479     ;;
5480   pc)
5481     lt_cv_deplibs_check_method=pass_all
5482     ;;
5483   esac
5484   ;;
5485
5486 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5487   lt_cv_deplibs_check_method=pass_all
5488   ;;
5489 esac
5490
5491 fi
5492 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5493 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5494 file_magic_cmd=$lt_cv_file_magic_cmd
5495 deplibs_check_method=$lt_cv_deplibs_check_method
5496 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5497
5498
5499
5500
5501 # If no C compiler was specified, use CC.
5502 LTCC=${LTCC-"$CC"}
5503
5504 # If no C compiler flags were specified, use CFLAGS.
5505 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5506
5507 # Allow CC to be a program name with arguments.
5508 compiler=$CC
5509
5510 # Check whether --enable-libtool-lock was given.
5511 if test "${enable_libtool_lock+set}" = set; then
5512   enableval=$enable_libtool_lock;
5513 fi
5514
5515 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5516
5517 # Some flags need to be propagated to the compiler or linker for good
5518 # libtool support.
5519 case $host in
5520 ia64-*-hpux*)
5521   # Find out which ABI we are using.
5522   echo 'int i;' > conftest.$ac_ext
5523   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5524   (eval $ac_compile) 2>&5
5525   ac_status=$?
5526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527   (exit $ac_status); }; then
5528     case `/usr/bin/file conftest.$ac_objext` in
5529     *ELF-32*)
5530       HPUX_IA64_MODE="32"
5531       ;;
5532     *ELF-64*)
5533       HPUX_IA64_MODE="64"
5534       ;;
5535     esac
5536   fi
5537   rm -rf conftest*
5538   ;;
5539 *-*-irix6*)
5540   # Find out which ABI we are using.
5541   echo '#line 5541 "configure"' > conftest.$ac_ext
5542   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5543   (eval $ac_compile) 2>&5
5544   ac_status=$?
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); }; then
5547    if test "$lt_cv_prog_gnu_ld" = yes; then
5548     case `/usr/bin/file conftest.$ac_objext` in
5549     *32-bit*)
5550       LD="${LD-ld} -melf32bsmip"
5551       ;;
5552     *N32*)
5553       LD="${LD-ld} -melf32bmipn32"
5554       ;;
5555     *64-bit*)
5556       LD="${LD-ld} -melf64bmip"
5557       ;;
5558     esac
5559    else
5560     case `/usr/bin/file conftest.$ac_objext` in
5561     *32-bit*)
5562       LD="${LD-ld} -32"
5563       ;;
5564     *N32*)
5565       LD="${LD-ld} -n32"
5566       ;;
5567     *64-bit*)
5568       LD="${LD-ld} -64"
5569       ;;
5570     esac
5571    fi
5572   fi
5573   rm -rf conftest*
5574   ;;
5575
5576 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5577   # Find out which ABI we are using.
5578   echo 'int i;' > conftest.$ac_ext
5579   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5580   (eval $ac_compile) 2>&5
5581   ac_status=$?
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); }; then
5584     case `/usr/bin/file conftest.o` in
5585     *32-bit*)
5586       case $host in
5587         x86_64-*linux*)
5588           LD="${LD-ld} -m elf_i386"
5589           ;;
5590         ppc64-*linux*|powerpc64-*linux*)
5591           LD="${LD-ld} -m elf32ppclinux"
5592           ;;
5593         s390x-*linux*)
5594           LD="${LD-ld} -m elf_s390"
5595           ;;
5596         sparc64-*linux*)
5597           LD="${LD-ld} -m elf32_sparc"
5598           ;;
5599       esac
5600       ;;
5601     *64-bit*)
5602       case $host in
5603         x86_64-*linux*)
5604           LD="${LD-ld} -m elf_x86_64"
5605           ;;
5606         ppc*-*linux*|powerpc*-*linux*)
5607           LD="${LD-ld} -m elf64ppc"
5608           ;;
5609         s390*-*linux*)
5610           LD="${LD-ld} -m elf64_s390"
5611           ;;
5612         sparc*-*linux*)
5613           LD="${LD-ld} -m elf64_sparc"
5614           ;;
5615       esac
5616       ;;
5617     esac
5618   fi
5619   rm -rf conftest*
5620   ;;
5621
5622 *-*-sco3.2v5*)
5623   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5624   SAVE_CFLAGS="$CFLAGS"
5625   CFLAGS="$CFLAGS -belf"
5626   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5627 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5628 if test "${lt_cv_cc_needs_belf+set}" = set; then
5629   echo $ECHO_N "(cached) $ECHO_C" >&6
5630 else
5631   ac_ext=c
5632 ac_cpp='$CPP $CPPFLAGS'
5633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5636
5637      cat >conftest.$ac_ext <<_ACEOF
5638 /* confdefs.h.  */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h.  */
5643
5644 int
5645 main ()
5646 {
5647
5648   ;
5649   return 0;
5650 }
5651 _ACEOF
5652 rm -f conftest.$ac_objext conftest$ac_exeext
5653 if { (ac_try="$ac_link"
5654 case "(($ac_try" in
5655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656   *) ac_try_echo=$ac_try;;
5657 esac
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659   (eval "$ac_link") 2>conftest.er1
5660   ac_status=$?
5661   grep -v '^ *+' conftest.er1 >conftest.err
5662   rm -f conftest.er1
5663   cat conftest.err >&5
5664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665   (exit $ac_status); } && {
5666          test -z "$ac_c_werror_flag" ||
5667          test ! -s conftest.err
5668        } && test -s conftest$ac_exeext &&
5669        $as_test_x conftest$ac_exeext; then
5670   lt_cv_cc_needs_belf=yes
5671 else
5672   echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.$ac_ext >&5
5674
5675         lt_cv_cc_needs_belf=no
5676 fi
5677
5678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5679       conftest$ac_exeext conftest.$ac_ext
5680      ac_ext=c
5681 ac_cpp='$CPP $CPPFLAGS'
5682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5685
5686 fi
5687 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5688 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5689   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5690     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5691     CFLAGS="$SAVE_CFLAGS"
5692   fi
5693   ;;
5694 sparc*-*solaris*)
5695   # Find out which ABI we are using.
5696   echo 'int i;' > conftest.$ac_ext
5697   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5698   (eval $ac_compile) 2>&5
5699   ac_status=$?
5700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701   (exit $ac_status); }; then
5702     case `/usr/bin/file conftest.o` in
5703     *64-bit*)
5704       case $lt_cv_prog_gnu_ld in
5705       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5706       *)    LD="${LD-ld} -64" ;;
5707       esac
5708       ;;
5709     esac
5710   fi
5711   rm -rf conftest*
5712   ;;
5713
5714
5715 esac
5716
5717 need_locks="$enable_libtool_lock"
5718
5719
5720
5721 for ac_header in dlfcn.h
5722 do
5723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5725   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5728   echo $ECHO_N "(cached) $ECHO_C" >&6
5729 fi
5730 ac_res=`eval echo '${'$as_ac_Header'}'`
5731                { echo "$as_me:$LINENO: result: $ac_res" >&5
5732 echo "${ECHO_T}$ac_res" >&6; }
5733 else
5734   # Is the header compilable?
5735 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5736 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5737 cat >conftest.$ac_ext <<_ACEOF
5738 /* confdefs.h.  */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h.  */
5743 $ac_includes_default
5744 #include <$ac_header>
5745 _ACEOF
5746 rm -f conftest.$ac_objext
5747 if { (ac_try="$ac_compile"
5748 case "(($ac_try" in
5749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750   *) ac_try_echo=$ac_try;;
5751 esac
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753   (eval "$ac_compile") 2>conftest.er1
5754   ac_status=$?
5755   grep -v '^ *+' conftest.er1 >conftest.err
5756   rm -f conftest.er1
5757   cat conftest.err >&5
5758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759   (exit $ac_status); } && {
5760          test -z "$ac_c_werror_flag" ||
5761          test ! -s conftest.err
5762        } && test -s conftest.$ac_objext; then
5763   ac_header_compiler=yes
5764 else
5765   echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5767
5768         ac_header_compiler=no
5769 fi
5770
5771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5773 echo "${ECHO_T}$ac_header_compiler" >&6; }
5774
5775 # Is the header present?
5776 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5777 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
5785 _ACEOF
5786 if { (ac_try="$ac_cpp conftest.$ac_ext"
5787 case "(($ac_try" in
5788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789   *) ac_try_echo=$ac_try;;
5790 esac
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5793   ac_status=$?
5794   grep -v '^ *+' conftest.er1 >conftest.err
5795   rm -f conftest.er1
5796   cat conftest.err >&5
5797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798   (exit $ac_status); } >/dev/null && {
5799          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5800          test ! -s conftest.err
5801        }; then
5802   ac_header_preproc=yes
5803 else
5804   echo "$as_me: failed program was:" >&5
5805 sed 's/^/| /' conftest.$ac_ext >&5
5806
5807   ac_header_preproc=no
5808 fi
5809
5810 rm -f conftest.err conftest.$ac_ext
5811 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5812 echo "${ECHO_T}$ac_header_preproc" >&6; }
5813
5814 # So?  What about this header?
5815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5816   yes:no: )
5817     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5821     ac_header_preproc=yes
5822     ;;
5823   no:yes:* )
5824     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5826     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5827 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5828     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5830     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5831 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5834     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5836
5837     ;;
5838 esac
5839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5842   echo $ECHO_N "(cached) $ECHO_C" >&6
5843 else
5844   eval "$as_ac_Header=\$ac_header_preproc"
5845 fi
5846 ac_res=`eval echo '${'$as_ac_Header'}'`
5847                { echo "$as_me:$LINENO: result: $ac_res" >&5
5848 echo "${ECHO_T}$ac_res" >&6; }
5849
5850 fi
5851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5852   cat >>confdefs.h <<_ACEOF
5853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5854 _ACEOF
5855
5856 fi
5857
5858 done
5859
5860
5861
5862 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5863     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5864     (test "X$CXX" != "Xg++"))) ; then
5865   ac_ext=cpp
5866 ac_cpp='$CXXCPP $CPPFLAGS'
5867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5870 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5871 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5872 if test -z "$CXXCPP"; then
5873   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5874   echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876       # Double quotes because CXXCPP needs to be expanded
5877     for CXXCPP in "$CXX -E" "/lib/cpp"
5878     do
5879       ac_preproc_ok=false
5880 for ac_cxx_preproc_warn_flag in '' yes
5881 do
5882   # Use a header file that comes with gcc, so configuring glibc
5883   # with a fresh cross-compiler works.
5884   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5885   # <limits.h> exists even on freestanding compilers.
5886   # On the NeXT, cc -E runs the code through the compiler's parser,
5887   # not just through cpp. "Syntax error" is here to catch this case.
5888   cat >conftest.$ac_ext <<_ACEOF
5889 /* confdefs.h.  */
5890 _ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h.  */
5894 #ifdef __STDC__
5895 # include <limits.h>
5896 #else
5897 # include <assert.h>
5898 #endif
5899                      Syntax error
5900 _ACEOF
5901 if { (ac_try="$ac_cpp conftest.$ac_ext"
5902 case "(($ac_try" in
5903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904   *) ac_try_echo=$ac_try;;
5905 esac
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5908   ac_status=$?
5909   grep -v '^ *+' conftest.er1 >conftest.err
5910   rm -f conftest.er1
5911   cat conftest.err >&5
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); } >/dev/null && {
5914          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5915          test ! -s conftest.err
5916        }; then
5917   :
5918 else
5919   echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5921
5922   # Broken: fails on valid input.
5923 continue
5924 fi
5925
5926 rm -f conftest.err conftest.$ac_ext
5927
5928   # OK, works on sane cases.  Now check whether nonexistent headers
5929   # can be detected and how.
5930   cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h.  */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h.  */
5936 #include <ac_nonexistent.h>
5937 _ACEOF
5938 if { (ac_try="$ac_cpp conftest.$ac_ext"
5939 case "(($ac_try" in
5940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941   *) ac_try_echo=$ac_try;;
5942 esac
5943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5945   ac_status=$?
5946   grep -v '^ *+' conftest.er1 >conftest.err
5947   rm -f conftest.er1
5948   cat conftest.err >&5
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); } >/dev/null && {
5951          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5952          test ! -s conftest.err
5953        }; then
5954   # Broken: success on invalid input.
5955 continue
5956 else
5957   echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5959
5960   # Passes both tests.
5961 ac_preproc_ok=:
5962 break
5963 fi
5964
5965 rm -f conftest.err conftest.$ac_ext
5966
5967 done
5968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5969 rm -f conftest.err conftest.$ac_ext
5970 if $ac_preproc_ok; then
5971   break
5972 fi
5973
5974     done
5975     ac_cv_prog_CXXCPP=$CXXCPP
5976
5977 fi
5978   CXXCPP=$ac_cv_prog_CXXCPP
5979 else
5980   ac_cv_prog_CXXCPP=$CXXCPP
5981 fi
5982 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5983 echo "${ECHO_T}$CXXCPP" >&6; }
5984 ac_preproc_ok=false
5985 for ac_cxx_preproc_warn_flag in '' yes
5986 do
5987   # Use a header file that comes with gcc, so configuring glibc
5988   # with a fresh cross-compiler works.
5989   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5990   # <limits.h> exists even on freestanding compilers.
5991   # On the NeXT, cc -E runs the code through the compiler's parser,
5992   # not just through cpp. "Syntax error" is here to catch this case.
5993   cat >conftest.$ac_ext <<_ACEOF
5994 /* confdefs.h.  */
5995 _ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h.  */
5999 #ifdef __STDC__
6000 # include <limits.h>
6001 #else
6002 # include <assert.h>
6003 #endif
6004                      Syntax error
6005 _ACEOF
6006 if { (ac_try="$ac_cpp conftest.$ac_ext"
6007 case "(($ac_try" in
6008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009   *) ac_try_echo=$ac_try;;
6010 esac
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6013   ac_status=$?
6014   grep -v '^ *+' conftest.er1 >conftest.err
6015   rm -f conftest.er1
6016   cat conftest.err >&5
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); } >/dev/null && {
6019          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6020          test ! -s conftest.err
6021        }; then
6022   :
6023 else
6024   echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6026
6027   # Broken: fails on valid input.
6028 continue
6029 fi
6030
6031 rm -f conftest.err conftest.$ac_ext
6032
6033   # OK, works on sane cases.  Now check whether nonexistent headers
6034   # can be detected and how.
6035   cat >conftest.$ac_ext <<_ACEOF
6036 /* confdefs.h.  */
6037 _ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h.  */
6041 #include <ac_nonexistent.h>
6042 _ACEOF
6043 if { (ac_try="$ac_cpp conftest.$ac_ext"
6044 case "(($ac_try" in
6045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046   *) ac_try_echo=$ac_try;;
6047 esac
6048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6050   ac_status=$?
6051   grep -v '^ *+' conftest.er1 >conftest.err
6052   rm -f conftest.er1
6053   cat conftest.err >&5
6054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); } >/dev/null && {
6056          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6057          test ! -s conftest.err
6058        }; then
6059   # Broken: success on invalid input.
6060 continue
6061 else
6062   echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6064
6065   # Passes both tests.
6066 ac_preproc_ok=:
6067 break
6068 fi
6069
6070 rm -f conftest.err conftest.$ac_ext
6071
6072 done
6073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6074 rm -f conftest.err conftest.$ac_ext
6075 if $ac_preproc_ok; then
6076   :
6077 else
6078   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6079 See \`config.log' for more details." >&5
6080 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6081 See \`config.log' for more details." >&2;}
6082    { (exit 1); exit 1; }; }
6083 fi
6084
6085 ac_ext=cpp
6086 ac_cpp='$CXXCPP $CPPFLAGS'
6087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6090
6091 fi
6092
6093
6094 ac_ext=f
6095 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6096 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6097 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6098 if test -n "$ac_tool_prefix"; then
6099   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
6100   do
6101     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6105 if test "${ac_cv_prog_F77+set}" = set; then
6106   echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108   if test -n "$F77"; then
6109   ac_cv_prog_F77="$F77" # Let the user override the test.
6110 else
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6113 do
6114   IFS=$as_save_IFS
6115   test -z "$as_dir" && as_dir=.
6116   for ac_exec_ext in '' $ac_executable_extensions; do
6117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6118     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6120     break 2
6121   fi
6122 done
6123 done
6124 IFS=$as_save_IFS
6125
6126 fi
6127 fi
6128 F77=$ac_cv_prog_F77
6129 if test -n "$F77"; then
6130   { echo "$as_me:$LINENO: result: $F77" >&5
6131 echo "${ECHO_T}$F77" >&6; }
6132 else
6133   { echo "$as_me:$LINENO: result: no" >&5
6134 echo "${ECHO_T}no" >&6; }
6135 fi
6136
6137
6138     test -n "$F77" && break
6139   done
6140 fi
6141 if test -z "$F77"; then
6142   ac_ct_F77=$F77
6143   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
6144 do
6145   # Extract the first word of "$ac_prog", so it can be a program name with args.
6146 set dummy $ac_prog; ac_word=$2
6147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6150   echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152   if test -n "$ac_ct_F77"; then
6153   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6154 else
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6157 do
6158   IFS=$as_save_IFS
6159   test -z "$as_dir" && as_dir=.
6160   for ac_exec_ext in '' $ac_executable_extensions; do
6161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162     ac_cv_prog_ac_ct_F77="$ac_prog"
6163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164     break 2
6165   fi
6166 done
6167 done
6168 IFS=$as_save_IFS
6169
6170 fi
6171 fi
6172 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6173 if test -n "$ac_ct_F77"; then
6174   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6175 echo "${ECHO_T}$ac_ct_F77" >&6; }
6176 else
6177   { echo "$as_me:$LINENO: result: no" >&5
6178 echo "${ECHO_T}no" >&6; }
6179 fi
6180
6181
6182   test -n "$ac_ct_F77" && break
6183 done
6184
6185   if test "x$ac_ct_F77" = x; then
6186     F77=""
6187   else
6188     case $cross_compiling:$ac_tool_warned in
6189 yes:)
6190 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6191 whose name does not start with the host triplet.  If you think this
6192 configuration is useful to you, please write to autoconf@gnu.org." >&5
6193 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6194 whose name does not start with the host triplet.  If you think this
6195 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6196 ac_tool_warned=yes ;;
6197 esac
6198     F77=$ac_ct_F77
6199   fi
6200 fi
6201
6202
6203 # Provide some information about the compiler.
6204 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6205 ac_compiler=`set X $ac_compile; echo $2`
6206 { (ac_try="$ac_compiler --version >&5"
6207 case "(($ac_try" in
6208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209   *) ac_try_echo=$ac_try;;
6210 esac
6211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212   (eval "$ac_compiler --version >&5") 2>&5
6213   ac_status=$?
6214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215   (exit $ac_status); }
6216 { (ac_try="$ac_compiler -v >&5"
6217 case "(($ac_try" in
6218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219   *) ac_try_echo=$ac_try;;
6220 esac
6221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222   (eval "$ac_compiler -v >&5") 2>&5
6223   ac_status=$?
6224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225   (exit $ac_status); }
6226 { (ac_try="$ac_compiler -V >&5"
6227 case "(($ac_try" in
6228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229   *) ac_try_echo=$ac_try;;
6230 esac
6231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6232   (eval "$ac_compiler -V >&5") 2>&5
6233   ac_status=$?
6234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235   (exit $ac_status); }
6236 rm -f a.out
6237
6238 # If we don't use `.F' as extension, the preprocessor is not run on the
6239 # input file.  (Note that this only needs to work for GNU compilers.)
6240 ac_save_ext=$ac_ext
6241 ac_ext=F
6242 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6243 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6244 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6245   echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247   cat >conftest.$ac_ext <<_ACEOF
6248       program main
6249 #ifndef __GNUC__
6250        choke me
6251 #endif
6252
6253       end
6254 _ACEOF
6255 rm -f conftest.$ac_objext
6256 if { (ac_try="$ac_compile"
6257 case "(($ac_try" in
6258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259   *) ac_try_echo=$ac_try;;
6260 esac
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262   (eval "$ac_compile") 2>conftest.er1
6263   ac_status=$?
6264   grep -v '^ *+' conftest.er1 >conftest.err
6265   rm -f conftest.er1
6266   cat conftest.err >&5
6267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268   (exit $ac_status); } && {
6269          test -z "$ac_f77_werror_flag" ||
6270          test ! -s conftest.err
6271        } && test -s conftest.$ac_objext; then
6272   ac_compiler_gnu=yes
6273 else
6274   echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6276
6277         ac_compiler_gnu=no
6278 fi
6279
6280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6282
6283 fi
6284 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6285 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6286 ac_ext=$ac_save_ext
6287 ac_test_FFLAGS=${FFLAGS+set}
6288 ac_save_FFLAGS=$FFLAGS
6289 FFLAGS=
6290 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6291 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6292 if test "${ac_cv_prog_f77_g+set}" = set; then
6293   echo $ECHO_N "(cached) $ECHO_C" >&6
6294 else
6295   FFLAGS=-g
6296 cat >conftest.$ac_ext <<_ACEOF
6297       program main
6298
6299       end
6300 _ACEOF
6301 rm -f conftest.$ac_objext
6302 if { (ac_try="$ac_compile"
6303 case "(($ac_try" in
6304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6305   *) ac_try_echo=$ac_try;;
6306 esac
6307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6308   (eval "$ac_compile") 2>conftest.er1
6309   ac_status=$?
6310   grep -v '^ *+' conftest.er1 >conftest.err
6311   rm -f conftest.er1
6312   cat conftest.err >&5
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); } && {
6315          test -z "$ac_f77_werror_flag" ||
6316          test ! -s conftest.err
6317        } && test -s conftest.$ac_objext; then
6318   ac_cv_prog_f77_g=yes
6319 else
6320   echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6322
6323         ac_cv_prog_f77_g=no
6324 fi
6325
6326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327
6328 fi
6329 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6330 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6331 if test "$ac_test_FFLAGS" = set; then
6332   FFLAGS=$ac_save_FFLAGS
6333 elif test $ac_cv_prog_f77_g = yes; then
6334   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6335     FFLAGS="-g -O2"
6336   else
6337     FFLAGS="-g"
6338   fi
6339 else
6340   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6341     FFLAGS="-O2"
6342   else
6343     FFLAGS=
6344   fi
6345 fi
6346
6347 G77=`test $ac_compiler_gnu = yes && echo yes`
6348 ac_ext=c
6349 ac_cpp='$CPP $CPPFLAGS'
6350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6353
6354
6355
6356 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6357
6358 # find the maximum length of command line arguments
6359 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6360 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6361 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6362   echo $ECHO_N "(cached) $ECHO_C" >&6
6363 else
6364     i=0
6365   teststring="ABCD"
6366
6367   case $build_os in
6368   msdosdjgpp*)
6369     # On DJGPP, this test can blow up pretty badly due to problems in libc
6370     # (any single argument exceeding 2000 bytes causes a buffer overrun
6371     # during glob expansion).  Even if it were fixed, the result of this
6372     # check would be larger than it should be.
6373     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6374     ;;
6375
6376   gnu*)
6377     # Under GNU Hurd, this test is not required because there is
6378     # no limit to the length of command line arguments.
6379     # Libtool will interpret -1 as no limit whatsoever
6380     lt_cv_sys_max_cmd_len=-1;
6381     ;;
6382
6383   cygwin* | mingw*)
6384     # On Win9x/ME, this test blows up -- it succeeds, but takes
6385     # about 5 minutes as the teststring grows exponentially.
6386     # Worse, since 9x/ME are not pre-emptively multitasking,
6387     # you end up with a "frozen" computer, even though with patience
6388     # the test eventually succeeds (with a max line length of 256k).
6389     # Instead, let's just punt: use the minimum linelength reported by
6390     # all of the supported platforms: 8192 (on NT/2K/XP).
6391     lt_cv_sys_max_cmd_len=8192;
6392     ;;
6393
6394   amigaos*)
6395     # On AmigaOS with pdksh, this test takes hours, literally.
6396     # So we just punt and use a minimum line length of 8192.
6397     lt_cv_sys_max_cmd_len=8192;
6398     ;;
6399
6400   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6401     # This has been around since 386BSD, at least.  Likely further.
6402     if test -x /sbin/sysctl; then
6403       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6404     elif test -x /usr/sbin/sysctl; then
6405       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6406     else
6407       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6408     fi
6409     # And add a safety zone
6410     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6411     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6412     ;;
6413
6414   interix*)
6415     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6416     lt_cv_sys_max_cmd_len=196608
6417     ;;
6418
6419   osf*)
6420     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6421     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6422     # nice to cause kernel panics so lets avoid the loop below.
6423     # First set a reasonable default.
6424     lt_cv_sys_max_cmd_len=16384
6425     #
6426     if test -x /sbin/sysconfig; then
6427       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6428         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6429       esac
6430     fi
6431     ;;
6432   sco3.2v5*)
6433     lt_cv_sys_max_cmd_len=102400
6434     ;;
6435   sysv5* | sco5v6* | sysv4.2uw2*)
6436     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6437     if test -n "$kargmax"; then
6438       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6439     else
6440       lt_cv_sys_max_cmd_len=32768
6441     fi
6442     ;;
6443   *)
6444     # If test is not a shell built-in, we'll probably end up computing a
6445     # maximum length that is only half of the actual maximum length, but
6446     # we can't tell.
6447     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6448     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6449                = "XX$teststring") >/dev/null 2>&1 &&
6450             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6451             lt_cv_sys_max_cmd_len=$new_result &&
6452             test $i != 17 # 1/2 MB should be enough
6453     do
6454       i=`expr $i + 1`
6455       teststring=$teststring$teststring
6456     done
6457     teststring=
6458     # Add a significant safety factor because C++ compilers can tack on massive
6459     # amounts of additional arguments before passing them to the linker.
6460     # It appears as though 1/2 is a usable value.
6461     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6462     ;;
6463   esac
6464
6465 fi
6466
6467 if test -n $lt_cv_sys_max_cmd_len ; then
6468   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6469 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6470 else
6471   { echo "$as_me:$LINENO: result: none" >&5
6472 echo "${ECHO_T}none" >&6; }
6473 fi
6474
6475
6476
6477
6478 # Check for command to grab the raw symbol name followed by C symbol from nm.
6479 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6480 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6481 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6482   echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484
6485 # These are sane defaults that work on at least a few old systems.
6486 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6487
6488 # Character class describing NM global symbol codes.
6489 symcode='[BCDEGRST]'
6490
6491 # Regexp to match symbols that can be accessed directly from C.
6492 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6493
6494 # Transform an extracted symbol line into a proper C declaration
6495 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6496
6497 # Transform an extracted symbol line into symbol name and symbol address
6498 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'"
6499
6500 # Define system-specific variables.
6501 case $host_os in
6502 aix*)
6503   symcode='[BCDT]'
6504   ;;
6505 cygwin* | mingw* | pw32*)
6506   symcode='[ABCDGISTW]'
6507   ;;
6508 hpux*) # Its linker distinguishes data from code symbols
6509   if test "$host_cpu" = ia64; then
6510     symcode='[ABCDEGRST]'
6511   fi
6512   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6513   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'"
6514   ;;
6515 linux*)
6516   if test "$host_cpu" = ia64; then
6517     symcode='[ABCDGIRSTW]'
6518     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6519     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'"
6520   fi
6521   ;;
6522 irix* | nonstopux*)
6523   symcode='[BCDEGRST]'
6524   ;;
6525 osf*)
6526   symcode='[BCDEGQRST]'
6527   ;;
6528 solaris*)
6529   symcode='[BDRT]'
6530   ;;
6531 sco3.2v5*)
6532   symcode='[DT]'
6533   ;;
6534 sysv4.2uw2*)
6535   symcode='[DT]'
6536   ;;
6537 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6538   symcode='[ABDT]'
6539   ;;
6540 sysv4)
6541   symcode='[DFNSTU]'
6542   ;;
6543 esac
6544
6545 # Handle CRLF in mingw tool chain
6546 opt_cr=
6547 case $build_os in
6548 mingw*)
6549   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6550   ;;
6551 esac
6552
6553 # If we're using GNU nm, then use its standard symbol codes.
6554 case `$NM -V 2>&1` in
6555 *GNU* | *'with BFD'*)
6556   symcode='[ABCDGIRSTW]' ;;
6557 esac
6558
6559 # Try without a prefix undercore, then with it.
6560 for ac_symprfx in "" "_"; do
6561
6562   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6563   symxfrm="\\1 $ac_symprfx\\2 \\2"
6564
6565   # Write the raw and C identifiers.
6566   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6567
6568   # Check to see that the pipe works correctly.
6569   pipe_works=no
6570
6571   rm -f conftest*
6572   cat > conftest.$ac_ext <<EOF
6573 #ifdef __cplusplus
6574 extern "C" {
6575 #endif
6576 char nm_test_var;
6577 void nm_test_func(){}
6578 #ifdef __cplusplus
6579 }
6580 #endif
6581 int main(){nm_test_var='a';nm_test_func();return(0);}
6582 EOF
6583
6584   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6585   (eval $ac_compile) 2>&5
6586   ac_status=$?
6587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588   (exit $ac_status); }; then
6589     # Now try to grab the symbols.
6590     nlist=conftest.nm
6591     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6592   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6593   ac_status=$?
6594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595   (exit $ac_status); } && test -s "$nlist"; then
6596       # Try sorting and uniquifying the output.
6597       if sort "$nlist" | uniq > "$nlist"T; then
6598         mv -f "$nlist"T "$nlist"
6599       else
6600         rm -f "$nlist"T
6601       fi
6602
6603       # Make sure that we snagged all the symbols we need.
6604       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6605         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6606           cat <<EOF > conftest.$ac_ext
6607 #ifdef __cplusplus
6608 extern "C" {
6609 #endif
6610
6611 EOF
6612           # Now generate the symbol file.
6613           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6614
6615           cat <<EOF >> conftest.$ac_ext
6616 #if defined (__STDC__) && __STDC__
6617 # define lt_ptr_t void *
6618 #else
6619 # define lt_ptr_t char *
6620 # define const
6621 #endif
6622
6623 /* The mapping between symbol names and symbols. */
6624 const struct {
6625   const char *name;
6626   lt_ptr_t address;
6627 }
6628 lt_preloaded_symbols[] =
6629 {
6630 EOF
6631           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6632           cat <<\EOF >> conftest.$ac_ext
6633   {0, (lt_ptr_t) 0}
6634 };
6635
6636 #ifdef __cplusplus
6637 }
6638 #endif
6639 EOF
6640           # Now try linking the two files.
6641           mv conftest.$ac_objext conftstm.$ac_objext
6642           lt_save_LIBS="$LIBS"
6643           lt_save_CFLAGS="$CFLAGS"
6644           LIBS="conftstm.$ac_objext"
6645           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6646           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6647   (eval $ac_link) 2>&5
6648   ac_status=$?
6649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6651             pipe_works=yes
6652           fi
6653           LIBS="$lt_save_LIBS"
6654           CFLAGS="$lt_save_CFLAGS"
6655         else
6656           echo "cannot find nm_test_func in $nlist" >&5
6657         fi
6658       else
6659         echo "cannot find nm_test_var in $nlist" >&5
6660       fi
6661     else
6662       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6663     fi
6664   else
6665     echo "$progname: failed program was:" >&5
6666     cat conftest.$ac_ext >&5
6667   fi
6668   rm -f conftest* conftst*
6669
6670   # Do not use the global_symbol_pipe unless it works.
6671   if test "$pipe_works" = yes; then
6672     break
6673   else
6674     lt_cv_sys_global_symbol_pipe=
6675   fi
6676 done
6677
6678 fi
6679
6680 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6681   lt_cv_sys_global_symbol_to_cdecl=
6682 fi
6683 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6684   { echo "$as_me:$LINENO: result: failed" >&5
6685 echo "${ECHO_T}failed" >&6; }
6686 else
6687   { echo "$as_me:$LINENO: result: ok" >&5
6688 echo "${ECHO_T}ok" >&6; }
6689 fi
6690
6691 { echo "$as_me:$LINENO: checking for objdir" >&5
6692 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6693 if test "${lt_cv_objdir+set}" = set; then
6694   echo $ECHO_N "(cached) $ECHO_C" >&6
6695 else
6696   rm -f .libs 2>/dev/null
6697 mkdir .libs 2>/dev/null
6698 if test -d .libs; then
6699   lt_cv_objdir=.libs
6700 else
6701   # MS-DOS does not allow filenames that begin with a dot.
6702   lt_cv_objdir=_libs
6703 fi
6704 rmdir .libs 2>/dev/null
6705 fi
6706 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6707 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6708 objdir=$lt_cv_objdir
6709
6710
6711
6712
6713
6714 case $host_os in
6715 aix3*)
6716   # AIX sometimes has problems with the GCC collect2 program.  For some
6717   # reason, if we set the COLLECT_NAMES environment variable, the problems
6718   # vanish in a puff of smoke.
6719   if test "X${COLLECT_NAMES+set}" != Xset; then
6720     COLLECT_NAMES=
6721     export COLLECT_NAMES
6722   fi
6723   ;;
6724 esac
6725
6726 # Sed substitution that helps us do robust quoting.  It backslashifies
6727 # metacharacters that are still active within double-quoted strings.
6728 Xsed='sed -e 1s/^X//'
6729 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6730
6731 # Same as above, but do not quote variable references.
6732 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6733
6734 # Sed substitution to delay expansion of an escaped shell variable in a
6735 # double_quote_subst'ed string.
6736 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6737
6738 # Sed substitution to avoid accidental globbing in evaled expressions
6739 no_glob_subst='s/\*/\\\*/g'
6740
6741 # Constants:
6742 rm="rm -f"
6743
6744 # Global variables:
6745 default_ofile=libtool
6746 can_build_shared=yes
6747
6748 # All known linkers require a `.a' archive for static linking (except MSVC,
6749 # which needs '.lib').
6750 libext=a
6751 ltmain="$ac_aux_dir/ltmain.sh"
6752 ofile="$default_ofile"
6753 with_gnu_ld="$lt_cv_prog_gnu_ld"
6754
6755 if test -n "$ac_tool_prefix"; then
6756   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6757 set dummy ${ac_tool_prefix}ar; ac_word=$2
6758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6760 if test "${ac_cv_prog_AR+set}" = set; then
6761   echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763   if test -n "$AR"; then
6764   ac_cv_prog_AR="$AR" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769   IFS=$as_save_IFS
6770   test -z "$as_dir" && as_dir=.
6771   for ac_exec_ext in '' $ac_executable_extensions; do
6772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773     ac_cv_prog_AR="${ac_tool_prefix}ar"
6774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775     break 2
6776   fi
6777 done
6778 done
6779 IFS=$as_save_IFS
6780
6781 fi
6782 fi
6783 AR=$ac_cv_prog_AR
6784 if test -n "$AR"; then
6785   { echo "$as_me:$LINENO: result: $AR" >&5
6786 echo "${ECHO_T}$AR" >&6; }
6787 else
6788   { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6790 fi
6791
6792
6793 fi
6794 if test -z "$ac_cv_prog_AR"; then
6795   ac_ct_AR=$AR
6796   # Extract the first word of "ar", so it can be a program name with args.
6797 set dummy ar; ac_word=$2
6798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6801   echo $ECHO_N "(cached) $ECHO_C" >&6
6802 else
6803   if test -n "$ac_ct_AR"; then
6804   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809   IFS=$as_save_IFS
6810   test -z "$as_dir" && as_dir=.
6811   for ac_exec_ext in '' $ac_executable_extensions; do
6812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6813     ac_cv_prog_ac_ct_AR="ar"
6814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815     break 2
6816   fi
6817 done
6818 done
6819 IFS=$as_save_IFS
6820
6821 fi
6822 fi
6823 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6824 if test -n "$ac_ct_AR"; then
6825   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6826 echo "${ECHO_T}$ac_ct_AR" >&6; }
6827 else
6828   { echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6; }
6830 fi
6831
6832   if test "x$ac_ct_AR" = x; then
6833     AR="false"
6834   else
6835     case $cross_compiling:$ac_tool_warned in
6836 yes:)
6837 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6838 whose name does not start with the host triplet.  If you think this
6839 configuration is useful to you, please write to autoconf@gnu.org." >&5
6840 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6841 whose name does not start with the host triplet.  If you think this
6842 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6843 ac_tool_warned=yes ;;
6844 esac
6845     AR=$ac_ct_AR
6846   fi
6847 else
6848   AR="$ac_cv_prog_AR"
6849 fi
6850
6851 if test -n "$ac_tool_prefix"; then
6852   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6853 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6856 if test "${ac_cv_prog_RANLIB+set}" = set; then
6857   echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859   if test -n "$RANLIB"; then
6860   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865   IFS=$as_save_IFS
6866   test -z "$as_dir" && as_dir=.
6867   for ac_exec_ext in '' $ac_executable_extensions; do
6868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871     break 2
6872   fi
6873 done
6874 done
6875 IFS=$as_save_IFS
6876
6877 fi
6878 fi
6879 RANLIB=$ac_cv_prog_RANLIB
6880 if test -n "$RANLIB"; then
6881   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6882 echo "${ECHO_T}$RANLIB" >&6; }
6883 else
6884   { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6886 fi
6887
6888
6889 fi
6890 if test -z "$ac_cv_prog_RANLIB"; then
6891   ac_ct_RANLIB=$RANLIB
6892   # Extract the first word of "ranlib", so it can be a program name with args.
6893 set dummy ranlib; ac_word=$2
6894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6897   echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899   if test -n "$ac_ct_RANLIB"; then
6900   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905   IFS=$as_save_IFS
6906   test -z "$as_dir" && as_dir=.
6907   for ac_exec_ext in '' $ac_executable_extensions; do
6908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909     ac_cv_prog_ac_ct_RANLIB="ranlib"
6910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6911     break 2
6912   fi
6913 done
6914 done
6915 IFS=$as_save_IFS
6916
6917 fi
6918 fi
6919 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6920 if test -n "$ac_ct_RANLIB"; then
6921   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6922 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6923 else
6924   { echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6; }
6926 fi
6927
6928   if test "x$ac_ct_RANLIB" = x; then
6929     RANLIB=":"
6930   else
6931     case $cross_compiling:$ac_tool_warned in
6932 yes:)
6933 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6934 whose name does not start with the host triplet.  If you think this
6935 configuration is useful to you, please write to autoconf@gnu.org." >&5
6936 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6937 whose name does not start with the host triplet.  If you think this
6938 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6939 ac_tool_warned=yes ;;
6940 esac
6941     RANLIB=$ac_ct_RANLIB
6942   fi
6943 else
6944   RANLIB="$ac_cv_prog_RANLIB"
6945 fi
6946
6947 if test -n "$ac_tool_prefix"; then
6948   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6949 set dummy ${ac_tool_prefix}strip; ac_word=$2
6950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6952 if test "${ac_cv_prog_STRIP+set}" = set; then
6953   echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955   if test -n "$STRIP"; then
6956   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6957 else
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6960 do
6961   IFS=$as_save_IFS
6962   test -z "$as_dir" && as_dir=.
6963   for ac_exec_ext in '' $ac_executable_extensions; do
6964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6965     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967     break 2
6968   fi
6969 done
6970 done
6971 IFS=$as_save_IFS
6972
6973 fi
6974 fi
6975 STRIP=$ac_cv_prog_STRIP
6976 if test -n "$STRIP"; then
6977   { echo "$as_me:$LINENO: result: $STRIP" >&5
6978 echo "${ECHO_T}$STRIP" >&6; }
6979 else
6980   { echo "$as_me:$LINENO: result: no" >&5
6981 echo "${ECHO_T}no" >&6; }
6982 fi
6983
6984
6985 fi
6986 if test -z "$ac_cv_prog_STRIP"; then
6987   ac_ct_STRIP=$STRIP
6988   # Extract the first word of "strip", so it can be a program name with args.
6989 set dummy strip; ac_word=$2
6990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6993   echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995   if test -n "$ac_ct_STRIP"; then
6996   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001   IFS=$as_save_IFS
7002   test -z "$as_dir" && as_dir=.
7003   for ac_exec_ext in '' $ac_executable_extensions; do
7004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005     ac_cv_prog_ac_ct_STRIP="strip"
7006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007     break 2
7008   fi
7009 done
7010 done
7011 IFS=$as_save_IFS
7012
7013 fi
7014 fi
7015 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7016 if test -n "$ac_ct_STRIP"; then
7017   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7018 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7019 else
7020   { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7022 fi
7023
7024   if test "x$ac_ct_STRIP" = x; then
7025     STRIP=":"
7026   else
7027     case $cross_compiling:$ac_tool_warned in
7028 yes:)
7029 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7030 whose name does not start with the host triplet.  If you think this
7031 configuration is useful to you, please write to autoconf@gnu.org." >&5
7032 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7033 whose name does not start with the host triplet.  If you think this
7034 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7035 ac_tool_warned=yes ;;
7036 esac
7037     STRIP=$ac_ct_STRIP
7038   fi
7039 else
7040   STRIP="$ac_cv_prog_STRIP"
7041 fi
7042
7043
7044 old_CC="$CC"
7045 old_CFLAGS="$CFLAGS"
7046
7047 # Set sane defaults for various variables
7048 test -z "$AR" && AR=ar
7049 test -z "$AR_FLAGS" && AR_FLAGS=cru
7050 test -z "$AS" && AS=as
7051 test -z "$CC" && CC=cc
7052 test -z "$LTCC" && LTCC=$CC
7053 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7054 test -z "$DLLTOOL" && DLLTOOL=dlltool
7055 test -z "$LD" && LD=ld
7056 test -z "$LN_S" && LN_S="ln -s"
7057 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7058 test -z "$NM" && NM=nm
7059 test -z "$SED" && SED=sed
7060 test -z "$OBJDUMP" && OBJDUMP=objdump
7061 test -z "$RANLIB" && RANLIB=:
7062 test -z "$STRIP" && STRIP=:
7063 test -z "$ac_objext" && ac_objext=o
7064
7065 # Determine commands to create old-style static archives.
7066 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7067 old_postinstall_cmds='chmod 644 $oldlib'
7068 old_postuninstall_cmds=
7069
7070 if test -n "$RANLIB"; then
7071   case $host_os in
7072   openbsd*)
7073     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7074     ;;
7075   *)
7076     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7077     ;;
7078   esac
7079   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7080 fi
7081
7082 for cc_temp in $compiler""; do
7083   case $cc_temp in
7084     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7085     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7086     \-*) ;;
7087     *) break;;
7088   esac
7089 done
7090 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7091
7092
7093 # Only perform the check for file, if the check method requires it
7094 case $deplibs_check_method in
7095 file_magic*)
7096   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7097     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7098 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7099 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7100   echo $ECHO_N "(cached) $ECHO_C" >&6
7101 else
7102   case $MAGIC_CMD in
7103 [\\/*] |  ?:[\\/]*)
7104   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7105   ;;
7106 *)
7107   lt_save_MAGIC_CMD="$MAGIC_CMD"
7108   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7109   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7110   for ac_dir in $ac_dummy; do
7111     IFS="$lt_save_ifs"
7112     test -z "$ac_dir" && ac_dir=.
7113     if test -f $ac_dir/${ac_tool_prefix}file; then
7114       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7115       if test -n "$file_magic_test_file"; then
7116         case $deplibs_check_method in
7117         "file_magic "*)
7118           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7119           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7120           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7121             $EGREP "$file_magic_regex" > /dev/null; then
7122             :
7123           else
7124             cat <<EOF 1>&2
7125
7126 *** Warning: the command libtool uses to detect shared libraries,
7127 *** $file_magic_cmd, produces output that libtool cannot recognize.
7128 *** The result is that libtool may fail to recognize shared libraries
7129 *** as such.  This will affect the creation of libtool libraries that
7130 *** depend on shared libraries, but programs linked with such libtool
7131 *** libraries will work regardless of this problem.  Nevertheless, you
7132 *** may want to report the problem to your system manager and/or to
7133 *** bug-libtool@gnu.org
7134
7135 EOF
7136           fi ;;
7137         esac
7138       fi
7139       break
7140     fi
7141   done
7142   IFS="$lt_save_ifs"
7143   MAGIC_CMD="$lt_save_MAGIC_CMD"
7144   ;;
7145 esac
7146 fi
7147
7148 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7149 if test -n "$MAGIC_CMD"; then
7150   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7151 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7152 else
7153   { echo "$as_me:$LINENO: result: no" >&5
7154 echo "${ECHO_T}no" >&6; }
7155 fi
7156
7157 if test -z "$lt_cv_path_MAGIC_CMD"; then
7158   if test -n "$ac_tool_prefix"; then
7159     { echo "$as_me:$LINENO: checking for file" >&5
7160 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7161 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7162   echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164   case $MAGIC_CMD in
7165 [\\/*] |  ?:[\\/]*)
7166   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7167   ;;
7168 *)
7169   lt_save_MAGIC_CMD="$MAGIC_CMD"
7170   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7171   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7172   for ac_dir in $ac_dummy; do
7173     IFS="$lt_save_ifs"
7174     test -z "$ac_dir" && ac_dir=.
7175     if test -f $ac_dir/file; then
7176       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7177       if test -n "$file_magic_test_file"; then
7178         case $deplibs_check_method in
7179         "file_magic "*)
7180           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7181           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7182           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7183             $EGREP "$file_magic_regex" > /dev/null; then
7184             :
7185           else
7186             cat <<EOF 1>&2
7187
7188 *** Warning: the command libtool uses to detect shared libraries,
7189 *** $file_magic_cmd, produces output that libtool cannot recognize.
7190 *** The result is that libtool may fail to recognize shared libraries
7191 *** as such.  This will affect the creation of libtool libraries that
7192 *** depend on shared libraries, but programs linked with such libtool
7193 *** libraries will work regardless of this problem.  Nevertheless, you
7194 *** may want to report the problem to your system manager and/or to
7195 *** bug-libtool@gnu.org
7196
7197 EOF
7198           fi ;;
7199         esac
7200       fi
7201       break
7202     fi
7203   done
7204   IFS="$lt_save_ifs"
7205   MAGIC_CMD="$lt_save_MAGIC_CMD"
7206   ;;
7207 esac
7208 fi
7209
7210 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7211 if test -n "$MAGIC_CMD"; then
7212   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7213 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7214 else
7215   { echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6; }
7217 fi
7218
7219   else
7220     MAGIC_CMD=:
7221   fi
7222 fi
7223
7224   fi
7225   ;;
7226 esac
7227
7228 enable_dlopen=yes
7229 enable_win32_dll=no
7230
7231 # Check whether --enable-libtool-lock was given.
7232 if test "${enable_libtool_lock+set}" = set; then
7233   enableval=$enable_libtool_lock;
7234 fi
7235
7236 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7237
7238
7239 # Check whether --with-pic was given.
7240 if test "${with_pic+set}" = set; then
7241   withval=$with_pic; pic_mode="$withval"
7242 else
7243   pic_mode=default
7244 fi
7245
7246 test -z "$pic_mode" && pic_mode=default
7247
7248 # Use C for the default configuration in the libtool script
7249 tagname=
7250 lt_save_CC="$CC"
7251 ac_ext=c
7252 ac_cpp='$CPP $CPPFLAGS'
7253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7256
7257
7258 # Source file extension for C test sources.
7259 ac_ext=c
7260
7261 # Object file extension for compiled C test sources.
7262 objext=o
7263 objext=$objext
7264
7265 # Code to be used in simple compile tests
7266 lt_simple_compile_test_code="int some_variable = 0;\n"
7267
7268 # Code to be used in simple link tests
7269 lt_simple_link_test_code='int main(){return(0);}\n'
7270
7271
7272 # If no C compiler was specified, use CC.
7273 LTCC=${LTCC-"$CC"}
7274
7275 # If no C compiler flags were specified, use CFLAGS.
7276 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7277
7278 # Allow CC to be a program name with arguments.
7279 compiler=$CC
7280
7281
7282 # save warnings/boilerplate of simple test code
7283 ac_outfile=conftest.$ac_objext
7284 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7285 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7286 _lt_compiler_boilerplate=`cat conftest.err`
7287 $rm conftest*
7288
7289 ac_outfile=conftest.$ac_objext
7290 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7291 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7292 _lt_linker_boilerplate=`cat conftest.err`
7293 $rm conftest*
7294
7295
7296 ## CAVEAT EMPTOR:
7297 ## There is no encapsulation within the following macros, do not change
7298 ## the running order or otherwise move them around unless you know exactly
7299 ## what you are doing...
7300
7301 lt_prog_compiler_no_builtin_flag=
7302
7303 if test "$GCC" = yes; then
7304   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7305
7306
7307 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7308 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7309 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7310   echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312   lt_cv_prog_compiler_rtti_exceptions=no
7313   ac_outfile=conftest.$ac_objext
7314    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7315    lt_compiler_flag="-fno-rtti -fno-exceptions"
7316    # Insert the option either (1) after the last *FLAGS variable, or
7317    # (2) before a word containing "conftest.", or (3) at the end.
7318    # Note that $ac_compile itself does not contain backslashes and begins
7319    # with a dollar sign (not a hyphen), so the echo should work correctly.
7320    # The option is referenced via a variable to avoid confusing sed.
7321    lt_compile=`echo "$ac_compile" | $SED \
7322    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7323    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7324    -e 's:$: $lt_compiler_flag:'`
7325    (eval echo "\"\$as_me:7325: $lt_compile\"" >&5)
7326    (eval "$lt_compile" 2>conftest.err)
7327    ac_status=$?
7328    cat conftest.err >&5
7329    echo "$as_me:7329: \$? = $ac_status" >&5
7330    if (exit $ac_status) && test -s "$ac_outfile"; then
7331      # The compiler can only warn and ignore the option if not recognized
7332      # So say no if there are warnings other than the usual output.
7333      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7334      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7335      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7336        lt_cv_prog_compiler_rtti_exceptions=yes
7337      fi
7338    fi
7339    $rm conftest*
7340
7341 fi
7342 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7343 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7344
7345 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7346     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7347 else
7348     :
7349 fi
7350
7351 fi
7352
7353 lt_prog_compiler_wl=
7354 lt_prog_compiler_pic=
7355 lt_prog_compiler_static=
7356
7357 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7358 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7359
7360   if test "$GCC" = yes; then
7361     lt_prog_compiler_wl='-Wl,'
7362     lt_prog_compiler_static='-static'
7363
7364     case $host_os in
7365       aix*)
7366       # All AIX code is PIC.
7367       if test "$host_cpu" = ia64; then
7368         # AIX 5 now supports IA64 processor
7369         lt_prog_compiler_static='-Bstatic'
7370       fi
7371       ;;
7372
7373     amigaos*)
7374       # FIXME: we need at least 68020 code to build shared libraries, but
7375       # adding the `-m68020' flag to GCC prevents building anything better,
7376       # like `-m68040'.
7377       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7378       ;;
7379
7380     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7381       # PIC is the default for these OSes.
7382       ;;
7383
7384     mingw* | pw32* | os2*)
7385       # This hack is so that the source file can tell whether it is being
7386       # built for inclusion in a dll (and should export symbols for example).
7387       lt_prog_compiler_pic='-DDLL_EXPORT'
7388       ;;
7389
7390     darwin* | rhapsody*)
7391       # PIC is the default on this platform
7392       # Common symbols not allowed in MH_DYLIB files
7393       lt_prog_compiler_pic='-fno-common'
7394       ;;
7395
7396     interix3*)
7397       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7398       # Instead, we relocate shared libraries at runtime.
7399       ;;
7400
7401     msdosdjgpp*)
7402       # Just because we use GCC doesn't mean we suddenly get shared libraries
7403       # on systems that don't support them.
7404       lt_prog_compiler_can_build_shared=no
7405       enable_shared=no
7406       ;;
7407
7408     sysv4*MP*)
7409       if test -d /usr/nec; then
7410         lt_prog_compiler_pic=-Kconform_pic
7411       fi
7412       ;;
7413
7414     hpux*)
7415       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7416       # not for PA HP-UX.
7417       case $host_cpu in
7418       hppa*64*|ia64*)
7419         # +Z the default
7420         ;;
7421       *)
7422         lt_prog_compiler_pic='-fPIC'
7423         ;;
7424       esac
7425       ;;
7426
7427     *)
7428       lt_prog_compiler_pic='-fPIC'
7429       ;;
7430     esac
7431   else
7432     # PORTME Check for flag to pass linker flags through the system compiler.
7433     case $host_os in
7434     aix*)
7435       lt_prog_compiler_wl='-Wl,'
7436       if test "$host_cpu" = ia64; then
7437         # AIX 5 now supports IA64 processor
7438         lt_prog_compiler_static='-Bstatic'
7439       else
7440         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7441       fi
7442       ;;
7443       darwin*)
7444         # PIC is the default on this platform
7445         # Common symbols not allowed in MH_DYLIB files
7446        case $cc_basename in
7447          xlc*)
7448          lt_prog_compiler_pic='-qnocommon'
7449          lt_prog_compiler_wl='-Wl,'
7450          ;;
7451        esac
7452        ;;
7453
7454     mingw* | pw32* | os2*)
7455       # This hack is so that the source file can tell whether it is being
7456       # built for inclusion in a dll (and should export symbols for example).
7457       lt_prog_compiler_pic='-DDLL_EXPORT'
7458       ;;
7459
7460     hpux9* | hpux10* | hpux11*)
7461       lt_prog_compiler_wl='-Wl,'
7462       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7463       # not for PA HP-UX.
7464       case $host_cpu in
7465       hppa*64*|ia64*)
7466         # +Z the default
7467         ;;
7468       *)
7469         lt_prog_compiler_pic='+Z'
7470         ;;
7471       esac
7472       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7473       lt_prog_compiler_static='${wl}-a ${wl}archive'
7474       ;;
7475
7476     irix5* | irix6* | nonstopux*)
7477       lt_prog_compiler_wl='-Wl,'
7478       # PIC (with -KPIC) is the default.
7479       lt_prog_compiler_static='-non_shared'
7480       ;;
7481
7482     newsos6)
7483       lt_prog_compiler_pic='-KPIC'
7484       lt_prog_compiler_static='-Bstatic'
7485       ;;
7486
7487     linux*)
7488       case $cc_basename in
7489       icc* | ecc*)
7490         lt_prog_compiler_wl='-Wl,'
7491         lt_prog_compiler_pic='-KPIC'
7492         lt_prog_compiler_static='-static'
7493         ;;
7494       pgcc* | pgf77* | pgf90* | pgf95*)
7495         # Portland Group compilers (*not* the Pentium gcc compiler,
7496         # which looks to be a dead project)
7497         lt_prog_compiler_wl='-Wl,'
7498         lt_prog_compiler_pic='-fpic'
7499         lt_prog_compiler_static='-Bstatic'
7500         ;;
7501       ccc*)
7502         lt_prog_compiler_wl='-Wl,'
7503         # All Alpha code is PIC.
7504         lt_prog_compiler_static='-non_shared'
7505         ;;
7506       esac
7507       ;;
7508
7509     osf3* | osf4* | osf5*)
7510       lt_prog_compiler_wl='-Wl,'
7511       # All OSF/1 code is PIC.
7512       lt_prog_compiler_static='-non_shared'
7513       ;;
7514
7515     solaris*)
7516       lt_prog_compiler_pic='-KPIC'
7517       lt_prog_compiler_static='-Bstatic'
7518       case $cc_basename in
7519       f77* | f90* | f95*)
7520         lt_prog_compiler_wl='-Qoption ld ';;
7521       *)
7522         lt_prog_compiler_wl='-Wl,';;
7523       esac
7524       ;;
7525
7526     sunos4*)
7527       lt_prog_compiler_wl='-Qoption ld '
7528       lt_prog_compiler_pic='-PIC'
7529       lt_prog_compiler_static='-Bstatic'
7530       ;;
7531
7532     sysv4 | sysv4.2uw2* | sysv4.3*)
7533       lt_prog_compiler_wl='-Wl,'
7534       lt_prog_compiler_pic='-KPIC'
7535       lt_prog_compiler_static='-Bstatic'
7536       ;;
7537
7538     sysv4*MP*)
7539       if test -d /usr/nec ;then
7540         lt_prog_compiler_pic='-Kconform_pic'
7541         lt_prog_compiler_static='-Bstatic'
7542       fi
7543       ;;
7544
7545     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7546       lt_prog_compiler_wl='-Wl,'
7547       lt_prog_compiler_pic='-KPIC'
7548       lt_prog_compiler_static='-Bstatic'
7549       ;;
7550
7551     unicos*)
7552       lt_prog_compiler_wl='-Wl,'
7553       lt_prog_compiler_can_build_shared=no
7554       ;;
7555
7556     uts4*)
7557       lt_prog_compiler_pic='-pic'
7558       lt_prog_compiler_static='-Bstatic'
7559       ;;
7560
7561     *)
7562       lt_prog_compiler_can_build_shared=no
7563       ;;
7564     esac
7565   fi
7566
7567 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7568 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7569
7570 #
7571 # Check to make sure the PIC flag actually works.
7572 #
7573 if test -n "$lt_prog_compiler_pic"; then
7574
7575 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7576 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7577 if test "${lt_prog_compiler_pic_works+set}" = set; then
7578   echo $ECHO_N "(cached) $ECHO_C" >&6
7579 else
7580   lt_prog_compiler_pic_works=no
7581   ac_outfile=conftest.$ac_objext
7582    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7583    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7584    # Insert the option either (1) after the last *FLAGS variable, or
7585    # (2) before a word containing "conftest.", or (3) at the end.
7586    # Note that $ac_compile itself does not contain backslashes and begins
7587    # with a dollar sign (not a hyphen), so the echo should work correctly.
7588    # The option is referenced via a variable to avoid confusing sed.
7589    lt_compile=`echo "$ac_compile" | $SED \
7590    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7591    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7592    -e 's:$: $lt_compiler_flag:'`
7593    (eval echo "\"\$as_me:7593: $lt_compile\"" >&5)
7594    (eval "$lt_compile" 2>conftest.err)
7595    ac_status=$?
7596    cat conftest.err >&5
7597    echo "$as_me:7597: \$? = $ac_status" >&5
7598    if (exit $ac_status) && test -s "$ac_outfile"; then
7599      # The compiler can only warn and ignore the option if not recognized
7600      # So say no if there are warnings other than the usual output.
7601      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7602      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7603      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7604        lt_prog_compiler_pic_works=yes
7605      fi
7606    fi
7607    $rm conftest*
7608
7609 fi
7610 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7611 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7612
7613 if test x"$lt_prog_compiler_pic_works" = xyes; then
7614     case $lt_prog_compiler_pic in
7615      "" | " "*) ;;
7616      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7617      esac
7618 else
7619     lt_prog_compiler_pic=
7620      lt_prog_compiler_can_build_shared=no
7621 fi
7622
7623 fi
7624 case $host_os in
7625   # For platforms which do not support PIC, -DPIC is meaningless:
7626   *djgpp*)
7627     lt_prog_compiler_pic=
7628     ;;
7629   *)
7630     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7631     ;;
7632 esac
7633
7634 #
7635 # Check to make sure the static flag actually works.
7636 #
7637 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7638 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7639 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7640 if test "${lt_prog_compiler_static_works+set}" = set; then
7641   echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643   lt_prog_compiler_static_works=no
7644    save_LDFLAGS="$LDFLAGS"
7645    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7646    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7647    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7648      # The linker can only warn and ignore the option if not recognized
7649      # So say no if there are warnings
7650      if test -s conftest.err; then
7651        # Append any errors to the config.log.
7652        cat conftest.err 1>&5
7653        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7654        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7655        if diff conftest.exp conftest.er2 >/dev/null; then
7656          lt_prog_compiler_static_works=yes
7657        fi
7658      else
7659        lt_prog_compiler_static_works=yes
7660      fi
7661    fi
7662    $rm conftest*
7663    LDFLAGS="$save_LDFLAGS"
7664
7665 fi
7666 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7667 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7668
7669 if test x"$lt_prog_compiler_static_works" = xyes; then
7670     :
7671 else
7672     lt_prog_compiler_static=
7673 fi
7674
7675
7676 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7677 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7678 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7679   echo $ECHO_N "(cached) $ECHO_C" >&6
7680 else
7681   lt_cv_prog_compiler_c_o=no
7682    $rm -r conftest 2>/dev/null
7683    mkdir conftest
7684    cd conftest
7685    mkdir out
7686    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7687
7688    lt_compiler_flag="-o out/conftest2.$ac_objext"
7689    # Insert the option either (1) after the last *FLAGS variable, or
7690    # (2) before a word containing "conftest.", or (3) at the end.
7691    # Note that $ac_compile itself does not contain backslashes and begins
7692    # with a dollar sign (not a hyphen), so the echo should work correctly.
7693    lt_compile=`echo "$ac_compile" | $SED \
7694    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7695    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7696    -e 's:$: $lt_compiler_flag:'`
7697    (eval echo "\"\$as_me:7697: $lt_compile\"" >&5)
7698    (eval "$lt_compile" 2>out/conftest.err)
7699    ac_status=$?
7700    cat out/conftest.err >&5
7701    echo "$as_me:7701: \$? = $ac_status" >&5
7702    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7703    then
7704      # The compiler can only warn and ignore the option if not recognized
7705      # So say no if there are warnings
7706      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7707      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7708      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7709        lt_cv_prog_compiler_c_o=yes
7710      fi
7711    fi
7712    chmod u+w . 2>&5
7713    $rm conftest*
7714    # SGI C++ compiler will create directory out/ii_files/ for
7715    # template instantiation
7716    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7717    $rm out/* && rmdir out
7718    cd ..
7719    rmdir conftest
7720    $rm conftest*
7721
7722 fi
7723 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7724 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7725
7726
7727 hard_links="nottested"
7728 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7729   # do not overwrite the value of need_locks provided by the user
7730   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7731 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7732   hard_links=yes
7733   $rm conftest*
7734   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7735   touch conftest.a
7736   ln conftest.a conftest.b 2>&5 || hard_links=no
7737   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7738   { echo "$as_me:$LINENO: result: $hard_links" >&5
7739 echo "${ECHO_T}$hard_links" >&6; }
7740   if test "$hard_links" = no; then
7741     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7742 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7743     need_locks=warn
7744   fi
7745 else
7746   need_locks=no
7747 fi
7748
7749 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7750 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7751
7752   runpath_var=
7753   allow_undefined_flag=
7754   enable_shared_with_static_runtimes=no
7755   archive_cmds=
7756   archive_expsym_cmds=
7757   old_archive_From_new_cmds=
7758   old_archive_from_expsyms_cmds=
7759   export_dynamic_flag_spec=
7760   whole_archive_flag_spec=
7761   thread_safe_flag_spec=
7762   hardcode_libdir_flag_spec=
7763   hardcode_libdir_flag_spec_ld=
7764   hardcode_libdir_separator=
7765   hardcode_direct=no
7766   hardcode_minus_L=no
7767   hardcode_shlibpath_var=unsupported
7768   link_all_deplibs=unknown
7769   hardcode_automatic=no
7770   module_cmds=
7771   module_expsym_cmds=
7772   always_export_symbols=no
7773   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7774   # include_expsyms should be a list of space-separated symbols to be *always*
7775   # included in the symbol list
7776   include_expsyms=
7777   # exclude_expsyms can be an extended regexp of symbols to exclude
7778   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7779   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7780   # as well as any symbol that contains `d'.
7781   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7782   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7783   # platforms (ab)use it in PIC code, but their linkers get confused if
7784   # the symbol is explicitly referenced.  Since portable code cannot
7785   # rely on this symbol name, it's probably fine to never include it in
7786   # preloaded symbol tables.
7787   extract_expsyms_cmds=
7788   # Just being paranoid about ensuring that cc_basename is set.
7789   for cc_temp in $compiler""; do
7790   case $cc_temp in
7791     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7792     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7793     \-*) ;;
7794     *) break;;
7795   esac
7796 done
7797 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7798
7799   case $host_os in
7800   cygwin* | mingw* | pw32*)
7801     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7802     # When not using gcc, we currently assume that we are using
7803     # Microsoft Visual C++.
7804     if test "$GCC" != yes; then
7805       with_gnu_ld=no
7806     fi
7807     ;;
7808   interix*)
7809     # we just hope/assume this is gcc and not c89 (= MSVC++)
7810     with_gnu_ld=yes
7811     ;;
7812   openbsd*)
7813     with_gnu_ld=no
7814     ;;
7815   esac
7816
7817   ld_shlibs=yes
7818   if test "$with_gnu_ld" = yes; then
7819     # If archive_cmds runs LD, not CC, wlarc should be empty
7820     wlarc='${wl}'
7821
7822     # Set some defaults for GNU ld with shared library support. These
7823     # are reset later if shared libraries are not supported. Putting them
7824     # here allows them to be overridden if necessary.
7825     runpath_var=LD_RUN_PATH
7826     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7827     export_dynamic_flag_spec='${wl}--export-dynamic'
7828     # ancient GNU ld didn't support --whole-archive et. al.
7829     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7830         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7831       else
7832         whole_archive_flag_spec=
7833     fi
7834     supports_anon_versioning=no
7835     case `$LD -v 2>/dev/null` in
7836       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7837       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7838       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7839       *\ 2.11.*) ;; # other 2.11 versions
7840       *) supports_anon_versioning=yes ;;
7841     esac
7842
7843     # See if GNU ld supports shared libraries.
7844     case $host_os in
7845     aix3* | aix4* | aix5*)
7846       # On AIX/PPC, the GNU linker is very broken
7847       if test "$host_cpu" != ia64; then
7848         ld_shlibs=no
7849         cat <<EOF 1>&2
7850
7851 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7852 *** to be unable to reliably create shared libraries on AIX.
7853 *** Therefore, libtool is disabling shared libraries support.  If you
7854 *** really care for shared libraries, you may want to modify your PATH
7855 *** so that a non-GNU linker is found, and then restart.
7856
7857 EOF
7858       fi
7859       ;;
7860
7861     amigaos*)
7862       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)'
7863       hardcode_libdir_flag_spec='-L$libdir'
7864       hardcode_minus_L=yes
7865
7866       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7867       # that the semantics of dynamic libraries on AmigaOS, at least up
7868       # to version 4, is to share data among multiple programs linked
7869       # with the same dynamic library.  Since this doesn't match the
7870       # behavior of shared libraries on other platforms, we can't use
7871       # them.
7872       ld_shlibs=no
7873       ;;
7874
7875     beos*)
7876       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7877         allow_undefined_flag=unsupported
7878         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7879         # support --undefined.  This deserves some investigation.  FIXME
7880         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7881       else
7882         ld_shlibs=no
7883       fi
7884       ;;
7885
7886     cygwin* | mingw* | pw32*)
7887       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7888       # as there is no search path for DLLs.
7889       hardcode_libdir_flag_spec='-L$libdir'
7890       allow_undefined_flag=unsupported
7891       always_export_symbols=no
7892       enable_shared_with_static_runtimes=yes
7893       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7894
7895       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7896         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7897         # If the export-symbols file already is a .def file (1st line
7898         # is EXPORTS), use it as is; otherwise, prepend...
7899         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7900           cp $export_symbols $output_objdir/$soname.def;
7901         else
7902           echo EXPORTS > $output_objdir/$soname.def;
7903           cat $export_symbols >> $output_objdir/$soname.def;
7904         fi~
7905         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7906       else
7907         ld_shlibs=no
7908       fi
7909       ;;
7910
7911     interix3*)
7912       hardcode_direct=no
7913       hardcode_shlibpath_var=no
7914       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7915       export_dynamic_flag_spec='${wl}-E'
7916       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7917       # Instead, shared libraries are loaded at an image base (0x10000000 by
7918       # default) and relocated if they conflict, which is a slow very memory
7919       # consuming and fragmenting process.  To avoid this, we pick a random,
7920       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7921       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7922       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7923       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'
7924       ;;
7925
7926     linux*)
7927       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7928         tmp_addflag=
7929         case $cc_basename,$host_cpu in
7930         pgcc*)                          # Portland Group C compiler
7931           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'
7932           tmp_addflag=' $pic_flag'
7933           ;;
7934         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7935           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'
7936           tmp_addflag=' $pic_flag -Mnomain' ;;
7937         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7938           tmp_addflag=' -i_dynamic' ;;
7939         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7940           tmp_addflag=' -i_dynamic -nofor_main' ;;
7941         ifc* | ifort*)                  # Intel Fortran compiler
7942           tmp_addflag=' -nofor_main' ;;
7943         esac
7944         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7945
7946         if test $supports_anon_versioning = yes; then
7947           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7948   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7949   $echo "local: *; };" >> $output_objdir/$libname.ver~
7950           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7951         fi
7952       else
7953         ld_shlibs=no
7954       fi
7955       ;;
7956
7957     netbsd*)
7958       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7959         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7960         wlarc=
7961       else
7962         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7963         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7964       fi
7965       ;;
7966
7967     solaris*)
7968       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7969         ld_shlibs=no
7970         cat <<EOF 1>&2
7971
7972 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7973 *** create shared libraries on Solaris systems.  Therefore, libtool
7974 *** is disabling shared libraries support.  We urge you to upgrade GNU
7975 *** binutils to release 2.9.1 or newer.  Another option is to modify
7976 *** your PATH or compiler configuration so that the native linker is
7977 *** used, and then restart.
7978
7979 EOF
7980       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7981         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7982         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7983       else
7984         ld_shlibs=no
7985       fi
7986       ;;
7987
7988     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7989       case `$LD -v 2>&1` in
7990         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7991         ld_shlibs=no
7992         cat <<_LT_EOF 1>&2
7993
7994 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7995 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7996 *** is disabling shared libraries support.  We urge you to upgrade GNU
7997 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7998 *** your PATH or compiler configuration so that the native linker is
7999 *** used, and then restart.
8000
8001 _LT_EOF
8002         ;;
8003         *)
8004           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8005             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8006             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8007             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8008           else
8009             ld_shlibs=no
8010           fi
8011         ;;
8012       esac
8013       ;;
8014
8015     sunos4*)
8016       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8017       wlarc=
8018       hardcode_direct=yes
8019       hardcode_shlibpath_var=no
8020       ;;
8021
8022     *)
8023       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8024         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8025         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8026       else
8027         ld_shlibs=no
8028       fi
8029       ;;
8030     esac
8031
8032     if test "$ld_shlibs" = no; then
8033       runpath_var=
8034       hardcode_libdir_flag_spec=
8035       export_dynamic_flag_spec=
8036       whole_archive_flag_spec=
8037     fi
8038   else
8039     # PORTME fill in a description of your system's linker (not GNU ld)
8040     case $host_os in
8041     aix3*)
8042       allow_undefined_flag=unsupported
8043       always_export_symbols=yes
8044       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'
8045       # Note: this linker hardcodes the directories in LIBPATH if there
8046       # are no directories specified by -L.
8047       hardcode_minus_L=yes
8048       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8049         # Neither direct hardcoding nor static linking is supported with a
8050         # broken collect2.
8051         hardcode_direct=unsupported
8052       fi
8053       ;;
8054
8055     aix4* | aix5*)
8056       if test "$host_cpu" = ia64; then
8057         # On IA64, the linker does run time linking by default, so we don't
8058         # have to do anything special.
8059         aix_use_runtimelinking=no
8060         exp_sym_flag='-Bexport'
8061         no_entry_flag=""
8062       else
8063         # If we're using GNU nm, then we don't want the "-C" option.
8064         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8065         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8066           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'
8067         else
8068           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'
8069         fi
8070         aix_use_runtimelinking=no
8071
8072         # Test if we are trying to use run time linking or normal
8073         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8074         # need to do runtime linking.
8075         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8076           for ld_flag in $LDFLAGS; do
8077           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8078             aix_use_runtimelinking=yes
8079             break
8080           fi
8081           done
8082           ;;
8083         esac
8084
8085         exp_sym_flag='-bexport'
8086         no_entry_flag='-bnoentry'
8087       fi
8088
8089       # When large executables or shared objects are built, AIX ld can
8090       # have problems creating the table of contents.  If linking a library
8091       # or program results in "error TOC overflow" add -mminimal-toc to
8092       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8093       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8094
8095       archive_cmds=''
8096       hardcode_direct=yes
8097       hardcode_libdir_separator=':'
8098       link_all_deplibs=yes
8099
8100       if test "$GCC" = yes; then
8101         case $host_os in aix4.[012]|aix4.[012].*)
8102         # We only want to do this on AIX 4.2 and lower, the check
8103         # below for broken collect2 doesn't work under 4.3+
8104           collect2name=`${CC} -print-prog-name=collect2`
8105           if test -f "$collect2name" && \
8106            strings "$collect2name" | grep resolve_lib_name >/dev/null
8107           then
8108           # We have reworked collect2
8109           hardcode_direct=yes
8110           else
8111           # We have old collect2
8112           hardcode_direct=unsupported
8113           # It fails to find uninstalled libraries when the uninstalled
8114           # path is not listed in the libpath.  Setting hardcode_minus_L
8115           # to unsupported forces relinking
8116           hardcode_minus_L=yes
8117           hardcode_libdir_flag_spec='-L$libdir'
8118           hardcode_libdir_separator=
8119           fi
8120           ;;
8121         esac
8122         shared_flag='-shared'
8123         if test "$aix_use_runtimelinking" = yes; then
8124           shared_flag="$shared_flag "'${wl}-G'
8125         fi
8126       else
8127         # not using gcc
8128         if test "$host_cpu" = ia64; then
8129         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8130         # chokes on -Wl,-G. The following line is correct:
8131           shared_flag='-G'
8132         else
8133           if test "$aix_use_runtimelinking" = yes; then
8134             shared_flag='${wl}-G'
8135           else
8136             shared_flag='${wl}-bM:SRE'
8137           fi
8138         fi
8139       fi
8140
8141       # It seems that -bexpall does not export symbols beginning with
8142       # underscore (_), so it is better to generate a list of symbols to export.
8143       always_export_symbols=yes
8144       if test "$aix_use_runtimelinking" = yes; then
8145         # Warning - without using the other runtime loading flags (-brtl),
8146         # -berok will link without error, but may produce a broken library.
8147         allow_undefined_flag='-berok'
8148        # Determine the default libpath from the value encoded in an empty executable.
8149        cat >conftest.$ac_ext <<_ACEOF
8150 /* confdefs.h.  */
8151 _ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h.  */
8155
8156 int
8157 main ()
8158 {
8159
8160   ;
8161   return 0;
8162 }
8163 _ACEOF
8164 rm -f conftest.$ac_objext conftest$ac_exeext
8165 if { (ac_try="$ac_link"
8166 case "(($ac_try" in
8167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168   *) ac_try_echo=$ac_try;;
8169 esac
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171   (eval "$ac_link") 2>conftest.er1
8172   ac_status=$?
8173   grep -v '^ *+' conftest.er1 >conftest.err
8174   rm -f conftest.er1
8175   cat conftest.err >&5
8176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177   (exit $ac_status); } && {
8178          test -z "$ac_c_werror_flag" ||
8179          test ! -s conftest.err
8180        } && test -s conftest$ac_exeext &&
8181        $as_test_x conftest$ac_exeext; then
8182
8183 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8184 }'`
8185 # Check for a 64-bit object if we didn't find anything.
8186 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8187 }'`; fi
8188 else
8189   echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8191
8192
8193 fi
8194
8195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8196       conftest$ac_exeext conftest.$ac_ext
8197 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8198
8199        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8200         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"
8201        else
8202         if test "$host_cpu" = ia64; then
8203           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8204           allow_undefined_flag="-z nodefs"
8205           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"
8206         else
8207          # Determine the default libpath from the value encoded in an empty executable.
8208          cat >conftest.$ac_ext <<_ACEOF
8209 /* confdefs.h.  */
8210 _ACEOF
8211 cat confdefs.h >>conftest.$ac_ext
8212 cat >>conftest.$ac_ext <<_ACEOF
8213 /* end confdefs.h.  */
8214
8215 int
8216 main ()
8217 {
8218
8219   ;
8220   return 0;
8221 }
8222 _ACEOF
8223 rm -f conftest.$ac_objext conftest$ac_exeext
8224 if { (ac_try="$ac_link"
8225 case "(($ac_try" in
8226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227   *) ac_try_echo=$ac_try;;
8228 esac
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230   (eval "$ac_link") 2>conftest.er1
8231   ac_status=$?
8232   grep -v '^ *+' conftest.er1 >conftest.err
8233   rm -f conftest.er1
8234   cat conftest.err >&5
8235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236   (exit $ac_status); } && {
8237          test -z "$ac_c_werror_flag" ||
8238          test ! -s conftest.err
8239        } && test -s conftest$ac_exeext &&
8240        $as_test_x conftest$ac_exeext; then
8241
8242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8243 }'`
8244 # Check for a 64-bit object if we didn't find anything.
8245 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8246 }'`; fi
8247 else
8248   echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8250
8251
8252 fi
8253
8254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8255       conftest$ac_exeext conftest.$ac_ext
8256 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8257
8258          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8259           # Warning - without using the other run time loading flags,
8260           # -berok will link without error, but may produce a broken library.
8261           no_undefined_flag=' ${wl}-bernotok'
8262           allow_undefined_flag=' ${wl}-berok'
8263           # Exported symbols can be pulled into shared objects from archives
8264           whole_archive_flag_spec='$convenience'
8265           archive_cmds_need_lc=yes
8266           # This is similar to how AIX traditionally builds its shared libraries.
8267           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'
8268         fi
8269       fi
8270       ;;
8271
8272     amigaos*)
8273       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)'
8274       hardcode_libdir_flag_spec='-L$libdir'
8275       hardcode_minus_L=yes
8276       # see comment about different semantics on the GNU ld section
8277       ld_shlibs=no
8278       ;;
8279
8280     bsdi[45]*)
8281       export_dynamic_flag_spec=-rdynamic
8282       ;;
8283
8284     cygwin* | mingw* | pw32*)
8285       # When not using gcc, we currently assume that we are using
8286       # Microsoft Visual C++.
8287       # hardcode_libdir_flag_spec is actually meaningless, as there is
8288       # no search path for DLLs.
8289       hardcode_libdir_flag_spec=' '
8290       allow_undefined_flag=unsupported
8291       # Tell ltmain to make .lib files, not .a files.
8292       libext=lib
8293       # Tell ltmain to make .dll files, not .so files.
8294       shrext_cmds=".dll"
8295       # FIXME: Setting linknames here is a bad hack.
8296       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8297       # The linker will automatically build a .lib file if we build a DLL.
8298       old_archive_From_new_cmds='true'
8299       # FIXME: Should let the user specify the lib program.
8300       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8301       fix_srcfile_path='`cygpath -w "$srcfile"`'
8302       enable_shared_with_static_runtimes=yes
8303       ;;
8304
8305     darwin* | rhapsody*)
8306       case $host_os in
8307         rhapsody* | darwin1.[012])
8308          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8309          ;;
8310        *) # Darwin 1.3 on
8311          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8312            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8313          else
8314            case ${MACOSX_DEPLOYMENT_TARGET} in
8315              10.[012])
8316                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8317                ;;
8318              10.*)
8319                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8320                ;;
8321            esac
8322          fi
8323          ;;
8324       esac
8325       archive_cmds_need_lc=no
8326       hardcode_direct=no
8327       hardcode_automatic=yes
8328       hardcode_shlibpath_var=unsupported
8329       whole_archive_flag_spec=''
8330       link_all_deplibs=yes
8331     if test "$GCC" = yes ; then
8332         output_verbose_link_cmd='echo'
8333         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8334       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8335       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8336       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8337       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}'
8338     else
8339       case $cc_basename in
8340         xlc*)
8341          output_verbose_link_cmd='echo'
8342          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8343          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8344           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8345          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8346           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}'
8347           ;;
8348        *)
8349          ld_shlibs=no
8350           ;;
8351       esac
8352     fi
8353       ;;
8354
8355     dgux*)
8356       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8357       hardcode_libdir_flag_spec='-L$libdir'
8358       hardcode_shlibpath_var=no
8359       ;;
8360
8361     freebsd1*)
8362       ld_shlibs=no
8363       ;;
8364
8365     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8366     # support.  Future versions do this automatically, but an explicit c++rt0.o
8367     # does not break anything, and helps significantly (at the cost of a little
8368     # extra space).
8369     freebsd2.2*)
8370       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8371       hardcode_libdir_flag_spec='-R$libdir'
8372       hardcode_direct=yes
8373       hardcode_shlibpath_var=no
8374       ;;
8375
8376     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8377     freebsd2*)
8378       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8379       hardcode_direct=yes
8380       hardcode_minus_L=yes
8381       hardcode_shlibpath_var=no
8382       ;;
8383
8384     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8385     freebsd* | kfreebsd*-gnu | dragonfly*)
8386       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8387       hardcode_libdir_flag_spec='-R$libdir'
8388       hardcode_direct=yes
8389       hardcode_shlibpath_var=no
8390       ;;
8391
8392     hpux9*)
8393       if test "$GCC" = yes; then
8394         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'
8395       else
8396         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'
8397       fi
8398       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8399       hardcode_libdir_separator=:
8400       hardcode_direct=yes
8401
8402       # hardcode_minus_L: Not really in the search PATH,
8403       # but as the default location of the library.
8404       hardcode_minus_L=yes
8405       export_dynamic_flag_spec='${wl}-E'
8406       ;;
8407
8408     hpux10*)
8409       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8410         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8411       else
8412         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8413       fi
8414       if test "$with_gnu_ld" = no; then
8415         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8416         hardcode_libdir_separator=:
8417
8418         hardcode_direct=yes
8419         export_dynamic_flag_spec='${wl}-E'
8420
8421         # hardcode_minus_L: Not really in the search PATH,
8422         # but as the default location of the library.
8423         hardcode_minus_L=yes
8424       fi
8425       ;;
8426
8427     hpux11*)
8428       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8429         case $host_cpu in
8430         hppa*64*)
8431           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8432           ;;
8433         ia64*)
8434           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8435           ;;
8436         *)
8437           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8438           ;;
8439         esac
8440       else
8441         case $host_cpu in
8442         hppa*64*)
8443           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8444           ;;
8445         ia64*)
8446           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8447           ;;
8448         *)
8449           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8450           ;;
8451         esac
8452       fi
8453       if test "$with_gnu_ld" = no; then
8454         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8455         hardcode_libdir_separator=:
8456
8457         case $host_cpu in
8458         hppa*64*|ia64*)
8459           hardcode_libdir_flag_spec_ld='+b $libdir'
8460           hardcode_direct=no
8461           hardcode_shlibpath_var=no
8462           ;;
8463         *)
8464           hardcode_direct=yes
8465           export_dynamic_flag_spec='${wl}-E'
8466
8467           # hardcode_minus_L: Not really in the search PATH,
8468           # but as the default location of the library.
8469           hardcode_minus_L=yes
8470           ;;
8471         esac
8472       fi
8473       ;;
8474
8475     irix5* | irix6* | nonstopux*)
8476       if test "$GCC" = yes; then
8477         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'
8478       else
8479         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'
8480         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8481       fi
8482       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8483       hardcode_libdir_separator=:
8484       link_all_deplibs=yes
8485       ;;
8486
8487     netbsd*)
8488       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8489         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8490       else
8491         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8492       fi
8493       hardcode_libdir_flag_spec='-R$libdir'
8494       hardcode_direct=yes
8495       hardcode_shlibpath_var=no
8496       ;;
8497
8498     newsos6)
8499       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8500       hardcode_direct=yes
8501       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8502       hardcode_libdir_separator=:
8503       hardcode_shlibpath_var=no
8504       ;;
8505
8506     openbsd*)
8507       hardcode_direct=yes
8508       hardcode_shlibpath_var=no
8509       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8510         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8511         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8512         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8513         export_dynamic_flag_spec='${wl}-E'
8514       else
8515        case $host_os in
8516          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8517            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8518            hardcode_libdir_flag_spec='-R$libdir'
8519            ;;
8520          *)
8521            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8522            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8523            ;;
8524        esac
8525       fi
8526       ;;
8527
8528     os2*)
8529       hardcode_libdir_flag_spec='-L$libdir'
8530       hardcode_minus_L=yes
8531       allow_undefined_flag=unsupported
8532       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'
8533       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8534       ;;
8535
8536     osf3*)
8537       if test "$GCC" = yes; then
8538         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8539         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'
8540       else
8541         allow_undefined_flag=' -expect_unresolved \*'
8542         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'
8543       fi
8544       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8545       hardcode_libdir_separator=:
8546       ;;
8547
8548     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8549       if test "$GCC" = yes; then
8550         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8551         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'
8552         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8553       else
8554         allow_undefined_flag=' -expect_unresolved \*'
8555         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'
8556         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8557         $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'
8558
8559         # Both c and cxx compiler support -rpath directly
8560         hardcode_libdir_flag_spec='-rpath $libdir'
8561       fi
8562       hardcode_libdir_separator=:
8563       ;;
8564
8565     solaris*)
8566       no_undefined_flag=' -z text'
8567       if test "$GCC" = yes; then
8568         wlarc='${wl}'
8569         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8570         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8571           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8572       else
8573         wlarc=''
8574         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8575         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8576         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8577       fi
8578       hardcode_libdir_flag_spec='-R$libdir'
8579       hardcode_shlibpath_var=no
8580       case $host_os in
8581       solaris2.[0-5] | solaris2.[0-5].*) ;;
8582       *)
8583         # The compiler driver will combine linker options so we
8584         # cannot just pass the convience library names through
8585         # without $wl, iff we do not link with $LD.
8586         # Luckily, gcc supports the same syntax we need for Sun Studio.
8587         # Supported since Solaris 2.6 (maybe 2.5.1?)
8588         case $wlarc in
8589         '')
8590           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8591         *)
8592           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8593         esac ;;
8594       esac
8595       link_all_deplibs=yes
8596       ;;
8597
8598     sunos4*)
8599       if test "x$host_vendor" = xsequent; then
8600         # Use $CC to link under sequent, because it throws in some extra .o
8601         # files that make .init and .fini sections work.
8602         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8603       else
8604         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8605       fi
8606       hardcode_libdir_flag_spec='-L$libdir'
8607       hardcode_direct=yes
8608       hardcode_minus_L=yes
8609       hardcode_shlibpath_var=no
8610       ;;
8611
8612     sysv4)
8613       case $host_vendor in
8614         sni)
8615           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8616           hardcode_direct=yes # is this really true???
8617         ;;
8618         siemens)
8619           ## LD is ld it makes a PLAMLIB
8620           ## CC just makes a GrossModule.
8621           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8622           reload_cmds='$CC -r -o $output$reload_objs'
8623           hardcode_direct=no
8624         ;;
8625         motorola)
8626           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8627           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8628         ;;
8629       esac
8630       runpath_var='LD_RUN_PATH'
8631       hardcode_shlibpath_var=no
8632       ;;
8633
8634     sysv4.3*)
8635       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8636       hardcode_shlibpath_var=no
8637       export_dynamic_flag_spec='-Bexport'
8638       ;;
8639
8640     sysv4*MP*)
8641       if test -d /usr/nec; then
8642         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8643         hardcode_shlibpath_var=no
8644         runpath_var=LD_RUN_PATH
8645         hardcode_runpath_var=yes
8646         ld_shlibs=yes
8647       fi
8648       ;;
8649
8650     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8651       no_undefined_flag='${wl}-z,text'
8652       archive_cmds_need_lc=no
8653       hardcode_shlibpath_var=no
8654       runpath_var='LD_RUN_PATH'
8655
8656       if test "$GCC" = yes; then
8657         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8658         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8659       else
8660         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8661         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8662       fi
8663       ;;
8664
8665     sysv5* | sco3.2v5* | sco5v6*)
8666       # Note: We can NOT use -z defs as we might desire, because we do not
8667       # link with -lc, and that would cause any symbols used from libc to
8668       # always be unresolved, which means just about no library would
8669       # ever link correctly.  If we're not using GNU ld we use -z text
8670       # though, which does catch some bad symbols but isn't as heavy-handed
8671       # as -z defs.
8672       no_undefined_flag='${wl}-z,text'
8673       allow_undefined_flag='${wl}-z,nodefs'
8674       archive_cmds_need_lc=no
8675       hardcode_shlibpath_var=no
8676       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8677       hardcode_libdir_separator=':'
8678       link_all_deplibs=yes
8679       export_dynamic_flag_spec='${wl}-Bexport'
8680       runpath_var='LD_RUN_PATH'
8681
8682       if test "$GCC" = yes; then
8683         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8684         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8685       else
8686         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8687         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8688       fi
8689       ;;
8690
8691     uts4*)
8692       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8693       hardcode_libdir_flag_spec='-L$libdir'
8694       hardcode_shlibpath_var=no
8695       ;;
8696
8697     *)
8698       ld_shlibs=no
8699       ;;
8700     esac
8701   fi
8702
8703 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8704 echo "${ECHO_T}$ld_shlibs" >&6; }
8705 test "$ld_shlibs" = no && can_build_shared=no
8706
8707 #
8708 # Do we need to explicitly link libc?
8709 #
8710 case "x$archive_cmds_need_lc" in
8711 x|xyes)
8712   # Assume -lc should be added
8713   archive_cmds_need_lc=yes
8714
8715   if test "$enable_shared" = yes && test "$GCC" = yes; then
8716     case $archive_cmds in
8717     *'~'*)
8718       # FIXME: we may have to deal with multi-command sequences.
8719       ;;
8720     '$CC '*)
8721       # Test whether the compiler implicitly links with -lc since on some
8722       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8723       # to ld, don't add -lc before -lgcc.
8724       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8725 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8726       $rm conftest*
8727       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8728
8729       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8730   (eval $ac_compile) 2>&5
8731   ac_status=$?
8732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733   (exit $ac_status); } 2>conftest.err; then
8734         soname=conftest
8735         lib=conftest
8736         libobjs=conftest.$ac_objext
8737         deplibs=
8738         wl=$lt_prog_compiler_wl
8739         pic_flag=$lt_prog_compiler_pic
8740         compiler_flags=-v
8741         linker_flags=-v
8742         verstring=
8743         output_objdir=.
8744         libname=conftest
8745         lt_save_allow_undefined_flag=$allow_undefined_flag
8746         allow_undefined_flag=
8747         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8748   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8749   ac_status=$?
8750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751   (exit $ac_status); }
8752         then
8753           archive_cmds_need_lc=no
8754         else
8755           archive_cmds_need_lc=yes
8756         fi
8757         allow_undefined_flag=$lt_save_allow_undefined_flag
8758       else
8759         cat conftest.err 1>&5
8760       fi
8761       $rm conftest*
8762       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8763 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8764       ;;
8765     esac
8766   fi
8767   ;;
8768 esac
8769
8770 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8771 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8772 library_names_spec=
8773 libname_spec='lib$name'
8774 soname_spec=
8775 shrext_cmds=".so"
8776 postinstall_cmds=
8777 postuninstall_cmds=
8778 finish_cmds=
8779 finish_eval=
8780 shlibpath_var=
8781 shlibpath_overrides_runpath=unknown
8782 version_type=none
8783 dynamic_linker="$host_os ld.so"
8784 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8785 if test "$GCC" = yes; then
8786   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8787   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8788     # if the path contains ";" then we assume it to be the separator
8789     # otherwise default to the standard path separator (i.e. ":") - it is
8790     # assumed that no part of a normal pathname contains ";" but that should
8791     # okay in the real world where ";" in dirpaths is itself problematic.
8792     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8793   else
8794     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8795   fi
8796 else
8797   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8798 fi
8799 need_lib_prefix=unknown
8800 hardcode_into_libs=no
8801
8802 # when you set need_version to no, make sure it does not cause -set_version
8803 # flags to be left without arguments
8804 need_version=unknown
8805
8806 case $host_os in
8807 aix3*)
8808   version_type=linux
8809   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8810   shlibpath_var=LIBPATH
8811
8812   # AIX 3 has no versioning support, so we append a major version to the name.
8813   soname_spec='${libname}${release}${shared_ext}$major'
8814   ;;
8815
8816 aix4* | aix5*)
8817   version_type=linux
8818   need_lib_prefix=no
8819   need_version=no
8820   hardcode_into_libs=yes
8821   if test "$host_cpu" = ia64; then
8822     # AIX 5 supports IA64
8823     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8824     shlibpath_var=LD_LIBRARY_PATH
8825   else
8826     # With GCC up to 2.95.x, collect2 would create an import file
8827     # for dependence libraries.  The import file would start with
8828     # the line `#! .'.  This would cause the generated library to
8829     # depend on `.', always an invalid library.  This was fixed in
8830     # development snapshots of GCC prior to 3.0.
8831     case $host_os in
8832       aix4 | aix4.[01] | aix4.[01].*)
8833       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8834            echo ' yes '
8835            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8836         :
8837       else
8838         can_build_shared=no
8839       fi
8840       ;;
8841     esac
8842     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8843     # soname into executable. Probably we can add versioning support to
8844     # collect2, so additional links can be useful in future.
8845     if test "$aix_use_runtimelinking" = yes; then
8846       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8847       # instead of lib<name>.a to let people know that these are not
8848       # typical AIX shared libraries.
8849       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8850     else
8851       # We preserve .a as extension for shared libraries through AIX4.2
8852       # and later when we are not doing run time linking.
8853       library_names_spec='${libname}${release}.a $libname.a'
8854       soname_spec='${libname}${release}${shared_ext}$major'
8855     fi
8856     shlibpath_var=LIBPATH
8857   fi
8858   ;;
8859
8860 amigaos*)
8861   library_names_spec='$libname.ixlibrary $libname.a'
8862   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8863   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'
8864   ;;
8865
8866 beos*)
8867   library_names_spec='${libname}${shared_ext}'
8868   dynamic_linker="$host_os ld.so"
8869   shlibpath_var=LIBRARY_PATH
8870   ;;
8871
8872 bsdi[45]*)
8873   version_type=linux
8874   need_version=no
8875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8876   soname_spec='${libname}${release}${shared_ext}$major'
8877   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8878   shlibpath_var=LD_LIBRARY_PATH
8879   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8880   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8881   # the default ld.so.conf also contains /usr/contrib/lib and
8882   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8883   # libtool to hard-code these into programs
8884   ;;
8885
8886 cygwin* | mingw* | pw32*)
8887   version_type=windows
8888   shrext_cmds=".dll"
8889   need_version=no
8890   need_lib_prefix=no
8891
8892   case $GCC,$host_os in
8893   yes,cygwin* | yes,mingw* | yes,pw32*)
8894     library_names_spec='$libname.dll.a'
8895     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8896     postinstall_cmds='base_file=`basename \${file}`~
8897       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8898       dldir=$destdir/`dirname \$dlpath`~
8899       test -d \$dldir || mkdir -p \$dldir~
8900       $install_prog $dir/$dlname \$dldir/$dlname~
8901       chmod a+x \$dldir/$dlname'
8902     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8903       dlpath=$dir/\$dldll~
8904        $rm \$dlpath'
8905     shlibpath_overrides_runpath=yes
8906
8907     case $host_os in
8908     cygwin*)
8909       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8910       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8911       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8912       ;;
8913     mingw*)
8914       # MinGW DLLs use traditional 'lib' prefix
8915       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8916       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8917       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8918         # It is most probably a Windows format PATH printed by
8919         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8920         # path with ; separators, and with drive letters. We can handle the
8921         # drive letters (cygwin fileutils understands them), so leave them,
8922         # especially as we might pass files found there to a mingw objdump,
8923         # which wouldn't understand a cygwinified path. Ahh.
8924         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8925       else
8926         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8927       fi
8928       ;;
8929     pw32*)
8930       # pw32 DLLs use 'pw' prefix rather than 'lib'
8931       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8932       ;;
8933     esac
8934     ;;
8935
8936   *)
8937     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8938     ;;
8939   esac
8940   dynamic_linker='Win32 ld.exe'
8941   # FIXME: first we should search . and the directory the executable is in
8942   shlibpath_var=PATH
8943   ;;
8944
8945 darwin* | rhapsody*)
8946   dynamic_linker="$host_os dyld"
8947   version_type=darwin
8948   need_lib_prefix=no
8949   need_version=no
8950   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8951   soname_spec='${libname}${release}${major}$shared_ext'
8952   shlibpath_overrides_runpath=yes
8953   shlibpath_var=DYLD_LIBRARY_PATH
8954   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8955   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8956   if test "$GCC" = yes; then
8957     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8958   else
8959     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8960   fi
8961   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8962   ;;
8963
8964 dgux*)
8965   version_type=linux
8966   need_lib_prefix=no
8967   need_version=no
8968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8969   soname_spec='${libname}${release}${shared_ext}$major'
8970   shlibpath_var=LD_LIBRARY_PATH
8971   ;;
8972
8973 freebsd1*)
8974   dynamic_linker=no
8975   ;;
8976
8977 kfreebsd*-gnu)
8978   version_type=linux
8979   need_lib_prefix=no
8980   need_version=no
8981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8982   soname_spec='${libname}${release}${shared_ext}$major'
8983   shlibpath_var=LD_LIBRARY_PATH
8984   shlibpath_overrides_runpath=no
8985   hardcode_into_libs=yes
8986   dynamic_linker='GNU ld.so'
8987   ;;
8988
8989 freebsd* | dragonfly*)
8990   # DragonFly does not have aout.  When/if they implement a new
8991   # versioning mechanism, adjust this.
8992   if test -x /usr/bin/objformat; then
8993     objformat=`/usr/bin/objformat`
8994   else
8995     case $host_os in
8996     freebsd[123]*) objformat=aout ;;
8997     *) objformat=elf ;;
8998     esac
8999   fi
9000   version_type=freebsd-$objformat
9001   case $version_type in
9002     freebsd-elf*)
9003       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9004       need_version=no
9005       need_lib_prefix=no
9006       ;;
9007     freebsd-*)
9008       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9009       need_version=yes
9010       ;;
9011   esac
9012   shlibpath_var=LD_LIBRARY_PATH
9013   case $host_os in
9014   freebsd2*)
9015     shlibpath_overrides_runpath=yes
9016     ;;
9017   freebsd3.[01]* | freebsdelf3.[01]*)
9018     shlibpath_overrides_runpath=yes
9019     hardcode_into_libs=yes
9020     ;;
9021   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9022   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9023     shlibpath_overrides_runpath=no
9024     hardcode_into_libs=yes
9025     ;;
9026   freebsd*) # from 4.6 on
9027     shlibpath_overrides_runpath=yes
9028     hardcode_into_libs=yes
9029     ;;
9030   esac
9031   ;;
9032
9033 gnu*)
9034   version_type=linux
9035   need_lib_prefix=no
9036   need_version=no
9037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9038   soname_spec='${libname}${release}${shared_ext}$major'
9039   shlibpath_var=LD_LIBRARY_PATH
9040   hardcode_into_libs=yes
9041   ;;
9042
9043 hpux9* | hpux10* | hpux11*)
9044   # Give a soname corresponding to the major version so that dld.sl refuses to
9045   # link against other versions.
9046   version_type=sunos
9047   need_lib_prefix=no
9048   need_version=no
9049   case $host_cpu in
9050   ia64*)
9051     shrext_cmds='.so'
9052     hardcode_into_libs=yes
9053     dynamic_linker="$host_os dld.so"
9054     shlibpath_var=LD_LIBRARY_PATH
9055     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057     soname_spec='${libname}${release}${shared_ext}$major'
9058     if test "X$HPUX_IA64_MODE" = X32; then
9059       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9060     else
9061       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9062     fi
9063     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9064     ;;
9065    hppa*64*)
9066      shrext_cmds='.sl'
9067      hardcode_into_libs=yes
9068      dynamic_linker="$host_os dld.sl"
9069      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9070      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9071      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9072      soname_spec='${libname}${release}${shared_ext}$major'
9073      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9074      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9075      ;;
9076    *)
9077     shrext_cmds='.sl'
9078     dynamic_linker="$host_os dld.sl"
9079     shlibpath_var=SHLIB_PATH
9080     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9081     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082     soname_spec='${libname}${release}${shared_ext}$major'
9083     ;;
9084   esac
9085   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9086   postinstall_cmds='chmod 555 $lib'
9087   ;;
9088
9089 interix3*)
9090   version_type=linux
9091   need_lib_prefix=no
9092   need_version=no
9093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9094   soname_spec='${libname}${release}${shared_ext}$major'
9095   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9096   shlibpath_var=LD_LIBRARY_PATH
9097   shlibpath_overrides_runpath=no
9098   hardcode_into_libs=yes
9099   ;;
9100
9101 irix5* | irix6* | nonstopux*)
9102   case $host_os in
9103     nonstopux*) version_type=nonstopux ;;
9104     *)
9105         if test "$lt_cv_prog_gnu_ld" = yes; then
9106                 version_type=linux
9107         else
9108                 version_type=irix
9109         fi ;;
9110   esac
9111   need_lib_prefix=no
9112   need_version=no
9113   soname_spec='${libname}${release}${shared_ext}$major'
9114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9115   case $host_os in
9116   irix5* | nonstopux*)
9117     libsuff= shlibsuff=
9118     ;;
9119   *)
9120     case $LD in # libtool.m4 will add one of these switches to LD
9121     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9122       libsuff= shlibsuff= libmagic=32-bit;;
9123     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9124       libsuff=32 shlibsuff=N32 libmagic=N32;;
9125     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9126       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9127     *) libsuff= shlibsuff= libmagic=never-match;;
9128     esac
9129     ;;
9130   esac
9131   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9132   shlibpath_overrides_runpath=no
9133   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9134   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9135   hardcode_into_libs=yes
9136   ;;
9137
9138 # No shared lib support for Linux oldld, aout, or coff.
9139 linux*oldld* | linux*aout* | linux*coff*)
9140   dynamic_linker=no
9141   ;;
9142
9143 # This must be Linux ELF.
9144 linux*)
9145   version_type=linux
9146   need_lib_prefix=no
9147   need_version=no
9148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9149   soname_spec='${libname}${release}${shared_ext}$major'
9150   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9151   shlibpath_var=LD_LIBRARY_PATH
9152   shlibpath_overrides_runpath=no
9153   # This implies no fast_install, which is unacceptable.
9154   # Some rework will be needed to allow for fast_install
9155   # before this can be enabled.
9156   hardcode_into_libs=yes
9157
9158   # Append ld.so.conf contents to the search path
9159   if test -f /etc/ld.so.conf; then
9160     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9161     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9162   fi
9163
9164   # We used to test for /lib/ld.so.1 and disable shared libraries on
9165   # powerpc, because MkLinux only supported shared libraries with the
9166   # GNU dynamic linker.  Since this was broken with cross compilers,
9167   # most powerpc-linux boxes support dynamic linking these days and
9168   # people can always --disable-shared, the test was removed, and we
9169   # assume the GNU/Linux dynamic linker is in use.
9170   dynamic_linker='GNU/Linux ld.so'
9171   ;;
9172
9173 knetbsd*-gnu)
9174   version_type=linux
9175   need_lib_prefix=no
9176   need_version=no
9177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9178   soname_spec='${libname}${release}${shared_ext}$major'
9179   shlibpath_var=LD_LIBRARY_PATH
9180   shlibpath_overrides_runpath=no
9181   hardcode_into_libs=yes
9182   dynamic_linker='GNU ld.so'
9183   ;;
9184
9185 netbsd*)
9186   version_type=sunos
9187   need_lib_prefix=no
9188   need_version=no
9189   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9190     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9191     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9192     dynamic_linker='NetBSD (a.out) ld.so'
9193   else
9194     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9195     soname_spec='${libname}${release}${shared_ext}$major'
9196     dynamic_linker='NetBSD ld.elf_so'
9197   fi
9198   shlibpath_var=LD_LIBRARY_PATH
9199   shlibpath_overrides_runpath=yes
9200   hardcode_into_libs=yes
9201   ;;
9202
9203 newsos6)
9204   version_type=linux
9205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9206   shlibpath_var=LD_LIBRARY_PATH
9207   shlibpath_overrides_runpath=yes
9208   ;;
9209
9210 nto-qnx*)
9211   version_type=linux
9212   need_lib_prefix=no
9213   need_version=no
9214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9215   soname_spec='${libname}${release}${shared_ext}$major'
9216   shlibpath_var=LD_LIBRARY_PATH
9217   shlibpath_overrides_runpath=yes
9218   ;;
9219
9220 openbsd*)
9221   version_type=sunos
9222   sys_lib_dlsearch_path_spec="/usr/lib"
9223   need_lib_prefix=no
9224   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9225   case $host_os in
9226     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9227     *)                         need_version=no  ;;
9228   esac
9229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9230   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9231   shlibpath_var=LD_LIBRARY_PATH
9232   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9233     case $host_os in
9234       openbsd2.[89] | openbsd2.[89].*)
9235         shlibpath_overrides_runpath=no
9236         ;;
9237       *)
9238         shlibpath_overrides_runpath=yes
9239         ;;
9240       esac
9241   else
9242     shlibpath_overrides_runpath=yes
9243   fi
9244   ;;
9245
9246 os2*)
9247   libname_spec='$name'
9248   shrext_cmds=".dll"
9249   need_lib_prefix=no
9250   library_names_spec='$libname${shared_ext} $libname.a'
9251   dynamic_linker='OS/2 ld.exe'
9252   shlibpath_var=LIBPATH
9253   ;;
9254
9255 osf3* | osf4* | osf5*)
9256   version_type=osf
9257   need_lib_prefix=no
9258   need_version=no
9259   soname_spec='${libname}${release}${shared_ext}$major'
9260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9261   shlibpath_var=LD_LIBRARY_PATH
9262   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9263   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9264   ;;
9265
9266 solaris*)
9267   version_type=linux
9268   need_lib_prefix=no
9269   need_version=no
9270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9271   soname_spec='${libname}${release}${shared_ext}$major'
9272   shlibpath_var=LD_LIBRARY_PATH
9273   shlibpath_overrides_runpath=yes
9274   hardcode_into_libs=yes
9275   # ldd complains unless libraries are executable
9276   postinstall_cmds='chmod +x $lib'
9277   ;;
9278
9279 sunos4*)
9280   version_type=sunos
9281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9282   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9283   shlibpath_var=LD_LIBRARY_PATH
9284   shlibpath_overrides_runpath=yes
9285   if test "$with_gnu_ld" = yes; then
9286     need_lib_prefix=no
9287   fi
9288   need_version=yes
9289   ;;
9290
9291 sysv4 | sysv4.3*)
9292   version_type=linux
9293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294   soname_spec='${libname}${release}${shared_ext}$major'
9295   shlibpath_var=LD_LIBRARY_PATH
9296   case $host_vendor in
9297     sni)
9298       shlibpath_overrides_runpath=no
9299       need_lib_prefix=no
9300       export_dynamic_flag_spec='${wl}-Blargedynsym'
9301       runpath_var=LD_RUN_PATH
9302       ;;
9303     siemens)
9304       need_lib_prefix=no
9305       ;;
9306     motorola)
9307       need_lib_prefix=no
9308       need_version=no
9309       shlibpath_overrides_runpath=no
9310       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9311       ;;
9312   esac
9313   ;;
9314
9315 sysv4*MP*)
9316   if test -d /usr/nec ;then
9317     version_type=linux
9318     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9319     soname_spec='$libname${shared_ext}.$major'
9320     shlibpath_var=LD_LIBRARY_PATH
9321   fi
9322   ;;
9323
9324 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9325   version_type=freebsd-elf
9326   need_lib_prefix=no
9327   need_version=no
9328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9329   soname_spec='${libname}${release}${shared_ext}$major'
9330   shlibpath_var=LD_LIBRARY_PATH
9331   hardcode_into_libs=yes
9332   if test "$with_gnu_ld" = yes; then
9333     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9334     shlibpath_overrides_runpath=no
9335   else
9336     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9337     shlibpath_overrides_runpath=yes
9338     case $host_os in
9339       sco3.2v5*)
9340         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9341         ;;
9342     esac
9343   fi
9344   sys_lib_dlsearch_path_spec='/usr/lib'
9345   ;;
9346
9347 uts4*)
9348   version_type=linux
9349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350   soname_spec='${libname}${release}${shared_ext}$major'
9351   shlibpath_var=LD_LIBRARY_PATH
9352   ;;
9353
9354 *)
9355   dynamic_linker=no
9356   ;;
9357 esac
9358 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9359 echo "${ECHO_T}$dynamic_linker" >&6; }
9360 test "$dynamic_linker" = no && can_build_shared=no
9361
9362 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9363 if test "$GCC" = yes; then
9364   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9365 fi
9366
9367 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9368 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9369 hardcode_action=
9370 if test -n "$hardcode_libdir_flag_spec" || \
9371    test -n "$runpath_var" || \
9372    test "X$hardcode_automatic" = "Xyes" ; then
9373
9374   # We can hardcode non-existant directories.
9375   if test "$hardcode_direct" != no &&
9376      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9377      # have to relink, otherwise we might link with an installed library
9378      # when we should be linking with a yet-to-be-installed one
9379      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9380      test "$hardcode_minus_L" != no; then
9381     # Linking always hardcodes the temporary library directory.
9382     hardcode_action=relink
9383   else
9384     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9385     hardcode_action=immediate
9386   fi
9387 else
9388   # We cannot hardcode anything, or else we can only hardcode existing
9389   # directories.
9390   hardcode_action=unsupported
9391 fi
9392 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9393 echo "${ECHO_T}$hardcode_action" >&6; }
9394
9395 if test "$hardcode_action" = relink; then
9396   # Fast installation is not supported
9397   enable_fast_install=no
9398 elif test "$shlibpath_overrides_runpath" = yes ||
9399      test "$enable_shared" = no; then
9400   # Fast installation is not necessary
9401   enable_fast_install=needless
9402 fi
9403
9404 striplib=
9405 old_striplib=
9406 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9407 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9408 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9409   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9410   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9411   { echo "$as_me:$LINENO: result: yes" >&5
9412 echo "${ECHO_T}yes" >&6; }
9413 else
9414 # FIXME - insert some real tests, host_os isn't really good enough
9415   case $host_os in
9416    darwin*)
9417        if test -n "$STRIP" ; then
9418          striplib="$STRIP -x"
9419          { echo "$as_me:$LINENO: result: yes" >&5
9420 echo "${ECHO_T}yes" >&6; }
9421        else
9422   { echo "$as_me:$LINENO: result: no" >&5
9423 echo "${ECHO_T}no" >&6; }
9424 fi
9425        ;;
9426    *)
9427   { echo "$as_me:$LINENO: result: no" >&5
9428 echo "${ECHO_T}no" >&6; }
9429     ;;
9430   esac
9431 fi
9432
9433 if test "x$enable_dlopen" != xyes; then
9434   enable_dlopen=unknown
9435   enable_dlopen_self=unknown
9436   enable_dlopen_self_static=unknown
9437 else
9438   lt_cv_dlopen=no
9439   lt_cv_dlopen_libs=
9440
9441   case $host_os in
9442   beos*)
9443     lt_cv_dlopen="load_add_on"
9444     lt_cv_dlopen_libs=
9445     lt_cv_dlopen_self=yes
9446     ;;
9447
9448   mingw* | pw32*)
9449     lt_cv_dlopen="LoadLibrary"
9450     lt_cv_dlopen_libs=
9451    ;;
9452
9453   cygwin*)
9454     lt_cv_dlopen="dlopen"
9455     lt_cv_dlopen_libs=
9456    ;;
9457
9458   darwin*)
9459   # if libdl is installed we need to link against it
9460     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9461 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9462 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9463   echo $ECHO_N "(cached) $ECHO_C" >&6
9464 else
9465   ac_check_lib_save_LIBS=$LIBS
9466 LIBS="-ldl  $LIBS"
9467 cat >conftest.$ac_ext <<_ACEOF
9468 /* confdefs.h.  */
9469 _ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h.  */
9473
9474 /* Override any GCC internal prototype to avoid an error.
9475    Use char because int might match the return type of a GCC
9476    builtin and then its argument prototype would still apply.  */
9477 #ifdef __cplusplus
9478 extern "C"
9479 #endif
9480 char dlopen ();
9481 int
9482 main ()
9483 {
9484 return dlopen ();
9485   ;
9486   return 0;
9487 }
9488 _ACEOF
9489 rm -f conftest.$ac_objext conftest$ac_exeext
9490 if { (ac_try="$ac_link"
9491 case "(($ac_try" in
9492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9493   *) ac_try_echo=$ac_try;;
9494 esac
9495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9496   (eval "$ac_link") 2>conftest.er1
9497   ac_status=$?
9498   grep -v '^ *+' conftest.er1 >conftest.err
9499   rm -f conftest.er1
9500   cat conftest.err >&5
9501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502   (exit $ac_status); } && {
9503          test -z "$ac_c_werror_flag" ||
9504          test ! -s conftest.err
9505        } && test -s conftest$ac_exeext &&
9506        $as_test_x conftest$ac_exeext; then
9507   ac_cv_lib_dl_dlopen=yes
9508 else
9509   echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9511
9512         ac_cv_lib_dl_dlopen=no
9513 fi
9514
9515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9516       conftest$ac_exeext conftest.$ac_ext
9517 LIBS=$ac_check_lib_save_LIBS
9518 fi
9519 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9520 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9521 if test $ac_cv_lib_dl_dlopen = yes; then
9522   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9523 else
9524
9525     lt_cv_dlopen="dyld"
9526     lt_cv_dlopen_libs=
9527     lt_cv_dlopen_self=yes
9528
9529 fi
9530
9531    ;;
9532
9533   *)
9534     { echo "$as_me:$LINENO: checking for shl_load" >&5
9535 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9536 if test "${ac_cv_func_shl_load+set}" = set; then
9537   echo $ECHO_N "(cached) $ECHO_C" >&6
9538 else
9539   cat >conftest.$ac_ext <<_ACEOF
9540 /* confdefs.h.  */
9541 _ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h.  */
9545 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9547 #define shl_load innocuous_shl_load
9548
9549 /* System header to define __stub macros and hopefully few prototypes,
9550     which can conflict with char shl_load (); below.
9551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9552     <limits.h> exists even on freestanding compilers.  */
9553
9554 #ifdef __STDC__
9555 # include <limits.h>
9556 #else
9557 # include <assert.h>
9558 #endif
9559
9560 #undef shl_load
9561
9562 /* Override any GCC internal prototype to avoid an error.
9563    Use char because int might match the return type of a GCC
9564    builtin and then its argument prototype would still apply.  */
9565 #ifdef __cplusplus
9566 extern "C"
9567 #endif
9568 char shl_load ();
9569 /* The GNU C library defines this for functions which it implements
9570     to always fail with ENOSYS.  Some functions are actually named
9571     something starting with __ and the normal name is an alias.  */
9572 #if defined __stub_shl_load || defined __stub___shl_load
9573 choke me
9574 #endif
9575
9576 int
9577 main ()
9578 {
9579 return shl_load ();
9580   ;
9581   return 0;
9582 }
9583 _ACEOF
9584 rm -f conftest.$ac_objext conftest$ac_exeext
9585 if { (ac_try="$ac_link"
9586 case "(($ac_try" in
9587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588   *) ac_try_echo=$ac_try;;
9589 esac
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591   (eval "$ac_link") 2>conftest.er1
9592   ac_status=$?
9593   grep -v '^ *+' conftest.er1 >conftest.err
9594   rm -f conftest.er1
9595   cat conftest.err >&5
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); } && {
9598          test -z "$ac_c_werror_flag" ||
9599          test ! -s conftest.err
9600        } && test -s conftest$ac_exeext &&
9601        $as_test_x conftest$ac_exeext; then
9602   ac_cv_func_shl_load=yes
9603 else
9604   echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.$ac_ext >&5
9606
9607         ac_cv_func_shl_load=no
9608 fi
9609
9610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9611       conftest$ac_exeext conftest.$ac_ext
9612 fi
9613 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9614 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9615 if test $ac_cv_func_shl_load = yes; then
9616   lt_cv_dlopen="shl_load"
9617 else
9618   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9619 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9620 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9621   echo $ECHO_N "(cached) $ECHO_C" >&6
9622 else
9623   ac_check_lib_save_LIBS=$LIBS
9624 LIBS="-ldld  $LIBS"
9625 cat >conftest.$ac_ext <<_ACEOF
9626 /* confdefs.h.  */
9627 _ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h.  */
9631
9632 /* Override any GCC internal prototype to avoid an error.
9633    Use char because int might match the return type of a GCC
9634    builtin and then its argument prototype would still apply.  */
9635 #ifdef __cplusplus
9636 extern "C"
9637 #endif
9638 char shl_load ();
9639 int
9640 main ()
9641 {
9642 return shl_load ();
9643   ;
9644   return 0;
9645 }
9646 _ACEOF
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (ac_try="$ac_link"
9649 case "(($ac_try" in
9650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651   *) ac_try_echo=$ac_try;;
9652 esac
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654   (eval "$ac_link") 2>conftest.er1
9655   ac_status=$?
9656   grep -v '^ *+' conftest.er1 >conftest.err
9657   rm -f conftest.er1
9658   cat conftest.err >&5
9659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); } && {
9661          test -z "$ac_c_werror_flag" ||
9662          test ! -s conftest.err
9663        } && test -s conftest$ac_exeext &&
9664        $as_test_x conftest$ac_exeext; then
9665   ac_cv_lib_dld_shl_load=yes
9666 else
9667   echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9669
9670         ac_cv_lib_dld_shl_load=no
9671 fi
9672
9673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9674       conftest$ac_exeext conftest.$ac_ext
9675 LIBS=$ac_check_lib_save_LIBS
9676 fi
9677 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9678 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9679 if test $ac_cv_lib_dld_shl_load = yes; then
9680   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9681 else
9682   { echo "$as_me:$LINENO: checking for dlopen" >&5
9683 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9684 if test "${ac_cv_func_dlopen+set}" = set; then
9685   echo $ECHO_N "(cached) $ECHO_C" >&6
9686 else
9687   cat >conftest.$ac_ext <<_ACEOF
9688 /* confdefs.h.  */
9689 _ACEOF
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h.  */
9693 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9695 #define dlopen innocuous_dlopen
9696
9697 /* System header to define __stub macros and hopefully few prototypes,
9698     which can conflict with char dlopen (); below.
9699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9700     <limits.h> exists even on freestanding compilers.  */
9701
9702 #ifdef __STDC__
9703 # include <limits.h>
9704 #else
9705 # include <assert.h>
9706 #endif
9707
9708 #undef dlopen
9709
9710 /* Override any GCC internal prototype to avoid an error.
9711    Use char because int might match the return type of a GCC
9712    builtin and then its argument prototype would still apply.  */
9713 #ifdef __cplusplus
9714 extern "C"
9715 #endif
9716 char dlopen ();
9717 /* The GNU C library defines this for functions which it implements
9718     to always fail with ENOSYS.  Some functions are actually named
9719     something starting with __ and the normal name is an alias.  */
9720 #if defined __stub_dlopen || defined __stub___dlopen
9721 choke me
9722 #endif
9723
9724 int
9725 main ()
9726 {
9727 return dlopen ();
9728   ;
9729   return 0;
9730 }
9731 _ACEOF
9732 rm -f conftest.$ac_objext conftest$ac_exeext
9733 if { (ac_try="$ac_link"
9734 case "(($ac_try" in
9735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736   *) ac_try_echo=$ac_try;;
9737 esac
9738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739   (eval "$ac_link") 2>conftest.er1
9740   ac_status=$?
9741   grep -v '^ *+' conftest.er1 >conftest.err
9742   rm -f conftest.er1
9743   cat conftest.err >&5
9744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745   (exit $ac_status); } && {
9746          test -z "$ac_c_werror_flag" ||
9747          test ! -s conftest.err
9748        } && test -s conftest$ac_exeext &&
9749        $as_test_x conftest$ac_exeext; then
9750   ac_cv_func_dlopen=yes
9751 else
9752   echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9754
9755         ac_cv_func_dlopen=no
9756 fi
9757
9758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9759       conftest$ac_exeext conftest.$ac_ext
9760 fi
9761 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9762 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9763 if test $ac_cv_func_dlopen = yes; then
9764   lt_cv_dlopen="dlopen"
9765 else
9766   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9767 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9768 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9769   echo $ECHO_N "(cached) $ECHO_C" >&6
9770 else
9771   ac_check_lib_save_LIBS=$LIBS
9772 LIBS="-ldl  $LIBS"
9773 cat >conftest.$ac_ext <<_ACEOF
9774 /* confdefs.h.  */
9775 _ACEOF
9776 cat confdefs.h >>conftest.$ac_ext
9777 cat >>conftest.$ac_ext <<_ACEOF
9778 /* end confdefs.h.  */
9779
9780 /* Override any GCC internal prototype to avoid an error.
9781    Use char because int might match the return type of a GCC
9782    builtin and then its argument prototype would still apply.  */
9783 #ifdef __cplusplus
9784 extern "C"
9785 #endif
9786 char dlopen ();
9787 int
9788 main ()
9789 {
9790 return dlopen ();
9791   ;
9792   return 0;
9793 }
9794 _ACEOF
9795 rm -f conftest.$ac_objext conftest$ac_exeext
9796 if { (ac_try="$ac_link"
9797 case "(($ac_try" in
9798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799   *) ac_try_echo=$ac_try;;
9800 esac
9801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802   (eval "$ac_link") 2>conftest.er1
9803   ac_status=$?
9804   grep -v '^ *+' conftest.er1 >conftest.err
9805   rm -f conftest.er1
9806   cat conftest.err >&5
9807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808   (exit $ac_status); } && {
9809          test -z "$ac_c_werror_flag" ||
9810          test ! -s conftest.err
9811        } && test -s conftest$ac_exeext &&
9812        $as_test_x conftest$ac_exeext; then
9813   ac_cv_lib_dl_dlopen=yes
9814 else
9815   echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.$ac_ext >&5
9817
9818         ac_cv_lib_dl_dlopen=no
9819 fi
9820
9821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9822       conftest$ac_exeext conftest.$ac_ext
9823 LIBS=$ac_check_lib_save_LIBS
9824 fi
9825 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9826 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9827 if test $ac_cv_lib_dl_dlopen = yes; then
9828   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9829 else
9830   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9831 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9832 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9833   echo $ECHO_N "(cached) $ECHO_C" >&6
9834 else
9835   ac_check_lib_save_LIBS=$LIBS
9836 LIBS="-lsvld  $LIBS"
9837 cat >conftest.$ac_ext <<_ACEOF
9838 /* confdefs.h.  */
9839 _ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h.  */
9843
9844 /* Override any GCC internal prototype to avoid an error.
9845    Use char because int might match the return type of a GCC
9846    builtin and then its argument prototype would still apply.  */
9847 #ifdef __cplusplus
9848 extern "C"
9849 #endif
9850 char dlopen ();
9851 int
9852 main ()
9853 {
9854 return dlopen ();
9855   ;
9856   return 0;
9857 }
9858 _ACEOF
9859 rm -f conftest.$ac_objext conftest$ac_exeext
9860 if { (ac_try="$ac_link"
9861 case "(($ac_try" in
9862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863   *) ac_try_echo=$ac_try;;
9864 esac
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866   (eval "$ac_link") 2>conftest.er1
9867   ac_status=$?
9868   grep -v '^ *+' conftest.er1 >conftest.err
9869   rm -f conftest.er1
9870   cat conftest.err >&5
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); } && {
9873          test -z "$ac_c_werror_flag" ||
9874          test ! -s conftest.err
9875        } && test -s conftest$ac_exeext &&
9876        $as_test_x conftest$ac_exeext; then
9877   ac_cv_lib_svld_dlopen=yes
9878 else
9879   echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9881
9882         ac_cv_lib_svld_dlopen=no
9883 fi
9884
9885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9886       conftest$ac_exeext conftest.$ac_ext
9887 LIBS=$ac_check_lib_save_LIBS
9888 fi
9889 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9890 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9891 if test $ac_cv_lib_svld_dlopen = yes; then
9892   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9893 else
9894   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9895 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9896 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9897   echo $ECHO_N "(cached) $ECHO_C" >&6
9898 else
9899   ac_check_lib_save_LIBS=$LIBS
9900 LIBS="-ldld  $LIBS"
9901 cat >conftest.$ac_ext <<_ACEOF
9902 /* confdefs.h.  */
9903 _ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h.  */
9907
9908 /* Override any GCC internal prototype to avoid an error.
9909    Use char because int might match the return type of a GCC
9910    builtin and then its argument prototype would still apply.  */
9911 #ifdef __cplusplus
9912 extern "C"
9913 #endif
9914 char dld_link ();
9915 int
9916 main ()
9917 {
9918 return dld_link ();
9919   ;
9920   return 0;
9921 }
9922 _ACEOF
9923 rm -f conftest.$ac_objext conftest$ac_exeext
9924 if { (ac_try="$ac_link"
9925 case "(($ac_try" in
9926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927   *) ac_try_echo=$ac_try;;
9928 esac
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930   (eval "$ac_link") 2>conftest.er1
9931   ac_status=$?
9932   grep -v '^ *+' conftest.er1 >conftest.err
9933   rm -f conftest.er1
9934   cat conftest.err >&5
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); } && {
9937          test -z "$ac_c_werror_flag" ||
9938          test ! -s conftest.err
9939        } && test -s conftest$ac_exeext &&
9940        $as_test_x conftest$ac_exeext; then
9941   ac_cv_lib_dld_dld_link=yes
9942 else
9943   echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9945
9946         ac_cv_lib_dld_dld_link=no
9947 fi
9948
9949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9950       conftest$ac_exeext conftest.$ac_ext
9951 LIBS=$ac_check_lib_save_LIBS
9952 fi
9953 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9954 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9955 if test $ac_cv_lib_dld_dld_link = yes; then
9956   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9957 fi
9958
9959
9960 fi
9961
9962
9963 fi
9964
9965
9966 fi
9967
9968
9969 fi
9970
9971
9972 fi
9973
9974     ;;
9975   esac
9976
9977   if test "x$lt_cv_dlopen" != xno; then
9978     enable_dlopen=yes
9979   else
9980     enable_dlopen=no
9981   fi
9982
9983   case $lt_cv_dlopen in
9984   dlopen)
9985     save_CPPFLAGS="$CPPFLAGS"
9986     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9987
9988     save_LDFLAGS="$LDFLAGS"
9989     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9990
9991     save_LIBS="$LIBS"
9992     LIBS="$lt_cv_dlopen_libs $LIBS"
9993
9994     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9995 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9996 if test "${lt_cv_dlopen_self+set}" = set; then
9997   echo $ECHO_N "(cached) $ECHO_C" >&6
9998 else
9999           if test "$cross_compiling" = yes; then :
10000   lt_cv_dlopen_self=cross
10001 else
10002   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10003   lt_status=$lt_dlunknown
10004   cat > conftest.$ac_ext <<EOF
10005 #line 10005 "configure"
10006 #include "confdefs.h"
10007
10008 #if HAVE_DLFCN_H
10009 #include <dlfcn.h>
10010 #endif
10011
10012 #include <stdio.h>
10013
10014 #ifdef RTLD_GLOBAL
10015 #  define LT_DLGLOBAL           RTLD_GLOBAL
10016 #else
10017 #  ifdef DL_GLOBAL
10018 #    define LT_DLGLOBAL         DL_GLOBAL
10019 #  else
10020 #    define LT_DLGLOBAL         0
10021 #  endif
10022 #endif
10023
10024 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10025    find out it does not work in some platform. */
10026 #ifndef LT_DLLAZY_OR_NOW
10027 #  ifdef RTLD_LAZY
10028 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10029 #  else
10030 #    ifdef DL_LAZY
10031 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10032 #    else
10033 #      ifdef RTLD_NOW
10034 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10035 #      else
10036 #        ifdef DL_NOW
10037 #          define LT_DLLAZY_OR_NOW      DL_NOW
10038 #        else
10039 #          define LT_DLLAZY_OR_NOW      0
10040 #        endif
10041 #      endif
10042 #    endif
10043 #  endif
10044 #endif
10045
10046 #ifdef __cplusplus
10047 extern "C" void exit (int);
10048 #endif
10049
10050 void fnord() { int i=42;}
10051 int main ()
10052 {
10053   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10054   int status = $lt_dlunknown;
10055
10056   if (self)
10057     {
10058       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10059       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10060       /* dlclose (self); */
10061     }
10062   else
10063     puts (dlerror ());
10064
10065     exit (status);
10066 }
10067 EOF
10068   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10069   (eval $ac_link) 2>&5
10070   ac_status=$?
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10073     (./conftest; exit; ) >&5 2>/dev/null
10074     lt_status=$?
10075     case x$lt_status in
10076       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10077       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10078       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10079     esac
10080   else :
10081     # compilation failed
10082     lt_cv_dlopen_self=no
10083   fi
10084 fi
10085 rm -fr conftest*
10086
10087
10088 fi
10089 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10090 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10091
10092     if test "x$lt_cv_dlopen_self" = xyes; then
10093       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10094       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10095 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10096 if test "${lt_cv_dlopen_self_static+set}" = set; then
10097   echo $ECHO_N "(cached) $ECHO_C" >&6
10098 else
10099           if test "$cross_compiling" = yes; then :
10100   lt_cv_dlopen_self_static=cross
10101 else
10102   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10103   lt_status=$lt_dlunknown
10104   cat > conftest.$ac_ext <<EOF
10105 #line 10105 "configure"
10106 #include "confdefs.h"
10107
10108 #if HAVE_DLFCN_H
10109 #include <dlfcn.h>
10110 #endif
10111
10112 #include <stdio.h>
10113
10114 #ifdef RTLD_GLOBAL
10115 #  define LT_DLGLOBAL           RTLD_GLOBAL
10116 #else
10117 #  ifdef DL_GLOBAL
10118 #    define LT_DLGLOBAL         DL_GLOBAL
10119 #  else
10120 #    define LT_DLGLOBAL         0
10121 #  endif
10122 #endif
10123
10124 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10125    find out it does not work in some platform. */
10126 #ifndef LT_DLLAZY_OR_NOW
10127 #  ifdef RTLD_LAZY
10128 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10129 #  else
10130 #    ifdef DL_LAZY
10131 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10132 #    else
10133 #      ifdef RTLD_NOW
10134 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10135 #      else
10136 #        ifdef DL_NOW
10137 #          define LT_DLLAZY_OR_NOW      DL_NOW
10138 #        else
10139 #          define LT_DLLAZY_OR_NOW      0
10140 #        endif
10141 #      endif
10142 #    endif
10143 #  endif
10144 #endif
10145
10146 #ifdef __cplusplus
10147 extern "C" void exit (int);
10148 #endif
10149
10150 void fnord() { int i=42;}
10151 int main ()
10152 {
10153   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10154   int status = $lt_dlunknown;
10155
10156   if (self)
10157     {
10158       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10159       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10160       /* dlclose (self); */
10161     }
10162   else
10163     puts (dlerror ());
10164
10165     exit (status);
10166 }
10167 EOF
10168   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10169   (eval $ac_link) 2>&5
10170   ac_status=$?
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10173     (./conftest; exit; ) >&5 2>/dev/null
10174     lt_status=$?
10175     case x$lt_status in
10176       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10177       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10178       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10179     esac
10180   else :
10181     # compilation failed
10182     lt_cv_dlopen_self_static=no
10183   fi
10184 fi
10185 rm -fr conftest*
10186
10187
10188 fi
10189 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10190 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10191     fi
10192
10193     CPPFLAGS="$save_CPPFLAGS"
10194     LDFLAGS="$save_LDFLAGS"
10195     LIBS="$save_LIBS"
10196     ;;
10197   esac
10198
10199   case $lt_cv_dlopen_self in
10200   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10201   *) enable_dlopen_self=unknown ;;
10202   esac
10203
10204   case $lt_cv_dlopen_self_static in
10205   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10206   *) enable_dlopen_self_static=unknown ;;
10207   esac
10208 fi
10209
10210
10211 # Report which library types will actually be built
10212 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10213 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10214 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10215 echo "${ECHO_T}$can_build_shared" >&6; }
10216
10217 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10218 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10219 test "$can_build_shared" = "no" && enable_shared=no
10220
10221 # On AIX, shared libraries and static libraries use the same namespace, and
10222 # are all built from PIC.
10223 case $host_os in
10224 aix3*)
10225   test "$enable_shared" = yes && enable_static=no
10226   if test -n "$RANLIB"; then
10227     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10228     postinstall_cmds='$RANLIB $lib'
10229   fi
10230   ;;
10231
10232 aix4* | aix5*)
10233   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10234     test "$enable_shared" = yes && enable_static=no
10235   fi
10236     ;;
10237 esac
10238 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10239 echo "${ECHO_T}$enable_shared" >&6; }
10240
10241 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10242 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10243 # Make sure either enable_shared or enable_static is yes.
10244 test "$enable_shared" = yes || enable_static=yes
10245 { echo "$as_me:$LINENO: result: $enable_static" >&5
10246 echo "${ECHO_T}$enable_static" >&6; }
10247
10248 # The else clause should only fire when bootstrapping the
10249 # libtool distribution, otherwise you forgot to ship ltmain.sh
10250 # with your package, and you will get complaints that there are
10251 # no rules to generate ltmain.sh.
10252 if test -f "$ltmain"; then
10253   # See if we are running on zsh, and set the options which allow our commands through
10254   # without removal of \ escapes.
10255   if test -n "${ZSH_VERSION+set}" ; then
10256     setopt NO_GLOB_SUBST
10257   fi
10258   # Now quote all the things that may contain metacharacters while being
10259   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10260   # variables and quote the copies for generation of the libtool script.
10261   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10262     SED SHELL STRIP \
10263     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10264     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10265     deplibs_check_method reload_flag reload_cmds need_locks \
10266     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10267     lt_cv_sys_global_symbol_to_c_name_address \
10268     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10269     old_postinstall_cmds old_postuninstall_cmds \
10270     compiler \
10271     CC \
10272     LD \
10273     lt_prog_compiler_wl \
10274     lt_prog_compiler_pic \
10275     lt_prog_compiler_static \
10276     lt_prog_compiler_no_builtin_flag \
10277     export_dynamic_flag_spec \
10278     thread_safe_flag_spec \
10279     whole_archive_flag_spec \
10280     enable_shared_with_static_runtimes \
10281     old_archive_cmds \
10282     old_archive_from_new_cmds \
10283     predep_objects \
10284     postdep_objects \
10285     predeps \
10286     postdeps \
10287     compiler_lib_search_path \
10288     archive_cmds \
10289     archive_expsym_cmds \
10290     postinstall_cmds \
10291     postuninstall_cmds \
10292     old_archive_from_expsyms_cmds \
10293     allow_undefined_flag \
10294     no_undefined_flag \
10295     export_symbols_cmds \
10296     hardcode_libdir_flag_spec \
10297     hardcode_libdir_flag_spec_ld \
10298     hardcode_libdir_separator \
10299     hardcode_automatic \
10300     module_cmds \
10301     module_expsym_cmds \
10302     lt_cv_prog_compiler_c_o \
10303     exclude_expsyms \
10304     include_expsyms; do
10305
10306     case $var in
10307     old_archive_cmds | \
10308     old_archive_from_new_cmds | \
10309     archive_cmds | \
10310     archive_expsym_cmds | \
10311     module_cmds | \
10312     module_expsym_cmds | \
10313     old_archive_from_expsyms_cmds | \
10314     export_symbols_cmds | \
10315     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10316     postinstall_cmds | postuninstall_cmds | \
10317     old_postinstall_cmds | old_postuninstall_cmds | \
10318     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10319       # Double-quote double-evaled strings.
10320       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10321       ;;
10322     *)
10323       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10324       ;;
10325     esac
10326   done
10327
10328   case $lt_echo in
10329   *'\$0 --fallback-echo"')
10330     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10331     ;;
10332   esac
10333
10334 cfgfile="${ofile}T"
10335   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10336   $rm -f "$cfgfile"
10337   { echo "$as_me:$LINENO: creating $ofile" >&5
10338 echo "$as_me: creating $ofile" >&6;}
10339
10340   cat <<__EOF__ >> "$cfgfile"
10341 #! $SHELL
10342
10343 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10344 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10345 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10346 #
10347 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10348 # Free Software Foundation, Inc.
10349 #
10350 # This file is part of GNU Libtool:
10351 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10352 #
10353 # This program is free software; you can redistribute it and/or modify
10354 # it under the terms of the GNU General Public License as published by
10355 # the Free Software Foundation; either version 2 of the License, or
10356 # (at your option) any later version.
10357 #
10358 # This program is distributed in the hope that it will be useful, but
10359 # WITHOUT ANY WARRANTY; without even the implied warranty of
10360 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10361 # General Public License for more details.
10362 #
10363 # You should have received a copy of the GNU General Public License
10364 # along with this program; if not, write to the Free Software
10365 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10366 #
10367 # As a special exception to the GNU General Public License, if you
10368 # distribute this file as part of a program that contains a
10369 # configuration script generated by Autoconf, you may include it under
10370 # the same distribution terms that you use for the rest of that program.
10371
10372 # A sed program that does not truncate output.
10373 SED=$lt_SED
10374
10375 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10376 Xsed="$SED -e 1s/^X//"
10377
10378 # The HP-UX ksh and POSIX shell print the target directory to stdout
10379 # if CDPATH is set.
10380 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10381
10382 # The names of the tagged configurations supported by this script.
10383 available_tags=
10384
10385 # ### BEGIN LIBTOOL CONFIG
10386
10387 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10388
10389 # Shell to use when invoking shell scripts.
10390 SHELL=$lt_SHELL
10391
10392 # Whether or not to build shared libraries.
10393 build_libtool_libs=$enable_shared
10394
10395 # Whether or not to build static libraries.
10396 build_old_libs=$enable_static
10397
10398 # Whether or not to add -lc for building shared libraries.
10399 build_libtool_need_lc=$archive_cmds_need_lc
10400
10401 # Whether or not to disallow shared libs when runtime libs are static
10402 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10403
10404 # Whether or not to optimize for fast installation.
10405 fast_install=$enable_fast_install
10406
10407 # The host system.
10408 host_alias=$host_alias
10409 host=$host
10410 host_os=$host_os
10411
10412 # The build system.
10413 build_alias=$build_alias
10414 build=$build
10415 build_os=$build_os
10416
10417 # An echo program that does not interpret backslashes.
10418 echo=$lt_echo
10419
10420 # The archiver.
10421 AR=$lt_AR
10422 AR_FLAGS=$lt_AR_FLAGS
10423
10424 # A C compiler.
10425 LTCC=$lt_LTCC
10426
10427 # LTCC compiler flags.
10428 LTCFLAGS=$lt_LTCFLAGS
10429
10430 # A language-specific compiler.
10431 CC=$lt_compiler
10432
10433 # Is the compiler the GNU C compiler?
10434 with_gcc=$GCC
10435
10436 # An ERE matcher.
10437 EGREP=$lt_EGREP
10438
10439 # The linker used to build libraries.
10440 LD=$lt_LD
10441
10442 # Whether we need hard or soft links.
10443 LN_S=$lt_LN_S
10444
10445 # A BSD-compatible nm program.
10446 NM=$lt_NM
10447
10448 # A symbol stripping program
10449 STRIP=$lt_STRIP
10450
10451 # Used to examine libraries when file_magic_cmd begins "file"
10452 MAGIC_CMD=$MAGIC_CMD
10453
10454 # Used on cygwin: DLL creation program.
10455 DLLTOOL="$DLLTOOL"
10456
10457 # Used on cygwin: object dumper.
10458 OBJDUMP="$OBJDUMP"
10459
10460 # Used on cygwin: assembler.
10461 AS="$AS"
10462
10463 # The name of the directory that contains temporary libtool files.
10464 objdir=$objdir
10465
10466 # How to create reloadable object files.
10467 reload_flag=$lt_reload_flag
10468 reload_cmds=$lt_reload_cmds
10469
10470 # How to pass a linker flag through the compiler.
10471 wl=$lt_lt_prog_compiler_wl
10472
10473 # Object file suffix (normally "o").
10474 objext="$ac_objext"
10475
10476 # Old archive suffix (normally "a").
10477 libext="$libext"
10478
10479 # Shared library suffix (normally ".so").
10480 shrext_cmds='$shrext_cmds'
10481
10482 # Executable file suffix (normally "").
10483 exeext="$exeext"
10484
10485 # Additional compiler flags for building library objects.
10486 pic_flag=$lt_lt_prog_compiler_pic
10487 pic_mode=$pic_mode
10488
10489 # What is the maximum length of a command?
10490 max_cmd_len=$lt_cv_sys_max_cmd_len
10491
10492 # Does compiler simultaneously support -c and -o options?
10493 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10494
10495 # Must we lock files when doing compilation?
10496 need_locks=$lt_need_locks
10497
10498 # Do we need the lib prefix for modules?
10499 need_lib_prefix=$need_lib_prefix
10500
10501 # Do we need a version for libraries?
10502 need_version=$need_version
10503
10504 # Whether dlopen is supported.
10505 dlopen_support=$enable_dlopen
10506
10507 # Whether dlopen of programs is supported.
10508 dlopen_self=$enable_dlopen_self
10509
10510 # Whether dlopen of statically linked programs is supported.
10511 dlopen_self_static=$enable_dlopen_self_static
10512
10513 # Compiler flag to prevent dynamic linking.
10514 link_static_flag=$lt_lt_prog_compiler_static
10515
10516 # Compiler flag to turn off builtin functions.
10517 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10518
10519 # Compiler flag to allow reflexive dlopens.
10520 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10521
10522 # Compiler flag to generate shared objects directly from archives.
10523 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10524
10525 # Compiler flag to generate thread-safe objects.
10526 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10527
10528 # Library versioning type.
10529 version_type=$version_type
10530
10531 # Format of library name prefix.
10532 libname_spec=$lt_libname_spec
10533
10534 # List of archive names.  First name is the real one, the rest are links.
10535 # The last name is the one that the linker finds with -lNAME.
10536 library_names_spec=$lt_library_names_spec
10537
10538 # The coded name of the library, if different from the real name.
10539 soname_spec=$lt_soname_spec
10540
10541 # Commands used to build and install an old-style archive.
10542 RANLIB=$lt_RANLIB
10543 old_archive_cmds=$lt_old_archive_cmds
10544 old_postinstall_cmds=$lt_old_postinstall_cmds
10545 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10546
10547 # Create an old-style archive from a shared archive.
10548 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10549
10550 # Create a temporary old-style archive to link instead of a shared archive.
10551 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10552
10553 # Commands used to build and install a shared archive.
10554 archive_cmds=$lt_archive_cmds
10555 archive_expsym_cmds=$lt_archive_expsym_cmds
10556 postinstall_cmds=$lt_postinstall_cmds
10557 postuninstall_cmds=$lt_postuninstall_cmds
10558
10559 # Commands used to build a loadable module (assumed same as above if empty)
10560 module_cmds=$lt_module_cmds
10561 module_expsym_cmds=$lt_module_expsym_cmds
10562
10563 # Commands to strip libraries.
10564 old_striplib=$lt_old_striplib
10565 striplib=$lt_striplib
10566
10567 # Dependencies to place before the objects being linked to create a
10568 # shared library.
10569 predep_objects=$lt_predep_objects
10570
10571 # Dependencies to place after the objects being linked to create a
10572 # shared library.
10573 postdep_objects=$lt_postdep_objects
10574
10575 # Dependencies to place before the objects being linked to create a
10576 # shared library.
10577 predeps=$lt_predeps
10578
10579 # Dependencies to place after the objects being linked to create a
10580 # shared library.
10581 postdeps=$lt_postdeps
10582
10583 # The library search path used internally by the compiler when linking
10584 # a shared library.
10585 compiler_lib_search_path=$lt_compiler_lib_search_path
10586
10587 # Method to check whether dependent libraries are shared objects.
10588 deplibs_check_method=$lt_deplibs_check_method
10589
10590 # Command to use when deplibs_check_method == file_magic.
10591 file_magic_cmd=$lt_file_magic_cmd
10592
10593 # Flag that allows shared libraries with undefined symbols to be built.
10594 allow_undefined_flag=$lt_allow_undefined_flag
10595
10596 # Flag that forces no undefined symbols.
10597 no_undefined_flag=$lt_no_undefined_flag
10598
10599 # Commands used to finish a libtool library installation in a directory.
10600 finish_cmds=$lt_finish_cmds
10601
10602 # Same as above, but a single script fragment to be evaled but not shown.
10603 finish_eval=$lt_finish_eval
10604
10605 # Take the output of nm and produce a listing of raw symbols and C names.
10606 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10607
10608 # Transform the output of nm in a proper C declaration
10609 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10610
10611 # Transform the output of nm in a C name address pair
10612 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10613
10614 # This is the shared library runtime path variable.
10615 runpath_var=$runpath_var
10616
10617 # This is the shared library path variable.
10618 shlibpath_var=$shlibpath_var
10619
10620 # Is shlibpath searched before the hard-coded library search path?
10621 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10622
10623 # How to hardcode a shared library path into an executable.
10624 hardcode_action=$hardcode_action
10625
10626 # Whether we should hardcode library paths into libraries.
10627 hardcode_into_libs=$hardcode_into_libs
10628
10629 # Flag to hardcode \$libdir into a binary during linking.
10630 # This must work even if \$libdir does not exist.
10631 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10632
10633 # If ld is used when linking, flag to hardcode \$libdir into
10634 # a binary during linking. This must work even if \$libdir does
10635 # not exist.
10636 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10637
10638 # Whether we need a single -rpath flag with a separated argument.
10639 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10640
10641 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10642 # resulting binary.
10643 hardcode_direct=$hardcode_direct
10644
10645 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10646 # resulting binary.
10647 hardcode_minus_L=$hardcode_minus_L
10648
10649 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10650 # the resulting binary.
10651 hardcode_shlibpath_var=$hardcode_shlibpath_var
10652
10653 # Set to yes if building a shared library automatically hardcodes DIR into the library
10654 # and all subsequent libraries and executables linked against it.
10655 hardcode_automatic=$hardcode_automatic
10656
10657 # Variables whose values should be saved in libtool wrapper scripts and
10658 # restored at relink time.
10659 variables_saved_for_relink="$variables_saved_for_relink"
10660
10661 # Whether libtool must link a program against all its dependency libraries.
10662 link_all_deplibs=$link_all_deplibs
10663
10664 # Compile-time system search path for libraries
10665 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10666
10667 # Run-time system search path for libraries
10668 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10669
10670 # Fix the shell variable \$srcfile for the compiler.
10671 fix_srcfile_path="$fix_srcfile_path"
10672
10673 # Set to yes if exported symbols are required.
10674 always_export_symbols=$always_export_symbols
10675
10676 # The commands to list exported symbols.
10677 export_symbols_cmds=$lt_export_symbols_cmds
10678
10679 # The commands to extract the exported symbol list from a shared archive.
10680 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10681
10682 # Symbols that should not be listed in the preloaded symbols.
10683 exclude_expsyms=$lt_exclude_expsyms
10684
10685 # Symbols that must always be exported.
10686 include_expsyms=$lt_include_expsyms
10687
10688 # ### END LIBTOOL CONFIG
10689
10690 __EOF__
10691
10692
10693   case $host_os in
10694   aix3*)
10695     cat <<\EOF >> "$cfgfile"
10696
10697 # AIX sometimes has problems with the GCC collect2 program.  For some
10698 # reason, if we set the COLLECT_NAMES environment variable, the problems
10699 # vanish in a puff of smoke.
10700 if test "X${COLLECT_NAMES+set}" != Xset; then
10701   COLLECT_NAMES=
10702   export COLLECT_NAMES
10703 fi
10704 EOF
10705     ;;
10706   esac
10707
10708   # We use sed instead of cat because bash on DJGPP gets confused if
10709   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10710   # text mode, it properly converts lines to CR/LF.  This bash problem
10711   # is reportedly fixed, but why not run on old versions too?
10712   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10713
10714   mv -f "$cfgfile" "$ofile" || \
10715     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10716   chmod +x "$ofile"
10717
10718 else
10719   # If there is no Makefile yet, we rely on a make rule to execute
10720   # `config.status --recheck' to rerun these tests and create the
10721   # libtool script then.
10722   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10723   if test -f "$ltmain_in"; then
10724     test -f Makefile && make "$ltmain"
10725   fi
10726 fi
10727
10728
10729 ac_ext=c
10730 ac_cpp='$CPP $CPPFLAGS'
10731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10734
10735 CC="$lt_save_CC"
10736
10737
10738 # Check whether --with-tags was given.
10739 if test "${with_tags+set}" = set; then
10740   withval=$with_tags; tagnames="$withval"
10741 fi
10742
10743
10744 if test -f "$ltmain" && test -n "$tagnames"; then
10745   if test ! -f "${ofile}"; then
10746     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10747 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10748   fi
10749
10750   if test -z "$LTCC"; then
10751     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10752     if test -z "$LTCC"; then
10753       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10754 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10755     else
10756       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10757 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10758     fi
10759   fi
10760   if test -z "$LTCFLAGS"; then
10761     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10762   fi
10763
10764   # Extract list of available tagged configurations in $ofile.
10765   # Note that this assumes the entire list is on one line.
10766   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10767
10768   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10769   for tagname in $tagnames; do
10770     IFS="$lt_save_ifs"
10771     # Check whether tagname contains only valid characters
10772     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10773     "") ;;
10774     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10775 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10776    { (exit 1); exit 1; }; }
10777         ;;
10778     esac
10779
10780     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10781     then
10782       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10783 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10784    { (exit 1); exit 1; }; }
10785     fi
10786
10787     # Update the list of available tags.
10788     if test -n "$tagname"; then
10789       echo appending configuration tag \"$tagname\" to $ofile
10790
10791       case $tagname in
10792       CXX)
10793         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10794             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10795             (test "X$CXX" != "Xg++"))) ; then
10796           ac_ext=cpp
10797 ac_cpp='$CXXCPP $CPPFLAGS'
10798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10801
10802
10803
10804
10805 archive_cmds_need_lc_CXX=no
10806 allow_undefined_flag_CXX=
10807 always_export_symbols_CXX=no
10808 archive_expsym_cmds_CXX=
10809 export_dynamic_flag_spec_CXX=
10810 hardcode_direct_CXX=no
10811 hardcode_libdir_flag_spec_CXX=
10812 hardcode_libdir_flag_spec_ld_CXX=
10813 hardcode_libdir_separator_CXX=
10814 hardcode_minus_L_CXX=no
10815 hardcode_shlibpath_var_CXX=unsupported
10816 hardcode_automatic_CXX=no
10817 module_cmds_CXX=
10818 module_expsym_cmds_CXX=
10819 link_all_deplibs_CXX=unknown
10820 old_archive_cmds_CXX=$old_archive_cmds
10821 no_undefined_flag_CXX=
10822 whole_archive_flag_spec_CXX=
10823 enable_shared_with_static_runtimes_CXX=no
10824
10825 # Dependencies to place before and after the object being linked:
10826 predep_objects_CXX=
10827 postdep_objects_CXX=
10828 predeps_CXX=
10829 postdeps_CXX=
10830 compiler_lib_search_path_CXX=
10831
10832 # Source file extension for C++ test sources.
10833 ac_ext=cpp
10834
10835 # Object file extension for compiled C++ test sources.
10836 objext=o
10837 objext_CXX=$objext
10838
10839 # Code to be used in simple compile tests
10840 lt_simple_compile_test_code="int some_variable = 0;\n"
10841
10842 # Code to be used in simple link tests
10843 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10844
10845 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10846
10847 # If no C compiler was specified, use CC.
10848 LTCC=${LTCC-"$CC"}
10849
10850 # If no C compiler flags were specified, use CFLAGS.
10851 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10852
10853 # Allow CC to be a program name with arguments.
10854 compiler=$CC
10855
10856
10857 # save warnings/boilerplate of simple test code
10858 ac_outfile=conftest.$ac_objext
10859 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10860 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10861 _lt_compiler_boilerplate=`cat conftest.err`
10862 $rm conftest*
10863
10864 ac_outfile=conftest.$ac_objext
10865 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10866 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10867 _lt_linker_boilerplate=`cat conftest.err`
10868 $rm conftest*
10869
10870
10871 # Allow CC to be a program name with arguments.
10872 lt_save_CC=$CC
10873 lt_save_LD=$LD
10874 lt_save_GCC=$GCC
10875 GCC=$GXX
10876 lt_save_with_gnu_ld=$with_gnu_ld
10877 lt_save_path_LD=$lt_cv_path_LD
10878 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10879   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10880 else
10881   $as_unset lt_cv_prog_gnu_ld
10882 fi
10883 if test -n "${lt_cv_path_LDCXX+set}"; then
10884   lt_cv_path_LD=$lt_cv_path_LDCXX
10885 else
10886   $as_unset lt_cv_path_LD
10887 fi
10888 test -z "${LDCXX+set}" || LD=$LDCXX
10889 CC=${CXX-"c++"}
10890 compiler=$CC
10891 compiler_CXX=$CC
10892 for cc_temp in $compiler""; do
10893   case $cc_temp in
10894     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10895     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10896     \-*) ;;
10897     *) break;;
10898   esac
10899 done
10900 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10901
10902
10903 # We don't want -fno-exception wen compiling C++ code, so set the
10904 # no_builtin_flag separately
10905 if test "$GXX" = yes; then
10906   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10907 else
10908   lt_prog_compiler_no_builtin_flag_CXX=
10909 fi
10910
10911 if test "$GXX" = yes; then
10912   # Set up default GNU C++ configuration
10913
10914
10915 # Check whether --with-gnu-ld was given.
10916 if test "${with_gnu_ld+set}" = set; then
10917   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10918 else
10919   with_gnu_ld=no
10920 fi
10921
10922 ac_prog=ld
10923 if test "$GCC" = yes; then
10924   # Check if gcc -print-prog-name=ld gives a path.
10925   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10926 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10927   case $host in
10928   *-*-mingw*)
10929     # gcc leaves a trailing carriage return which upsets mingw
10930     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10931   *)
10932     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10933   esac
10934   case $ac_prog in
10935     # Accept absolute paths.
10936     [\\/]* | ?:[\\/]*)
10937       re_direlt='/[^/][^/]*/\.\./'
10938       # Canonicalize the pathname of ld
10939       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10940       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10941         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10942       done
10943       test -z "$LD" && LD="$ac_prog"
10944       ;;
10945   "")
10946     # If it fails, then pretend we aren't using GCC.
10947     ac_prog=ld
10948     ;;
10949   *)
10950     # If it is relative, then search for the first ld in PATH.
10951     with_gnu_ld=unknown
10952     ;;
10953   esac
10954 elif test "$with_gnu_ld" = yes; then
10955   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10956 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10957 else
10958   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10959 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10960 fi
10961 if test "${lt_cv_path_LD+set}" = set; then
10962   echo $ECHO_N "(cached) $ECHO_C" >&6
10963 else
10964   if test -z "$LD"; then
10965   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10966   for ac_dir in $PATH; do
10967     IFS="$lt_save_ifs"
10968     test -z "$ac_dir" && ac_dir=.
10969     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10970       lt_cv_path_LD="$ac_dir/$ac_prog"
10971       # Check to see if the program is GNU ld.  I'd rather use --version,
10972       # but apparently some variants of GNU ld only accept -v.
10973       # Break only if it was the GNU/non-GNU ld that we prefer.
10974       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10975       *GNU* | *'with BFD'*)
10976         test "$with_gnu_ld" != no && break
10977         ;;
10978       *)
10979         test "$with_gnu_ld" != yes && break
10980         ;;
10981       esac
10982     fi
10983   done
10984   IFS="$lt_save_ifs"
10985 else
10986   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10987 fi
10988 fi
10989
10990 LD="$lt_cv_path_LD"
10991 if test -n "$LD"; then
10992   { echo "$as_me:$LINENO: result: $LD" >&5
10993 echo "${ECHO_T}$LD" >&6; }
10994 else
10995   { echo "$as_me:$LINENO: result: no" >&5
10996 echo "${ECHO_T}no" >&6; }
10997 fi
10998 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10999 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11000    { (exit 1); exit 1; }; }
11001 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11002 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11003 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11004   echo $ECHO_N "(cached) $ECHO_C" >&6
11005 else
11006   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11007 case `$LD -v 2>&1 </dev/null` in
11008 *GNU* | *'with BFD'*)
11009   lt_cv_prog_gnu_ld=yes
11010   ;;
11011 *)
11012   lt_cv_prog_gnu_ld=no
11013   ;;
11014 esac
11015 fi
11016 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11017 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11018 with_gnu_ld=$lt_cv_prog_gnu_ld
11019
11020
11021
11022   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11023   # archiving commands below assume that GNU ld is being used.
11024   if test "$with_gnu_ld" = yes; then
11025     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11026     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'
11027
11028     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11029     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11030
11031     # If archive_cmds runs LD, not CC, wlarc should be empty
11032     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11033     #     investigate it a little bit more. (MM)
11034     wlarc='${wl}'
11035
11036     # ancient GNU ld didn't support --whole-archive et. al.
11037     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11038         grep 'no-whole-archive' > /dev/null; then
11039       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11040     else
11041       whole_archive_flag_spec_CXX=
11042     fi
11043   else
11044     with_gnu_ld=no
11045     wlarc=
11046
11047     # A generic and very simple default shared library creation
11048     # command for GNU C++ for the case where it uses the native
11049     # linker, instead of GNU ld.  If possible, this setting should
11050     # overridden to take advantage of the native linker features on
11051     # the platform it is being used on.
11052     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11053   fi
11054
11055   # Commands to make compiler produce verbose output that lists
11056   # what "hidden" libraries, object files and flags are used when
11057   # linking a shared library.
11058   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11059
11060 else
11061   GXX=no
11062   with_gnu_ld=no
11063   wlarc=
11064 fi
11065
11066 # PORTME: fill in a description of your system's C++ link characteristics
11067 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11068 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11069 ld_shlibs_CXX=yes
11070 case $host_os in
11071   aix3*)
11072     # FIXME: insert proper C++ library support
11073     ld_shlibs_CXX=no
11074     ;;
11075   aix4* | aix5*)
11076     if test "$host_cpu" = ia64; then
11077       # On IA64, the linker does run time linking by default, so we don't
11078       # have to do anything special.
11079       aix_use_runtimelinking=no
11080       exp_sym_flag='-Bexport'
11081       no_entry_flag=""
11082     else
11083       aix_use_runtimelinking=no
11084
11085       # Test if we are trying to use run time linking or normal
11086       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11087       # need to do runtime linking.
11088       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11089         for ld_flag in $LDFLAGS; do
11090           case $ld_flag in
11091           *-brtl*)
11092             aix_use_runtimelinking=yes
11093             break
11094             ;;
11095           esac
11096         done
11097         ;;
11098       esac
11099
11100       exp_sym_flag='-bexport'
11101       no_entry_flag='-bnoentry'
11102     fi
11103
11104     # When large executables or shared objects are built, AIX ld can
11105     # have problems creating the table of contents.  If linking a library
11106     # or program results in "error TOC overflow" add -mminimal-toc to
11107     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11108     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11109
11110     archive_cmds_CXX=''
11111     hardcode_direct_CXX=yes
11112     hardcode_libdir_separator_CXX=':'
11113     link_all_deplibs_CXX=yes
11114
11115     if test "$GXX" = yes; then
11116       case $host_os in aix4.[012]|aix4.[012].*)
11117       # We only want to do this on AIX 4.2 and lower, the check
11118       # below for broken collect2 doesn't work under 4.3+
11119         collect2name=`${CC} -print-prog-name=collect2`
11120         if test -f "$collect2name" && \
11121            strings "$collect2name" | grep resolve_lib_name >/dev/null
11122         then
11123           # We have reworked collect2
11124           hardcode_direct_CXX=yes
11125         else
11126           # We have old collect2
11127           hardcode_direct_CXX=unsupported
11128           # It fails to find uninstalled libraries when the uninstalled
11129           # path is not listed in the libpath.  Setting hardcode_minus_L
11130           # to unsupported forces relinking
11131           hardcode_minus_L_CXX=yes
11132           hardcode_libdir_flag_spec_CXX='-L$libdir'
11133           hardcode_libdir_separator_CXX=
11134         fi
11135         ;;
11136       esac
11137       shared_flag='-shared'
11138       if test "$aix_use_runtimelinking" = yes; then
11139         shared_flag="$shared_flag "'${wl}-G'
11140       fi
11141     else
11142       # not using gcc
11143       if test "$host_cpu" = ia64; then
11144         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11145         # chokes on -Wl,-G. The following line is correct:
11146         shared_flag='-G'
11147       else
11148         if test "$aix_use_runtimelinking" = yes; then
11149           shared_flag='${wl}-G'
11150         else
11151           shared_flag='${wl}-bM:SRE'
11152         fi
11153       fi
11154     fi
11155
11156     # It seems that -bexpall does not export symbols beginning with
11157     # underscore (_), so it is better to generate a list of symbols to export.
11158     always_export_symbols_CXX=yes
11159     if test "$aix_use_runtimelinking" = yes; then
11160       # Warning - without using the other runtime loading flags (-brtl),
11161       # -berok will link without error, but may produce a broken library.
11162       allow_undefined_flag_CXX='-berok'
11163       # Determine the default libpath from the value encoded in an empty executable.
11164       cat >conftest.$ac_ext <<_ACEOF
11165 /* confdefs.h.  */
11166 _ACEOF
11167 cat confdefs.h >>conftest.$ac_ext
11168 cat >>conftest.$ac_ext <<_ACEOF
11169 /* end confdefs.h.  */
11170
11171 int
11172 main ()
11173 {
11174
11175   ;
11176   return 0;
11177 }
11178 _ACEOF
11179 rm -f conftest.$ac_objext conftest$ac_exeext
11180 if { (ac_try="$ac_link"
11181 case "(($ac_try" in
11182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183   *) ac_try_echo=$ac_try;;
11184 esac
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186   (eval "$ac_link") 2>conftest.er1
11187   ac_status=$?
11188   grep -v '^ *+' conftest.er1 >conftest.err
11189   rm -f conftest.er1
11190   cat conftest.err >&5
11191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192   (exit $ac_status); } && {
11193          test -z "$ac_cxx_werror_flag" ||
11194          test ! -s conftest.err
11195        } && test -s conftest$ac_exeext &&
11196        $as_test_x conftest$ac_exeext; then
11197
11198 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11199 }'`
11200 # Check for a 64-bit object if we didn't find anything.
11201 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11202 }'`; fi
11203 else
11204   echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11206
11207
11208 fi
11209
11210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11211       conftest$ac_exeext conftest.$ac_ext
11212 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11213
11214       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11215
11216       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"
11217      else
11218       if test "$host_cpu" = ia64; then
11219         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11220         allow_undefined_flag_CXX="-z nodefs"
11221         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"
11222       else
11223         # Determine the default libpath from the value encoded in an empty executable.
11224         cat >conftest.$ac_ext <<_ACEOF
11225 /* confdefs.h.  */
11226 _ACEOF
11227 cat confdefs.h >>conftest.$ac_ext
11228 cat >>conftest.$ac_ext <<_ACEOF
11229 /* end confdefs.h.  */
11230
11231 int
11232 main ()
11233 {
11234
11235   ;
11236   return 0;
11237 }
11238 _ACEOF
11239 rm -f conftest.$ac_objext conftest$ac_exeext
11240 if { (ac_try="$ac_link"
11241 case "(($ac_try" in
11242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243   *) ac_try_echo=$ac_try;;
11244 esac
11245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11246   (eval "$ac_link") 2>conftest.er1
11247   ac_status=$?
11248   grep -v '^ *+' conftest.er1 >conftest.err
11249   rm -f conftest.er1
11250   cat conftest.err >&5
11251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252   (exit $ac_status); } && {
11253          test -z "$ac_cxx_werror_flag" ||
11254          test ! -s conftest.err
11255        } && test -s conftest$ac_exeext &&
11256        $as_test_x conftest$ac_exeext; then
11257
11258 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11259 }'`
11260 # Check for a 64-bit object if we didn't find anything.
11261 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11262 }'`; fi
11263 else
11264   echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.$ac_ext >&5
11266
11267
11268 fi
11269
11270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11271       conftest$ac_exeext conftest.$ac_ext
11272 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11273
11274         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11275         # Warning - without using the other run time loading flags,
11276         # -berok will link without error, but may produce a broken library.
11277         no_undefined_flag_CXX=' ${wl}-bernotok'
11278         allow_undefined_flag_CXX=' ${wl}-berok'
11279         # Exported symbols can be pulled into shared objects from archives
11280         whole_archive_flag_spec_CXX='$convenience'
11281         archive_cmds_need_lc_CXX=yes
11282         # This is similar to how AIX traditionally builds its shared libraries.
11283         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'
11284       fi
11285     fi
11286     ;;
11287
11288   beos*)
11289     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11290       allow_undefined_flag_CXX=unsupported
11291       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11292       # support --undefined.  This deserves some investigation.  FIXME
11293       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11294     else
11295       ld_shlibs_CXX=no
11296     fi
11297     ;;
11298
11299   chorus*)
11300     case $cc_basename in
11301       *)
11302         # FIXME: insert proper C++ library support
11303         ld_shlibs_CXX=no
11304         ;;
11305     esac
11306     ;;
11307
11308   cygwin* | mingw* | pw32*)
11309     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11310     # as there is no search path for DLLs.
11311     hardcode_libdir_flag_spec_CXX='-L$libdir'
11312     allow_undefined_flag_CXX=unsupported
11313     always_export_symbols_CXX=no
11314     enable_shared_with_static_runtimes_CXX=yes
11315
11316     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11317       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'
11318       # If the export-symbols file already is a .def file (1st line
11319       # is EXPORTS), use it as is; otherwise, prepend...
11320       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11321         cp $export_symbols $output_objdir/$soname.def;
11322       else
11323         echo EXPORTS > $output_objdir/$soname.def;
11324         cat $export_symbols >> $output_objdir/$soname.def;
11325       fi~
11326       $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'
11327     else
11328       ld_shlibs_CXX=no
11329     fi
11330   ;;
11331       darwin* | rhapsody*)
11332         case $host_os in
11333         rhapsody* | darwin1.[012])
11334          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11335          ;;
11336        *) # Darwin 1.3 on
11337          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11338            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11339          else
11340            case ${MACOSX_DEPLOYMENT_TARGET} in
11341              10.[012])
11342                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11343                ;;
11344              10.*)
11345                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11346                ;;
11347            esac
11348          fi
11349          ;;
11350         esac
11351       archive_cmds_need_lc_CXX=no
11352       hardcode_direct_CXX=no
11353       hardcode_automatic_CXX=yes
11354       hardcode_shlibpath_var_CXX=unsupported
11355       whole_archive_flag_spec_CXX=''
11356       link_all_deplibs_CXX=yes
11357
11358     if test "$GXX" = yes ; then
11359       lt_int_apple_cc_single_mod=no
11360       output_verbose_link_cmd='echo'
11361       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11362        lt_int_apple_cc_single_mod=yes
11363       fi
11364       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11365        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11366       else
11367           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'
11368         fi
11369         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11370         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11371           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11372             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11373           else
11374             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11375           fi
11376             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}'
11377       else
11378       case $cc_basename in
11379         xlc*)
11380          output_verbose_link_cmd='echo'
11381           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11382           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11383           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11384           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11385           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}'
11386           ;;
11387        *)
11388          ld_shlibs_CXX=no
11389           ;;
11390       esac
11391       fi
11392         ;;
11393
11394   dgux*)
11395     case $cc_basename in
11396       ec++*)
11397         # FIXME: insert proper C++ library support
11398         ld_shlibs_CXX=no
11399         ;;
11400       ghcx*)
11401         # Green Hills C++ Compiler
11402         # FIXME: insert proper C++ library support
11403         ld_shlibs_CXX=no
11404         ;;
11405       *)
11406         # FIXME: insert proper C++ library support
11407         ld_shlibs_CXX=no
11408         ;;
11409     esac
11410     ;;
11411   freebsd[12]*)
11412     # C++ shared libraries reported to be fairly broken before switch to ELF
11413     ld_shlibs_CXX=no
11414     ;;
11415   freebsd-elf*)
11416     archive_cmds_need_lc_CXX=no
11417     ;;
11418   freebsd* | kfreebsd*-gnu | dragonfly*)
11419     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11420     # conventions
11421     ld_shlibs_CXX=yes
11422     ;;
11423   gnu*)
11424     ;;
11425   hpux9*)
11426     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11427     hardcode_libdir_separator_CXX=:
11428     export_dynamic_flag_spec_CXX='${wl}-E'
11429     hardcode_direct_CXX=yes
11430     hardcode_minus_L_CXX=yes # Not in the search PATH,
11431                                 # but as the default
11432                                 # location of the library.
11433
11434     case $cc_basename in
11435     CC*)
11436       # FIXME: insert proper C++ library support
11437       ld_shlibs_CXX=no
11438       ;;
11439     aCC*)
11440       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'
11441       # Commands to make compiler produce verbose output that lists
11442       # what "hidden" libraries, object files and flags are used when
11443       # linking a shared library.
11444       #
11445       # There doesn't appear to be a way to prevent this compiler from
11446       # explicitly linking system object files so we need to strip them
11447       # from the output so that they don't get included in the library
11448       # dependencies.
11449       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'
11450       ;;
11451     *)
11452       if test "$GXX" = yes; then
11453         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'
11454       else
11455         # FIXME: insert proper C++ library support
11456         ld_shlibs_CXX=no
11457       fi
11458       ;;
11459     esac
11460     ;;
11461   hpux10*|hpux11*)
11462     if test $with_gnu_ld = no; then
11463       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11464       hardcode_libdir_separator_CXX=:
11465
11466       case $host_cpu in
11467       hppa*64*|ia64*)
11468         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11469         ;;
11470       *)
11471         export_dynamic_flag_spec_CXX='${wl}-E'
11472         ;;
11473       esac
11474     fi
11475     case $host_cpu in
11476     hppa*64*|ia64*)
11477       hardcode_direct_CXX=no
11478       hardcode_shlibpath_var_CXX=no
11479       ;;
11480     *)
11481       hardcode_direct_CXX=yes
11482       hardcode_minus_L_CXX=yes # Not in the search PATH,
11483                                               # but as the default
11484                                               # location of the library.
11485       ;;
11486     esac
11487
11488     case $cc_basename in
11489       CC*)
11490         # FIXME: insert proper C++ library support
11491         ld_shlibs_CXX=no
11492         ;;
11493       aCC*)
11494         case $host_cpu in
11495         hppa*64*)
11496           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11497           ;;
11498         ia64*)
11499           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11500           ;;
11501         *)
11502           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11503           ;;
11504         esac
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         #
11509         # There doesn't appear to be a way to prevent this compiler from
11510         # explicitly linking system object files so we need to strip them
11511         # from the output so that they don't get included in the library
11512         # dependencies.
11513         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'
11514         ;;
11515       *)
11516         if test "$GXX" = yes; then
11517           if test $with_gnu_ld = no; then
11518             case $host_cpu in
11519             hppa*64*)
11520               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11521               ;;
11522             ia64*)
11523               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11524               ;;
11525             *)
11526               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'
11527               ;;
11528             esac
11529           fi
11530         else
11531           # FIXME: insert proper C++ library support
11532           ld_shlibs_CXX=no
11533         fi
11534         ;;
11535     esac
11536     ;;
11537   interix3*)
11538     hardcode_direct_CXX=no
11539     hardcode_shlibpath_var_CXX=no
11540     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11541     export_dynamic_flag_spec_CXX='${wl}-E'
11542     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11543     # Instead, shared libraries are loaded at an image base (0x10000000 by
11544     # default) and relocated if they conflict, which is a slow very memory
11545     # consuming and fragmenting process.  To avoid this, we pick a random,
11546     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11547     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11548     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'
11549     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'
11550     ;;
11551   irix5* | irix6*)
11552     case $cc_basename in
11553       CC*)
11554         # SGI C++
11555         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'
11556
11557         # Archives containing C++ object files must be created using
11558         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11559         # necessary to make sure instantiated templates are included
11560         # in the archive.
11561         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11562         ;;
11563       *)
11564         if test "$GXX" = yes; then
11565           if test "$with_gnu_ld" = no; then
11566             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'
11567           else
11568             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'
11569           fi
11570         fi
11571         link_all_deplibs_CXX=yes
11572         ;;
11573     esac
11574     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11575     hardcode_libdir_separator_CXX=:
11576     ;;
11577   linux*)
11578     case $cc_basename in
11579       KCC*)
11580         # Kuck and Associates, Inc. (KAI) C++ Compiler
11581
11582         # KCC will only create a shared library if the output file
11583         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11584         # to its proper name (with version) after linking.
11585         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'
11586         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'
11587         # Commands to make compiler produce verbose output that lists
11588         # what "hidden" libraries, object files and flags are used when
11589         # linking a shared library.
11590         #
11591         # There doesn't appear to be a way to prevent this compiler from
11592         # explicitly linking system object files so we need to strip them
11593         # from the output so that they don't get included in the library
11594         # dependencies.
11595         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'
11596
11597         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11598         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11599
11600         # Archives containing C++ object files must be created using
11601         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11602         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11603         ;;
11604       icpc*)
11605         # Intel C++
11606         with_gnu_ld=yes
11607         # version 8.0 and above of icpc choke on multiply defined symbols
11608         # if we add $predep_objects and $postdep_objects, however 7.1 and
11609         # earlier do not add the objects themselves.
11610         case `$CC -V 2>&1` in
11611         *"Version 7."*)
11612           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11613           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'
11614           ;;
11615         *)  # Version 8.0 or newer
11616           tmp_idyn=
11617           case $host_cpu in
11618             ia64*) tmp_idyn=' -i_dynamic';;
11619           esac
11620           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11621           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'
11622           ;;
11623         esac
11624         archive_cmds_need_lc_CXX=no
11625         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11626         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11627         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11628         ;;
11629       pgCC*)
11630         # Portland Group C++ compiler
11631         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11632         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'
11633
11634         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11635         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11636         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'
11637         ;;
11638       cxx*)
11639         # Compaq C++
11640         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11641         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'
11642
11643         runpath_var=LD_RUN_PATH
11644         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11645         hardcode_libdir_separator_CXX=:
11646
11647         # Commands to make compiler produce verbose output that lists
11648         # what "hidden" libraries, object files and flags are used when
11649         # linking a shared library.
11650         #
11651         # There doesn't appear to be a way to prevent this compiler from
11652         # explicitly linking system object files so we need to strip them
11653         # from the output so that they don't get included in the library
11654         # dependencies.
11655         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'
11656         ;;
11657     esac
11658     ;;
11659   lynxos*)
11660     # FIXME: insert proper C++ library support
11661     ld_shlibs_CXX=no
11662     ;;
11663   m88k*)
11664     # FIXME: insert proper C++ library support
11665     ld_shlibs_CXX=no
11666     ;;
11667   mvs*)
11668     case $cc_basename in
11669       cxx*)
11670         # FIXME: insert proper C++ library support
11671         ld_shlibs_CXX=no
11672         ;;
11673       *)
11674         # FIXME: insert proper C++ library support
11675         ld_shlibs_CXX=no
11676         ;;
11677     esac
11678     ;;
11679   netbsd*)
11680     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11681       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11682       wlarc=
11683       hardcode_libdir_flag_spec_CXX='-R$libdir'
11684       hardcode_direct_CXX=yes
11685       hardcode_shlibpath_var_CXX=no
11686     fi
11687     # Workaround some broken pre-1.5 toolchains
11688     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11689     ;;
11690   openbsd2*)
11691     # C++ shared libraries are fairly broken
11692     ld_shlibs_CXX=no
11693     ;;
11694   openbsd*)
11695     hardcode_direct_CXX=yes
11696     hardcode_shlibpath_var_CXX=no
11697     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11698     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11699     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11700       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11701       export_dynamic_flag_spec_CXX='${wl}-E'
11702       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11703     fi
11704     output_verbose_link_cmd='echo'
11705     ;;
11706   osf3*)
11707     case $cc_basename in
11708       KCC*)
11709         # Kuck and Associates, Inc. (KAI) C++ Compiler
11710
11711         # KCC will only create a shared library if the output file
11712         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11713         # to its proper name (with version) after linking.
11714         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'
11715
11716         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11717         hardcode_libdir_separator_CXX=:
11718
11719         # Archives containing C++ object files must be created using
11720         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11721         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11722
11723         ;;
11724       RCC*)
11725         # Rational C++ 2.4.1
11726         # FIXME: insert proper C++ library support
11727         ld_shlibs_CXX=no
11728         ;;
11729       cxx*)
11730         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11731         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'
11732
11733         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11734         hardcode_libdir_separator_CXX=:
11735
11736         # Commands to make compiler produce verbose output that lists
11737         # what "hidden" libraries, object files and flags are used when
11738         # linking a shared library.
11739         #
11740         # There doesn't appear to be a way to prevent this compiler from
11741         # explicitly linking system object files so we need to strip them
11742         # from the output so that they don't get included in the library
11743         # dependencies.
11744         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'
11745         ;;
11746       *)
11747         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11748           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11749           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'
11750
11751           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11752           hardcode_libdir_separator_CXX=:
11753
11754           # Commands to make compiler produce verbose output that lists
11755           # what "hidden" libraries, object files and flags are used when
11756           # linking a shared library.
11757           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11758
11759         else
11760           # FIXME: insert proper C++ library support
11761           ld_shlibs_CXX=no
11762         fi
11763         ;;
11764     esac
11765     ;;
11766   osf4* | osf5*)
11767     case $cc_basename in
11768       KCC*)
11769         # Kuck and Associates, Inc. (KAI) C++ Compiler
11770
11771         # KCC will only create a shared library if the output file
11772         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11773         # to its proper name (with version) after linking.
11774         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'
11775
11776         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11777         hardcode_libdir_separator_CXX=:
11778
11779         # Archives containing C++ object files must be created using
11780         # the KAI C++ compiler.
11781         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11782         ;;
11783       RCC*)
11784         # Rational C++ 2.4.1
11785         # FIXME: insert proper C++ library support
11786         ld_shlibs_CXX=no
11787         ;;
11788       cxx*)
11789         allow_undefined_flag_CXX=' -expect_unresolved \*'
11790         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'
11791         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11792           echo "-hidden">> $lib.exp~
11793           $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~
11794           $rm $lib.exp'
11795
11796         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11797         hardcode_libdir_separator_CXX=:
11798
11799         # Commands to make compiler produce verbose output that lists
11800         # what "hidden" libraries, object files and flags are used when
11801         # linking a shared library.
11802         #
11803         # There doesn't appear to be a way to prevent this compiler from
11804         # explicitly linking system object files so we need to strip them
11805         # from the output so that they don't get included in the library
11806         # dependencies.
11807         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'
11808         ;;
11809       *)
11810         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11811           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11812          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'
11813
11814           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11815           hardcode_libdir_separator_CXX=:
11816
11817           # Commands to make compiler produce verbose output that lists
11818           # what "hidden" libraries, object files and flags are used when
11819           # linking a shared library.
11820           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11821
11822         else
11823           # FIXME: insert proper C++ library support
11824           ld_shlibs_CXX=no
11825         fi
11826         ;;
11827     esac
11828     ;;
11829   psos*)
11830     # FIXME: insert proper C++ library support
11831     ld_shlibs_CXX=no
11832     ;;
11833   sunos4*)
11834     case $cc_basename in
11835       CC*)
11836         # Sun C++ 4.x
11837         # FIXME: insert proper C++ library support
11838         ld_shlibs_CXX=no
11839         ;;
11840       lcc*)
11841         # Lucid
11842         # FIXME: insert proper C++ library support
11843         ld_shlibs_CXX=no
11844         ;;
11845       *)
11846         # FIXME: insert proper C++ library support
11847         ld_shlibs_CXX=no
11848         ;;
11849     esac
11850     ;;
11851   solaris*)
11852     case $cc_basename in
11853       CC*)
11854         # Sun C++ 4.2, 5.x and Centerline C++
11855         archive_cmds_need_lc_CXX=yes
11856         no_undefined_flag_CXX=' -zdefs'
11857         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11858         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11859         $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'
11860
11861         hardcode_libdir_flag_spec_CXX='-R$libdir'
11862         hardcode_shlibpath_var_CXX=no
11863         case $host_os in
11864           solaris2.[0-5] | solaris2.[0-5].*) ;;
11865           *)
11866             # The C++ compiler is used as linker so we must use $wl
11867             # flag to pass the commands to the underlying system
11868             # linker. We must also pass each convience library through
11869             # to the system linker between allextract/defaultextract.
11870             # The C++ compiler will combine linker options so we
11871             # cannot just pass the convience library names through
11872             # without $wl.
11873             # Supported since Solaris 2.6 (maybe 2.5.1?)
11874             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11875             ;;
11876         esac
11877         link_all_deplibs_CXX=yes
11878
11879         output_verbose_link_cmd='echo'
11880
11881         # Archives containing C++ object files must be created using
11882         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11883         # necessary to make sure instantiated templates are included
11884         # in the archive.
11885         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11886         ;;
11887       gcx*)
11888         # Green Hills C++ Compiler
11889         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11890
11891         # The C++ compiler must be used to create the archive.
11892         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11893         ;;
11894       *)
11895         # GNU C++ compiler with Solaris linker
11896         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11897           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11898           if $CC --version | grep -v '^2\.7' > /dev/null; then
11899             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11900             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11901                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11902
11903             # Commands to make compiler produce verbose output that lists
11904             # what "hidden" libraries, object files and flags are used when
11905             # linking a shared library.
11906             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11907           else
11908             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11909             # platform.
11910             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11911             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11912                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11913
11914             # Commands to make compiler produce verbose output that lists
11915             # what "hidden" libraries, object files and flags are used when
11916             # linking a shared library.
11917             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11918           fi
11919
11920           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11921         fi
11922         ;;
11923     esac
11924     ;;
11925   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11926     no_undefined_flag_CXX='${wl}-z,text'
11927     archive_cmds_need_lc_CXX=no
11928     hardcode_shlibpath_var_CXX=no
11929     runpath_var='LD_RUN_PATH'
11930
11931     case $cc_basename in
11932       CC*)
11933         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11934         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11935         ;;
11936       *)
11937         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11938         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11939         ;;
11940     esac
11941     ;;
11942   sysv5* | sco3.2v5* | sco5v6*)
11943     # Note: We can NOT use -z defs as we might desire, because we do not
11944     # link with -lc, and that would cause any symbols used from libc to
11945     # always be unresolved, which means just about no library would
11946     # ever link correctly.  If we're not using GNU ld we use -z text
11947     # though, which does catch some bad symbols but isn't as heavy-handed
11948     # as -z defs.
11949     # For security reasons, it is highly recommended that you always
11950     # use absolute paths for naming shared libraries, and exclude the
11951     # DT_RUNPATH tag from executables and libraries.  But doing so
11952     # requires that you compile everything twice, which is a pain.
11953     # So that behaviour is only enabled if SCOABSPATH is set to a
11954     # non-empty value in the environment.  Most likely only useful for
11955     # creating official distributions of packages.
11956     # This is a hack until libtool officially supports absolute path
11957     # names for shared libraries.
11958     no_undefined_flag_CXX='${wl}-z,text'
11959     allow_undefined_flag_CXX='${wl}-z,nodefs'
11960     archive_cmds_need_lc_CXX=no
11961     hardcode_shlibpath_var_CXX=no
11962     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11963     hardcode_libdir_separator_CXX=':'
11964     link_all_deplibs_CXX=yes
11965     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11966     runpath_var='LD_RUN_PATH'
11967
11968     case $cc_basename in
11969       CC*)
11970         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11971         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11972         ;;
11973       *)
11974         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11975         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11976         ;;
11977     esac
11978     ;;
11979   tandem*)
11980     case $cc_basename in
11981       NCC*)
11982         # NonStop-UX NCC 3.20
11983         # FIXME: insert proper C++ library support
11984         ld_shlibs_CXX=no
11985         ;;
11986       *)
11987         # FIXME: insert proper C++ library support
11988         ld_shlibs_CXX=no
11989         ;;
11990     esac
11991     ;;
11992   vxworks*)
11993     # FIXME: insert proper C++ library support
11994     ld_shlibs_CXX=no
11995     ;;
11996   *)
11997     # FIXME: insert proper C++ library support
11998     ld_shlibs_CXX=no
11999     ;;
12000 esac
12001 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12002 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12003 test "$ld_shlibs_CXX" = no && can_build_shared=no
12004
12005 GCC_CXX="$GXX"
12006 LD_CXX="$LD"
12007
12008 ## CAVEAT EMPTOR:
12009 ## There is no encapsulation within the following macros, do not change
12010 ## the running order or otherwise move them around unless you know exactly
12011 ## what you are doing...
12012
12013 cat > conftest.$ac_ext <<EOF
12014 class Foo
12015 {
12016 public:
12017   Foo (void) { a = 0; }
12018 private:
12019   int a;
12020 };
12021 EOF
12022
12023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12024   (eval $ac_compile) 2>&5
12025   ac_status=$?
12026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027   (exit $ac_status); }; then
12028   # Parse the compiler output and extract the necessary
12029   # objects, libraries and library flags.
12030
12031   # Sentinel used to keep track of whether or not we are before
12032   # the conftest object file.
12033   pre_test_object_deps_done=no
12034
12035   # The `*' in the case matches for architectures that use `case' in
12036   # $output_verbose_cmd can trigger glob expansion during the loop
12037   # eval without this substitution.
12038   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12039
12040   for p in `eval $output_verbose_link_cmd`; do
12041     case $p in
12042
12043     -L* | -R* | -l*)
12044        # Some compilers place space between "-{L,R}" and the path.
12045        # Remove the space.
12046        if test $p = "-L" \
12047           || test $p = "-R"; then
12048          prev=$p
12049          continue
12050        else
12051          prev=
12052        fi
12053
12054        if test "$pre_test_object_deps_done" = no; then
12055          case $p in
12056          -L* | -R*)
12057            # Internal compiler library paths should come after those
12058            # provided the user.  The postdeps already come after the
12059            # user supplied libs so there is no need to process them.
12060            if test -z "$compiler_lib_search_path_CXX"; then
12061              compiler_lib_search_path_CXX="${prev}${p}"
12062            else
12063              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12064            fi
12065            ;;
12066          # The "-l" case would never come before the object being
12067          # linked, so don't bother handling this case.
12068          esac
12069        else
12070          if test -z "$postdeps_CXX"; then
12071            postdeps_CXX="${prev}${p}"
12072          else
12073            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12074          fi
12075        fi
12076        ;;
12077
12078     *.$objext)
12079        # This assumes that the test object file only shows up
12080        # once in the compiler output.
12081        if test "$p" = "conftest.$objext"; then
12082          pre_test_object_deps_done=yes
12083          continue
12084        fi
12085
12086        if test "$pre_test_object_deps_done" = no; then
12087          if test -z "$predep_objects_CXX"; then
12088            predep_objects_CXX="$p"
12089          else
12090            predep_objects_CXX="$predep_objects_CXX $p"
12091          fi
12092        else
12093          if test -z "$postdep_objects_CXX"; then
12094            postdep_objects_CXX="$p"
12095          else
12096            postdep_objects_CXX="$postdep_objects_CXX $p"
12097          fi
12098        fi
12099        ;;
12100
12101     *) ;; # Ignore the rest.
12102
12103     esac
12104   done
12105
12106   # Clean up.
12107   rm -f a.out a.exe
12108 else
12109   echo "libtool.m4: error: problem compiling CXX test program"
12110 fi
12111
12112 $rm -f confest.$objext
12113
12114 # PORTME: override above test on systems where it is broken
12115 case $host_os in
12116 interix3*)
12117   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12118   # hack all around it, let's just trust "g++" to DTRT.
12119   predep_objects_CXX=
12120   postdep_objects_CXX=
12121   postdeps_CXX=
12122   ;;
12123
12124 solaris*)
12125   case $cc_basename in
12126   CC*)
12127     # Adding this requires a known-good setup of shared libraries for
12128     # Sun compiler versions before 5.6, else PIC objects from an old
12129     # archive will be linked into the output, leading to subtle bugs.
12130     postdeps_CXX='-lCstd -lCrun'
12131     ;;
12132   esac
12133   ;;
12134 esac
12135
12136
12137 case " $postdeps_CXX " in
12138 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12139 esac
12140
12141 lt_prog_compiler_wl_CXX=
12142 lt_prog_compiler_pic_CXX=
12143 lt_prog_compiler_static_CXX=
12144
12145 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12146 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12147
12148   # C++ specific cases for pic, static, wl, etc.
12149   if test "$GXX" = yes; then
12150     lt_prog_compiler_wl_CXX='-Wl,'
12151     lt_prog_compiler_static_CXX='-static'
12152
12153     case $host_os in
12154     aix*)
12155       # All AIX code is PIC.
12156       if test "$host_cpu" = ia64; then
12157         # AIX 5 now supports IA64 processor
12158         lt_prog_compiler_static_CXX='-Bstatic'
12159       fi
12160       ;;
12161     amigaos*)
12162       # FIXME: we need at least 68020 code to build shared libraries, but
12163       # adding the `-m68020' flag to GCC prevents building anything better,
12164       # like `-m68040'.
12165       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12166       ;;
12167     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12168       # PIC is the default for these OSes.
12169       ;;
12170     mingw* | os2* | pw32*)
12171       # This hack is so that the source file can tell whether it is being
12172       # built for inclusion in a dll (and should export symbols for example).
12173       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12174       ;;
12175     darwin* | rhapsody*)
12176       # PIC is the default on this platform
12177       # Common symbols not allowed in MH_DYLIB files
12178       lt_prog_compiler_pic_CXX='-fno-common'
12179       ;;
12180     *djgpp*)
12181       # DJGPP does not support shared libraries at all
12182       lt_prog_compiler_pic_CXX=
12183       ;;
12184     interix3*)
12185       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12186       # Instead, we relocate shared libraries at runtime.
12187       ;;
12188     sysv4*MP*)
12189       if test -d /usr/nec; then
12190         lt_prog_compiler_pic_CXX=-Kconform_pic
12191       fi
12192       ;;
12193     hpux*)
12194       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12195       # not for PA HP-UX.
12196       case $host_cpu in
12197       hppa*64*|ia64*)
12198         ;;
12199       *)
12200         lt_prog_compiler_pic_CXX='-fPIC'
12201         ;;
12202       esac
12203       ;;
12204     *)
12205       lt_prog_compiler_pic_CXX='-fPIC'
12206       ;;
12207     esac
12208   else
12209     case $host_os in
12210       aix4* | aix5*)
12211         # All AIX code is PIC.
12212         if test "$host_cpu" = ia64; then
12213           # AIX 5 now supports IA64 processor
12214           lt_prog_compiler_static_CXX='-Bstatic'
12215         else
12216           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12217         fi
12218         ;;
12219       chorus*)
12220         case $cc_basename in
12221         cxch68*)
12222           # Green Hills C++ Compiler
12223           # _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"
12224           ;;
12225         esac
12226         ;;
12227        darwin*)
12228          # PIC is the default on this platform
12229          # Common symbols not allowed in MH_DYLIB files
12230          case $cc_basename in
12231            xlc*)
12232            lt_prog_compiler_pic_CXX='-qnocommon'
12233            lt_prog_compiler_wl_CXX='-Wl,'
12234            ;;
12235          esac
12236        ;;
12237       dgux*)
12238         case $cc_basename in
12239           ec++*)
12240             lt_prog_compiler_pic_CXX='-KPIC'
12241             ;;
12242           ghcx*)
12243             # Green Hills C++ Compiler
12244             lt_prog_compiler_pic_CXX='-pic'
12245             ;;
12246           *)
12247             ;;
12248         esac
12249         ;;
12250       freebsd* | kfreebsd*-gnu | dragonfly*)
12251         # FreeBSD uses GNU C++
12252         ;;
12253       hpux9* | hpux10* | hpux11*)
12254         case $cc_basename in
12255           CC*)
12256             lt_prog_compiler_wl_CXX='-Wl,'
12257             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12258             if test "$host_cpu" != ia64; then
12259               lt_prog_compiler_pic_CXX='+Z'
12260             fi
12261             ;;
12262           aCC*)
12263             lt_prog_compiler_wl_CXX='-Wl,'
12264             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12265             case $host_cpu in
12266             hppa*64*|ia64*)
12267               # +Z the default
12268               ;;
12269             *)
12270               lt_prog_compiler_pic_CXX='+Z'
12271               ;;
12272             esac
12273             ;;
12274           *)
12275             ;;
12276         esac
12277         ;;
12278       interix*)
12279         # This is c89, which is MS Visual C++ (no shared libs)
12280         # Anyone wants to do a port?
12281         ;;
12282       irix5* | irix6* | nonstopux*)
12283         case $cc_basename in
12284           CC*)
12285             lt_prog_compiler_wl_CXX='-Wl,'
12286             lt_prog_compiler_static_CXX='-non_shared'
12287             # CC pic flag -KPIC is the default.
12288             ;;
12289           *)
12290             ;;
12291         esac
12292         ;;
12293       linux*)
12294         case $cc_basename in
12295           KCC*)
12296             # KAI C++ Compiler
12297             lt_prog_compiler_wl_CXX='--backend -Wl,'
12298             lt_prog_compiler_pic_CXX='-fPIC'
12299             ;;
12300           icpc* | ecpc*)
12301             # Intel C++
12302             lt_prog_compiler_wl_CXX='-Wl,'
12303             lt_prog_compiler_pic_CXX='-KPIC'
12304             lt_prog_compiler_static_CXX='-static'
12305             ;;
12306           pgCC*)
12307             # Portland Group C++ compiler.
12308             lt_prog_compiler_wl_CXX='-Wl,'
12309             lt_prog_compiler_pic_CXX='-fpic'
12310             lt_prog_compiler_static_CXX='-Bstatic'
12311             ;;
12312           cxx*)
12313             # Compaq C++
12314             # Make sure the PIC flag is empty.  It appears that all Alpha
12315             # Linux and Compaq Tru64 Unix objects are PIC.
12316             lt_prog_compiler_pic_CXX=
12317             lt_prog_compiler_static_CXX='-non_shared'
12318             ;;
12319           *)
12320             ;;
12321         esac
12322         ;;
12323       lynxos*)
12324         ;;
12325       m88k*)
12326         ;;
12327       mvs*)
12328         case $cc_basename in
12329           cxx*)
12330             lt_prog_compiler_pic_CXX='-W c,exportall'
12331             ;;
12332           *)
12333             ;;
12334         esac
12335         ;;
12336       netbsd*)
12337         ;;
12338       osf3* | osf4* | osf5*)
12339         case $cc_basename in
12340           KCC*)
12341             lt_prog_compiler_wl_CXX='--backend -Wl,'
12342             ;;
12343           RCC*)
12344             # Rational C++ 2.4.1
12345             lt_prog_compiler_pic_CXX='-pic'
12346             ;;
12347           cxx*)
12348             # Digital/Compaq C++
12349             lt_prog_compiler_wl_CXX='-Wl,'
12350             # Make sure the PIC flag is empty.  It appears that all Alpha
12351             # Linux and Compaq Tru64 Unix objects are PIC.
12352             lt_prog_compiler_pic_CXX=
12353             lt_prog_compiler_static_CXX='-non_shared'
12354             ;;
12355           *)
12356             ;;
12357         esac
12358         ;;
12359       psos*)
12360         ;;
12361       solaris*)
12362         case $cc_basename in
12363           CC*)
12364             # Sun C++ 4.2, 5.x and Centerline C++
12365             lt_prog_compiler_pic_CXX='-KPIC'
12366             lt_prog_compiler_static_CXX='-Bstatic'
12367             lt_prog_compiler_wl_CXX='-Qoption ld '
12368             ;;
12369           gcx*)
12370             # Green Hills C++ Compiler
12371             lt_prog_compiler_pic_CXX='-PIC'
12372             ;;
12373           *)
12374             ;;
12375         esac
12376         ;;
12377       sunos4*)
12378         case $cc_basename in
12379           CC*)
12380             # Sun C++ 4.x
12381             lt_prog_compiler_pic_CXX='-pic'
12382             lt_prog_compiler_static_CXX='-Bstatic'
12383             ;;
12384           lcc*)
12385             # Lucid
12386             lt_prog_compiler_pic_CXX='-pic'
12387             ;;
12388           *)
12389             ;;
12390         esac
12391         ;;
12392       tandem*)
12393         case $cc_basename in
12394           NCC*)
12395             # NonStop-UX NCC 3.20
12396             lt_prog_compiler_pic_CXX='-KPIC'
12397             ;;
12398           *)
12399             ;;
12400         esac
12401         ;;
12402       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12403         case $cc_basename in
12404           CC*)
12405             lt_prog_compiler_wl_CXX='-Wl,'
12406             lt_prog_compiler_pic_CXX='-KPIC'
12407             lt_prog_compiler_static_CXX='-Bstatic'
12408             ;;
12409         esac
12410         ;;
12411       vxworks*)
12412         ;;
12413       *)
12414         lt_prog_compiler_can_build_shared_CXX=no
12415         ;;
12416     esac
12417   fi
12418
12419 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12420 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12421
12422 #
12423 # Check to make sure the PIC flag actually works.
12424 #
12425 if test -n "$lt_prog_compiler_pic_CXX"; then
12426
12427 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12428 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12429 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12430   echo $ECHO_N "(cached) $ECHO_C" >&6
12431 else
12432   lt_prog_compiler_pic_works_CXX=no
12433   ac_outfile=conftest.$ac_objext
12434    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12435    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12436    # Insert the option either (1) after the last *FLAGS variable, or
12437    # (2) before a word containing "conftest.", or (3) at the end.
12438    # Note that $ac_compile itself does not contain backslashes and begins
12439    # with a dollar sign (not a hyphen), so the echo should work correctly.
12440    # The option is referenced via a variable to avoid confusing sed.
12441    lt_compile=`echo "$ac_compile" | $SED \
12442    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12443    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12444    -e 's:$: $lt_compiler_flag:'`
12445    (eval echo "\"\$as_me:12445: $lt_compile\"" >&5)
12446    (eval "$lt_compile" 2>conftest.err)
12447    ac_status=$?
12448    cat conftest.err >&5
12449    echo "$as_me:12449: \$? = $ac_status" >&5
12450    if (exit $ac_status) && test -s "$ac_outfile"; then
12451      # The compiler can only warn and ignore the option if not recognized
12452      # So say no if there are warnings other than the usual output.
12453      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12454      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12455      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12456        lt_prog_compiler_pic_works_CXX=yes
12457      fi
12458    fi
12459    $rm conftest*
12460
12461 fi
12462 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12463 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12464
12465 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12466     case $lt_prog_compiler_pic_CXX in
12467      "" | " "*) ;;
12468      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12469      esac
12470 else
12471     lt_prog_compiler_pic_CXX=
12472      lt_prog_compiler_can_build_shared_CXX=no
12473 fi
12474
12475 fi
12476 case $host_os in
12477   # For platforms which do not support PIC, -DPIC is meaningless:
12478   *djgpp*)
12479     lt_prog_compiler_pic_CXX=
12480     ;;
12481   *)
12482     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12483     ;;
12484 esac
12485
12486 #
12487 # Check to make sure the static flag actually works.
12488 #
12489 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12490 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12491 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12492 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12493   echo $ECHO_N "(cached) $ECHO_C" >&6
12494 else
12495   lt_prog_compiler_static_works_CXX=no
12496    save_LDFLAGS="$LDFLAGS"
12497    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12498    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12499    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12500      # The linker can only warn and ignore the option if not recognized
12501      # So say no if there are warnings
12502      if test -s conftest.err; then
12503        # Append any errors to the config.log.
12504        cat conftest.err 1>&5
12505        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12506        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12507        if diff conftest.exp conftest.er2 >/dev/null; then
12508          lt_prog_compiler_static_works_CXX=yes
12509        fi
12510      else
12511        lt_prog_compiler_static_works_CXX=yes
12512      fi
12513    fi
12514    $rm conftest*
12515    LDFLAGS="$save_LDFLAGS"
12516
12517 fi
12518 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12519 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12520
12521 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12522     :
12523 else
12524     lt_prog_compiler_static_CXX=
12525 fi
12526
12527
12528 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12529 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12530 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12531   echo $ECHO_N "(cached) $ECHO_C" >&6
12532 else
12533   lt_cv_prog_compiler_c_o_CXX=no
12534    $rm -r conftest 2>/dev/null
12535    mkdir conftest
12536    cd conftest
12537    mkdir out
12538    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12539
12540    lt_compiler_flag="-o out/conftest2.$ac_objext"
12541    # Insert the option either (1) after the last *FLAGS variable, or
12542    # (2) before a word containing "conftest.", or (3) at the end.
12543    # Note that $ac_compile itself does not contain backslashes and begins
12544    # with a dollar sign (not a hyphen), so the echo should work correctly.
12545    lt_compile=`echo "$ac_compile" | $SED \
12546    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12547    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12548    -e 's:$: $lt_compiler_flag:'`
12549    (eval echo "\"\$as_me:12549: $lt_compile\"" >&5)
12550    (eval "$lt_compile" 2>out/conftest.err)
12551    ac_status=$?
12552    cat out/conftest.err >&5
12553    echo "$as_me:12553: \$? = $ac_status" >&5
12554    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12555    then
12556      # The compiler can only warn and ignore the option if not recognized
12557      # So say no if there are warnings
12558      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12559      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12560      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12561        lt_cv_prog_compiler_c_o_CXX=yes
12562      fi
12563    fi
12564    chmod u+w . 2>&5
12565    $rm conftest*
12566    # SGI C++ compiler will create directory out/ii_files/ for
12567    # template instantiation
12568    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12569    $rm out/* && rmdir out
12570    cd ..
12571    rmdir conftest
12572    $rm conftest*
12573
12574 fi
12575 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12576 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12577
12578
12579 hard_links="nottested"
12580 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12581   # do not overwrite the value of need_locks provided by the user
12582   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12583 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12584   hard_links=yes
12585   $rm conftest*
12586   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12587   touch conftest.a
12588   ln conftest.a conftest.b 2>&5 || hard_links=no
12589   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12590   { echo "$as_me:$LINENO: result: $hard_links" >&5
12591 echo "${ECHO_T}$hard_links" >&6; }
12592   if test "$hard_links" = no; then
12593     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12594 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12595     need_locks=warn
12596   fi
12597 else
12598   need_locks=no
12599 fi
12600
12601 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12602 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12603
12604   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12605   case $host_os in
12606   aix4* | aix5*)
12607     # If we're using GNU nm, then we don't want the "-C" option.
12608     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12609     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12610       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'
12611     else
12612       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'
12613     fi
12614     ;;
12615   pw32*)
12616     export_symbols_cmds_CXX="$ltdll_cmds"
12617   ;;
12618   cygwin* | mingw*)
12619     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'
12620   ;;
12621   *)
12622     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12623   ;;
12624   esac
12625
12626 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12627 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12628 test "$ld_shlibs_CXX" = no && can_build_shared=no
12629
12630 #
12631 # Do we need to explicitly link libc?
12632 #
12633 case "x$archive_cmds_need_lc_CXX" in
12634 x|xyes)
12635   # Assume -lc should be added
12636   archive_cmds_need_lc_CXX=yes
12637
12638   if test "$enable_shared" = yes && test "$GCC" = yes; then
12639     case $archive_cmds_CXX in
12640     *'~'*)
12641       # FIXME: we may have to deal with multi-command sequences.
12642       ;;
12643     '$CC '*)
12644       # Test whether the compiler implicitly links with -lc since on some
12645       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12646       # to ld, don't add -lc before -lgcc.
12647       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12648 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12649       $rm conftest*
12650       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12651
12652       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12653   (eval $ac_compile) 2>&5
12654   ac_status=$?
12655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656   (exit $ac_status); } 2>conftest.err; then
12657         soname=conftest
12658         lib=conftest
12659         libobjs=conftest.$ac_objext
12660         deplibs=
12661         wl=$lt_prog_compiler_wl_CXX
12662         pic_flag=$lt_prog_compiler_pic_CXX
12663         compiler_flags=-v
12664         linker_flags=-v
12665         verstring=
12666         output_objdir=.
12667         libname=conftest
12668         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12669         allow_undefined_flag_CXX=
12670         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12671   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12672   ac_status=$?
12673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674   (exit $ac_status); }
12675         then
12676           archive_cmds_need_lc_CXX=no
12677         else
12678           archive_cmds_need_lc_CXX=yes
12679         fi
12680         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12681       else
12682         cat conftest.err 1>&5
12683       fi
12684       $rm conftest*
12685       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12686 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12687       ;;
12688     esac
12689   fi
12690   ;;
12691 esac
12692
12693 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12694 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12695 library_names_spec=
12696 libname_spec='lib$name'
12697 soname_spec=
12698 shrext_cmds=".so"
12699 postinstall_cmds=
12700 postuninstall_cmds=
12701 finish_cmds=
12702 finish_eval=
12703 shlibpath_var=
12704 shlibpath_overrides_runpath=unknown
12705 version_type=none
12706 dynamic_linker="$host_os ld.so"
12707 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12708 if test "$GCC" = yes; then
12709   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12710   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12711     # if the path contains ";" then we assume it to be the separator
12712     # otherwise default to the standard path separator (i.e. ":") - it is
12713     # assumed that no part of a normal pathname contains ";" but that should
12714     # okay in the real world where ";" in dirpaths is itself problematic.
12715     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12716   else
12717     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12718   fi
12719 else
12720   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12721 fi
12722 need_lib_prefix=unknown
12723 hardcode_into_libs=no
12724
12725 # when you set need_version to no, make sure it does not cause -set_version
12726 # flags to be left without arguments
12727 need_version=unknown
12728
12729 case $host_os in
12730 aix3*)
12731   version_type=linux
12732   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12733   shlibpath_var=LIBPATH
12734
12735   # AIX 3 has no versioning support, so we append a major version to the name.
12736   soname_spec='${libname}${release}${shared_ext}$major'
12737   ;;
12738
12739 aix4* | aix5*)
12740   version_type=linux
12741   need_lib_prefix=no
12742   need_version=no
12743   hardcode_into_libs=yes
12744   if test "$host_cpu" = ia64; then
12745     # AIX 5 supports IA64
12746     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12747     shlibpath_var=LD_LIBRARY_PATH
12748   else
12749     # With GCC up to 2.95.x, collect2 would create an import file
12750     # for dependence libraries.  The import file would start with
12751     # the line `#! .'.  This would cause the generated library to
12752     # depend on `.', always an invalid library.  This was fixed in
12753     # development snapshots of GCC prior to 3.0.
12754     case $host_os in
12755       aix4 | aix4.[01] | aix4.[01].*)
12756       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12757            echo ' yes '
12758            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12759         :
12760       else
12761         can_build_shared=no
12762       fi
12763       ;;
12764     esac
12765     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12766     # soname into executable. Probably we can add versioning support to
12767     # collect2, so additional links can be useful in future.
12768     if test "$aix_use_runtimelinking" = yes; then
12769       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12770       # instead of lib<name>.a to let people know that these are not
12771       # typical AIX shared libraries.
12772       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12773     else
12774       # We preserve .a as extension for shared libraries through AIX4.2
12775       # and later when we are not doing run time linking.
12776       library_names_spec='${libname}${release}.a $libname.a'
12777       soname_spec='${libname}${release}${shared_ext}$major'
12778     fi
12779     shlibpath_var=LIBPATH
12780   fi
12781   ;;
12782
12783 amigaos*)
12784   library_names_spec='$libname.ixlibrary $libname.a'
12785   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12786   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'
12787   ;;
12788
12789 beos*)
12790   library_names_spec='${libname}${shared_ext}'
12791   dynamic_linker="$host_os ld.so"
12792   shlibpath_var=LIBRARY_PATH
12793   ;;
12794
12795 bsdi[45]*)
12796   version_type=linux
12797   need_version=no
12798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12799   soname_spec='${libname}${release}${shared_ext}$major'
12800   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12801   shlibpath_var=LD_LIBRARY_PATH
12802   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12803   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12804   # the default ld.so.conf also contains /usr/contrib/lib and
12805   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12806   # libtool to hard-code these into programs
12807   ;;
12808
12809 cygwin* | mingw* | pw32*)
12810   version_type=windows
12811   shrext_cmds=".dll"
12812   need_version=no
12813   need_lib_prefix=no
12814
12815   case $GCC,$host_os in
12816   yes,cygwin* | yes,mingw* | yes,pw32*)
12817     library_names_spec='$libname.dll.a'
12818     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12819     postinstall_cmds='base_file=`basename \${file}`~
12820       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12821       dldir=$destdir/`dirname \$dlpath`~
12822       test -d \$dldir || mkdir -p \$dldir~
12823       $install_prog $dir/$dlname \$dldir/$dlname~
12824       chmod a+x \$dldir/$dlname'
12825     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12826       dlpath=$dir/\$dldll~
12827        $rm \$dlpath'
12828     shlibpath_overrides_runpath=yes
12829
12830     case $host_os in
12831     cygwin*)
12832       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12833       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12834       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12835       ;;
12836     mingw*)
12837       # MinGW DLLs use traditional 'lib' prefix
12838       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12839       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12840       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12841         # It is most probably a Windows format PATH printed by
12842         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12843         # path with ; separators, and with drive letters. We can handle the
12844         # drive letters (cygwin fileutils understands them), so leave them,
12845         # especially as we might pass files found there to a mingw objdump,
12846         # which wouldn't understand a cygwinified path. Ahh.
12847         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12848       else
12849         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12850       fi
12851       ;;
12852     pw32*)
12853       # pw32 DLLs use 'pw' prefix rather than 'lib'
12854       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12855       ;;
12856     esac
12857     ;;
12858
12859   *)
12860     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12861     ;;
12862   esac
12863   dynamic_linker='Win32 ld.exe'
12864   # FIXME: first we should search . and the directory the executable is in
12865   shlibpath_var=PATH
12866   ;;
12867
12868 darwin* | rhapsody*)
12869   dynamic_linker="$host_os dyld"
12870   version_type=darwin
12871   need_lib_prefix=no
12872   need_version=no
12873   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12874   soname_spec='${libname}${release}${major}$shared_ext'
12875   shlibpath_overrides_runpath=yes
12876   shlibpath_var=DYLD_LIBRARY_PATH
12877   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12878   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12879   if test "$GCC" = yes; then
12880     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12881   else
12882     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12883   fi
12884   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12885   ;;
12886
12887 dgux*)
12888   version_type=linux
12889   need_lib_prefix=no
12890   need_version=no
12891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12892   soname_spec='${libname}${release}${shared_ext}$major'
12893   shlibpath_var=LD_LIBRARY_PATH
12894   ;;
12895
12896 freebsd1*)
12897   dynamic_linker=no
12898   ;;
12899
12900 kfreebsd*-gnu)
12901   version_type=linux
12902   need_lib_prefix=no
12903   need_version=no
12904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12905   soname_spec='${libname}${release}${shared_ext}$major'
12906   shlibpath_var=LD_LIBRARY_PATH
12907   shlibpath_overrides_runpath=no
12908   hardcode_into_libs=yes
12909   dynamic_linker='GNU ld.so'
12910   ;;
12911
12912 freebsd* | dragonfly*)
12913   # DragonFly does not have aout.  When/if they implement a new
12914   # versioning mechanism, adjust this.
12915   if test -x /usr/bin/objformat; then
12916     objformat=`/usr/bin/objformat`
12917   else
12918     case $host_os in
12919     freebsd[123]*) objformat=aout ;;
12920     *) objformat=elf ;;
12921     esac
12922   fi
12923   version_type=freebsd-$objformat
12924   case $version_type in
12925     freebsd-elf*)
12926       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12927       need_version=no
12928       need_lib_prefix=no
12929       ;;
12930     freebsd-*)
12931       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12932       need_version=yes
12933       ;;
12934   esac
12935   shlibpath_var=LD_LIBRARY_PATH
12936   case $host_os in
12937   freebsd2*)
12938     shlibpath_overrides_runpath=yes
12939     ;;
12940   freebsd3.[01]* | freebsdelf3.[01]*)
12941     shlibpath_overrides_runpath=yes
12942     hardcode_into_libs=yes
12943     ;;
12944   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12945   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12946     shlibpath_overrides_runpath=no
12947     hardcode_into_libs=yes
12948     ;;
12949   freebsd*) # from 4.6 on
12950     shlibpath_overrides_runpath=yes
12951     hardcode_into_libs=yes
12952     ;;
12953   esac
12954   ;;
12955
12956 gnu*)
12957   version_type=linux
12958   need_lib_prefix=no
12959   need_version=no
12960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12961   soname_spec='${libname}${release}${shared_ext}$major'
12962   shlibpath_var=LD_LIBRARY_PATH
12963   hardcode_into_libs=yes
12964   ;;
12965
12966 hpux9* | hpux10* | hpux11*)
12967   # Give a soname corresponding to the major version so that dld.sl refuses to
12968   # link against other versions.
12969   version_type=sunos
12970   need_lib_prefix=no
12971   need_version=no
12972   case $host_cpu in
12973   ia64*)
12974     shrext_cmds='.so'
12975     hardcode_into_libs=yes
12976     dynamic_linker="$host_os dld.so"
12977     shlibpath_var=LD_LIBRARY_PATH
12978     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12979     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12980     soname_spec='${libname}${release}${shared_ext}$major'
12981     if test "X$HPUX_IA64_MODE" = X32; then
12982       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12983     else
12984       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12985     fi
12986     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12987     ;;
12988    hppa*64*)
12989      shrext_cmds='.sl'
12990      hardcode_into_libs=yes
12991      dynamic_linker="$host_os dld.sl"
12992      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12993      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12994      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12995      soname_spec='${libname}${release}${shared_ext}$major'
12996      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12997      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12998      ;;
12999    *)
13000     shrext_cmds='.sl'
13001     dynamic_linker="$host_os dld.sl"
13002     shlibpath_var=SHLIB_PATH
13003     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13004     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13005     soname_spec='${libname}${release}${shared_ext}$major'
13006     ;;
13007   esac
13008   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13009   postinstall_cmds='chmod 555 $lib'
13010   ;;
13011
13012 interix3*)
13013   version_type=linux
13014   need_lib_prefix=no
13015   need_version=no
13016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13017   soname_spec='${libname}${release}${shared_ext}$major'
13018   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13019   shlibpath_var=LD_LIBRARY_PATH
13020   shlibpath_overrides_runpath=no
13021   hardcode_into_libs=yes
13022   ;;
13023
13024 irix5* | irix6* | nonstopux*)
13025   case $host_os in
13026     nonstopux*) version_type=nonstopux ;;
13027     *)
13028         if test "$lt_cv_prog_gnu_ld" = yes; then
13029                 version_type=linux
13030         else
13031                 version_type=irix
13032         fi ;;
13033   esac
13034   need_lib_prefix=no
13035   need_version=no
13036   soname_spec='${libname}${release}${shared_ext}$major'
13037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13038   case $host_os in
13039   irix5* | nonstopux*)
13040     libsuff= shlibsuff=
13041     ;;
13042   *)
13043     case $LD in # libtool.m4 will add one of these switches to LD
13044     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13045       libsuff= shlibsuff= libmagic=32-bit;;
13046     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13047       libsuff=32 shlibsuff=N32 libmagic=N32;;
13048     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13049       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13050     *) libsuff= shlibsuff= libmagic=never-match;;
13051     esac
13052     ;;
13053   esac
13054   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13055   shlibpath_overrides_runpath=no
13056   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13057   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13058   hardcode_into_libs=yes
13059   ;;
13060
13061 # No shared lib support for Linux oldld, aout, or coff.
13062 linux*oldld* | linux*aout* | linux*coff*)
13063   dynamic_linker=no
13064   ;;
13065
13066 # This must be Linux ELF.
13067 linux*)
13068   version_type=linux
13069   need_lib_prefix=no
13070   need_version=no
13071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13072   soname_spec='${libname}${release}${shared_ext}$major'
13073   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13074   shlibpath_var=LD_LIBRARY_PATH
13075   shlibpath_overrides_runpath=no
13076   # This implies no fast_install, which is unacceptable.
13077   # Some rework will be needed to allow for fast_install
13078   # before this can be enabled.
13079   hardcode_into_libs=yes
13080
13081   # Append ld.so.conf contents to the search path
13082   if test -f /etc/ld.so.conf; then
13083     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13084     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13085   fi
13086
13087   # We used to test for /lib/ld.so.1 and disable shared libraries on
13088   # powerpc, because MkLinux only supported shared libraries with the
13089   # GNU dynamic linker.  Since this was broken with cross compilers,
13090   # most powerpc-linux boxes support dynamic linking these days and
13091   # people can always --disable-shared, the test was removed, and we
13092   # assume the GNU/Linux dynamic linker is in use.
13093   dynamic_linker='GNU/Linux ld.so'
13094   ;;
13095
13096 knetbsd*-gnu)
13097   version_type=linux
13098   need_lib_prefix=no
13099   need_version=no
13100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13101   soname_spec='${libname}${release}${shared_ext}$major'
13102   shlibpath_var=LD_LIBRARY_PATH
13103   shlibpath_overrides_runpath=no
13104   hardcode_into_libs=yes
13105   dynamic_linker='GNU ld.so'
13106   ;;
13107
13108 netbsd*)
13109   version_type=sunos
13110   need_lib_prefix=no
13111   need_version=no
13112   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13113     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13114     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13115     dynamic_linker='NetBSD (a.out) ld.so'
13116   else
13117     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13118     soname_spec='${libname}${release}${shared_ext}$major'
13119     dynamic_linker='NetBSD ld.elf_so'
13120   fi
13121   shlibpath_var=LD_LIBRARY_PATH
13122   shlibpath_overrides_runpath=yes
13123   hardcode_into_libs=yes
13124   ;;
13125
13126 newsos6)
13127   version_type=linux
13128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13129   shlibpath_var=LD_LIBRARY_PATH
13130   shlibpath_overrides_runpath=yes
13131   ;;
13132
13133 nto-qnx*)
13134   version_type=linux
13135   need_lib_prefix=no
13136   need_version=no
13137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13138   soname_spec='${libname}${release}${shared_ext}$major'
13139   shlibpath_var=LD_LIBRARY_PATH
13140   shlibpath_overrides_runpath=yes
13141   ;;
13142
13143 openbsd*)
13144   version_type=sunos
13145   sys_lib_dlsearch_path_spec="/usr/lib"
13146   need_lib_prefix=no
13147   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13148   case $host_os in
13149     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13150     *)                         need_version=no  ;;
13151   esac
13152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13153   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13154   shlibpath_var=LD_LIBRARY_PATH
13155   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13156     case $host_os in
13157       openbsd2.[89] | openbsd2.[89].*)
13158         shlibpath_overrides_runpath=no
13159         ;;
13160       *)
13161         shlibpath_overrides_runpath=yes
13162         ;;
13163       esac
13164   else
13165     shlibpath_overrides_runpath=yes
13166   fi
13167   ;;
13168
13169 os2*)
13170   libname_spec='$name'
13171   shrext_cmds=".dll"
13172   need_lib_prefix=no
13173   library_names_spec='$libname${shared_ext} $libname.a'
13174   dynamic_linker='OS/2 ld.exe'
13175   shlibpath_var=LIBPATH
13176   ;;
13177
13178 osf3* | osf4* | osf5*)
13179   version_type=osf
13180   need_lib_prefix=no
13181   need_version=no
13182   soname_spec='${libname}${release}${shared_ext}$major'
13183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13184   shlibpath_var=LD_LIBRARY_PATH
13185   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13186   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13187   ;;
13188
13189 solaris*)
13190   version_type=linux
13191   need_lib_prefix=no
13192   need_version=no
13193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13194   soname_spec='${libname}${release}${shared_ext}$major'
13195   shlibpath_var=LD_LIBRARY_PATH
13196   shlibpath_overrides_runpath=yes
13197   hardcode_into_libs=yes
13198   # ldd complains unless libraries are executable
13199   postinstall_cmds='chmod +x $lib'
13200   ;;
13201
13202 sunos4*)
13203   version_type=sunos
13204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13205   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13206   shlibpath_var=LD_LIBRARY_PATH
13207   shlibpath_overrides_runpath=yes
13208   if test "$with_gnu_ld" = yes; then
13209     need_lib_prefix=no
13210   fi
13211   need_version=yes
13212   ;;
13213
13214 sysv4 | sysv4.3*)
13215   version_type=linux
13216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13217   soname_spec='${libname}${release}${shared_ext}$major'
13218   shlibpath_var=LD_LIBRARY_PATH
13219   case $host_vendor in
13220     sni)
13221       shlibpath_overrides_runpath=no
13222       need_lib_prefix=no
13223       export_dynamic_flag_spec='${wl}-Blargedynsym'
13224       runpath_var=LD_RUN_PATH
13225       ;;
13226     siemens)
13227       need_lib_prefix=no
13228       ;;
13229     motorola)
13230       need_lib_prefix=no
13231       need_version=no
13232       shlibpath_overrides_runpath=no
13233       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13234       ;;
13235   esac
13236   ;;
13237
13238 sysv4*MP*)
13239   if test -d /usr/nec ;then
13240     version_type=linux
13241     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13242     soname_spec='$libname${shared_ext}.$major'
13243     shlibpath_var=LD_LIBRARY_PATH
13244   fi
13245   ;;
13246
13247 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13248   version_type=freebsd-elf
13249   need_lib_prefix=no
13250   need_version=no
13251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13252   soname_spec='${libname}${release}${shared_ext}$major'
13253   shlibpath_var=LD_LIBRARY_PATH
13254   hardcode_into_libs=yes
13255   if test "$with_gnu_ld" = yes; then
13256     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13257     shlibpath_overrides_runpath=no
13258   else
13259     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13260     shlibpath_overrides_runpath=yes
13261     case $host_os in
13262       sco3.2v5*)
13263         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13264         ;;
13265     esac
13266   fi
13267   sys_lib_dlsearch_path_spec='/usr/lib'
13268   ;;
13269
13270 uts4*)
13271   version_type=linux
13272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13273   soname_spec='${libname}${release}${shared_ext}$major'
13274   shlibpath_var=LD_LIBRARY_PATH
13275   ;;
13276
13277 *)
13278   dynamic_linker=no
13279   ;;
13280 esac
13281 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13282 echo "${ECHO_T}$dynamic_linker" >&6; }
13283 test "$dynamic_linker" = no && can_build_shared=no
13284
13285 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13286 if test "$GCC" = yes; then
13287   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13288 fi
13289
13290 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13291 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13292 hardcode_action_CXX=
13293 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13294    test -n "$runpath_var_CXX" || \
13295    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13296
13297   # We can hardcode non-existant directories.
13298   if test "$hardcode_direct_CXX" != no &&
13299      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13300      # have to relink, otherwise we might link with an installed library
13301      # when we should be linking with a yet-to-be-installed one
13302      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13303      test "$hardcode_minus_L_CXX" != no; then
13304     # Linking always hardcodes the temporary library directory.
13305     hardcode_action_CXX=relink
13306   else
13307     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13308     hardcode_action_CXX=immediate
13309   fi
13310 else
13311   # We cannot hardcode anything, or else we can only hardcode existing
13312   # directories.
13313   hardcode_action_CXX=unsupported
13314 fi
13315 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13316 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13317
13318 if test "$hardcode_action_CXX" = relink; then
13319   # Fast installation is not supported
13320   enable_fast_install=no
13321 elif test "$shlibpath_overrides_runpath" = yes ||
13322      test "$enable_shared" = no; then
13323   # Fast installation is not necessary
13324   enable_fast_install=needless
13325 fi
13326
13327
13328 # The else clause should only fire when bootstrapping the
13329 # libtool distribution, otherwise you forgot to ship ltmain.sh
13330 # with your package, and you will get complaints that there are
13331 # no rules to generate ltmain.sh.
13332 if test -f "$ltmain"; then
13333   # See if we are running on zsh, and set the options which allow our commands through
13334   # without removal of \ escapes.
13335   if test -n "${ZSH_VERSION+set}" ; then
13336     setopt NO_GLOB_SUBST
13337   fi
13338   # Now quote all the things that may contain metacharacters while being
13339   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13340   # variables and quote the copies for generation of the libtool script.
13341   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13342     SED SHELL STRIP \
13343     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13344     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13345     deplibs_check_method reload_flag reload_cmds need_locks \
13346     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13347     lt_cv_sys_global_symbol_to_c_name_address \
13348     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13349     old_postinstall_cmds old_postuninstall_cmds \
13350     compiler_CXX \
13351     CC_CXX \
13352     LD_CXX \
13353     lt_prog_compiler_wl_CXX \
13354     lt_prog_compiler_pic_CXX \
13355     lt_prog_compiler_static_CXX \
13356     lt_prog_compiler_no_builtin_flag_CXX \
13357     export_dynamic_flag_spec_CXX \
13358     thread_safe_flag_spec_CXX \
13359     whole_archive_flag_spec_CXX \
13360     enable_shared_with_static_runtimes_CXX \
13361     old_archive_cmds_CXX \
13362     old_archive_from_new_cmds_CXX \
13363     predep_objects_CXX \
13364     postdep_objects_CXX \
13365     predeps_CXX \
13366     postdeps_CXX \
13367     compiler_lib_search_path_CXX \
13368     archive_cmds_CXX \
13369     archive_expsym_cmds_CXX \
13370     postinstall_cmds_CXX \
13371     postuninstall_cmds_CXX \
13372     old_archive_from_expsyms_cmds_CXX \
13373     allow_undefined_flag_CXX \
13374     no_undefined_flag_CXX \
13375     export_symbols_cmds_CXX \
13376     hardcode_libdir_flag_spec_CXX \
13377     hardcode_libdir_flag_spec_ld_CXX \
13378     hardcode_libdir_separator_CXX \
13379     hardcode_automatic_CXX \
13380     module_cmds_CXX \
13381     module_expsym_cmds_CXX \
13382     lt_cv_prog_compiler_c_o_CXX \
13383     exclude_expsyms_CXX \
13384     include_expsyms_CXX; do
13385
13386     case $var in
13387     old_archive_cmds_CXX | \
13388     old_archive_from_new_cmds_CXX | \
13389     archive_cmds_CXX | \
13390     archive_expsym_cmds_CXX | \
13391     module_cmds_CXX | \
13392     module_expsym_cmds_CXX | \
13393     old_archive_from_expsyms_cmds_CXX | \
13394     export_symbols_cmds_CXX | \
13395     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13396     postinstall_cmds | postuninstall_cmds | \
13397     old_postinstall_cmds | old_postuninstall_cmds | \
13398     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13399       # Double-quote double-evaled strings.
13400       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13401       ;;
13402     *)
13403       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13404       ;;
13405     esac
13406   done
13407
13408   case $lt_echo in
13409   *'\$0 --fallback-echo"')
13410     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13411     ;;
13412   esac
13413
13414 cfgfile="$ofile"
13415
13416   cat <<__EOF__ >> "$cfgfile"
13417 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13418
13419 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13420
13421 # Shell to use when invoking shell scripts.
13422 SHELL=$lt_SHELL
13423
13424 # Whether or not to build shared libraries.
13425 build_libtool_libs=$enable_shared
13426
13427 # Whether or not to build static libraries.
13428 build_old_libs=$enable_static
13429
13430 # Whether or not to add -lc for building shared libraries.
13431 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13432
13433 # Whether or not to disallow shared libs when runtime libs are static
13434 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13435
13436 # Whether or not to optimize for fast installation.
13437 fast_install=$enable_fast_install
13438
13439 # The host system.
13440 host_alias=$host_alias
13441 host=$host
13442 host_os=$host_os
13443
13444 # The build system.
13445 build_alias=$build_alias
13446 build=$build
13447 build_os=$build_os
13448
13449 # An echo program that does not interpret backslashes.
13450 echo=$lt_echo
13451
13452 # The archiver.
13453 AR=$lt_AR
13454 AR_FLAGS=$lt_AR_FLAGS
13455
13456 # A C compiler.
13457 LTCC=$lt_LTCC
13458
13459 # LTCC compiler flags.
13460 LTCFLAGS=$lt_LTCFLAGS
13461
13462 # A language-specific compiler.
13463 CC=$lt_compiler_CXX
13464
13465 # Is the compiler the GNU C compiler?
13466 with_gcc=$GCC_CXX
13467
13468 # An ERE matcher.
13469 EGREP=$lt_EGREP
13470
13471 # The linker used to build libraries.
13472 LD=$lt_LD_CXX
13473
13474 # Whether we need hard or soft links.
13475 LN_S=$lt_LN_S
13476
13477 # A BSD-compatible nm program.
13478 NM=$lt_NM
13479
13480 # A symbol stripping program
13481 STRIP=$lt_STRIP
13482
13483 # Used to examine libraries when file_magic_cmd begins "file"
13484 MAGIC_CMD=$MAGIC_CMD
13485
13486 # Used on cygwin: DLL creation program.
13487 DLLTOOL="$DLLTOOL"
13488
13489 # Used on cygwin: object dumper.
13490 OBJDUMP="$OBJDUMP"
13491
13492 # Used on cygwin: assembler.
13493 AS="$AS"
13494
13495 # The name of the directory that contains temporary libtool files.
13496 objdir=$objdir
13497
13498 # How to create reloadable object files.
13499 reload_flag=$lt_reload_flag
13500 reload_cmds=$lt_reload_cmds
13501
13502 # How to pass a linker flag through the compiler.
13503 wl=$lt_lt_prog_compiler_wl_CXX
13504
13505 # Object file suffix (normally "o").
13506 objext="$ac_objext"
13507
13508 # Old archive suffix (normally "a").
13509 libext="$libext"
13510
13511 # Shared library suffix (normally ".so").
13512 shrext_cmds='$shrext_cmds'
13513
13514 # Executable file suffix (normally "").
13515 exeext="$exeext"
13516
13517 # Additional compiler flags for building library objects.
13518 pic_flag=$lt_lt_prog_compiler_pic_CXX
13519 pic_mode=$pic_mode
13520
13521 # What is the maximum length of a command?
13522 max_cmd_len=$lt_cv_sys_max_cmd_len
13523
13524 # Does compiler simultaneously support -c and -o options?
13525 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13526
13527 # Must we lock files when doing compilation?
13528 need_locks=$lt_need_locks
13529
13530 # Do we need the lib prefix for modules?
13531 need_lib_prefix=$need_lib_prefix
13532
13533 # Do we need a version for libraries?
13534 need_version=$need_version
13535
13536 # Whether dlopen is supported.
13537 dlopen_support=$enable_dlopen
13538
13539 # Whether dlopen of programs is supported.
13540 dlopen_self=$enable_dlopen_self
13541
13542 # Whether dlopen of statically linked programs is supported.
13543 dlopen_self_static=$enable_dlopen_self_static
13544
13545 # Compiler flag to prevent dynamic linking.
13546 link_static_flag=$lt_lt_prog_compiler_static_CXX
13547
13548 # Compiler flag to turn off builtin functions.
13549 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13550
13551 # Compiler flag to allow reflexive dlopens.
13552 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13553
13554 # Compiler flag to generate shared objects directly from archives.
13555 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13556
13557 # Compiler flag to generate thread-safe objects.
13558 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13559
13560 # Library versioning type.
13561 version_type=$version_type
13562
13563 # Format of library name prefix.
13564 libname_spec=$lt_libname_spec
13565
13566 # List of archive names.  First name is the real one, the rest are links.
13567 # The last name is the one that the linker finds with -lNAME.
13568 library_names_spec=$lt_library_names_spec
13569
13570 # The coded name of the library, if different from the real name.
13571 soname_spec=$lt_soname_spec
13572
13573 # Commands used to build and install an old-style archive.
13574 RANLIB=$lt_RANLIB
13575 old_archive_cmds=$lt_old_archive_cmds_CXX
13576 old_postinstall_cmds=$lt_old_postinstall_cmds
13577 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13578
13579 # Create an old-style archive from a shared archive.
13580 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13581
13582 # Create a temporary old-style archive to link instead of a shared archive.
13583 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13584
13585 # Commands used to build and install a shared archive.
13586 archive_cmds=$lt_archive_cmds_CXX
13587 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13588 postinstall_cmds=$lt_postinstall_cmds
13589 postuninstall_cmds=$lt_postuninstall_cmds
13590
13591 # Commands used to build a loadable module (assumed same as above if empty)
13592 module_cmds=$lt_module_cmds_CXX
13593 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13594
13595 # Commands to strip libraries.
13596 old_striplib=$lt_old_striplib
13597 striplib=$lt_striplib
13598
13599 # Dependencies to place before the objects being linked to create a
13600 # shared library.
13601 predep_objects=$lt_predep_objects_CXX
13602
13603 # Dependencies to place after the objects being linked to create a
13604 # shared library.
13605 postdep_objects=$lt_postdep_objects_CXX
13606
13607 # Dependencies to place before the objects being linked to create a
13608 # shared library.
13609 predeps=$lt_predeps_CXX
13610
13611 # Dependencies to place after the objects being linked to create a
13612 # shared library.
13613 postdeps=$lt_postdeps_CXX
13614
13615 # The library search path used internally by the compiler when linking
13616 # a shared library.
13617 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13618
13619 # Method to check whether dependent libraries are shared objects.
13620 deplibs_check_method=$lt_deplibs_check_method
13621
13622 # Command to use when deplibs_check_method == file_magic.
13623 file_magic_cmd=$lt_file_magic_cmd
13624
13625 # Flag that allows shared libraries with undefined symbols to be built.
13626 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13627
13628 # Flag that forces no undefined symbols.
13629 no_undefined_flag=$lt_no_undefined_flag_CXX
13630
13631 # Commands used to finish a libtool library installation in a directory.
13632 finish_cmds=$lt_finish_cmds
13633
13634 # Same as above, but a single script fragment to be evaled but not shown.
13635 finish_eval=$lt_finish_eval
13636
13637 # Take the output of nm and produce a listing of raw symbols and C names.
13638 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13639
13640 # Transform the output of nm in a proper C declaration
13641 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13642
13643 # Transform the output of nm in a C name address pair
13644 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13645
13646 # This is the shared library runtime path variable.
13647 runpath_var=$runpath_var
13648
13649 # This is the shared library path variable.
13650 shlibpath_var=$shlibpath_var
13651
13652 # Is shlibpath searched before the hard-coded library search path?
13653 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13654
13655 # How to hardcode a shared library path into an executable.
13656 hardcode_action=$hardcode_action_CXX
13657
13658 # Whether we should hardcode library paths into libraries.
13659 hardcode_into_libs=$hardcode_into_libs
13660
13661 # Flag to hardcode \$libdir into a binary during linking.
13662 # This must work even if \$libdir does not exist.
13663 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13664
13665 # If ld is used when linking, flag to hardcode \$libdir into
13666 # a binary during linking. This must work even if \$libdir does
13667 # not exist.
13668 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13669
13670 # Whether we need a single -rpath flag with a separated argument.
13671 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13672
13673 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13674 # resulting binary.
13675 hardcode_direct=$hardcode_direct_CXX
13676
13677 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13678 # resulting binary.
13679 hardcode_minus_L=$hardcode_minus_L_CXX
13680
13681 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13682 # the resulting binary.
13683 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13684
13685 # Set to yes if building a shared library automatically hardcodes DIR into the library
13686 # and all subsequent libraries and executables linked against it.
13687 hardcode_automatic=$hardcode_automatic_CXX
13688
13689 # Variables whose values should be saved in libtool wrapper scripts and
13690 # restored at relink time.
13691 variables_saved_for_relink="$variables_saved_for_relink"
13692
13693 # Whether libtool must link a program against all its dependency libraries.
13694 link_all_deplibs=$link_all_deplibs_CXX
13695
13696 # Compile-time system search path for libraries
13697 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13698
13699 # Run-time system search path for libraries
13700 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13701
13702 # Fix the shell variable \$srcfile for the compiler.
13703 fix_srcfile_path="$fix_srcfile_path_CXX"
13704
13705 # Set to yes if exported symbols are required.
13706 always_export_symbols=$always_export_symbols_CXX
13707
13708 # The commands to list exported symbols.
13709 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13710
13711 # The commands to extract the exported symbol list from a shared archive.
13712 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13713
13714 # Symbols that should not be listed in the preloaded symbols.
13715 exclude_expsyms=$lt_exclude_expsyms_CXX
13716
13717 # Symbols that must always be exported.
13718 include_expsyms=$lt_include_expsyms_CXX
13719
13720 # ### END LIBTOOL TAG CONFIG: $tagname
13721
13722 __EOF__
13723
13724
13725 else
13726   # If there is no Makefile yet, we rely on a make rule to execute
13727   # `config.status --recheck' to rerun these tests and create the
13728   # libtool script then.
13729   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13730   if test -f "$ltmain_in"; then
13731     test -f Makefile && make "$ltmain"
13732   fi
13733 fi
13734
13735
13736 ac_ext=c
13737 ac_cpp='$CPP $CPPFLAGS'
13738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13741
13742 CC=$lt_save_CC
13743 LDCXX=$LD
13744 LD=$lt_save_LD
13745 GCC=$lt_save_GCC
13746 with_gnu_ldcxx=$with_gnu_ld
13747 with_gnu_ld=$lt_save_with_gnu_ld
13748 lt_cv_path_LDCXX=$lt_cv_path_LD
13749 lt_cv_path_LD=$lt_save_path_LD
13750 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13751 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13752
13753         else
13754           tagname=""
13755         fi
13756         ;;
13757
13758       F77)
13759         if test -n "$F77" && test "X$F77" != "Xno"; then
13760
13761 ac_ext=f
13762 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13763 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13764 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13765
13766
13767 archive_cmds_need_lc_F77=no
13768 allow_undefined_flag_F77=
13769 always_export_symbols_F77=no
13770 archive_expsym_cmds_F77=
13771 export_dynamic_flag_spec_F77=
13772 hardcode_direct_F77=no
13773 hardcode_libdir_flag_spec_F77=
13774 hardcode_libdir_flag_spec_ld_F77=
13775 hardcode_libdir_separator_F77=
13776 hardcode_minus_L_F77=no
13777 hardcode_automatic_F77=no
13778 module_cmds_F77=
13779 module_expsym_cmds_F77=
13780 link_all_deplibs_F77=unknown
13781 old_archive_cmds_F77=$old_archive_cmds
13782 no_undefined_flag_F77=
13783 whole_archive_flag_spec_F77=
13784 enable_shared_with_static_runtimes_F77=no
13785
13786 # Source file extension for f77 test sources.
13787 ac_ext=f
13788
13789 # Object file extension for compiled f77 test sources.
13790 objext=o
13791 objext_F77=$objext
13792
13793 # Code to be used in simple compile tests
13794 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13795
13796 # Code to be used in simple link tests
13797 lt_simple_link_test_code="      program t\n      end\n"
13798
13799 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13800
13801 # If no C compiler was specified, use CC.
13802 LTCC=${LTCC-"$CC"}
13803
13804 # If no C compiler flags were specified, use CFLAGS.
13805 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13806
13807 # Allow CC to be a program name with arguments.
13808 compiler=$CC
13809
13810
13811 # save warnings/boilerplate of simple test code
13812 ac_outfile=conftest.$ac_objext
13813 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13814 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13815 _lt_compiler_boilerplate=`cat conftest.err`
13816 $rm conftest*
13817
13818 ac_outfile=conftest.$ac_objext
13819 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13820 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13821 _lt_linker_boilerplate=`cat conftest.err`
13822 $rm conftest*
13823
13824
13825 # Allow CC to be a program name with arguments.
13826 lt_save_CC="$CC"
13827 CC=${F77-"f77"}
13828 compiler=$CC
13829 compiler_F77=$CC
13830 for cc_temp in $compiler""; do
13831   case $cc_temp in
13832     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13833     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13834     \-*) ;;
13835     *) break;;
13836   esac
13837 done
13838 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13839
13840
13841 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13842 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13843 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13844 echo "${ECHO_T}$can_build_shared" >&6; }
13845
13846 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13847 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13848 test "$can_build_shared" = "no" && enable_shared=no
13849
13850 # On AIX, shared libraries and static libraries use the same namespace, and
13851 # are all built from PIC.
13852 case $host_os in
13853 aix3*)
13854   test "$enable_shared" = yes && enable_static=no
13855   if test -n "$RANLIB"; then
13856     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13857     postinstall_cmds='$RANLIB $lib'
13858   fi
13859   ;;
13860 aix4* | aix5*)
13861   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13862     test "$enable_shared" = yes && enable_static=no
13863   fi
13864   ;;
13865 esac
13866 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13867 echo "${ECHO_T}$enable_shared" >&6; }
13868
13869 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13870 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13871 # Make sure either enable_shared or enable_static is yes.
13872 test "$enable_shared" = yes || enable_static=yes
13873 { echo "$as_me:$LINENO: result: $enable_static" >&5
13874 echo "${ECHO_T}$enable_static" >&6; }
13875
13876 GCC_F77="$G77"
13877 LD_F77="$LD"
13878
13879 lt_prog_compiler_wl_F77=
13880 lt_prog_compiler_pic_F77=
13881 lt_prog_compiler_static_F77=
13882
13883 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13884 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13885
13886   if test "$GCC" = yes; then
13887     lt_prog_compiler_wl_F77='-Wl,'
13888     lt_prog_compiler_static_F77='-static'
13889
13890     case $host_os in
13891       aix*)
13892       # All AIX code is PIC.
13893       if test "$host_cpu" = ia64; then
13894         # AIX 5 now supports IA64 processor
13895         lt_prog_compiler_static_F77='-Bstatic'
13896       fi
13897       ;;
13898
13899     amigaos*)
13900       # FIXME: we need at least 68020 code to build shared libraries, but
13901       # adding the `-m68020' flag to GCC prevents building anything better,
13902       # like `-m68040'.
13903       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13904       ;;
13905
13906     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13907       # PIC is the default for these OSes.
13908       ;;
13909
13910     mingw* | pw32* | os2*)
13911       # This hack is so that the source file can tell whether it is being
13912       # built for inclusion in a dll (and should export symbols for example).
13913       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13914       ;;
13915
13916     darwin* | rhapsody*)
13917       # PIC is the default on this platform
13918       # Common symbols not allowed in MH_DYLIB files
13919       lt_prog_compiler_pic_F77='-fno-common'
13920       ;;
13921
13922     interix3*)
13923       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13924       # Instead, we relocate shared libraries at runtime.
13925       ;;
13926
13927     msdosdjgpp*)
13928       # Just because we use GCC doesn't mean we suddenly get shared libraries
13929       # on systems that don't support them.
13930       lt_prog_compiler_can_build_shared_F77=no
13931       enable_shared=no
13932       ;;
13933
13934     sysv4*MP*)
13935       if test -d /usr/nec; then
13936         lt_prog_compiler_pic_F77=-Kconform_pic
13937       fi
13938       ;;
13939
13940     hpux*)
13941       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13942       # not for PA HP-UX.
13943       case $host_cpu in
13944       hppa*64*|ia64*)
13945         # +Z the default
13946         ;;
13947       *)
13948         lt_prog_compiler_pic_F77='-fPIC'
13949         ;;
13950       esac
13951       ;;
13952
13953     *)
13954       lt_prog_compiler_pic_F77='-fPIC'
13955       ;;
13956     esac
13957   else
13958     # PORTME Check for flag to pass linker flags through the system compiler.
13959     case $host_os in
13960     aix*)
13961       lt_prog_compiler_wl_F77='-Wl,'
13962       if test "$host_cpu" = ia64; then
13963         # AIX 5 now supports IA64 processor
13964         lt_prog_compiler_static_F77='-Bstatic'
13965       else
13966         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13967       fi
13968       ;;
13969       darwin*)
13970         # PIC is the default on this platform
13971         # Common symbols not allowed in MH_DYLIB files
13972        case $cc_basename in
13973          xlc*)
13974          lt_prog_compiler_pic_F77='-qnocommon'
13975          lt_prog_compiler_wl_F77='-Wl,'
13976          ;;
13977        esac
13978        ;;
13979
13980     mingw* | pw32* | os2*)
13981       # This hack is so that the source file can tell whether it is being
13982       # built for inclusion in a dll (and should export symbols for example).
13983       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13984       ;;
13985
13986     hpux9* | hpux10* | hpux11*)
13987       lt_prog_compiler_wl_F77='-Wl,'
13988       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13989       # not for PA HP-UX.
13990       case $host_cpu in
13991       hppa*64*|ia64*)
13992         # +Z the default
13993         ;;
13994       *)
13995         lt_prog_compiler_pic_F77='+Z'
13996         ;;
13997       esac
13998       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13999       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14000       ;;
14001
14002     irix5* | irix6* | nonstopux*)
14003       lt_prog_compiler_wl_F77='-Wl,'
14004       # PIC (with -KPIC) is the default.
14005       lt_prog_compiler_static_F77='-non_shared'
14006       ;;
14007
14008     newsos6)
14009       lt_prog_compiler_pic_F77='-KPIC'
14010       lt_prog_compiler_static_F77='-Bstatic'
14011       ;;
14012
14013     linux*)
14014       case $cc_basename in
14015       icc* | ecc*)
14016         lt_prog_compiler_wl_F77='-Wl,'
14017         lt_prog_compiler_pic_F77='-KPIC'
14018         lt_prog_compiler_static_F77='-static'
14019         ;;
14020       pgcc* | pgf77* | pgf90* | pgf95*)
14021         # Portland Group compilers (*not* the Pentium gcc compiler,
14022         # which looks to be a dead project)
14023         lt_prog_compiler_wl_F77='-Wl,'
14024         lt_prog_compiler_pic_F77='-fpic'
14025         lt_prog_compiler_static_F77='-Bstatic'
14026         ;;
14027       ccc*)
14028         lt_prog_compiler_wl_F77='-Wl,'
14029         # All Alpha code is PIC.
14030         lt_prog_compiler_static_F77='-non_shared'
14031         ;;
14032       esac
14033       ;;
14034
14035     osf3* | osf4* | osf5*)
14036       lt_prog_compiler_wl_F77='-Wl,'
14037       # All OSF/1 code is PIC.
14038       lt_prog_compiler_static_F77='-non_shared'
14039       ;;
14040
14041     solaris*)
14042       lt_prog_compiler_pic_F77='-KPIC'
14043       lt_prog_compiler_static_F77='-Bstatic'
14044       case $cc_basename in
14045       f77* | f90* | f95*)
14046         lt_prog_compiler_wl_F77='-Qoption ld ';;
14047       *)
14048         lt_prog_compiler_wl_F77='-Wl,';;
14049       esac
14050       ;;
14051
14052     sunos4*)
14053       lt_prog_compiler_wl_F77='-Qoption ld '
14054       lt_prog_compiler_pic_F77='-PIC'
14055       lt_prog_compiler_static_F77='-Bstatic'
14056       ;;
14057
14058     sysv4 | sysv4.2uw2* | sysv4.3*)
14059       lt_prog_compiler_wl_F77='-Wl,'
14060       lt_prog_compiler_pic_F77='-KPIC'
14061       lt_prog_compiler_static_F77='-Bstatic'
14062       ;;
14063
14064     sysv4*MP*)
14065       if test -d /usr/nec ;then
14066         lt_prog_compiler_pic_F77='-Kconform_pic'
14067         lt_prog_compiler_static_F77='-Bstatic'
14068       fi
14069       ;;
14070
14071     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14072       lt_prog_compiler_wl_F77='-Wl,'
14073       lt_prog_compiler_pic_F77='-KPIC'
14074       lt_prog_compiler_static_F77='-Bstatic'
14075       ;;
14076
14077     unicos*)
14078       lt_prog_compiler_wl_F77='-Wl,'
14079       lt_prog_compiler_can_build_shared_F77=no
14080       ;;
14081
14082     uts4*)
14083       lt_prog_compiler_pic_F77='-pic'
14084       lt_prog_compiler_static_F77='-Bstatic'
14085       ;;
14086
14087     *)
14088       lt_prog_compiler_can_build_shared_F77=no
14089       ;;
14090     esac
14091   fi
14092
14093 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14094 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14095
14096 #
14097 # Check to make sure the PIC flag actually works.
14098 #
14099 if test -n "$lt_prog_compiler_pic_F77"; then
14100
14101 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14102 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14103 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14104   echo $ECHO_N "(cached) $ECHO_C" >&6
14105 else
14106   lt_prog_compiler_pic_works_F77=no
14107   ac_outfile=conftest.$ac_objext
14108    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14109    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14110    # Insert the option either (1) after the last *FLAGS variable, or
14111    # (2) before a word containing "conftest.", or (3) at the end.
14112    # Note that $ac_compile itself does not contain backslashes and begins
14113    # with a dollar sign (not a hyphen), so the echo should work correctly.
14114    # The option is referenced via a variable to avoid confusing sed.
14115    lt_compile=`echo "$ac_compile" | $SED \
14116    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14117    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14118    -e 's:$: $lt_compiler_flag:'`
14119    (eval echo "\"\$as_me:14119: $lt_compile\"" >&5)
14120    (eval "$lt_compile" 2>conftest.err)
14121    ac_status=$?
14122    cat conftest.err >&5
14123    echo "$as_me:14123: \$? = $ac_status" >&5
14124    if (exit $ac_status) && test -s "$ac_outfile"; then
14125      # The compiler can only warn and ignore the option if not recognized
14126      # So say no if there are warnings other than the usual output.
14127      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14128      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14129      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14130        lt_prog_compiler_pic_works_F77=yes
14131      fi
14132    fi
14133    $rm conftest*
14134
14135 fi
14136 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14137 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14138
14139 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14140     case $lt_prog_compiler_pic_F77 in
14141      "" | " "*) ;;
14142      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14143      esac
14144 else
14145     lt_prog_compiler_pic_F77=
14146      lt_prog_compiler_can_build_shared_F77=no
14147 fi
14148
14149 fi
14150 case $host_os in
14151   # For platforms which do not support PIC, -DPIC is meaningless:
14152   *djgpp*)
14153     lt_prog_compiler_pic_F77=
14154     ;;
14155   *)
14156     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14157     ;;
14158 esac
14159
14160 #
14161 # Check to make sure the static flag actually works.
14162 #
14163 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14164 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14165 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14166 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14167   echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169   lt_prog_compiler_static_works_F77=no
14170    save_LDFLAGS="$LDFLAGS"
14171    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14172    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14173    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14174      # The linker can only warn and ignore the option if not recognized
14175      # So say no if there are warnings
14176      if test -s conftest.err; then
14177        # Append any errors to the config.log.
14178        cat conftest.err 1>&5
14179        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14180        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14181        if diff conftest.exp conftest.er2 >/dev/null; then
14182          lt_prog_compiler_static_works_F77=yes
14183        fi
14184      else
14185        lt_prog_compiler_static_works_F77=yes
14186      fi
14187    fi
14188    $rm conftest*
14189    LDFLAGS="$save_LDFLAGS"
14190
14191 fi
14192 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14193 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14194
14195 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14196     :
14197 else
14198     lt_prog_compiler_static_F77=
14199 fi
14200
14201
14202 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14203 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14204 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14205   echo $ECHO_N "(cached) $ECHO_C" >&6
14206 else
14207   lt_cv_prog_compiler_c_o_F77=no
14208    $rm -r conftest 2>/dev/null
14209    mkdir conftest
14210    cd conftest
14211    mkdir out
14212    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14213
14214    lt_compiler_flag="-o out/conftest2.$ac_objext"
14215    # Insert the option either (1) after the last *FLAGS variable, or
14216    # (2) before a word containing "conftest.", or (3) at the end.
14217    # Note that $ac_compile itself does not contain backslashes and begins
14218    # with a dollar sign (not a hyphen), so the echo should work correctly.
14219    lt_compile=`echo "$ac_compile" | $SED \
14220    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14221    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14222    -e 's:$: $lt_compiler_flag:'`
14223    (eval echo "\"\$as_me:14223: $lt_compile\"" >&5)
14224    (eval "$lt_compile" 2>out/conftest.err)
14225    ac_status=$?
14226    cat out/conftest.err >&5
14227    echo "$as_me:14227: \$? = $ac_status" >&5
14228    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14229    then
14230      # The compiler can only warn and ignore the option if not recognized
14231      # So say no if there are warnings
14232      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14233      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14234      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14235        lt_cv_prog_compiler_c_o_F77=yes
14236      fi
14237    fi
14238    chmod u+w . 2>&5
14239    $rm conftest*
14240    # SGI C++ compiler will create directory out/ii_files/ for
14241    # template instantiation
14242    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14243    $rm out/* && rmdir out
14244    cd ..
14245    rmdir conftest
14246    $rm conftest*
14247
14248 fi
14249 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14250 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14251
14252
14253 hard_links="nottested"
14254 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14255   # do not overwrite the value of need_locks provided by the user
14256   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14257 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14258   hard_links=yes
14259   $rm conftest*
14260   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14261   touch conftest.a
14262   ln conftest.a conftest.b 2>&5 || hard_links=no
14263   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14264   { echo "$as_me:$LINENO: result: $hard_links" >&5
14265 echo "${ECHO_T}$hard_links" >&6; }
14266   if test "$hard_links" = no; then
14267     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14268 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14269     need_locks=warn
14270   fi
14271 else
14272   need_locks=no
14273 fi
14274
14275 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14276 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14277
14278   runpath_var=
14279   allow_undefined_flag_F77=
14280   enable_shared_with_static_runtimes_F77=no
14281   archive_cmds_F77=
14282   archive_expsym_cmds_F77=
14283   old_archive_From_new_cmds_F77=
14284   old_archive_from_expsyms_cmds_F77=
14285   export_dynamic_flag_spec_F77=
14286   whole_archive_flag_spec_F77=
14287   thread_safe_flag_spec_F77=
14288   hardcode_libdir_flag_spec_F77=
14289   hardcode_libdir_flag_spec_ld_F77=
14290   hardcode_libdir_separator_F77=
14291   hardcode_direct_F77=no
14292   hardcode_minus_L_F77=no
14293   hardcode_shlibpath_var_F77=unsupported
14294   link_all_deplibs_F77=unknown
14295   hardcode_automatic_F77=no
14296   module_cmds_F77=
14297   module_expsym_cmds_F77=
14298   always_export_symbols_F77=no
14299   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14300   # include_expsyms should be a list of space-separated symbols to be *always*
14301   # included in the symbol list
14302   include_expsyms_F77=
14303   # exclude_expsyms can be an extended regexp of symbols to exclude
14304   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14305   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14306   # as well as any symbol that contains `d'.
14307   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14308   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14309   # platforms (ab)use it in PIC code, but their linkers get confused if
14310   # the symbol is explicitly referenced.  Since portable code cannot
14311   # rely on this symbol name, it's probably fine to never include it in
14312   # preloaded symbol tables.
14313   extract_expsyms_cmds=
14314   # Just being paranoid about ensuring that cc_basename is set.
14315   for cc_temp in $compiler""; do
14316   case $cc_temp in
14317     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14318     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14319     \-*) ;;
14320     *) break;;
14321   esac
14322 done
14323 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14324
14325   case $host_os in
14326   cygwin* | mingw* | pw32*)
14327     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14328     # When not using gcc, we currently assume that we are using
14329     # Microsoft Visual C++.
14330     if test "$GCC" != yes; then
14331       with_gnu_ld=no
14332     fi
14333     ;;
14334   interix*)
14335     # we just hope/assume this is gcc and not c89 (= MSVC++)
14336     with_gnu_ld=yes
14337     ;;
14338   openbsd*)
14339     with_gnu_ld=no
14340     ;;
14341   esac
14342
14343   ld_shlibs_F77=yes
14344   if test "$with_gnu_ld" = yes; then
14345     # If archive_cmds runs LD, not CC, wlarc should be empty
14346     wlarc='${wl}'
14347
14348     # Set some defaults for GNU ld with shared library support. These
14349     # are reset later if shared libraries are not supported. Putting them
14350     # here allows them to be overridden if necessary.
14351     runpath_var=LD_RUN_PATH
14352     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14353     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14354     # ancient GNU ld didn't support --whole-archive et. al.
14355     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14356         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14357       else
14358         whole_archive_flag_spec_F77=
14359     fi
14360     supports_anon_versioning=no
14361     case `$LD -v 2>/dev/null` in
14362       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14363       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14364       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14365       *\ 2.11.*) ;; # other 2.11 versions
14366       *) supports_anon_versioning=yes ;;
14367     esac
14368
14369     # See if GNU ld supports shared libraries.
14370     case $host_os in
14371     aix3* | aix4* | aix5*)
14372       # On AIX/PPC, the GNU linker is very broken
14373       if test "$host_cpu" != ia64; then
14374         ld_shlibs_F77=no
14375         cat <<EOF 1>&2
14376
14377 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14378 *** to be unable to reliably create shared libraries on AIX.
14379 *** Therefore, libtool is disabling shared libraries support.  If you
14380 *** really care for shared libraries, you may want to modify your PATH
14381 *** so that a non-GNU linker is found, and then restart.
14382
14383 EOF
14384       fi
14385       ;;
14386
14387     amigaos*)
14388       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)'
14389       hardcode_libdir_flag_spec_F77='-L$libdir'
14390       hardcode_minus_L_F77=yes
14391
14392       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14393       # that the semantics of dynamic libraries on AmigaOS, at least up
14394       # to version 4, is to share data among multiple programs linked
14395       # with the same dynamic library.  Since this doesn't match the
14396       # behavior of shared libraries on other platforms, we can't use
14397       # them.
14398       ld_shlibs_F77=no
14399       ;;
14400
14401     beos*)
14402       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14403         allow_undefined_flag_F77=unsupported
14404         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14405         # support --undefined.  This deserves some investigation.  FIXME
14406         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14407       else
14408         ld_shlibs_F77=no
14409       fi
14410       ;;
14411
14412     cygwin* | mingw* | pw32*)
14413       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14414       # as there is no search path for DLLs.
14415       hardcode_libdir_flag_spec_F77='-L$libdir'
14416       allow_undefined_flag_F77=unsupported
14417       always_export_symbols_F77=no
14418       enable_shared_with_static_runtimes_F77=yes
14419       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14420
14421       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14422         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14423         # If the export-symbols file already is a .def file (1st line
14424         # is EXPORTS), use it as is; otherwise, prepend...
14425         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14426           cp $export_symbols $output_objdir/$soname.def;
14427         else
14428           echo EXPORTS > $output_objdir/$soname.def;
14429           cat $export_symbols >> $output_objdir/$soname.def;
14430         fi~
14431         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14432       else
14433         ld_shlibs_F77=no
14434       fi
14435       ;;
14436
14437     interix3*)
14438       hardcode_direct_F77=no
14439       hardcode_shlibpath_var_F77=no
14440       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14441       export_dynamic_flag_spec_F77='${wl}-E'
14442       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14443       # Instead, shared libraries are loaded at an image base (0x10000000 by
14444       # default) and relocated if they conflict, which is a slow very memory
14445       # consuming and fragmenting process.  To avoid this, we pick a random,
14446       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14447       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14448       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'
14449       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'
14450       ;;
14451
14452     linux*)
14453       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14454         tmp_addflag=
14455         case $cc_basename,$host_cpu in
14456         pgcc*)                          # Portland Group C compiler
14457           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'
14458           tmp_addflag=' $pic_flag'
14459           ;;
14460         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14461           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'
14462           tmp_addflag=' $pic_flag -Mnomain' ;;
14463         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14464           tmp_addflag=' -i_dynamic' ;;
14465         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14466           tmp_addflag=' -i_dynamic -nofor_main' ;;
14467         ifc* | ifort*)                  # Intel Fortran compiler
14468           tmp_addflag=' -nofor_main' ;;
14469         esac
14470         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14471
14472         if test $supports_anon_versioning = yes; then
14473           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14474   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14475   $echo "local: *; };" >> $output_objdir/$libname.ver~
14476           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14477         fi
14478       else
14479         ld_shlibs_F77=no
14480       fi
14481       ;;
14482
14483     netbsd*)
14484       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14485         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14486         wlarc=
14487       else
14488         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14489         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14490       fi
14491       ;;
14492
14493     solaris*)
14494       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14495         ld_shlibs_F77=no
14496         cat <<EOF 1>&2
14497
14498 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14499 *** create shared libraries on Solaris systems.  Therefore, libtool
14500 *** is disabling shared libraries support.  We urge you to upgrade GNU
14501 *** binutils to release 2.9.1 or newer.  Another option is to modify
14502 *** your PATH or compiler configuration so that the native linker is
14503 *** used, and then restart.
14504
14505 EOF
14506       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14507         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14508         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14509       else
14510         ld_shlibs_F77=no
14511       fi
14512       ;;
14513
14514     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14515       case `$LD -v 2>&1` in
14516         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14517         ld_shlibs_F77=no
14518         cat <<_LT_EOF 1>&2
14519
14520 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14521 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14522 *** is disabling shared libraries support.  We urge you to upgrade GNU
14523 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14524 *** your PATH or compiler configuration so that the native linker is
14525 *** used, and then restart.
14526
14527 _LT_EOF
14528         ;;
14529         *)
14530           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14531             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14532             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14533             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14534           else
14535             ld_shlibs_F77=no
14536           fi
14537         ;;
14538       esac
14539       ;;
14540
14541     sunos4*)
14542       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14543       wlarc=
14544       hardcode_direct_F77=yes
14545       hardcode_shlibpath_var_F77=no
14546       ;;
14547
14548     *)
14549       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14550         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14551         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14552       else
14553         ld_shlibs_F77=no
14554       fi
14555       ;;
14556     esac
14557
14558     if test "$ld_shlibs_F77" = no; then
14559       runpath_var=
14560       hardcode_libdir_flag_spec_F77=
14561       export_dynamic_flag_spec_F77=
14562       whole_archive_flag_spec_F77=
14563     fi
14564   else
14565     # PORTME fill in a description of your system's linker (not GNU ld)
14566     case $host_os in
14567     aix3*)
14568       allow_undefined_flag_F77=unsupported
14569       always_export_symbols_F77=yes
14570       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'
14571       # Note: this linker hardcodes the directories in LIBPATH if there
14572       # are no directories specified by -L.
14573       hardcode_minus_L_F77=yes
14574       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14575         # Neither direct hardcoding nor static linking is supported with a
14576         # broken collect2.
14577         hardcode_direct_F77=unsupported
14578       fi
14579       ;;
14580
14581     aix4* | aix5*)
14582       if test "$host_cpu" = ia64; then
14583         # On IA64, the linker does run time linking by default, so we don't
14584         # have to do anything special.
14585         aix_use_runtimelinking=no
14586         exp_sym_flag='-Bexport'
14587         no_entry_flag=""
14588       else
14589         # If we're using GNU nm, then we don't want the "-C" option.
14590         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14591         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14592           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'
14593         else
14594           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'
14595         fi
14596         aix_use_runtimelinking=no
14597
14598         # Test if we are trying to use run time linking or normal
14599         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14600         # need to do runtime linking.
14601         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14602           for ld_flag in $LDFLAGS; do
14603           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14604             aix_use_runtimelinking=yes
14605             break
14606           fi
14607           done
14608           ;;
14609         esac
14610
14611         exp_sym_flag='-bexport'
14612         no_entry_flag='-bnoentry'
14613       fi
14614
14615       # When large executables or shared objects are built, AIX ld can
14616       # have problems creating the table of contents.  If linking a library
14617       # or program results in "error TOC overflow" add -mminimal-toc to
14618       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14619       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14620
14621       archive_cmds_F77=''
14622       hardcode_direct_F77=yes
14623       hardcode_libdir_separator_F77=':'
14624       link_all_deplibs_F77=yes
14625
14626       if test "$GCC" = yes; then
14627         case $host_os in aix4.[012]|aix4.[012].*)
14628         # We only want to do this on AIX 4.2 and lower, the check
14629         # below for broken collect2 doesn't work under 4.3+
14630           collect2name=`${CC} -print-prog-name=collect2`
14631           if test -f "$collect2name" && \
14632            strings "$collect2name" | grep resolve_lib_name >/dev/null
14633           then
14634           # We have reworked collect2
14635           hardcode_direct_F77=yes
14636           else
14637           # We have old collect2
14638           hardcode_direct_F77=unsupported
14639           # It fails to find uninstalled libraries when the uninstalled
14640           # path is not listed in the libpath.  Setting hardcode_minus_L
14641           # to unsupported forces relinking
14642           hardcode_minus_L_F77=yes
14643           hardcode_libdir_flag_spec_F77='-L$libdir'
14644           hardcode_libdir_separator_F77=
14645           fi
14646           ;;
14647         esac
14648         shared_flag='-shared'
14649         if test "$aix_use_runtimelinking" = yes; then
14650           shared_flag="$shared_flag "'${wl}-G'
14651         fi
14652       else
14653         # not using gcc
14654         if test "$host_cpu" = ia64; then
14655         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14656         # chokes on -Wl,-G. The following line is correct:
14657           shared_flag='-G'
14658         else
14659           if test "$aix_use_runtimelinking" = yes; then
14660             shared_flag='${wl}-G'
14661           else
14662             shared_flag='${wl}-bM:SRE'
14663           fi
14664         fi
14665       fi
14666
14667       # It seems that -bexpall does not export symbols beginning with
14668       # underscore (_), so it is better to generate a list of symbols to export.
14669       always_export_symbols_F77=yes
14670       if test "$aix_use_runtimelinking" = yes; then
14671         # Warning - without using the other runtime loading flags (-brtl),
14672         # -berok will link without error, but may produce a broken library.
14673         allow_undefined_flag_F77='-berok'
14674        # Determine the default libpath from the value encoded in an empty executable.
14675        cat >conftest.$ac_ext <<_ACEOF
14676       program main
14677
14678       end
14679 _ACEOF
14680 rm -f conftest.$ac_objext conftest$ac_exeext
14681 if { (ac_try="$ac_link"
14682 case "(($ac_try" in
14683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684   *) ac_try_echo=$ac_try;;
14685 esac
14686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687   (eval "$ac_link") 2>conftest.er1
14688   ac_status=$?
14689   grep -v '^ *+' conftest.er1 >conftest.err
14690   rm -f conftest.er1
14691   cat conftest.err >&5
14692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693   (exit $ac_status); } && {
14694          test -z "$ac_f77_werror_flag" ||
14695          test ! -s conftest.err
14696        } && test -s conftest$ac_exeext &&
14697        $as_test_x conftest$ac_exeext; then
14698
14699 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14700 }'`
14701 # Check for a 64-bit object if we didn't find anything.
14702 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14703 }'`; fi
14704 else
14705   echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14707
14708
14709 fi
14710
14711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14712       conftest$ac_exeext conftest.$ac_ext
14713 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14714
14715        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14716         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"
14717        else
14718         if test "$host_cpu" = ia64; then
14719           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14720           allow_undefined_flag_F77="-z nodefs"
14721           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"
14722         else
14723          # Determine the default libpath from the value encoded in an empty executable.
14724          cat >conftest.$ac_ext <<_ACEOF
14725       program main
14726
14727       end
14728 _ACEOF
14729 rm -f conftest.$ac_objext conftest$ac_exeext
14730 if { (ac_try="$ac_link"
14731 case "(($ac_try" in
14732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14733   *) ac_try_echo=$ac_try;;
14734 esac
14735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14736   (eval "$ac_link") 2>conftest.er1
14737   ac_status=$?
14738   grep -v '^ *+' conftest.er1 >conftest.err
14739   rm -f conftest.er1
14740   cat conftest.err >&5
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); } && {
14743          test -z "$ac_f77_werror_flag" ||
14744          test ! -s conftest.err
14745        } && test -s conftest$ac_exeext &&
14746        $as_test_x conftest$ac_exeext; then
14747
14748 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14749 }'`
14750 # Check for a 64-bit object if we didn't find anything.
14751 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14752 }'`; fi
14753 else
14754   echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14756
14757
14758 fi
14759
14760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14761       conftest$ac_exeext conftest.$ac_ext
14762 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14763
14764          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14765           # Warning - without using the other run time loading flags,
14766           # -berok will link without error, but may produce a broken library.
14767           no_undefined_flag_F77=' ${wl}-bernotok'
14768           allow_undefined_flag_F77=' ${wl}-berok'
14769           # Exported symbols can be pulled into shared objects from archives
14770           whole_archive_flag_spec_F77='$convenience'
14771           archive_cmds_need_lc_F77=yes
14772           # This is similar to how AIX traditionally builds its shared libraries.
14773           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'
14774         fi
14775       fi
14776       ;;
14777
14778     amigaos*)
14779       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)'
14780       hardcode_libdir_flag_spec_F77='-L$libdir'
14781       hardcode_minus_L_F77=yes
14782       # see comment about different semantics on the GNU ld section
14783       ld_shlibs_F77=no
14784       ;;
14785
14786     bsdi[45]*)
14787       export_dynamic_flag_spec_F77=-rdynamic
14788       ;;
14789
14790     cygwin* | mingw* | pw32*)
14791       # When not using gcc, we currently assume that we are using
14792       # Microsoft Visual C++.
14793       # hardcode_libdir_flag_spec is actually meaningless, as there is
14794       # no search path for DLLs.
14795       hardcode_libdir_flag_spec_F77=' '
14796       allow_undefined_flag_F77=unsupported
14797       # Tell ltmain to make .lib files, not .a files.
14798       libext=lib
14799       # Tell ltmain to make .dll files, not .so files.
14800       shrext_cmds=".dll"
14801       # FIXME: Setting linknames here is a bad hack.
14802       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14803       # The linker will automatically build a .lib file if we build a DLL.
14804       old_archive_From_new_cmds_F77='true'
14805       # FIXME: Should let the user specify the lib program.
14806       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14807       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14808       enable_shared_with_static_runtimes_F77=yes
14809       ;;
14810
14811     darwin* | rhapsody*)
14812       case $host_os in
14813         rhapsody* | darwin1.[012])
14814          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14815          ;;
14816        *) # Darwin 1.3 on
14817          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14818            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14819          else
14820            case ${MACOSX_DEPLOYMENT_TARGET} in
14821              10.[012])
14822                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14823                ;;
14824              10.*)
14825                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14826                ;;
14827            esac
14828          fi
14829          ;;
14830       esac
14831       archive_cmds_need_lc_F77=no
14832       hardcode_direct_F77=no
14833       hardcode_automatic_F77=yes
14834       hardcode_shlibpath_var_F77=unsupported
14835       whole_archive_flag_spec_F77=''
14836       link_all_deplibs_F77=yes
14837     if test "$GCC" = yes ; then
14838         output_verbose_link_cmd='echo'
14839         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14840       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14841       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14842       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14843       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}'
14844     else
14845       case $cc_basename in
14846         xlc*)
14847          output_verbose_link_cmd='echo'
14848          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14849          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14850           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14851          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14852           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}'
14853           ;;
14854        *)
14855          ld_shlibs_F77=no
14856           ;;
14857       esac
14858     fi
14859       ;;
14860
14861     dgux*)
14862       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14863       hardcode_libdir_flag_spec_F77='-L$libdir'
14864       hardcode_shlibpath_var_F77=no
14865       ;;
14866
14867     freebsd1*)
14868       ld_shlibs_F77=no
14869       ;;
14870
14871     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14872     # support.  Future versions do this automatically, but an explicit c++rt0.o
14873     # does not break anything, and helps significantly (at the cost of a little
14874     # extra space).
14875     freebsd2.2*)
14876       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14877       hardcode_libdir_flag_spec_F77='-R$libdir'
14878       hardcode_direct_F77=yes
14879       hardcode_shlibpath_var_F77=no
14880       ;;
14881
14882     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14883     freebsd2*)
14884       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14885       hardcode_direct_F77=yes
14886       hardcode_minus_L_F77=yes
14887       hardcode_shlibpath_var_F77=no
14888       ;;
14889
14890     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14891     freebsd* | kfreebsd*-gnu | dragonfly*)
14892       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14893       hardcode_libdir_flag_spec_F77='-R$libdir'
14894       hardcode_direct_F77=yes
14895       hardcode_shlibpath_var_F77=no
14896       ;;
14897
14898     hpux9*)
14899       if test "$GCC" = yes; then
14900         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'
14901       else
14902         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'
14903       fi
14904       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14905       hardcode_libdir_separator_F77=:
14906       hardcode_direct_F77=yes
14907
14908       # hardcode_minus_L: Not really in the search PATH,
14909       # but as the default location of the library.
14910       hardcode_minus_L_F77=yes
14911       export_dynamic_flag_spec_F77='${wl}-E'
14912       ;;
14913
14914     hpux10*)
14915       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14916         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14917       else
14918         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14919       fi
14920       if test "$with_gnu_ld" = no; then
14921         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14922         hardcode_libdir_separator_F77=:
14923
14924         hardcode_direct_F77=yes
14925         export_dynamic_flag_spec_F77='${wl}-E'
14926
14927         # hardcode_minus_L: Not really in the search PATH,
14928         # but as the default location of the library.
14929         hardcode_minus_L_F77=yes
14930       fi
14931       ;;
14932
14933     hpux11*)
14934       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14935         case $host_cpu in
14936         hppa*64*)
14937           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14938           ;;
14939         ia64*)
14940           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14941           ;;
14942         *)
14943           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14944           ;;
14945         esac
14946       else
14947         case $host_cpu in
14948         hppa*64*)
14949           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14950           ;;
14951         ia64*)
14952           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14953           ;;
14954         *)
14955           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14956           ;;
14957         esac
14958       fi
14959       if test "$with_gnu_ld" = no; then
14960         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14961         hardcode_libdir_separator_F77=:
14962
14963         case $host_cpu in
14964         hppa*64*|ia64*)
14965           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14966           hardcode_direct_F77=no
14967           hardcode_shlibpath_var_F77=no
14968           ;;
14969         *)
14970           hardcode_direct_F77=yes
14971           export_dynamic_flag_spec_F77='${wl}-E'
14972
14973           # hardcode_minus_L: Not really in the search PATH,
14974           # but as the default location of the library.
14975           hardcode_minus_L_F77=yes
14976           ;;
14977         esac
14978       fi
14979       ;;
14980
14981     irix5* | irix6* | nonstopux*)
14982       if test "$GCC" = yes; then
14983         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'
14984       else
14985         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'
14986         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14987       fi
14988       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14989       hardcode_libdir_separator_F77=:
14990       link_all_deplibs_F77=yes
14991       ;;
14992
14993     netbsd*)
14994       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14995         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14996       else
14997         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14998       fi
14999       hardcode_libdir_flag_spec_F77='-R$libdir'
15000       hardcode_direct_F77=yes
15001       hardcode_shlibpath_var_F77=no
15002       ;;
15003
15004     newsos6)
15005       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15006       hardcode_direct_F77=yes
15007       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15008       hardcode_libdir_separator_F77=:
15009       hardcode_shlibpath_var_F77=no
15010       ;;
15011
15012     openbsd*)
15013       hardcode_direct_F77=yes
15014       hardcode_shlibpath_var_F77=no
15015       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15016         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15017         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15018         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15019         export_dynamic_flag_spec_F77='${wl}-E'
15020       else
15021        case $host_os in
15022          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15023            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15024            hardcode_libdir_flag_spec_F77='-R$libdir'
15025            ;;
15026          *)
15027            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15028            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15029            ;;
15030        esac
15031       fi
15032       ;;
15033
15034     os2*)
15035       hardcode_libdir_flag_spec_F77='-L$libdir'
15036       hardcode_minus_L_F77=yes
15037       allow_undefined_flag_F77=unsupported
15038       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'
15039       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15040       ;;
15041
15042     osf3*)
15043       if test "$GCC" = yes; then
15044         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15045         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'
15046       else
15047         allow_undefined_flag_F77=' -expect_unresolved \*'
15048         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'
15049       fi
15050       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15051       hardcode_libdir_separator_F77=:
15052       ;;
15053
15054     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15055       if test "$GCC" = yes; then
15056         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15057         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'
15058         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15059       else
15060         allow_undefined_flag_F77=' -expect_unresolved \*'
15061         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'
15062         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~
15063         $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'
15064
15065         # Both c and cxx compiler support -rpath directly
15066         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15067       fi
15068       hardcode_libdir_separator_F77=:
15069       ;;
15070
15071     solaris*)
15072       no_undefined_flag_F77=' -z text'
15073       if test "$GCC" = yes; then
15074         wlarc='${wl}'
15075         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15076         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15077           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15078       else
15079         wlarc=''
15080         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15081         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15082         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15083       fi
15084       hardcode_libdir_flag_spec_F77='-R$libdir'
15085       hardcode_shlibpath_var_F77=no
15086       case $host_os in
15087       solaris2.[0-5] | solaris2.[0-5].*) ;;
15088       *)
15089         # The compiler driver will combine linker options so we
15090         # cannot just pass the convience library names through
15091         # without $wl, iff we do not link with $LD.
15092         # Luckily, gcc supports the same syntax we need for Sun Studio.
15093         # Supported since Solaris 2.6 (maybe 2.5.1?)
15094         case $wlarc in
15095         '')
15096           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15097         *)
15098           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15099         esac ;;
15100       esac
15101       link_all_deplibs_F77=yes
15102       ;;
15103
15104     sunos4*)
15105       if test "x$host_vendor" = xsequent; then
15106         # Use $CC to link under sequent, because it throws in some extra .o
15107         # files that make .init and .fini sections work.
15108         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15109       else
15110         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15111       fi
15112       hardcode_libdir_flag_spec_F77='-L$libdir'
15113       hardcode_direct_F77=yes
15114       hardcode_minus_L_F77=yes
15115       hardcode_shlibpath_var_F77=no
15116       ;;
15117
15118     sysv4)
15119       case $host_vendor in
15120         sni)
15121           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15122           hardcode_direct_F77=yes # is this really true???
15123         ;;
15124         siemens)
15125           ## LD is ld it makes a PLAMLIB
15126           ## CC just makes a GrossModule.
15127           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15128           reload_cmds_F77='$CC -r -o $output$reload_objs'
15129           hardcode_direct_F77=no
15130         ;;
15131         motorola)
15132           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15133           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15134         ;;
15135       esac
15136       runpath_var='LD_RUN_PATH'
15137       hardcode_shlibpath_var_F77=no
15138       ;;
15139
15140     sysv4.3*)
15141       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15142       hardcode_shlibpath_var_F77=no
15143       export_dynamic_flag_spec_F77='-Bexport'
15144       ;;
15145
15146     sysv4*MP*)
15147       if test -d /usr/nec; then
15148         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15149         hardcode_shlibpath_var_F77=no
15150         runpath_var=LD_RUN_PATH
15151         hardcode_runpath_var=yes
15152         ld_shlibs_F77=yes
15153       fi
15154       ;;
15155
15156     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15157       no_undefined_flag_F77='${wl}-z,text'
15158       archive_cmds_need_lc_F77=no
15159       hardcode_shlibpath_var_F77=no
15160       runpath_var='LD_RUN_PATH'
15161
15162       if test "$GCC" = yes; then
15163         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15164         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15165       else
15166         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15167         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15168       fi
15169       ;;
15170
15171     sysv5* | sco3.2v5* | sco5v6*)
15172       # Note: We can NOT use -z defs as we might desire, because we do not
15173       # link with -lc, and that would cause any symbols used from libc to
15174       # always be unresolved, which means just about no library would
15175       # ever link correctly.  If we're not using GNU ld we use -z text
15176       # though, which does catch some bad symbols but isn't as heavy-handed
15177       # as -z defs.
15178       no_undefined_flag_F77='${wl}-z,text'
15179       allow_undefined_flag_F77='${wl}-z,nodefs'
15180       archive_cmds_need_lc_F77=no
15181       hardcode_shlibpath_var_F77=no
15182       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15183       hardcode_libdir_separator_F77=':'
15184       link_all_deplibs_F77=yes
15185       export_dynamic_flag_spec_F77='${wl}-Bexport'
15186       runpath_var='LD_RUN_PATH'
15187
15188       if test "$GCC" = yes; then
15189         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15190         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15191       else
15192         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15193         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15194       fi
15195       ;;
15196
15197     uts4*)
15198       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15199       hardcode_libdir_flag_spec_F77='-L$libdir'
15200       hardcode_shlibpath_var_F77=no
15201       ;;
15202
15203     *)
15204       ld_shlibs_F77=no
15205       ;;
15206     esac
15207   fi
15208
15209 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15210 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15211 test "$ld_shlibs_F77" = no && can_build_shared=no
15212
15213 #
15214 # Do we need to explicitly link libc?
15215 #
15216 case "x$archive_cmds_need_lc_F77" in
15217 x|xyes)
15218   # Assume -lc should be added
15219   archive_cmds_need_lc_F77=yes
15220
15221   if test "$enable_shared" = yes && test "$GCC" = yes; then
15222     case $archive_cmds_F77 in
15223     *'~'*)
15224       # FIXME: we may have to deal with multi-command sequences.
15225       ;;
15226     '$CC '*)
15227       # Test whether the compiler implicitly links with -lc since on some
15228       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15229       # to ld, don't add -lc before -lgcc.
15230       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15231 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15232       $rm conftest*
15233       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15234
15235       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15236   (eval $ac_compile) 2>&5
15237   ac_status=$?
15238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239   (exit $ac_status); } 2>conftest.err; then
15240         soname=conftest
15241         lib=conftest
15242         libobjs=conftest.$ac_objext
15243         deplibs=
15244         wl=$lt_prog_compiler_wl_F77
15245         pic_flag=$lt_prog_compiler_pic_F77
15246         compiler_flags=-v
15247         linker_flags=-v
15248         verstring=
15249         output_objdir=.
15250         libname=conftest
15251         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15252         allow_undefined_flag_F77=
15253         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15254   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15255   ac_status=$?
15256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257   (exit $ac_status); }
15258         then
15259           archive_cmds_need_lc_F77=no
15260         else
15261           archive_cmds_need_lc_F77=yes
15262         fi
15263         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15264       else
15265         cat conftest.err 1>&5
15266       fi
15267       $rm conftest*
15268       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15269 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15270       ;;
15271     esac
15272   fi
15273   ;;
15274 esac
15275
15276 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15277 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15278 library_names_spec=
15279 libname_spec='lib$name'
15280 soname_spec=
15281 shrext_cmds=".so"
15282 postinstall_cmds=
15283 postuninstall_cmds=
15284 finish_cmds=
15285 finish_eval=
15286 shlibpath_var=
15287 shlibpath_overrides_runpath=unknown
15288 version_type=none
15289 dynamic_linker="$host_os ld.so"
15290 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15291 if test "$GCC" = yes; then
15292   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15293   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15294     # if the path contains ";" then we assume it to be the separator
15295     # otherwise default to the standard path separator (i.e. ":") - it is
15296     # assumed that no part of a normal pathname contains ";" but that should
15297     # okay in the real world where ";" in dirpaths is itself problematic.
15298     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15299   else
15300     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15301   fi
15302 else
15303   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15304 fi
15305 need_lib_prefix=unknown
15306 hardcode_into_libs=no
15307
15308 # when you set need_version to no, make sure it does not cause -set_version
15309 # flags to be left without arguments
15310 need_version=unknown
15311
15312 case $host_os in
15313 aix3*)
15314   version_type=linux
15315   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15316   shlibpath_var=LIBPATH
15317
15318   # AIX 3 has no versioning support, so we append a major version to the name.
15319   soname_spec='${libname}${release}${shared_ext}$major'
15320   ;;
15321
15322 aix4* | aix5*)
15323   version_type=linux
15324   need_lib_prefix=no
15325   need_version=no
15326   hardcode_into_libs=yes
15327   if test "$host_cpu" = ia64; then
15328     # AIX 5 supports IA64
15329     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15330     shlibpath_var=LD_LIBRARY_PATH
15331   else
15332     # With GCC up to 2.95.x, collect2 would create an import file
15333     # for dependence libraries.  The import file would start with
15334     # the line `#! .'.  This would cause the generated library to
15335     # depend on `.', always an invalid library.  This was fixed in
15336     # development snapshots of GCC prior to 3.0.
15337     case $host_os in
15338       aix4 | aix4.[01] | aix4.[01].*)
15339       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15340            echo ' yes '
15341            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15342         :
15343       else
15344         can_build_shared=no
15345       fi
15346       ;;
15347     esac
15348     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15349     # soname into executable. Probably we can add versioning support to
15350     # collect2, so additional links can be useful in future.
15351     if test "$aix_use_runtimelinking" = yes; then
15352       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15353       # instead of lib<name>.a to let people know that these are not
15354       # typical AIX shared libraries.
15355       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15356     else
15357       # We preserve .a as extension for shared libraries through AIX4.2
15358       # and later when we are not doing run time linking.
15359       library_names_spec='${libname}${release}.a $libname.a'
15360       soname_spec='${libname}${release}${shared_ext}$major'
15361     fi
15362     shlibpath_var=LIBPATH
15363   fi
15364   ;;
15365
15366 amigaos*)
15367   library_names_spec='$libname.ixlibrary $libname.a'
15368   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15369   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'
15370   ;;
15371
15372 beos*)
15373   library_names_spec='${libname}${shared_ext}'
15374   dynamic_linker="$host_os ld.so"
15375   shlibpath_var=LIBRARY_PATH
15376   ;;
15377
15378 bsdi[45]*)
15379   version_type=linux
15380   need_version=no
15381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15382   soname_spec='${libname}${release}${shared_ext}$major'
15383   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15384   shlibpath_var=LD_LIBRARY_PATH
15385   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15386   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15387   # the default ld.so.conf also contains /usr/contrib/lib and
15388   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15389   # libtool to hard-code these into programs
15390   ;;
15391
15392 cygwin* | mingw* | pw32*)
15393   version_type=windows
15394   shrext_cmds=".dll"
15395   need_version=no
15396   need_lib_prefix=no
15397
15398   case $GCC,$host_os in
15399   yes,cygwin* | yes,mingw* | yes,pw32*)
15400     library_names_spec='$libname.dll.a'
15401     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15402     postinstall_cmds='base_file=`basename \${file}`~
15403       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15404       dldir=$destdir/`dirname \$dlpath`~
15405       test -d \$dldir || mkdir -p \$dldir~
15406       $install_prog $dir/$dlname \$dldir/$dlname~
15407       chmod a+x \$dldir/$dlname'
15408     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15409       dlpath=$dir/\$dldll~
15410        $rm \$dlpath'
15411     shlibpath_overrides_runpath=yes
15412
15413     case $host_os in
15414     cygwin*)
15415       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15416       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15417       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15418       ;;
15419     mingw*)
15420       # MinGW DLLs use traditional 'lib' prefix
15421       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15422       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15423       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15424         # It is most probably a Windows format PATH printed by
15425         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15426         # path with ; separators, and with drive letters. We can handle the
15427         # drive letters (cygwin fileutils understands them), so leave them,
15428         # especially as we might pass files found there to a mingw objdump,
15429         # which wouldn't understand a cygwinified path. Ahh.
15430         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15431       else
15432         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15433       fi
15434       ;;
15435     pw32*)
15436       # pw32 DLLs use 'pw' prefix rather than 'lib'
15437       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15438       ;;
15439     esac
15440     ;;
15441
15442   *)
15443     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15444     ;;
15445   esac
15446   dynamic_linker='Win32 ld.exe'
15447   # FIXME: first we should search . and the directory the executable is in
15448   shlibpath_var=PATH
15449   ;;
15450
15451 darwin* | rhapsody*)
15452   dynamic_linker="$host_os dyld"
15453   version_type=darwin
15454   need_lib_prefix=no
15455   need_version=no
15456   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15457   soname_spec='${libname}${release}${major}$shared_ext'
15458   shlibpath_overrides_runpath=yes
15459   shlibpath_var=DYLD_LIBRARY_PATH
15460   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15461   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15462   if test "$GCC" = yes; then
15463     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15464   else
15465     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15466   fi
15467   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15468   ;;
15469
15470 dgux*)
15471   version_type=linux
15472   need_lib_prefix=no
15473   need_version=no
15474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15475   soname_spec='${libname}${release}${shared_ext}$major'
15476   shlibpath_var=LD_LIBRARY_PATH
15477   ;;
15478
15479 freebsd1*)
15480   dynamic_linker=no
15481   ;;
15482
15483 kfreebsd*-gnu)
15484   version_type=linux
15485   need_lib_prefix=no
15486   need_version=no
15487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15488   soname_spec='${libname}${release}${shared_ext}$major'
15489   shlibpath_var=LD_LIBRARY_PATH
15490   shlibpath_overrides_runpath=no
15491   hardcode_into_libs=yes
15492   dynamic_linker='GNU ld.so'
15493   ;;
15494
15495 freebsd* | dragonfly*)
15496   # DragonFly does not have aout.  When/if they implement a new
15497   # versioning mechanism, adjust this.
15498   if test -x /usr/bin/objformat; then
15499     objformat=`/usr/bin/objformat`
15500   else
15501     case $host_os in
15502     freebsd[123]*) objformat=aout ;;
15503     *) objformat=elf ;;
15504     esac
15505   fi
15506   version_type=freebsd-$objformat
15507   case $version_type in
15508     freebsd-elf*)
15509       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15510       need_version=no
15511       need_lib_prefix=no
15512       ;;
15513     freebsd-*)
15514       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15515       need_version=yes
15516       ;;
15517   esac
15518   shlibpath_var=LD_LIBRARY_PATH
15519   case $host_os in
15520   freebsd2*)
15521     shlibpath_overrides_runpath=yes
15522     ;;
15523   freebsd3.[01]* | freebsdelf3.[01]*)
15524     shlibpath_overrides_runpath=yes
15525     hardcode_into_libs=yes
15526     ;;
15527   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15528   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15529     shlibpath_overrides_runpath=no
15530     hardcode_into_libs=yes
15531     ;;
15532   freebsd*) # from 4.6 on
15533     shlibpath_overrides_runpath=yes
15534     hardcode_into_libs=yes
15535     ;;
15536   esac
15537   ;;
15538
15539 gnu*)
15540   version_type=linux
15541   need_lib_prefix=no
15542   need_version=no
15543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15544   soname_spec='${libname}${release}${shared_ext}$major'
15545   shlibpath_var=LD_LIBRARY_PATH
15546   hardcode_into_libs=yes
15547   ;;
15548
15549 hpux9* | hpux10* | hpux11*)
15550   # Give a soname corresponding to the major version so that dld.sl refuses to
15551   # link against other versions.
15552   version_type=sunos
15553   need_lib_prefix=no
15554   need_version=no
15555   case $host_cpu in
15556   ia64*)
15557     shrext_cmds='.so'
15558     hardcode_into_libs=yes
15559     dynamic_linker="$host_os dld.so"
15560     shlibpath_var=LD_LIBRARY_PATH
15561     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15562     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15563     soname_spec='${libname}${release}${shared_ext}$major'
15564     if test "X$HPUX_IA64_MODE" = X32; then
15565       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15566     else
15567       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15568     fi
15569     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15570     ;;
15571    hppa*64*)
15572      shrext_cmds='.sl'
15573      hardcode_into_libs=yes
15574      dynamic_linker="$host_os dld.sl"
15575      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15576      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15577      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578      soname_spec='${libname}${release}${shared_ext}$major'
15579      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15580      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15581      ;;
15582    *)
15583     shrext_cmds='.sl'
15584     dynamic_linker="$host_os dld.sl"
15585     shlibpath_var=SHLIB_PATH
15586     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15587     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15588     soname_spec='${libname}${release}${shared_ext}$major'
15589     ;;
15590   esac
15591   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15592   postinstall_cmds='chmod 555 $lib'
15593   ;;
15594
15595 interix3*)
15596   version_type=linux
15597   need_lib_prefix=no
15598   need_version=no
15599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15600   soname_spec='${libname}${release}${shared_ext}$major'
15601   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15602   shlibpath_var=LD_LIBRARY_PATH
15603   shlibpath_overrides_runpath=no
15604   hardcode_into_libs=yes
15605   ;;
15606
15607 irix5* | irix6* | nonstopux*)
15608   case $host_os in
15609     nonstopux*) version_type=nonstopux ;;
15610     *)
15611         if test "$lt_cv_prog_gnu_ld" = yes; then
15612                 version_type=linux
15613         else
15614                 version_type=irix
15615         fi ;;
15616   esac
15617   need_lib_prefix=no
15618   need_version=no
15619   soname_spec='${libname}${release}${shared_ext}$major'
15620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15621   case $host_os in
15622   irix5* | nonstopux*)
15623     libsuff= shlibsuff=
15624     ;;
15625   *)
15626     case $LD in # libtool.m4 will add one of these switches to LD
15627     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15628       libsuff= shlibsuff= libmagic=32-bit;;
15629     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15630       libsuff=32 shlibsuff=N32 libmagic=N32;;
15631     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15632       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15633     *) libsuff= shlibsuff= libmagic=never-match;;
15634     esac
15635     ;;
15636   esac
15637   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15638   shlibpath_overrides_runpath=no
15639   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15640   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15641   hardcode_into_libs=yes
15642   ;;
15643
15644 # No shared lib support for Linux oldld, aout, or coff.
15645 linux*oldld* | linux*aout* | linux*coff*)
15646   dynamic_linker=no
15647   ;;
15648
15649 # This must be Linux ELF.
15650 linux*)
15651   version_type=linux
15652   need_lib_prefix=no
15653   need_version=no
15654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15655   soname_spec='${libname}${release}${shared_ext}$major'
15656   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15657   shlibpath_var=LD_LIBRARY_PATH
15658   shlibpath_overrides_runpath=no
15659   # This implies no fast_install, which is unacceptable.
15660   # Some rework will be needed to allow for fast_install
15661   # before this can be enabled.
15662   hardcode_into_libs=yes
15663
15664   # Append ld.so.conf contents to the search path
15665   if test -f /etc/ld.so.conf; then
15666     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15667     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15668   fi
15669
15670   # We used to test for /lib/ld.so.1 and disable shared libraries on
15671   # powerpc, because MkLinux only supported shared libraries with the
15672   # GNU dynamic linker.  Since this was broken with cross compilers,
15673   # most powerpc-linux boxes support dynamic linking these days and
15674   # people can always --disable-shared, the test was removed, and we
15675   # assume the GNU/Linux dynamic linker is in use.
15676   dynamic_linker='GNU/Linux ld.so'
15677   ;;
15678
15679 knetbsd*-gnu)
15680   version_type=linux
15681   need_lib_prefix=no
15682   need_version=no
15683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15684   soname_spec='${libname}${release}${shared_ext}$major'
15685   shlibpath_var=LD_LIBRARY_PATH
15686   shlibpath_overrides_runpath=no
15687   hardcode_into_libs=yes
15688   dynamic_linker='GNU ld.so'
15689   ;;
15690
15691 netbsd*)
15692   version_type=sunos
15693   need_lib_prefix=no
15694   need_version=no
15695   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15696     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15697     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15698     dynamic_linker='NetBSD (a.out) ld.so'
15699   else
15700     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15701     soname_spec='${libname}${release}${shared_ext}$major'
15702     dynamic_linker='NetBSD ld.elf_so'
15703   fi
15704   shlibpath_var=LD_LIBRARY_PATH
15705   shlibpath_overrides_runpath=yes
15706   hardcode_into_libs=yes
15707   ;;
15708
15709 newsos6)
15710   version_type=linux
15711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15712   shlibpath_var=LD_LIBRARY_PATH
15713   shlibpath_overrides_runpath=yes
15714   ;;
15715
15716 nto-qnx*)
15717   version_type=linux
15718   need_lib_prefix=no
15719   need_version=no
15720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15721   soname_spec='${libname}${release}${shared_ext}$major'
15722   shlibpath_var=LD_LIBRARY_PATH
15723   shlibpath_overrides_runpath=yes
15724   ;;
15725
15726 openbsd*)
15727   version_type=sunos
15728   sys_lib_dlsearch_path_spec="/usr/lib"
15729   need_lib_prefix=no
15730   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15731   case $host_os in
15732     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15733     *)                         need_version=no  ;;
15734   esac
15735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15736   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15737   shlibpath_var=LD_LIBRARY_PATH
15738   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15739     case $host_os in
15740       openbsd2.[89] | openbsd2.[89].*)
15741         shlibpath_overrides_runpath=no
15742         ;;
15743       *)
15744         shlibpath_overrides_runpath=yes
15745         ;;
15746       esac
15747   else
15748     shlibpath_overrides_runpath=yes
15749   fi
15750   ;;
15751
15752 os2*)
15753   libname_spec='$name'
15754   shrext_cmds=".dll"
15755   need_lib_prefix=no
15756   library_names_spec='$libname${shared_ext} $libname.a'
15757   dynamic_linker='OS/2 ld.exe'
15758   shlibpath_var=LIBPATH
15759   ;;
15760
15761 osf3* | osf4* | osf5*)
15762   version_type=osf
15763   need_lib_prefix=no
15764   need_version=no
15765   soname_spec='${libname}${release}${shared_ext}$major'
15766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15767   shlibpath_var=LD_LIBRARY_PATH
15768   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15769   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15770   ;;
15771
15772 solaris*)
15773   version_type=linux
15774   need_lib_prefix=no
15775   need_version=no
15776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15777   soname_spec='${libname}${release}${shared_ext}$major'
15778   shlibpath_var=LD_LIBRARY_PATH
15779   shlibpath_overrides_runpath=yes
15780   hardcode_into_libs=yes
15781   # ldd complains unless libraries are executable
15782   postinstall_cmds='chmod +x $lib'
15783   ;;
15784
15785 sunos4*)
15786   version_type=sunos
15787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15788   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15789   shlibpath_var=LD_LIBRARY_PATH
15790   shlibpath_overrides_runpath=yes
15791   if test "$with_gnu_ld" = yes; then
15792     need_lib_prefix=no
15793   fi
15794   need_version=yes
15795   ;;
15796
15797 sysv4 | sysv4.3*)
15798   version_type=linux
15799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15800   soname_spec='${libname}${release}${shared_ext}$major'
15801   shlibpath_var=LD_LIBRARY_PATH
15802   case $host_vendor in
15803     sni)
15804       shlibpath_overrides_runpath=no
15805       need_lib_prefix=no
15806       export_dynamic_flag_spec='${wl}-Blargedynsym'
15807       runpath_var=LD_RUN_PATH
15808       ;;
15809     siemens)
15810       need_lib_prefix=no
15811       ;;
15812     motorola)
15813       need_lib_prefix=no
15814       need_version=no
15815       shlibpath_overrides_runpath=no
15816       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15817       ;;
15818   esac
15819   ;;
15820
15821 sysv4*MP*)
15822   if test -d /usr/nec ;then
15823     version_type=linux
15824     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15825     soname_spec='$libname${shared_ext}.$major'
15826     shlibpath_var=LD_LIBRARY_PATH
15827   fi
15828   ;;
15829
15830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15831   version_type=freebsd-elf
15832   need_lib_prefix=no
15833   need_version=no
15834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15835   soname_spec='${libname}${release}${shared_ext}$major'
15836   shlibpath_var=LD_LIBRARY_PATH
15837   hardcode_into_libs=yes
15838   if test "$with_gnu_ld" = yes; then
15839     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15840     shlibpath_overrides_runpath=no
15841   else
15842     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15843     shlibpath_overrides_runpath=yes
15844     case $host_os in
15845       sco3.2v5*)
15846         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15847         ;;
15848     esac
15849   fi
15850   sys_lib_dlsearch_path_spec='/usr/lib'
15851   ;;
15852
15853 uts4*)
15854   version_type=linux
15855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15856   soname_spec='${libname}${release}${shared_ext}$major'
15857   shlibpath_var=LD_LIBRARY_PATH
15858   ;;
15859
15860 *)
15861   dynamic_linker=no
15862   ;;
15863 esac
15864 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15865 echo "${ECHO_T}$dynamic_linker" >&6; }
15866 test "$dynamic_linker" = no && can_build_shared=no
15867
15868 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15869 if test "$GCC" = yes; then
15870   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15871 fi
15872
15873 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15874 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15875 hardcode_action_F77=
15876 if test -n "$hardcode_libdir_flag_spec_F77" || \
15877    test -n "$runpath_var_F77" || \
15878    test "X$hardcode_automatic_F77" = "Xyes" ; then
15879
15880   # We can hardcode non-existant directories.
15881   if test "$hardcode_direct_F77" != no &&
15882      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15883      # have to relink, otherwise we might link with an installed library
15884      # when we should be linking with a yet-to-be-installed one
15885      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15886      test "$hardcode_minus_L_F77" != no; then
15887     # Linking always hardcodes the temporary library directory.
15888     hardcode_action_F77=relink
15889   else
15890     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15891     hardcode_action_F77=immediate
15892   fi
15893 else
15894   # We cannot hardcode anything, or else we can only hardcode existing
15895   # directories.
15896   hardcode_action_F77=unsupported
15897 fi
15898 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15899 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15900
15901 if test "$hardcode_action_F77" = relink; then
15902   # Fast installation is not supported
15903   enable_fast_install=no
15904 elif test "$shlibpath_overrides_runpath" = yes ||
15905      test "$enable_shared" = no; then
15906   # Fast installation is not necessary
15907   enable_fast_install=needless
15908 fi
15909
15910
15911 # The else clause should only fire when bootstrapping the
15912 # libtool distribution, otherwise you forgot to ship ltmain.sh
15913 # with your package, and you will get complaints that there are
15914 # no rules to generate ltmain.sh.
15915 if test -f "$ltmain"; then
15916   # See if we are running on zsh, and set the options which allow our commands through
15917   # without removal of \ escapes.
15918   if test -n "${ZSH_VERSION+set}" ; then
15919     setopt NO_GLOB_SUBST
15920   fi
15921   # Now quote all the things that may contain metacharacters while being
15922   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15923   # variables and quote the copies for generation of the libtool script.
15924   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15925     SED SHELL STRIP \
15926     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15927     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15928     deplibs_check_method reload_flag reload_cmds need_locks \
15929     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15930     lt_cv_sys_global_symbol_to_c_name_address \
15931     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15932     old_postinstall_cmds old_postuninstall_cmds \
15933     compiler_F77 \
15934     CC_F77 \
15935     LD_F77 \
15936     lt_prog_compiler_wl_F77 \
15937     lt_prog_compiler_pic_F77 \
15938     lt_prog_compiler_static_F77 \
15939     lt_prog_compiler_no_builtin_flag_F77 \
15940     export_dynamic_flag_spec_F77 \
15941     thread_safe_flag_spec_F77 \
15942     whole_archive_flag_spec_F77 \
15943     enable_shared_with_static_runtimes_F77 \
15944     old_archive_cmds_F77 \
15945     old_archive_from_new_cmds_F77 \
15946     predep_objects_F77 \
15947     postdep_objects_F77 \
15948     predeps_F77 \
15949     postdeps_F77 \
15950     compiler_lib_search_path_F77 \
15951     archive_cmds_F77 \
15952     archive_expsym_cmds_F77 \
15953     postinstall_cmds_F77 \
15954     postuninstall_cmds_F77 \
15955     old_archive_from_expsyms_cmds_F77 \
15956     allow_undefined_flag_F77 \
15957     no_undefined_flag_F77 \
15958     export_symbols_cmds_F77 \
15959     hardcode_libdir_flag_spec_F77 \
15960     hardcode_libdir_flag_spec_ld_F77 \
15961     hardcode_libdir_separator_F77 \
15962     hardcode_automatic_F77 \
15963     module_cmds_F77 \
15964     module_expsym_cmds_F77 \
15965     lt_cv_prog_compiler_c_o_F77 \
15966     exclude_expsyms_F77 \
15967     include_expsyms_F77; do
15968
15969     case $var in
15970     old_archive_cmds_F77 | \
15971     old_archive_from_new_cmds_F77 | \
15972     archive_cmds_F77 | \
15973     archive_expsym_cmds_F77 | \
15974     module_cmds_F77 | \
15975     module_expsym_cmds_F77 | \
15976     old_archive_from_expsyms_cmds_F77 | \
15977     export_symbols_cmds_F77 | \
15978     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15979     postinstall_cmds | postuninstall_cmds | \
15980     old_postinstall_cmds | old_postuninstall_cmds | \
15981     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15982       # Double-quote double-evaled strings.
15983       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15984       ;;
15985     *)
15986       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15987       ;;
15988     esac
15989   done
15990
15991   case $lt_echo in
15992   *'\$0 --fallback-echo"')
15993     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15994     ;;
15995   esac
15996
15997 cfgfile="$ofile"
15998
15999   cat <<__EOF__ >> "$cfgfile"
16000 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16001
16002 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16003
16004 # Shell to use when invoking shell scripts.
16005 SHELL=$lt_SHELL
16006
16007 # Whether or not to build shared libraries.
16008 build_libtool_libs=$enable_shared
16009
16010 # Whether or not to build static libraries.
16011 build_old_libs=$enable_static
16012
16013 # Whether or not to add -lc for building shared libraries.
16014 build_libtool_need_lc=$archive_cmds_need_lc_F77
16015
16016 # Whether or not to disallow shared libs when runtime libs are static
16017 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16018
16019 # Whether or not to optimize for fast installation.
16020 fast_install=$enable_fast_install
16021
16022 # The host system.
16023 host_alias=$host_alias
16024 host=$host
16025 host_os=$host_os
16026
16027 # The build system.
16028 build_alias=$build_alias
16029 build=$build
16030 build_os=$build_os
16031
16032 # An echo program that does not interpret backslashes.
16033 echo=$lt_echo
16034
16035 # The archiver.
16036 AR=$lt_AR
16037 AR_FLAGS=$lt_AR_FLAGS
16038
16039 # A C compiler.
16040 LTCC=$lt_LTCC
16041
16042 # LTCC compiler flags.
16043 LTCFLAGS=$lt_LTCFLAGS
16044
16045 # A language-specific compiler.
16046 CC=$lt_compiler_F77
16047
16048 # Is the compiler the GNU C compiler?
16049 with_gcc=$GCC_F77
16050
16051 # An ERE matcher.
16052 EGREP=$lt_EGREP
16053
16054 # The linker used to build libraries.
16055 LD=$lt_LD_F77
16056
16057 # Whether we need hard or soft links.
16058 LN_S=$lt_LN_S
16059
16060 # A BSD-compatible nm program.
16061 NM=$lt_NM
16062
16063 # A symbol stripping program
16064 STRIP=$lt_STRIP
16065
16066 # Used to examine libraries when file_magic_cmd begins "file"
16067 MAGIC_CMD=$MAGIC_CMD
16068
16069 # Used on cygwin: DLL creation program.
16070 DLLTOOL="$DLLTOOL"
16071
16072 # Used on cygwin: object dumper.
16073 OBJDUMP="$OBJDUMP"
16074
16075 # Used on cygwin: assembler.
16076 AS="$AS"
16077
16078 # The name of the directory that contains temporary libtool files.
16079 objdir=$objdir
16080
16081 # How to create reloadable object files.
16082 reload_flag=$lt_reload_flag
16083 reload_cmds=$lt_reload_cmds
16084
16085 # How to pass a linker flag through the compiler.
16086 wl=$lt_lt_prog_compiler_wl_F77
16087
16088 # Object file suffix (normally "o").
16089 objext="$ac_objext"
16090
16091 # Old archive suffix (normally "a").
16092 libext="$libext"
16093
16094 # Shared library suffix (normally ".so").
16095 shrext_cmds='$shrext_cmds'
16096
16097 # Executable file suffix (normally "").
16098 exeext="$exeext"
16099
16100 # Additional compiler flags for building library objects.
16101 pic_flag=$lt_lt_prog_compiler_pic_F77
16102 pic_mode=$pic_mode
16103
16104 # What is the maximum length of a command?
16105 max_cmd_len=$lt_cv_sys_max_cmd_len
16106
16107 # Does compiler simultaneously support -c and -o options?
16108 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16109
16110 # Must we lock files when doing compilation?
16111 need_locks=$lt_need_locks
16112
16113 # Do we need the lib prefix for modules?
16114 need_lib_prefix=$need_lib_prefix
16115
16116 # Do we need a version for libraries?
16117 need_version=$need_version
16118
16119 # Whether dlopen is supported.
16120 dlopen_support=$enable_dlopen
16121
16122 # Whether dlopen of programs is supported.
16123 dlopen_self=$enable_dlopen_self
16124
16125 # Whether dlopen of statically linked programs is supported.
16126 dlopen_self_static=$enable_dlopen_self_static
16127
16128 # Compiler flag to prevent dynamic linking.
16129 link_static_flag=$lt_lt_prog_compiler_static_F77
16130
16131 # Compiler flag to turn off builtin functions.
16132 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16133
16134 # Compiler flag to allow reflexive dlopens.
16135 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16136
16137 # Compiler flag to generate shared objects directly from archives.
16138 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16139
16140 # Compiler flag to generate thread-safe objects.
16141 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16142
16143 # Library versioning type.
16144 version_type=$version_type
16145
16146 # Format of library name prefix.
16147 libname_spec=$lt_libname_spec
16148
16149 # List of archive names.  First name is the real one, the rest are links.
16150 # The last name is the one that the linker finds with -lNAME.
16151 library_names_spec=$lt_library_names_spec
16152
16153 # The coded name of the library, if different from the real name.
16154 soname_spec=$lt_soname_spec
16155
16156 # Commands used to build and install an old-style archive.
16157 RANLIB=$lt_RANLIB
16158 old_archive_cmds=$lt_old_archive_cmds_F77
16159 old_postinstall_cmds=$lt_old_postinstall_cmds
16160 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16161
16162 # Create an old-style archive from a shared archive.
16163 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16164
16165 # Create a temporary old-style archive to link instead of a shared archive.
16166 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16167
16168 # Commands used to build and install a shared archive.
16169 archive_cmds=$lt_archive_cmds_F77
16170 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16171 postinstall_cmds=$lt_postinstall_cmds
16172 postuninstall_cmds=$lt_postuninstall_cmds
16173
16174 # Commands used to build a loadable module (assumed same as above if empty)
16175 module_cmds=$lt_module_cmds_F77
16176 module_expsym_cmds=$lt_module_expsym_cmds_F77
16177
16178 # Commands to strip libraries.
16179 old_striplib=$lt_old_striplib
16180 striplib=$lt_striplib
16181
16182 # Dependencies to place before the objects being linked to create a
16183 # shared library.
16184 predep_objects=$lt_predep_objects_F77
16185
16186 # Dependencies to place after the objects being linked to create a
16187 # shared library.
16188 postdep_objects=$lt_postdep_objects_F77
16189
16190 # Dependencies to place before the objects being linked to create a
16191 # shared library.
16192 predeps=$lt_predeps_F77
16193
16194 # Dependencies to place after the objects being linked to create a
16195 # shared library.
16196 postdeps=$lt_postdeps_F77
16197
16198 # The library search path used internally by the compiler when linking
16199 # a shared library.
16200 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16201
16202 # Method to check whether dependent libraries are shared objects.
16203 deplibs_check_method=$lt_deplibs_check_method
16204
16205 # Command to use when deplibs_check_method == file_magic.
16206 file_magic_cmd=$lt_file_magic_cmd
16207
16208 # Flag that allows shared libraries with undefined symbols to be built.
16209 allow_undefined_flag=$lt_allow_undefined_flag_F77
16210
16211 # Flag that forces no undefined symbols.
16212 no_undefined_flag=$lt_no_undefined_flag_F77
16213
16214 # Commands used to finish a libtool library installation in a directory.
16215 finish_cmds=$lt_finish_cmds
16216
16217 # Same as above, but a single script fragment to be evaled but not shown.
16218 finish_eval=$lt_finish_eval
16219
16220 # Take the output of nm and produce a listing of raw symbols and C names.
16221 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16222
16223 # Transform the output of nm in a proper C declaration
16224 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16225
16226 # Transform the output of nm in a C name address pair
16227 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16228
16229 # This is the shared library runtime path variable.
16230 runpath_var=$runpath_var
16231
16232 # This is the shared library path variable.
16233 shlibpath_var=$shlibpath_var
16234
16235 # Is shlibpath searched before the hard-coded library search path?
16236 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16237
16238 # How to hardcode a shared library path into an executable.
16239 hardcode_action=$hardcode_action_F77
16240
16241 # Whether we should hardcode library paths into libraries.
16242 hardcode_into_libs=$hardcode_into_libs
16243
16244 # Flag to hardcode \$libdir into a binary during linking.
16245 # This must work even if \$libdir does not exist.
16246 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16247
16248 # If ld is used when linking, flag to hardcode \$libdir into
16249 # a binary during linking. This must work even if \$libdir does
16250 # not exist.
16251 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16252
16253 # Whether we need a single -rpath flag with a separated argument.
16254 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16255
16256 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16257 # resulting binary.
16258 hardcode_direct=$hardcode_direct_F77
16259
16260 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16261 # resulting binary.
16262 hardcode_minus_L=$hardcode_minus_L_F77
16263
16264 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16265 # the resulting binary.
16266 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16267
16268 # Set to yes if building a shared library automatically hardcodes DIR into the library
16269 # and all subsequent libraries and executables linked against it.
16270 hardcode_automatic=$hardcode_automatic_F77
16271
16272 # Variables whose values should be saved in libtool wrapper scripts and
16273 # restored at relink time.
16274 variables_saved_for_relink="$variables_saved_for_relink"
16275
16276 # Whether libtool must link a program against all its dependency libraries.
16277 link_all_deplibs=$link_all_deplibs_F77
16278
16279 # Compile-time system search path for libraries
16280 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16281
16282 # Run-time system search path for libraries
16283 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16284
16285 # Fix the shell variable \$srcfile for the compiler.
16286 fix_srcfile_path="$fix_srcfile_path_F77"
16287
16288 # Set to yes if exported symbols are required.
16289 always_export_symbols=$always_export_symbols_F77
16290
16291 # The commands to list exported symbols.
16292 export_symbols_cmds=$lt_export_symbols_cmds_F77
16293
16294 # The commands to extract the exported symbol list from a shared archive.
16295 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16296
16297 # Symbols that should not be listed in the preloaded symbols.
16298 exclude_expsyms=$lt_exclude_expsyms_F77
16299
16300 # Symbols that must always be exported.
16301 include_expsyms=$lt_include_expsyms_F77
16302
16303 # ### END LIBTOOL TAG CONFIG: $tagname
16304
16305 __EOF__
16306
16307
16308 else
16309   # If there is no Makefile yet, we rely on a make rule to execute
16310   # `config.status --recheck' to rerun these tests and create the
16311   # libtool script then.
16312   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16313   if test -f "$ltmain_in"; then
16314     test -f Makefile && make "$ltmain"
16315   fi
16316 fi
16317
16318
16319 ac_ext=c
16320 ac_cpp='$CPP $CPPFLAGS'
16321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16324
16325 CC="$lt_save_CC"
16326
16327         else
16328           tagname=""
16329         fi
16330         ;;
16331
16332       GCJ)
16333         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16334
16335
16336 # Source file extension for Java test sources.
16337 ac_ext=java
16338
16339 # Object file extension for compiled Java test sources.
16340 objext=o
16341 objext_GCJ=$objext
16342
16343 # Code to be used in simple compile tests
16344 lt_simple_compile_test_code="class foo {}\n"
16345
16346 # Code to be used in simple link tests
16347 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16348
16349 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16350
16351 # If no C compiler was specified, use CC.
16352 LTCC=${LTCC-"$CC"}
16353
16354 # If no C compiler flags were specified, use CFLAGS.
16355 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16356
16357 # Allow CC to be a program name with arguments.
16358 compiler=$CC
16359
16360
16361 # save warnings/boilerplate of simple test code
16362 ac_outfile=conftest.$ac_objext
16363 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16364 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16365 _lt_compiler_boilerplate=`cat conftest.err`
16366 $rm conftest*
16367
16368 ac_outfile=conftest.$ac_objext
16369 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16370 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16371 _lt_linker_boilerplate=`cat conftest.err`
16372 $rm conftest*
16373
16374
16375 # Allow CC to be a program name with arguments.
16376 lt_save_CC="$CC"
16377 CC=${GCJ-"gcj"}
16378 compiler=$CC
16379 compiler_GCJ=$CC
16380 for cc_temp in $compiler""; do
16381   case $cc_temp in
16382     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16383     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16384     \-*) ;;
16385     *) break;;
16386   esac
16387 done
16388 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16389
16390
16391 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16392 archive_cmds_need_lc_GCJ=no
16393
16394 old_archive_cmds_GCJ=$old_archive_cmds
16395
16396 ## CAVEAT EMPTOR:
16397 ## There is no encapsulation within the following macros, do not change
16398 ## the running order or otherwise move them around unless you know exactly
16399 ## what you are doing...
16400
16401 lt_prog_compiler_no_builtin_flag_GCJ=
16402
16403 if test "$GCC" = yes; then
16404   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16405
16406
16407 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16408 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16409 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16410   echo $ECHO_N "(cached) $ECHO_C" >&6
16411 else
16412   lt_cv_prog_compiler_rtti_exceptions=no
16413   ac_outfile=conftest.$ac_objext
16414    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16415    lt_compiler_flag="-fno-rtti -fno-exceptions"
16416    # Insert the option either (1) after the last *FLAGS variable, or
16417    # (2) before a word containing "conftest.", or (3) at the end.
16418    # Note that $ac_compile itself does not contain backslashes and begins
16419    # with a dollar sign (not a hyphen), so the echo should work correctly.
16420    # The option is referenced via a variable to avoid confusing sed.
16421    lt_compile=`echo "$ac_compile" | $SED \
16422    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16423    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16424    -e 's:$: $lt_compiler_flag:'`
16425    (eval echo "\"\$as_me:16425: $lt_compile\"" >&5)
16426    (eval "$lt_compile" 2>conftest.err)
16427    ac_status=$?
16428    cat conftest.err >&5
16429    echo "$as_me:16429: \$? = $ac_status" >&5
16430    if (exit $ac_status) && test -s "$ac_outfile"; then
16431      # The compiler can only warn and ignore the option if not recognized
16432      # So say no if there are warnings other than the usual output.
16433      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16434      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16435      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16436        lt_cv_prog_compiler_rtti_exceptions=yes
16437      fi
16438    fi
16439    $rm conftest*
16440
16441 fi
16442 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16443 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16444
16445 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16446     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16447 else
16448     :
16449 fi
16450
16451 fi
16452
16453 lt_prog_compiler_wl_GCJ=
16454 lt_prog_compiler_pic_GCJ=
16455 lt_prog_compiler_static_GCJ=
16456
16457 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16458 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16459
16460   if test "$GCC" = yes; then
16461     lt_prog_compiler_wl_GCJ='-Wl,'
16462     lt_prog_compiler_static_GCJ='-static'
16463
16464     case $host_os in
16465       aix*)
16466       # All AIX code is PIC.
16467       if test "$host_cpu" = ia64; then
16468         # AIX 5 now supports IA64 processor
16469         lt_prog_compiler_static_GCJ='-Bstatic'
16470       fi
16471       ;;
16472
16473     amigaos*)
16474       # FIXME: we need at least 68020 code to build shared libraries, but
16475       # adding the `-m68020' flag to GCC prevents building anything better,
16476       # like `-m68040'.
16477       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16478       ;;
16479
16480     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16481       # PIC is the default for these OSes.
16482       ;;
16483
16484     mingw* | pw32* | os2*)
16485       # This hack is so that the source file can tell whether it is being
16486       # built for inclusion in a dll (and should export symbols for example).
16487       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16488       ;;
16489
16490     darwin* | rhapsody*)
16491       # PIC is the default on this platform
16492       # Common symbols not allowed in MH_DYLIB files
16493       lt_prog_compiler_pic_GCJ='-fno-common'
16494       ;;
16495
16496     interix3*)
16497       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16498       # Instead, we relocate shared libraries at runtime.
16499       ;;
16500
16501     msdosdjgpp*)
16502       # Just because we use GCC doesn't mean we suddenly get shared libraries
16503       # on systems that don't support them.
16504       lt_prog_compiler_can_build_shared_GCJ=no
16505       enable_shared=no
16506       ;;
16507
16508     sysv4*MP*)
16509       if test -d /usr/nec; then
16510         lt_prog_compiler_pic_GCJ=-Kconform_pic
16511       fi
16512       ;;
16513
16514     hpux*)
16515       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16516       # not for PA HP-UX.
16517       case $host_cpu in
16518       hppa*64*|ia64*)
16519         # +Z the default
16520         ;;
16521       *)
16522         lt_prog_compiler_pic_GCJ='-fPIC'
16523         ;;
16524       esac
16525       ;;
16526
16527     *)
16528       lt_prog_compiler_pic_GCJ='-fPIC'
16529       ;;
16530     esac
16531   else
16532     # PORTME Check for flag to pass linker flags through the system compiler.
16533     case $host_os in
16534     aix*)
16535       lt_prog_compiler_wl_GCJ='-Wl,'
16536       if test "$host_cpu" = ia64; then
16537         # AIX 5 now supports IA64 processor
16538         lt_prog_compiler_static_GCJ='-Bstatic'
16539       else
16540         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16541       fi
16542       ;;
16543       darwin*)
16544         # PIC is the default on this platform
16545         # Common symbols not allowed in MH_DYLIB files
16546        case $cc_basename in
16547          xlc*)
16548          lt_prog_compiler_pic_GCJ='-qnocommon'
16549          lt_prog_compiler_wl_GCJ='-Wl,'
16550          ;;
16551        esac
16552        ;;
16553
16554     mingw* | pw32* | os2*)
16555       # This hack is so that the source file can tell whether it is being
16556       # built for inclusion in a dll (and should export symbols for example).
16557       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16558       ;;
16559
16560     hpux9* | hpux10* | hpux11*)
16561       lt_prog_compiler_wl_GCJ='-Wl,'
16562       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16563       # not for PA HP-UX.
16564       case $host_cpu in
16565       hppa*64*|ia64*)
16566         # +Z the default
16567         ;;
16568       *)
16569         lt_prog_compiler_pic_GCJ='+Z'
16570         ;;
16571       esac
16572       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16573       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16574       ;;
16575
16576     irix5* | irix6* | nonstopux*)
16577       lt_prog_compiler_wl_GCJ='-Wl,'
16578       # PIC (with -KPIC) is the default.
16579       lt_prog_compiler_static_GCJ='-non_shared'
16580       ;;
16581
16582     newsos6)
16583       lt_prog_compiler_pic_GCJ='-KPIC'
16584       lt_prog_compiler_static_GCJ='-Bstatic'
16585       ;;
16586
16587     linux*)
16588       case $cc_basename in
16589       icc* | ecc*)
16590         lt_prog_compiler_wl_GCJ='-Wl,'
16591         lt_prog_compiler_pic_GCJ='-KPIC'
16592         lt_prog_compiler_static_GCJ='-static'
16593         ;;
16594       pgcc* | pgf77* | pgf90* | pgf95*)
16595         # Portland Group compilers (*not* the Pentium gcc compiler,
16596         # which looks to be a dead project)
16597         lt_prog_compiler_wl_GCJ='-Wl,'
16598         lt_prog_compiler_pic_GCJ='-fpic'
16599         lt_prog_compiler_static_GCJ='-Bstatic'
16600         ;;
16601       ccc*)
16602         lt_prog_compiler_wl_GCJ='-Wl,'
16603         # All Alpha code is PIC.
16604         lt_prog_compiler_static_GCJ='-non_shared'
16605         ;;
16606       esac
16607       ;;
16608
16609     osf3* | osf4* | osf5*)
16610       lt_prog_compiler_wl_GCJ='-Wl,'
16611       # All OSF/1 code is PIC.
16612       lt_prog_compiler_static_GCJ='-non_shared'
16613       ;;
16614
16615     solaris*)
16616       lt_prog_compiler_pic_GCJ='-KPIC'
16617       lt_prog_compiler_static_GCJ='-Bstatic'
16618       case $cc_basename in
16619       f77* | f90* | f95*)
16620         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16621       *)
16622         lt_prog_compiler_wl_GCJ='-Wl,';;
16623       esac
16624       ;;
16625
16626     sunos4*)
16627       lt_prog_compiler_wl_GCJ='-Qoption ld '
16628       lt_prog_compiler_pic_GCJ='-PIC'
16629       lt_prog_compiler_static_GCJ='-Bstatic'
16630       ;;
16631
16632     sysv4 | sysv4.2uw2* | sysv4.3*)
16633       lt_prog_compiler_wl_GCJ='-Wl,'
16634       lt_prog_compiler_pic_GCJ='-KPIC'
16635       lt_prog_compiler_static_GCJ='-Bstatic'
16636       ;;
16637
16638     sysv4*MP*)
16639       if test -d /usr/nec ;then
16640         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16641         lt_prog_compiler_static_GCJ='-Bstatic'
16642       fi
16643       ;;
16644
16645     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16646       lt_prog_compiler_wl_GCJ='-Wl,'
16647       lt_prog_compiler_pic_GCJ='-KPIC'
16648       lt_prog_compiler_static_GCJ='-Bstatic'
16649       ;;
16650
16651     unicos*)
16652       lt_prog_compiler_wl_GCJ='-Wl,'
16653       lt_prog_compiler_can_build_shared_GCJ=no
16654       ;;
16655
16656     uts4*)
16657       lt_prog_compiler_pic_GCJ='-pic'
16658       lt_prog_compiler_static_GCJ='-Bstatic'
16659       ;;
16660
16661     *)
16662       lt_prog_compiler_can_build_shared_GCJ=no
16663       ;;
16664     esac
16665   fi
16666
16667 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16668 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16669
16670 #
16671 # Check to make sure the PIC flag actually works.
16672 #
16673 if test -n "$lt_prog_compiler_pic_GCJ"; then
16674
16675 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16676 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16677 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16678   echo $ECHO_N "(cached) $ECHO_C" >&6
16679 else
16680   lt_prog_compiler_pic_works_GCJ=no
16681   ac_outfile=conftest.$ac_objext
16682    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16683    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16684    # Insert the option either (1) after the last *FLAGS variable, or
16685    # (2) before a word containing "conftest.", or (3) at the end.
16686    # Note that $ac_compile itself does not contain backslashes and begins
16687    # with a dollar sign (not a hyphen), so the echo should work correctly.
16688    # The option is referenced via a variable to avoid confusing sed.
16689    lt_compile=`echo "$ac_compile" | $SED \
16690    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16691    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16692    -e 's:$: $lt_compiler_flag:'`
16693    (eval echo "\"\$as_me:16693: $lt_compile\"" >&5)
16694    (eval "$lt_compile" 2>conftest.err)
16695    ac_status=$?
16696    cat conftest.err >&5
16697    echo "$as_me:16697: \$? = $ac_status" >&5
16698    if (exit $ac_status) && test -s "$ac_outfile"; then
16699      # The compiler can only warn and ignore the option if not recognized
16700      # So say no if there are warnings other than the usual output.
16701      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16702      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16703      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16704        lt_prog_compiler_pic_works_GCJ=yes
16705      fi
16706    fi
16707    $rm conftest*
16708
16709 fi
16710 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16711 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16712
16713 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16714     case $lt_prog_compiler_pic_GCJ in
16715      "" | " "*) ;;
16716      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16717      esac
16718 else
16719     lt_prog_compiler_pic_GCJ=
16720      lt_prog_compiler_can_build_shared_GCJ=no
16721 fi
16722
16723 fi
16724 case $host_os in
16725   # For platforms which do not support PIC, -DPIC is meaningless:
16726   *djgpp*)
16727     lt_prog_compiler_pic_GCJ=
16728     ;;
16729   *)
16730     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16731     ;;
16732 esac
16733
16734 #
16735 # Check to make sure the static flag actually works.
16736 #
16737 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16738 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16739 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16740 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16741   echo $ECHO_N "(cached) $ECHO_C" >&6
16742 else
16743   lt_prog_compiler_static_works_GCJ=no
16744    save_LDFLAGS="$LDFLAGS"
16745    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16746    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16747    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16748      # The linker can only warn and ignore the option if not recognized
16749      # So say no if there are warnings
16750      if test -s conftest.err; then
16751        # Append any errors to the config.log.
16752        cat conftest.err 1>&5
16753        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16754        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16755        if diff conftest.exp conftest.er2 >/dev/null; then
16756          lt_prog_compiler_static_works_GCJ=yes
16757        fi
16758      else
16759        lt_prog_compiler_static_works_GCJ=yes
16760      fi
16761    fi
16762    $rm conftest*
16763    LDFLAGS="$save_LDFLAGS"
16764
16765 fi
16766 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16767 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16768
16769 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16770     :
16771 else
16772     lt_prog_compiler_static_GCJ=
16773 fi
16774
16775
16776 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16777 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16778 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16779   echo $ECHO_N "(cached) $ECHO_C" >&6
16780 else
16781   lt_cv_prog_compiler_c_o_GCJ=no
16782    $rm -r conftest 2>/dev/null
16783    mkdir conftest
16784    cd conftest
16785    mkdir out
16786    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16787
16788    lt_compiler_flag="-o out/conftest2.$ac_objext"
16789    # Insert the option either (1) after the last *FLAGS variable, or
16790    # (2) before a word containing "conftest.", or (3) at the end.
16791    # Note that $ac_compile itself does not contain backslashes and begins
16792    # with a dollar sign (not a hyphen), so the echo should work correctly.
16793    lt_compile=`echo "$ac_compile" | $SED \
16794    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16795    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16796    -e 's:$: $lt_compiler_flag:'`
16797    (eval echo "\"\$as_me:16797: $lt_compile\"" >&5)
16798    (eval "$lt_compile" 2>out/conftest.err)
16799    ac_status=$?
16800    cat out/conftest.err >&5
16801    echo "$as_me:16801: \$? = $ac_status" >&5
16802    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16803    then
16804      # The compiler can only warn and ignore the option if not recognized
16805      # So say no if there are warnings
16806      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16807      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16808      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16809        lt_cv_prog_compiler_c_o_GCJ=yes
16810      fi
16811    fi
16812    chmod u+w . 2>&5
16813    $rm conftest*
16814    # SGI C++ compiler will create directory out/ii_files/ for
16815    # template instantiation
16816    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16817    $rm out/* && rmdir out
16818    cd ..
16819    rmdir conftest
16820    $rm conftest*
16821
16822 fi
16823 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16824 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16825
16826
16827 hard_links="nottested"
16828 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16829   # do not overwrite the value of need_locks provided by the user
16830   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16831 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16832   hard_links=yes
16833   $rm conftest*
16834   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16835   touch conftest.a
16836   ln conftest.a conftest.b 2>&5 || hard_links=no
16837   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16838   { echo "$as_me:$LINENO: result: $hard_links" >&5
16839 echo "${ECHO_T}$hard_links" >&6; }
16840   if test "$hard_links" = no; then
16841     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16842 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16843     need_locks=warn
16844   fi
16845 else
16846   need_locks=no
16847 fi
16848
16849 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16850 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16851
16852   runpath_var=
16853   allow_undefined_flag_GCJ=
16854   enable_shared_with_static_runtimes_GCJ=no
16855   archive_cmds_GCJ=
16856   archive_expsym_cmds_GCJ=
16857   old_archive_From_new_cmds_GCJ=
16858   old_archive_from_expsyms_cmds_GCJ=
16859   export_dynamic_flag_spec_GCJ=
16860   whole_archive_flag_spec_GCJ=
16861   thread_safe_flag_spec_GCJ=
16862   hardcode_libdir_flag_spec_GCJ=
16863   hardcode_libdir_flag_spec_ld_GCJ=
16864   hardcode_libdir_separator_GCJ=
16865   hardcode_direct_GCJ=no
16866   hardcode_minus_L_GCJ=no
16867   hardcode_shlibpath_var_GCJ=unsupported
16868   link_all_deplibs_GCJ=unknown
16869   hardcode_automatic_GCJ=no
16870   module_cmds_GCJ=
16871   module_expsym_cmds_GCJ=
16872   always_export_symbols_GCJ=no
16873   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16874   # include_expsyms should be a list of space-separated symbols to be *always*
16875   # included in the symbol list
16876   include_expsyms_GCJ=
16877   # exclude_expsyms can be an extended regexp of symbols to exclude
16878   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16879   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16880   # as well as any symbol that contains `d'.
16881   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16882   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16883   # platforms (ab)use it in PIC code, but their linkers get confused if
16884   # the symbol is explicitly referenced.  Since portable code cannot
16885   # rely on this symbol name, it's probably fine to never include it in
16886   # preloaded symbol tables.
16887   extract_expsyms_cmds=
16888   # Just being paranoid about ensuring that cc_basename is set.
16889   for cc_temp in $compiler""; do
16890   case $cc_temp in
16891     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16892     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16893     \-*) ;;
16894     *) break;;
16895   esac
16896 done
16897 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16898
16899   case $host_os in
16900   cygwin* | mingw* | pw32*)
16901     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16902     # When not using gcc, we currently assume that we are using
16903     # Microsoft Visual C++.
16904     if test "$GCC" != yes; then
16905       with_gnu_ld=no
16906     fi
16907     ;;
16908   interix*)
16909     # we just hope/assume this is gcc and not c89 (= MSVC++)
16910     with_gnu_ld=yes
16911     ;;
16912   openbsd*)
16913     with_gnu_ld=no
16914     ;;
16915   esac
16916
16917   ld_shlibs_GCJ=yes
16918   if test "$with_gnu_ld" = yes; then
16919     # If archive_cmds runs LD, not CC, wlarc should be empty
16920     wlarc='${wl}'
16921
16922     # Set some defaults for GNU ld with shared library support. These
16923     # are reset later if shared libraries are not supported. Putting them
16924     # here allows them to be overridden if necessary.
16925     runpath_var=LD_RUN_PATH
16926     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16927     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16928     # ancient GNU ld didn't support --whole-archive et. al.
16929     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16930         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16931       else
16932         whole_archive_flag_spec_GCJ=
16933     fi
16934     supports_anon_versioning=no
16935     case `$LD -v 2>/dev/null` in
16936       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16937       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16938       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16939       *\ 2.11.*) ;; # other 2.11 versions
16940       *) supports_anon_versioning=yes ;;
16941     esac
16942
16943     # See if GNU ld supports shared libraries.
16944     case $host_os in
16945     aix3* | aix4* | aix5*)
16946       # On AIX/PPC, the GNU linker is very broken
16947       if test "$host_cpu" != ia64; then
16948         ld_shlibs_GCJ=no
16949         cat <<EOF 1>&2
16950
16951 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16952 *** to be unable to reliably create shared libraries on AIX.
16953 *** Therefore, libtool is disabling shared libraries support.  If you
16954 *** really care for shared libraries, you may want to modify your PATH
16955 *** so that a non-GNU linker is found, and then restart.
16956
16957 EOF
16958       fi
16959       ;;
16960
16961     amigaos*)
16962       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)'
16963       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16964       hardcode_minus_L_GCJ=yes
16965
16966       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16967       # that the semantics of dynamic libraries on AmigaOS, at least up
16968       # to version 4, is to share data among multiple programs linked
16969       # with the same dynamic library.  Since this doesn't match the
16970       # behavior of shared libraries on other platforms, we can't use
16971       # them.
16972       ld_shlibs_GCJ=no
16973       ;;
16974
16975     beos*)
16976       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16977         allow_undefined_flag_GCJ=unsupported
16978         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16979         # support --undefined.  This deserves some investigation.  FIXME
16980         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16981       else
16982         ld_shlibs_GCJ=no
16983       fi
16984       ;;
16985
16986     cygwin* | mingw* | pw32*)
16987       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16988       # as there is no search path for DLLs.
16989       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16990       allow_undefined_flag_GCJ=unsupported
16991       always_export_symbols_GCJ=no
16992       enable_shared_with_static_runtimes_GCJ=yes
16993       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16994
16995       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16996         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16997         # If the export-symbols file already is a .def file (1st line
16998         # is EXPORTS), use it as is; otherwise, prepend...
16999         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17000           cp $export_symbols $output_objdir/$soname.def;
17001         else
17002           echo EXPORTS > $output_objdir/$soname.def;
17003           cat $export_symbols >> $output_objdir/$soname.def;
17004         fi~
17005         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17006       else
17007         ld_shlibs_GCJ=no
17008       fi
17009       ;;
17010
17011     interix3*)
17012       hardcode_direct_GCJ=no
17013       hardcode_shlibpath_var_GCJ=no
17014       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17015       export_dynamic_flag_spec_GCJ='${wl}-E'
17016       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17017       # Instead, shared libraries are loaded at an image base (0x10000000 by
17018       # default) and relocated if they conflict, which is a slow very memory
17019       # consuming and fragmenting process.  To avoid this, we pick a random,
17020       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17021       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17022       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'
17023       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'
17024       ;;
17025
17026     linux*)
17027       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17028         tmp_addflag=
17029         case $cc_basename,$host_cpu in
17030         pgcc*)                          # Portland Group C compiler
17031           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'
17032           tmp_addflag=' $pic_flag'
17033           ;;
17034         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17035           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'
17036           tmp_addflag=' $pic_flag -Mnomain' ;;
17037         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17038           tmp_addflag=' -i_dynamic' ;;
17039         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17040           tmp_addflag=' -i_dynamic -nofor_main' ;;
17041         ifc* | ifort*)                  # Intel Fortran compiler
17042           tmp_addflag=' -nofor_main' ;;
17043         esac
17044         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17045
17046         if test $supports_anon_versioning = yes; then
17047           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17048   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17049   $echo "local: *; };" >> $output_objdir/$libname.ver~
17050           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17051         fi
17052       else
17053         ld_shlibs_GCJ=no
17054       fi
17055       ;;
17056
17057     netbsd*)
17058       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17059         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17060         wlarc=
17061       else
17062         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17063         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17064       fi
17065       ;;
17066
17067     solaris*)
17068       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17069         ld_shlibs_GCJ=no
17070         cat <<EOF 1>&2
17071
17072 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17073 *** create shared libraries on Solaris systems.  Therefore, libtool
17074 *** is disabling shared libraries support.  We urge you to upgrade GNU
17075 *** binutils to release 2.9.1 or newer.  Another option is to modify
17076 *** your PATH or compiler configuration so that the native linker is
17077 *** used, and then restart.
17078
17079 EOF
17080       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17081         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17082         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17083       else
17084         ld_shlibs_GCJ=no
17085       fi
17086       ;;
17087
17088     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17089       case `$LD -v 2>&1` in
17090         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17091         ld_shlibs_GCJ=no
17092         cat <<_LT_EOF 1>&2
17093
17094 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17095 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17096 *** is disabling shared libraries support.  We urge you to upgrade GNU
17097 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17098 *** your PATH or compiler configuration so that the native linker is
17099 *** used, and then restart.
17100
17101 _LT_EOF
17102         ;;
17103         *)
17104           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17105             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17106             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17107             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17108           else
17109             ld_shlibs_GCJ=no
17110           fi
17111         ;;
17112       esac
17113       ;;
17114
17115     sunos4*)
17116       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17117       wlarc=
17118       hardcode_direct_GCJ=yes
17119       hardcode_shlibpath_var_GCJ=no
17120       ;;
17121
17122     *)
17123       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17124         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17125         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17126       else
17127         ld_shlibs_GCJ=no
17128       fi
17129       ;;
17130     esac
17131
17132     if test "$ld_shlibs_GCJ" = no; then
17133       runpath_var=
17134       hardcode_libdir_flag_spec_GCJ=
17135       export_dynamic_flag_spec_GCJ=
17136       whole_archive_flag_spec_GCJ=
17137     fi
17138   else
17139     # PORTME fill in a description of your system's linker (not GNU ld)
17140     case $host_os in
17141     aix3*)
17142       allow_undefined_flag_GCJ=unsupported
17143       always_export_symbols_GCJ=yes
17144       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'
17145       # Note: this linker hardcodes the directories in LIBPATH if there
17146       # are no directories specified by -L.
17147       hardcode_minus_L_GCJ=yes
17148       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17149         # Neither direct hardcoding nor static linking is supported with a
17150         # broken collect2.
17151         hardcode_direct_GCJ=unsupported
17152       fi
17153       ;;
17154
17155     aix4* | aix5*)
17156       if test "$host_cpu" = ia64; then
17157         # On IA64, the linker does run time linking by default, so we don't
17158         # have to do anything special.
17159         aix_use_runtimelinking=no
17160         exp_sym_flag='-Bexport'
17161         no_entry_flag=""
17162       else
17163         # If we're using GNU nm, then we don't want the "-C" option.
17164         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17165         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17166           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'
17167         else
17168           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'
17169         fi
17170         aix_use_runtimelinking=no
17171
17172         # Test if we are trying to use run time linking or normal
17173         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17174         # need to do runtime linking.
17175         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17176           for ld_flag in $LDFLAGS; do
17177           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17178             aix_use_runtimelinking=yes
17179             break
17180           fi
17181           done
17182           ;;
17183         esac
17184
17185         exp_sym_flag='-bexport'
17186         no_entry_flag='-bnoentry'
17187       fi
17188
17189       # When large executables or shared objects are built, AIX ld can
17190       # have problems creating the table of contents.  If linking a library
17191       # or program results in "error TOC overflow" add -mminimal-toc to
17192       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17193       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17194
17195       archive_cmds_GCJ=''
17196       hardcode_direct_GCJ=yes
17197       hardcode_libdir_separator_GCJ=':'
17198       link_all_deplibs_GCJ=yes
17199
17200       if test "$GCC" = yes; then
17201         case $host_os in aix4.[012]|aix4.[012].*)
17202         # We only want to do this on AIX 4.2 and lower, the check
17203         # below for broken collect2 doesn't work under 4.3+
17204           collect2name=`${CC} -print-prog-name=collect2`
17205           if test -f "$collect2name" && \
17206            strings "$collect2name" | grep resolve_lib_name >/dev/null
17207           then
17208           # We have reworked collect2
17209           hardcode_direct_GCJ=yes
17210           else
17211           # We have old collect2
17212           hardcode_direct_GCJ=unsupported
17213           # It fails to find uninstalled libraries when the uninstalled
17214           # path is not listed in the libpath.  Setting hardcode_minus_L
17215           # to unsupported forces relinking
17216           hardcode_minus_L_GCJ=yes
17217           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17218           hardcode_libdir_separator_GCJ=
17219           fi
17220           ;;
17221         esac
17222         shared_flag='-shared'
17223         if test "$aix_use_runtimelinking" = yes; then
17224           shared_flag="$shared_flag "'${wl}-G'
17225         fi
17226       else
17227         # not using gcc
17228         if test "$host_cpu" = ia64; then
17229         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17230         # chokes on -Wl,-G. The following line is correct:
17231           shared_flag='-G'
17232         else
17233           if test "$aix_use_runtimelinking" = yes; then
17234             shared_flag='${wl}-G'
17235           else
17236             shared_flag='${wl}-bM:SRE'
17237           fi
17238         fi
17239       fi
17240
17241       # It seems that -bexpall does not export symbols beginning with
17242       # underscore (_), so it is better to generate a list of symbols to export.
17243       always_export_symbols_GCJ=yes
17244       if test "$aix_use_runtimelinking" = yes; then
17245         # Warning - without using the other runtime loading flags (-brtl),
17246         # -berok will link without error, but may produce a broken library.
17247         allow_undefined_flag_GCJ='-berok'
17248        # Determine the default libpath from the value encoded in an empty executable.
17249        cat >conftest.$ac_ext <<_ACEOF
17250 /* confdefs.h.  */
17251 _ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h.  */
17255
17256 int
17257 main ()
17258 {
17259
17260   ;
17261   return 0;
17262 }
17263 _ACEOF
17264 rm -f conftest.$ac_objext conftest$ac_exeext
17265 if { (ac_try="$ac_link"
17266 case "(($ac_try" in
17267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268   *) ac_try_echo=$ac_try;;
17269 esac
17270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271   (eval "$ac_link") 2>conftest.er1
17272   ac_status=$?
17273   grep -v '^ *+' conftest.er1 >conftest.err
17274   rm -f conftest.er1
17275   cat conftest.err >&5
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); } && {
17278          test -z "$ac_c_werror_flag" ||
17279          test ! -s conftest.err
17280        } && test -s conftest$ac_exeext &&
17281        $as_test_x conftest$ac_exeext; then
17282
17283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17284 }'`
17285 # Check for a 64-bit object if we didn't find anything.
17286 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17287 }'`; fi
17288 else
17289   echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17291
17292
17293 fi
17294
17295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17296       conftest$ac_exeext conftest.$ac_ext
17297 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17298
17299        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17300         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"
17301        else
17302         if test "$host_cpu" = ia64; then
17303           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17304           allow_undefined_flag_GCJ="-z nodefs"
17305           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"
17306         else
17307          # Determine the default libpath from the value encoded in an empty executable.
17308          cat >conftest.$ac_ext <<_ACEOF
17309 /* confdefs.h.  */
17310 _ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h.  */
17314
17315 int
17316 main ()
17317 {
17318
17319   ;
17320   return 0;
17321 }
17322 _ACEOF
17323 rm -f conftest.$ac_objext conftest$ac_exeext
17324 if { (ac_try="$ac_link"
17325 case "(($ac_try" in
17326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17327   *) ac_try_echo=$ac_try;;
17328 esac
17329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17330   (eval "$ac_link") 2>conftest.er1
17331   ac_status=$?
17332   grep -v '^ *+' conftest.er1 >conftest.err
17333   rm -f conftest.er1
17334   cat conftest.err >&5
17335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336   (exit $ac_status); } && {
17337          test -z "$ac_c_werror_flag" ||
17338          test ! -s conftest.err
17339        } && test -s conftest$ac_exeext &&
17340        $as_test_x conftest$ac_exeext; then
17341
17342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17343 }'`
17344 # Check for a 64-bit object if we didn't find anything.
17345 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17346 }'`; fi
17347 else
17348   echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17350
17351
17352 fi
17353
17354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17355       conftest$ac_exeext conftest.$ac_ext
17356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17357
17358          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17359           # Warning - without using the other run time loading flags,
17360           # -berok will link without error, but may produce a broken library.
17361           no_undefined_flag_GCJ=' ${wl}-bernotok'
17362           allow_undefined_flag_GCJ=' ${wl}-berok'
17363           # Exported symbols can be pulled into shared objects from archives
17364           whole_archive_flag_spec_GCJ='$convenience'
17365           archive_cmds_need_lc_GCJ=yes
17366           # This is similar to how AIX traditionally builds its shared libraries.
17367           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'
17368         fi
17369       fi
17370       ;;
17371
17372     amigaos*)
17373       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)'
17374       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17375       hardcode_minus_L_GCJ=yes
17376       # see comment about different semantics on the GNU ld section
17377       ld_shlibs_GCJ=no
17378       ;;
17379
17380     bsdi[45]*)
17381       export_dynamic_flag_spec_GCJ=-rdynamic
17382       ;;
17383
17384     cygwin* | mingw* | pw32*)
17385       # When not using gcc, we currently assume that we are using
17386       # Microsoft Visual C++.
17387       # hardcode_libdir_flag_spec is actually meaningless, as there is
17388       # no search path for DLLs.
17389       hardcode_libdir_flag_spec_GCJ=' '
17390       allow_undefined_flag_GCJ=unsupported
17391       # Tell ltmain to make .lib files, not .a files.
17392       libext=lib
17393       # Tell ltmain to make .dll files, not .so files.
17394       shrext_cmds=".dll"
17395       # FIXME: Setting linknames here is a bad hack.
17396       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17397       # The linker will automatically build a .lib file if we build a DLL.
17398       old_archive_From_new_cmds_GCJ='true'
17399       # FIXME: Should let the user specify the lib program.
17400       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17401       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17402       enable_shared_with_static_runtimes_GCJ=yes
17403       ;;
17404
17405     darwin* | rhapsody*)
17406       case $host_os in
17407         rhapsody* | darwin1.[012])
17408          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17409          ;;
17410        *) # Darwin 1.3 on
17411          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17412            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17413          else
17414            case ${MACOSX_DEPLOYMENT_TARGET} in
17415              10.[012])
17416                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17417                ;;
17418              10.*)
17419                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17420                ;;
17421            esac
17422          fi
17423          ;;
17424       esac
17425       archive_cmds_need_lc_GCJ=no
17426       hardcode_direct_GCJ=no
17427       hardcode_automatic_GCJ=yes
17428       hardcode_shlibpath_var_GCJ=unsupported
17429       whole_archive_flag_spec_GCJ=''
17430       link_all_deplibs_GCJ=yes
17431     if test "$GCC" = yes ; then
17432         output_verbose_link_cmd='echo'
17433         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17434       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17435       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17436       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17437       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}'
17438     else
17439       case $cc_basename in
17440         xlc*)
17441          output_verbose_link_cmd='echo'
17442          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17443          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17444           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17445          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17446           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}'
17447           ;;
17448        *)
17449          ld_shlibs_GCJ=no
17450           ;;
17451       esac
17452     fi
17453       ;;
17454
17455     dgux*)
17456       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17457       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17458       hardcode_shlibpath_var_GCJ=no
17459       ;;
17460
17461     freebsd1*)
17462       ld_shlibs_GCJ=no
17463       ;;
17464
17465     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17466     # support.  Future versions do this automatically, but an explicit c++rt0.o
17467     # does not break anything, and helps significantly (at the cost of a little
17468     # extra space).
17469     freebsd2.2*)
17470       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17471       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17472       hardcode_direct_GCJ=yes
17473       hardcode_shlibpath_var_GCJ=no
17474       ;;
17475
17476     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17477     freebsd2*)
17478       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17479       hardcode_direct_GCJ=yes
17480       hardcode_minus_L_GCJ=yes
17481       hardcode_shlibpath_var_GCJ=no
17482       ;;
17483
17484     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17485     freebsd* | kfreebsd*-gnu | dragonfly*)
17486       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17487       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17488       hardcode_direct_GCJ=yes
17489       hardcode_shlibpath_var_GCJ=no
17490       ;;
17491
17492     hpux9*)
17493       if test "$GCC" = yes; then
17494         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'
17495       else
17496         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'
17497       fi
17498       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17499       hardcode_libdir_separator_GCJ=:
17500       hardcode_direct_GCJ=yes
17501
17502       # hardcode_minus_L: Not really in the search PATH,
17503       # but as the default location of the library.
17504       hardcode_minus_L_GCJ=yes
17505       export_dynamic_flag_spec_GCJ='${wl}-E'
17506       ;;
17507
17508     hpux10*)
17509       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17510         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17511       else
17512         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17513       fi
17514       if test "$with_gnu_ld" = no; then
17515         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17516         hardcode_libdir_separator_GCJ=:
17517
17518         hardcode_direct_GCJ=yes
17519         export_dynamic_flag_spec_GCJ='${wl}-E'
17520
17521         # hardcode_minus_L: Not really in the search PATH,
17522         # but as the default location of the library.
17523         hardcode_minus_L_GCJ=yes
17524       fi
17525       ;;
17526
17527     hpux11*)
17528       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17529         case $host_cpu in
17530         hppa*64*)
17531           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17532           ;;
17533         ia64*)
17534           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17535           ;;
17536         *)
17537           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17538           ;;
17539         esac
17540       else
17541         case $host_cpu in
17542         hppa*64*)
17543           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17544           ;;
17545         ia64*)
17546           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17547           ;;
17548         *)
17549           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17550           ;;
17551         esac
17552       fi
17553       if test "$with_gnu_ld" = no; then
17554         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17555         hardcode_libdir_separator_GCJ=:
17556
17557         case $host_cpu in
17558         hppa*64*|ia64*)
17559           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17560           hardcode_direct_GCJ=no
17561           hardcode_shlibpath_var_GCJ=no
17562           ;;
17563         *)
17564           hardcode_direct_GCJ=yes
17565           export_dynamic_flag_spec_GCJ='${wl}-E'
17566
17567           # hardcode_minus_L: Not really in the search PATH,
17568           # but as the default location of the library.
17569           hardcode_minus_L_GCJ=yes
17570           ;;
17571         esac
17572       fi
17573       ;;
17574
17575     irix5* | irix6* | nonstopux*)
17576       if test "$GCC" = yes; then
17577         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'
17578       else
17579         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'
17580         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17581       fi
17582       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17583       hardcode_libdir_separator_GCJ=:
17584       link_all_deplibs_GCJ=yes
17585       ;;
17586
17587     netbsd*)
17588       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17589         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17590       else
17591         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17592       fi
17593       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17594       hardcode_direct_GCJ=yes
17595       hardcode_shlibpath_var_GCJ=no
17596       ;;
17597
17598     newsos6)
17599       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17600       hardcode_direct_GCJ=yes
17601       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17602       hardcode_libdir_separator_GCJ=:
17603       hardcode_shlibpath_var_GCJ=no
17604       ;;
17605
17606     openbsd*)
17607       hardcode_direct_GCJ=yes
17608       hardcode_shlibpath_var_GCJ=no
17609       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17610         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17611         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17612         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17613         export_dynamic_flag_spec_GCJ='${wl}-E'
17614       else
17615        case $host_os in
17616          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17617            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17618            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17619            ;;
17620          *)
17621            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17622            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17623            ;;
17624        esac
17625       fi
17626       ;;
17627
17628     os2*)
17629       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17630       hardcode_minus_L_GCJ=yes
17631       allow_undefined_flag_GCJ=unsupported
17632       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'
17633       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17634       ;;
17635
17636     osf3*)
17637       if test "$GCC" = yes; then
17638         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17639         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'
17640       else
17641         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17642         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'
17643       fi
17644       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17645       hardcode_libdir_separator_GCJ=:
17646       ;;
17647
17648     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17649       if test "$GCC" = yes; then
17650         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17651         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'
17652         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17653       else
17654         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17655         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'
17656         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~
17657         $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'
17658
17659         # Both c and cxx compiler support -rpath directly
17660         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17661       fi
17662       hardcode_libdir_separator_GCJ=:
17663       ;;
17664
17665     solaris*)
17666       no_undefined_flag_GCJ=' -z text'
17667       if test "$GCC" = yes; then
17668         wlarc='${wl}'
17669         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17670         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17671           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17672       else
17673         wlarc=''
17674         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17675         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17676         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17677       fi
17678       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17679       hardcode_shlibpath_var_GCJ=no
17680       case $host_os in
17681       solaris2.[0-5] | solaris2.[0-5].*) ;;
17682       *)
17683         # The compiler driver will combine linker options so we
17684         # cannot just pass the convience library names through
17685         # without $wl, iff we do not link with $LD.
17686         # Luckily, gcc supports the same syntax we need for Sun Studio.
17687         # Supported since Solaris 2.6 (maybe 2.5.1?)
17688         case $wlarc in
17689         '')
17690           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17691         *)
17692           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17693         esac ;;
17694       esac
17695       link_all_deplibs_GCJ=yes
17696       ;;
17697
17698     sunos4*)
17699       if test "x$host_vendor" = xsequent; then
17700         # Use $CC to link under sequent, because it throws in some extra .o
17701         # files that make .init and .fini sections work.
17702         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17703       else
17704         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17705       fi
17706       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17707       hardcode_direct_GCJ=yes
17708       hardcode_minus_L_GCJ=yes
17709       hardcode_shlibpath_var_GCJ=no
17710       ;;
17711
17712     sysv4)
17713       case $host_vendor in
17714         sni)
17715           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17716           hardcode_direct_GCJ=yes # is this really true???
17717         ;;
17718         siemens)
17719           ## LD is ld it makes a PLAMLIB
17720           ## CC just makes a GrossModule.
17721           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17722           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17723           hardcode_direct_GCJ=no
17724         ;;
17725         motorola)
17726           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17727           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17728         ;;
17729       esac
17730       runpath_var='LD_RUN_PATH'
17731       hardcode_shlibpath_var_GCJ=no
17732       ;;
17733
17734     sysv4.3*)
17735       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17736       hardcode_shlibpath_var_GCJ=no
17737       export_dynamic_flag_spec_GCJ='-Bexport'
17738       ;;
17739
17740     sysv4*MP*)
17741       if test -d /usr/nec; then
17742         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17743         hardcode_shlibpath_var_GCJ=no
17744         runpath_var=LD_RUN_PATH
17745         hardcode_runpath_var=yes
17746         ld_shlibs_GCJ=yes
17747       fi
17748       ;;
17749
17750     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17751       no_undefined_flag_GCJ='${wl}-z,text'
17752       archive_cmds_need_lc_GCJ=no
17753       hardcode_shlibpath_var_GCJ=no
17754       runpath_var='LD_RUN_PATH'
17755
17756       if test "$GCC" = yes; then
17757         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17758         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17759       else
17760         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17761         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17762       fi
17763       ;;
17764
17765     sysv5* | sco3.2v5* | sco5v6*)
17766       # Note: We can NOT use -z defs as we might desire, because we do not
17767       # link with -lc, and that would cause any symbols used from libc to
17768       # always be unresolved, which means just about no library would
17769       # ever link correctly.  If we're not using GNU ld we use -z text
17770       # though, which does catch some bad symbols but isn't as heavy-handed
17771       # as -z defs.
17772       no_undefined_flag_GCJ='${wl}-z,text'
17773       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17774       archive_cmds_need_lc_GCJ=no
17775       hardcode_shlibpath_var_GCJ=no
17776       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17777       hardcode_libdir_separator_GCJ=':'
17778       link_all_deplibs_GCJ=yes
17779       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17780       runpath_var='LD_RUN_PATH'
17781
17782       if test "$GCC" = yes; then
17783         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17784         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17785       else
17786         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17787         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17788       fi
17789       ;;
17790
17791     uts4*)
17792       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17793       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17794       hardcode_shlibpath_var_GCJ=no
17795       ;;
17796
17797     *)
17798       ld_shlibs_GCJ=no
17799       ;;
17800     esac
17801   fi
17802
17803 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17804 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17805 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17806
17807 #
17808 # Do we need to explicitly link libc?
17809 #
17810 case "x$archive_cmds_need_lc_GCJ" in
17811 x|xyes)
17812   # Assume -lc should be added
17813   archive_cmds_need_lc_GCJ=yes
17814
17815   if test "$enable_shared" = yes && test "$GCC" = yes; then
17816     case $archive_cmds_GCJ in
17817     *'~'*)
17818       # FIXME: we may have to deal with multi-command sequences.
17819       ;;
17820     '$CC '*)
17821       # Test whether the compiler implicitly links with -lc since on some
17822       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17823       # to ld, don't add -lc before -lgcc.
17824       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17825 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17826       $rm conftest*
17827       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17828
17829       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17830   (eval $ac_compile) 2>&5
17831   ac_status=$?
17832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833   (exit $ac_status); } 2>conftest.err; then
17834         soname=conftest
17835         lib=conftest
17836         libobjs=conftest.$ac_objext
17837         deplibs=
17838         wl=$lt_prog_compiler_wl_GCJ
17839         pic_flag=$lt_prog_compiler_pic_GCJ
17840         compiler_flags=-v
17841         linker_flags=-v
17842         verstring=
17843         output_objdir=.
17844         libname=conftest
17845         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17846         allow_undefined_flag_GCJ=
17847         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17848   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17849   ac_status=$?
17850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851   (exit $ac_status); }
17852         then
17853           archive_cmds_need_lc_GCJ=no
17854         else
17855           archive_cmds_need_lc_GCJ=yes
17856         fi
17857         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17858       else
17859         cat conftest.err 1>&5
17860       fi
17861       $rm conftest*
17862       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17863 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17864       ;;
17865     esac
17866   fi
17867   ;;
17868 esac
17869
17870 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17871 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17872 library_names_spec=
17873 libname_spec='lib$name'
17874 soname_spec=
17875 shrext_cmds=".so"
17876 postinstall_cmds=
17877 postuninstall_cmds=
17878 finish_cmds=
17879 finish_eval=
17880 shlibpath_var=
17881 shlibpath_overrides_runpath=unknown
17882 version_type=none
17883 dynamic_linker="$host_os ld.so"
17884 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17885 if test "$GCC" = yes; then
17886   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17887   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17888     # if the path contains ";" then we assume it to be the separator
17889     # otherwise default to the standard path separator (i.e. ":") - it is
17890     # assumed that no part of a normal pathname contains ";" but that should
17891     # okay in the real world where ";" in dirpaths is itself problematic.
17892     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17893   else
17894     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17895   fi
17896 else
17897   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17898 fi
17899 need_lib_prefix=unknown
17900 hardcode_into_libs=no
17901
17902 # when you set need_version to no, make sure it does not cause -set_version
17903 # flags to be left without arguments
17904 need_version=unknown
17905
17906 case $host_os in
17907 aix3*)
17908   version_type=linux
17909   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17910   shlibpath_var=LIBPATH
17911
17912   # AIX 3 has no versioning support, so we append a major version to the name.
17913   soname_spec='${libname}${release}${shared_ext}$major'
17914   ;;
17915
17916 aix4* | aix5*)
17917   version_type=linux
17918   need_lib_prefix=no
17919   need_version=no
17920   hardcode_into_libs=yes
17921   if test "$host_cpu" = ia64; then
17922     # AIX 5 supports IA64
17923     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17924     shlibpath_var=LD_LIBRARY_PATH
17925   else
17926     # With GCC up to 2.95.x, collect2 would create an import file
17927     # for dependence libraries.  The import file would start with
17928     # the line `#! .'.  This would cause the generated library to
17929     # depend on `.', always an invalid library.  This was fixed in
17930     # development snapshots of GCC prior to 3.0.
17931     case $host_os in
17932       aix4 | aix4.[01] | aix4.[01].*)
17933       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17934            echo ' yes '
17935            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17936         :
17937       else
17938         can_build_shared=no
17939       fi
17940       ;;
17941     esac
17942     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17943     # soname into executable. Probably we can add versioning support to
17944     # collect2, so additional links can be useful in future.
17945     if test "$aix_use_runtimelinking" = yes; then
17946       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17947       # instead of lib<name>.a to let people know that these are not
17948       # typical AIX shared libraries.
17949       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17950     else
17951       # We preserve .a as extension for shared libraries through AIX4.2
17952       # and later when we are not doing run time linking.
17953       library_names_spec='${libname}${release}.a $libname.a'
17954       soname_spec='${libname}${release}${shared_ext}$major'
17955     fi
17956     shlibpath_var=LIBPATH
17957   fi
17958   ;;
17959
17960 amigaos*)
17961   library_names_spec='$libname.ixlibrary $libname.a'
17962   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17963   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'
17964   ;;
17965
17966 beos*)
17967   library_names_spec='${libname}${shared_ext}'
17968   dynamic_linker="$host_os ld.so"
17969   shlibpath_var=LIBRARY_PATH
17970   ;;
17971
17972 bsdi[45]*)
17973   version_type=linux
17974   need_version=no
17975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17976   soname_spec='${libname}${release}${shared_ext}$major'
17977   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17978   shlibpath_var=LD_LIBRARY_PATH
17979   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17980   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17981   # the default ld.so.conf also contains /usr/contrib/lib and
17982   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17983   # libtool to hard-code these into programs
17984   ;;
17985
17986 cygwin* | mingw* | pw32*)
17987   version_type=windows
17988   shrext_cmds=".dll"
17989   need_version=no
17990   need_lib_prefix=no
17991
17992   case $GCC,$host_os in
17993   yes,cygwin* | yes,mingw* | yes,pw32*)
17994     library_names_spec='$libname.dll.a'
17995     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17996     postinstall_cmds='base_file=`basename \${file}`~
17997       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17998       dldir=$destdir/`dirname \$dlpath`~
17999       test -d \$dldir || mkdir -p \$dldir~
18000       $install_prog $dir/$dlname \$dldir/$dlname~
18001       chmod a+x \$dldir/$dlname'
18002     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18003       dlpath=$dir/\$dldll~
18004        $rm \$dlpath'
18005     shlibpath_overrides_runpath=yes
18006
18007     case $host_os in
18008     cygwin*)
18009       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18010       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18011       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18012       ;;
18013     mingw*)
18014       # MinGW DLLs use traditional 'lib' prefix
18015       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18016       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18017       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18018         # It is most probably a Windows format PATH printed by
18019         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18020         # path with ; separators, and with drive letters. We can handle the
18021         # drive letters (cygwin fileutils understands them), so leave them,
18022         # especially as we might pass files found there to a mingw objdump,
18023         # which wouldn't understand a cygwinified path. Ahh.
18024         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18025       else
18026         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18027       fi
18028       ;;
18029     pw32*)
18030       # pw32 DLLs use 'pw' prefix rather than 'lib'
18031       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18032       ;;
18033     esac
18034     ;;
18035
18036   *)
18037     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18038     ;;
18039   esac
18040   dynamic_linker='Win32 ld.exe'
18041   # FIXME: first we should search . and the directory the executable is in
18042   shlibpath_var=PATH
18043   ;;
18044
18045 darwin* | rhapsody*)
18046   dynamic_linker="$host_os dyld"
18047   version_type=darwin
18048   need_lib_prefix=no
18049   need_version=no
18050   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18051   soname_spec='${libname}${release}${major}$shared_ext'
18052   shlibpath_overrides_runpath=yes
18053   shlibpath_var=DYLD_LIBRARY_PATH
18054   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18055   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18056   if test "$GCC" = yes; then
18057     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18058   else
18059     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18060   fi
18061   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18062   ;;
18063
18064 dgux*)
18065   version_type=linux
18066   need_lib_prefix=no
18067   need_version=no
18068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18069   soname_spec='${libname}${release}${shared_ext}$major'
18070   shlibpath_var=LD_LIBRARY_PATH
18071   ;;
18072
18073 freebsd1*)
18074   dynamic_linker=no
18075   ;;
18076
18077 kfreebsd*-gnu)
18078   version_type=linux
18079   need_lib_prefix=no
18080   need_version=no
18081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18082   soname_spec='${libname}${release}${shared_ext}$major'
18083   shlibpath_var=LD_LIBRARY_PATH
18084   shlibpath_overrides_runpath=no
18085   hardcode_into_libs=yes
18086   dynamic_linker='GNU ld.so'
18087   ;;
18088
18089 freebsd* | dragonfly*)
18090   # DragonFly does not have aout.  When/if they implement a new
18091   # versioning mechanism, adjust this.
18092   if test -x /usr/bin/objformat; then
18093     objformat=`/usr/bin/objformat`
18094   else
18095     case $host_os in
18096     freebsd[123]*) objformat=aout ;;
18097     *) objformat=elf ;;
18098     esac
18099   fi
18100   version_type=freebsd-$objformat
18101   case $version_type in
18102     freebsd-elf*)
18103       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18104       need_version=no
18105       need_lib_prefix=no
18106       ;;
18107     freebsd-*)
18108       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18109       need_version=yes
18110       ;;
18111   esac
18112   shlibpath_var=LD_LIBRARY_PATH
18113   case $host_os in
18114   freebsd2*)
18115     shlibpath_overrides_runpath=yes
18116     ;;
18117   freebsd3.[01]* | freebsdelf3.[01]*)
18118     shlibpath_overrides_runpath=yes
18119     hardcode_into_libs=yes
18120     ;;
18121   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18122   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18123     shlibpath_overrides_runpath=no
18124     hardcode_into_libs=yes
18125     ;;
18126   freebsd*) # from 4.6 on
18127     shlibpath_overrides_runpath=yes
18128     hardcode_into_libs=yes
18129     ;;
18130   esac
18131   ;;
18132
18133 gnu*)
18134   version_type=linux
18135   need_lib_prefix=no
18136   need_version=no
18137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18138   soname_spec='${libname}${release}${shared_ext}$major'
18139   shlibpath_var=LD_LIBRARY_PATH
18140   hardcode_into_libs=yes
18141   ;;
18142
18143 hpux9* | hpux10* | hpux11*)
18144   # Give a soname corresponding to the major version so that dld.sl refuses to
18145   # link against other versions.
18146   version_type=sunos
18147   need_lib_prefix=no
18148   need_version=no
18149   case $host_cpu in
18150   ia64*)
18151     shrext_cmds='.so'
18152     hardcode_into_libs=yes
18153     dynamic_linker="$host_os dld.so"
18154     shlibpath_var=LD_LIBRARY_PATH
18155     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18156     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18157     soname_spec='${libname}${release}${shared_ext}$major'
18158     if test "X$HPUX_IA64_MODE" = X32; then
18159       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18160     else
18161       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18162     fi
18163     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18164     ;;
18165    hppa*64*)
18166      shrext_cmds='.sl'
18167      hardcode_into_libs=yes
18168      dynamic_linker="$host_os dld.sl"
18169      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18170      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18171      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18172      soname_spec='${libname}${release}${shared_ext}$major'
18173      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18174      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18175      ;;
18176    *)
18177     shrext_cmds='.sl'
18178     dynamic_linker="$host_os dld.sl"
18179     shlibpath_var=SHLIB_PATH
18180     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18181     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18182     soname_spec='${libname}${release}${shared_ext}$major'
18183     ;;
18184   esac
18185   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18186   postinstall_cmds='chmod 555 $lib'
18187   ;;
18188
18189 interix3*)
18190   version_type=linux
18191   need_lib_prefix=no
18192   need_version=no
18193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18194   soname_spec='${libname}${release}${shared_ext}$major'
18195   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18196   shlibpath_var=LD_LIBRARY_PATH
18197   shlibpath_overrides_runpath=no
18198   hardcode_into_libs=yes
18199   ;;
18200
18201 irix5* | irix6* | nonstopux*)
18202   case $host_os in
18203     nonstopux*) version_type=nonstopux ;;
18204     *)
18205         if test "$lt_cv_prog_gnu_ld" = yes; then
18206                 version_type=linux
18207         else
18208                 version_type=irix
18209         fi ;;
18210   esac
18211   need_lib_prefix=no
18212   need_version=no
18213   soname_spec='${libname}${release}${shared_ext}$major'
18214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18215   case $host_os in
18216   irix5* | nonstopux*)
18217     libsuff= shlibsuff=
18218     ;;
18219   *)
18220     case $LD in # libtool.m4 will add one of these switches to LD
18221     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18222       libsuff= shlibsuff= libmagic=32-bit;;
18223     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18224       libsuff=32 shlibsuff=N32 libmagic=N32;;
18225     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18226       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18227     *) libsuff= shlibsuff= libmagic=never-match;;
18228     esac
18229     ;;
18230   esac
18231   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18232   shlibpath_overrides_runpath=no
18233   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18234   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18235   hardcode_into_libs=yes
18236   ;;
18237
18238 # No shared lib support for Linux oldld, aout, or coff.
18239 linux*oldld* | linux*aout* | linux*coff*)
18240   dynamic_linker=no
18241   ;;
18242
18243 # This must be Linux ELF.
18244 linux*)
18245   version_type=linux
18246   need_lib_prefix=no
18247   need_version=no
18248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18249   soname_spec='${libname}${release}${shared_ext}$major'
18250   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18251   shlibpath_var=LD_LIBRARY_PATH
18252   shlibpath_overrides_runpath=no
18253   # This implies no fast_install, which is unacceptable.
18254   # Some rework will be needed to allow for fast_install
18255   # before this can be enabled.
18256   hardcode_into_libs=yes
18257
18258   # Append ld.so.conf contents to the search path
18259   if test -f /etc/ld.so.conf; then
18260     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18261     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18262   fi
18263
18264   # We used to test for /lib/ld.so.1 and disable shared libraries on
18265   # powerpc, because MkLinux only supported shared libraries with the
18266   # GNU dynamic linker.  Since this was broken with cross compilers,
18267   # most powerpc-linux boxes support dynamic linking these days and
18268   # people can always --disable-shared, the test was removed, and we
18269   # assume the GNU/Linux dynamic linker is in use.
18270   dynamic_linker='GNU/Linux ld.so'
18271   ;;
18272
18273 knetbsd*-gnu)
18274   version_type=linux
18275   need_lib_prefix=no
18276   need_version=no
18277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18278   soname_spec='${libname}${release}${shared_ext}$major'
18279   shlibpath_var=LD_LIBRARY_PATH
18280   shlibpath_overrides_runpath=no
18281   hardcode_into_libs=yes
18282   dynamic_linker='GNU ld.so'
18283   ;;
18284
18285 netbsd*)
18286   version_type=sunos
18287   need_lib_prefix=no
18288   need_version=no
18289   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18290     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18291     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18292     dynamic_linker='NetBSD (a.out) ld.so'
18293   else
18294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18295     soname_spec='${libname}${release}${shared_ext}$major'
18296     dynamic_linker='NetBSD ld.elf_so'
18297   fi
18298   shlibpath_var=LD_LIBRARY_PATH
18299   shlibpath_overrides_runpath=yes
18300   hardcode_into_libs=yes
18301   ;;
18302
18303 newsos6)
18304   version_type=linux
18305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18306   shlibpath_var=LD_LIBRARY_PATH
18307   shlibpath_overrides_runpath=yes
18308   ;;
18309
18310 nto-qnx*)
18311   version_type=linux
18312   need_lib_prefix=no
18313   need_version=no
18314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18315   soname_spec='${libname}${release}${shared_ext}$major'
18316   shlibpath_var=LD_LIBRARY_PATH
18317   shlibpath_overrides_runpath=yes
18318   ;;
18319
18320 openbsd*)
18321   version_type=sunos
18322   sys_lib_dlsearch_path_spec="/usr/lib"
18323   need_lib_prefix=no
18324   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18325   case $host_os in
18326     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18327     *)                         need_version=no  ;;
18328   esac
18329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18330   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18331   shlibpath_var=LD_LIBRARY_PATH
18332   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18333     case $host_os in
18334       openbsd2.[89] | openbsd2.[89].*)
18335         shlibpath_overrides_runpath=no
18336         ;;
18337       *)
18338         shlibpath_overrides_runpath=yes
18339         ;;
18340       esac
18341   else
18342     shlibpath_overrides_runpath=yes
18343   fi
18344   ;;
18345
18346 os2*)
18347   libname_spec='$name'
18348   shrext_cmds=".dll"
18349   need_lib_prefix=no
18350   library_names_spec='$libname${shared_ext} $libname.a'
18351   dynamic_linker='OS/2 ld.exe'
18352   shlibpath_var=LIBPATH
18353   ;;
18354
18355 osf3* | osf4* | osf5*)
18356   version_type=osf
18357   need_lib_prefix=no
18358   need_version=no
18359   soname_spec='${libname}${release}${shared_ext}$major'
18360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18361   shlibpath_var=LD_LIBRARY_PATH
18362   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18363   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18364   ;;
18365
18366 solaris*)
18367   version_type=linux
18368   need_lib_prefix=no
18369   need_version=no
18370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18371   soname_spec='${libname}${release}${shared_ext}$major'
18372   shlibpath_var=LD_LIBRARY_PATH
18373   shlibpath_overrides_runpath=yes
18374   hardcode_into_libs=yes
18375   # ldd complains unless libraries are executable
18376   postinstall_cmds='chmod +x $lib'
18377   ;;
18378
18379 sunos4*)
18380   version_type=sunos
18381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18382   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18383   shlibpath_var=LD_LIBRARY_PATH
18384   shlibpath_overrides_runpath=yes
18385   if test "$with_gnu_ld" = yes; then
18386     need_lib_prefix=no
18387   fi
18388   need_version=yes
18389   ;;
18390
18391 sysv4 | sysv4.3*)
18392   version_type=linux
18393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18394   soname_spec='${libname}${release}${shared_ext}$major'
18395   shlibpath_var=LD_LIBRARY_PATH
18396   case $host_vendor in
18397     sni)
18398       shlibpath_overrides_runpath=no
18399       need_lib_prefix=no
18400       export_dynamic_flag_spec='${wl}-Blargedynsym'
18401       runpath_var=LD_RUN_PATH
18402       ;;
18403     siemens)
18404       need_lib_prefix=no
18405       ;;
18406     motorola)
18407       need_lib_prefix=no
18408       need_version=no
18409       shlibpath_overrides_runpath=no
18410       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18411       ;;
18412   esac
18413   ;;
18414
18415 sysv4*MP*)
18416   if test -d /usr/nec ;then
18417     version_type=linux
18418     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18419     soname_spec='$libname${shared_ext}.$major'
18420     shlibpath_var=LD_LIBRARY_PATH
18421   fi
18422   ;;
18423
18424 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18425   version_type=freebsd-elf
18426   need_lib_prefix=no
18427   need_version=no
18428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18429   soname_spec='${libname}${release}${shared_ext}$major'
18430   shlibpath_var=LD_LIBRARY_PATH
18431   hardcode_into_libs=yes
18432   if test "$with_gnu_ld" = yes; then
18433     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18434     shlibpath_overrides_runpath=no
18435   else
18436     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18437     shlibpath_overrides_runpath=yes
18438     case $host_os in
18439       sco3.2v5*)
18440         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18441         ;;
18442     esac
18443   fi
18444   sys_lib_dlsearch_path_spec='/usr/lib'
18445   ;;
18446
18447 uts4*)
18448   version_type=linux
18449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18450   soname_spec='${libname}${release}${shared_ext}$major'
18451   shlibpath_var=LD_LIBRARY_PATH
18452   ;;
18453
18454 *)
18455   dynamic_linker=no
18456   ;;
18457 esac
18458 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18459 echo "${ECHO_T}$dynamic_linker" >&6; }
18460 test "$dynamic_linker" = no && can_build_shared=no
18461
18462 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18463 if test "$GCC" = yes; then
18464   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18465 fi
18466
18467 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18468 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18469 hardcode_action_GCJ=
18470 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18471    test -n "$runpath_var_GCJ" || \
18472    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18473
18474   # We can hardcode non-existant directories.
18475   if test "$hardcode_direct_GCJ" != no &&
18476      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18477      # have to relink, otherwise we might link with an installed library
18478      # when we should be linking with a yet-to-be-installed one
18479      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18480      test "$hardcode_minus_L_GCJ" != no; then
18481     # Linking always hardcodes the temporary library directory.
18482     hardcode_action_GCJ=relink
18483   else
18484     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18485     hardcode_action_GCJ=immediate
18486   fi
18487 else
18488   # We cannot hardcode anything, or else we can only hardcode existing
18489   # directories.
18490   hardcode_action_GCJ=unsupported
18491 fi
18492 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18493 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18494
18495 if test "$hardcode_action_GCJ" = relink; then
18496   # Fast installation is not supported
18497   enable_fast_install=no
18498 elif test "$shlibpath_overrides_runpath" = yes ||
18499      test "$enable_shared" = no; then
18500   # Fast installation is not necessary
18501   enable_fast_install=needless
18502 fi
18503
18504
18505 # The else clause should only fire when bootstrapping the
18506 # libtool distribution, otherwise you forgot to ship ltmain.sh
18507 # with your package, and you will get complaints that there are
18508 # no rules to generate ltmain.sh.
18509 if test -f "$ltmain"; then
18510   # See if we are running on zsh, and set the options which allow our commands through
18511   # without removal of \ escapes.
18512   if test -n "${ZSH_VERSION+set}" ; then
18513     setopt NO_GLOB_SUBST
18514   fi
18515   # Now quote all the things that may contain metacharacters while being
18516   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18517   # variables and quote the copies for generation of the libtool script.
18518   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18519     SED SHELL STRIP \
18520     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18521     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18522     deplibs_check_method reload_flag reload_cmds need_locks \
18523     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18524     lt_cv_sys_global_symbol_to_c_name_address \
18525     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18526     old_postinstall_cmds old_postuninstall_cmds \
18527     compiler_GCJ \
18528     CC_GCJ \
18529     LD_GCJ \
18530     lt_prog_compiler_wl_GCJ \
18531     lt_prog_compiler_pic_GCJ \
18532     lt_prog_compiler_static_GCJ \
18533     lt_prog_compiler_no_builtin_flag_GCJ \
18534     export_dynamic_flag_spec_GCJ \
18535     thread_safe_flag_spec_GCJ \
18536     whole_archive_flag_spec_GCJ \
18537     enable_shared_with_static_runtimes_GCJ \
18538     old_archive_cmds_GCJ \
18539     old_archive_from_new_cmds_GCJ \
18540     predep_objects_GCJ \
18541     postdep_objects_GCJ \
18542     predeps_GCJ \
18543     postdeps_GCJ \
18544     compiler_lib_search_path_GCJ \
18545     archive_cmds_GCJ \
18546     archive_expsym_cmds_GCJ \
18547     postinstall_cmds_GCJ \
18548     postuninstall_cmds_GCJ \
18549     old_archive_from_expsyms_cmds_GCJ \
18550     allow_undefined_flag_GCJ \
18551     no_undefined_flag_GCJ \
18552     export_symbols_cmds_GCJ \
18553     hardcode_libdir_flag_spec_GCJ \
18554     hardcode_libdir_flag_spec_ld_GCJ \
18555     hardcode_libdir_separator_GCJ \
18556     hardcode_automatic_GCJ \
18557     module_cmds_GCJ \
18558     module_expsym_cmds_GCJ \
18559     lt_cv_prog_compiler_c_o_GCJ \
18560     exclude_expsyms_GCJ \
18561     include_expsyms_GCJ; do
18562
18563     case $var in
18564     old_archive_cmds_GCJ | \
18565     old_archive_from_new_cmds_GCJ | \
18566     archive_cmds_GCJ | \
18567     archive_expsym_cmds_GCJ | \
18568     module_cmds_GCJ | \
18569     module_expsym_cmds_GCJ | \
18570     old_archive_from_expsyms_cmds_GCJ | \
18571     export_symbols_cmds_GCJ | \
18572     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18573     postinstall_cmds | postuninstall_cmds | \
18574     old_postinstall_cmds | old_postuninstall_cmds | \
18575     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18576       # Double-quote double-evaled strings.
18577       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18578       ;;
18579     *)
18580       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18581       ;;
18582     esac
18583   done
18584
18585   case $lt_echo in
18586   *'\$0 --fallback-echo"')
18587     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18588     ;;
18589   esac
18590
18591 cfgfile="$ofile"
18592
18593   cat <<__EOF__ >> "$cfgfile"
18594 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18595
18596 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18597
18598 # Shell to use when invoking shell scripts.
18599 SHELL=$lt_SHELL
18600
18601 # Whether or not to build shared libraries.
18602 build_libtool_libs=$enable_shared
18603
18604 # Whether or not to build static libraries.
18605 build_old_libs=$enable_static
18606
18607 # Whether or not to add -lc for building shared libraries.
18608 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18609
18610 # Whether or not to disallow shared libs when runtime libs are static
18611 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18612
18613 # Whether or not to optimize for fast installation.
18614 fast_install=$enable_fast_install
18615
18616 # The host system.
18617 host_alias=$host_alias
18618 host=$host
18619 host_os=$host_os
18620
18621 # The build system.
18622 build_alias=$build_alias
18623 build=$build
18624 build_os=$build_os
18625
18626 # An echo program that does not interpret backslashes.
18627 echo=$lt_echo
18628
18629 # The archiver.
18630 AR=$lt_AR
18631 AR_FLAGS=$lt_AR_FLAGS
18632
18633 # A C compiler.
18634 LTCC=$lt_LTCC
18635
18636 # LTCC compiler flags.
18637 LTCFLAGS=$lt_LTCFLAGS
18638
18639 # A language-specific compiler.
18640 CC=$lt_compiler_GCJ
18641
18642 # Is the compiler the GNU C compiler?
18643 with_gcc=$GCC_GCJ
18644
18645 # An ERE matcher.
18646 EGREP=$lt_EGREP
18647
18648 # The linker used to build libraries.
18649 LD=$lt_LD_GCJ
18650
18651 # Whether we need hard or soft links.
18652 LN_S=$lt_LN_S
18653
18654 # A BSD-compatible nm program.
18655 NM=$lt_NM
18656
18657 # A symbol stripping program
18658 STRIP=$lt_STRIP
18659
18660 # Used to examine libraries when file_magic_cmd begins "file"
18661 MAGIC_CMD=$MAGIC_CMD
18662
18663 # Used on cygwin: DLL creation program.
18664 DLLTOOL="$DLLTOOL"
18665
18666 # Used on cygwin: object dumper.
18667 OBJDUMP="$OBJDUMP"
18668
18669 # Used on cygwin: assembler.
18670 AS="$AS"
18671
18672 # The name of the directory that contains temporary libtool files.
18673 objdir=$objdir
18674
18675 # How to create reloadable object files.
18676 reload_flag=$lt_reload_flag
18677 reload_cmds=$lt_reload_cmds
18678
18679 # How to pass a linker flag through the compiler.
18680 wl=$lt_lt_prog_compiler_wl_GCJ
18681
18682 # Object file suffix (normally "o").
18683 objext="$ac_objext"
18684
18685 # Old archive suffix (normally "a").
18686 libext="$libext"
18687
18688 # Shared library suffix (normally ".so").
18689 shrext_cmds='$shrext_cmds'
18690
18691 # Executable file suffix (normally "").
18692 exeext="$exeext"
18693
18694 # Additional compiler flags for building library objects.
18695 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18696 pic_mode=$pic_mode
18697
18698 # What is the maximum length of a command?
18699 max_cmd_len=$lt_cv_sys_max_cmd_len
18700
18701 # Does compiler simultaneously support -c and -o options?
18702 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18703
18704 # Must we lock files when doing compilation?
18705 need_locks=$lt_need_locks
18706
18707 # Do we need the lib prefix for modules?
18708 need_lib_prefix=$need_lib_prefix
18709
18710 # Do we need a version for libraries?
18711 need_version=$need_version
18712
18713 # Whether dlopen is supported.
18714 dlopen_support=$enable_dlopen
18715
18716 # Whether dlopen of programs is supported.
18717 dlopen_self=$enable_dlopen_self
18718
18719 # Whether dlopen of statically linked programs is supported.
18720 dlopen_self_static=$enable_dlopen_self_static
18721
18722 # Compiler flag to prevent dynamic linking.
18723 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18724
18725 # Compiler flag to turn off builtin functions.
18726 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18727
18728 # Compiler flag to allow reflexive dlopens.
18729 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18730
18731 # Compiler flag to generate shared objects directly from archives.
18732 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18733
18734 # Compiler flag to generate thread-safe objects.
18735 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18736
18737 # Library versioning type.
18738 version_type=$version_type
18739
18740 # Format of library name prefix.
18741 libname_spec=$lt_libname_spec
18742
18743 # List of archive names.  First name is the real one, the rest are links.
18744 # The last name is the one that the linker finds with -lNAME.
18745 library_names_spec=$lt_library_names_spec
18746
18747 # The coded name of the library, if different from the real name.
18748 soname_spec=$lt_soname_spec
18749
18750 # Commands used to build and install an old-style archive.
18751 RANLIB=$lt_RANLIB
18752 old_archive_cmds=$lt_old_archive_cmds_GCJ
18753 old_postinstall_cmds=$lt_old_postinstall_cmds
18754 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18755
18756 # Create an old-style archive from a shared archive.
18757 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18758
18759 # Create a temporary old-style archive to link instead of a shared archive.
18760 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18761
18762 # Commands used to build and install a shared archive.
18763 archive_cmds=$lt_archive_cmds_GCJ
18764 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18765 postinstall_cmds=$lt_postinstall_cmds
18766 postuninstall_cmds=$lt_postuninstall_cmds
18767
18768 # Commands used to build a loadable module (assumed same as above if empty)
18769 module_cmds=$lt_module_cmds_GCJ
18770 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18771
18772 # Commands to strip libraries.
18773 old_striplib=$lt_old_striplib
18774 striplib=$lt_striplib
18775
18776 # Dependencies to place before the objects being linked to create a
18777 # shared library.
18778 predep_objects=$lt_predep_objects_GCJ
18779
18780 # Dependencies to place after the objects being linked to create a
18781 # shared library.
18782 postdep_objects=$lt_postdep_objects_GCJ
18783
18784 # Dependencies to place before the objects being linked to create a
18785 # shared library.
18786 predeps=$lt_predeps_GCJ
18787
18788 # Dependencies to place after the objects being linked to create a
18789 # shared library.
18790 postdeps=$lt_postdeps_GCJ
18791
18792 # The library search path used internally by the compiler when linking
18793 # a shared library.
18794 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18795
18796 # Method to check whether dependent libraries are shared objects.
18797 deplibs_check_method=$lt_deplibs_check_method
18798
18799 # Command to use when deplibs_check_method == file_magic.
18800 file_magic_cmd=$lt_file_magic_cmd
18801
18802 # Flag that allows shared libraries with undefined symbols to be built.
18803 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18804
18805 # Flag that forces no undefined symbols.
18806 no_undefined_flag=$lt_no_undefined_flag_GCJ
18807
18808 # Commands used to finish a libtool library installation in a directory.
18809 finish_cmds=$lt_finish_cmds
18810
18811 # Same as above, but a single script fragment to be evaled but not shown.
18812 finish_eval=$lt_finish_eval
18813
18814 # Take the output of nm and produce a listing of raw symbols and C names.
18815 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18816
18817 # Transform the output of nm in a proper C declaration
18818 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18819
18820 # Transform the output of nm in a C name address pair
18821 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18822
18823 # This is the shared library runtime path variable.
18824 runpath_var=$runpath_var
18825
18826 # This is the shared library path variable.
18827 shlibpath_var=$shlibpath_var
18828
18829 # Is shlibpath searched before the hard-coded library search path?
18830 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18831
18832 # How to hardcode a shared library path into an executable.
18833 hardcode_action=$hardcode_action_GCJ
18834
18835 # Whether we should hardcode library paths into libraries.
18836 hardcode_into_libs=$hardcode_into_libs
18837
18838 # Flag to hardcode \$libdir into a binary during linking.
18839 # This must work even if \$libdir does not exist.
18840 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18841
18842 # If ld is used when linking, flag to hardcode \$libdir into
18843 # a binary during linking. This must work even if \$libdir does
18844 # not exist.
18845 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18846
18847 # Whether we need a single -rpath flag with a separated argument.
18848 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18849
18850 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18851 # resulting binary.
18852 hardcode_direct=$hardcode_direct_GCJ
18853
18854 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18855 # resulting binary.
18856 hardcode_minus_L=$hardcode_minus_L_GCJ
18857
18858 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18859 # the resulting binary.
18860 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18861
18862 # Set to yes if building a shared library automatically hardcodes DIR into the library
18863 # and all subsequent libraries and executables linked against it.
18864 hardcode_automatic=$hardcode_automatic_GCJ
18865
18866 # Variables whose values should be saved in libtool wrapper scripts and
18867 # restored at relink time.
18868 variables_saved_for_relink="$variables_saved_for_relink"
18869
18870 # Whether libtool must link a program against all its dependency libraries.
18871 link_all_deplibs=$link_all_deplibs_GCJ
18872
18873 # Compile-time system search path for libraries
18874 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18875
18876 # Run-time system search path for libraries
18877 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18878
18879 # Fix the shell variable \$srcfile for the compiler.
18880 fix_srcfile_path="$fix_srcfile_path_GCJ"
18881
18882 # Set to yes if exported symbols are required.
18883 always_export_symbols=$always_export_symbols_GCJ
18884
18885 # The commands to list exported symbols.
18886 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18887
18888 # The commands to extract the exported symbol list from a shared archive.
18889 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18890
18891 # Symbols that should not be listed in the preloaded symbols.
18892 exclude_expsyms=$lt_exclude_expsyms_GCJ
18893
18894 # Symbols that must always be exported.
18895 include_expsyms=$lt_include_expsyms_GCJ
18896
18897 # ### END LIBTOOL TAG CONFIG: $tagname
18898
18899 __EOF__
18900
18901
18902 else
18903   # If there is no Makefile yet, we rely on a make rule to execute
18904   # `config.status --recheck' to rerun these tests and create the
18905   # libtool script then.
18906   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18907   if test -f "$ltmain_in"; then
18908     test -f Makefile && make "$ltmain"
18909   fi
18910 fi
18911
18912
18913 ac_ext=c
18914 ac_cpp='$CPP $CPPFLAGS'
18915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18918
18919 CC="$lt_save_CC"
18920
18921         else
18922           tagname=""
18923         fi
18924         ;;
18925
18926       RC)
18927
18928
18929 # Source file extension for RC test sources.
18930 ac_ext=rc
18931
18932 # Object file extension for compiled RC test sources.
18933 objext=o
18934 objext_RC=$objext
18935
18936 # Code to be used in simple compile tests
18937 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18938
18939 # Code to be used in simple link tests
18940 lt_simple_link_test_code="$lt_simple_compile_test_code"
18941
18942 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18943
18944 # If no C compiler was specified, use CC.
18945 LTCC=${LTCC-"$CC"}
18946
18947 # If no C compiler flags were specified, use CFLAGS.
18948 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18949
18950 # Allow CC to be a program name with arguments.
18951 compiler=$CC
18952
18953
18954 # save warnings/boilerplate of simple test code
18955 ac_outfile=conftest.$ac_objext
18956 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18957 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18958 _lt_compiler_boilerplate=`cat conftest.err`
18959 $rm conftest*
18960
18961 ac_outfile=conftest.$ac_objext
18962 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18963 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18964 _lt_linker_boilerplate=`cat conftest.err`
18965 $rm conftest*
18966
18967
18968 # Allow CC to be a program name with arguments.
18969 lt_save_CC="$CC"
18970 CC=${RC-"windres"}
18971 compiler=$CC
18972 compiler_RC=$CC
18973 for cc_temp in $compiler""; do
18974   case $cc_temp in
18975     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18976     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18977     \-*) ;;
18978     *) break;;
18979   esac
18980 done
18981 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18982
18983 lt_cv_prog_compiler_c_o_RC=yes
18984
18985 # The else clause should only fire when bootstrapping the
18986 # libtool distribution, otherwise you forgot to ship ltmain.sh
18987 # with your package, and you will get complaints that there are
18988 # no rules to generate ltmain.sh.
18989 if test -f "$ltmain"; then
18990   # See if we are running on zsh, and set the options which allow our commands through
18991   # without removal of \ escapes.
18992   if test -n "${ZSH_VERSION+set}" ; then
18993     setopt NO_GLOB_SUBST
18994   fi
18995   # Now quote all the things that may contain metacharacters while being
18996   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18997   # variables and quote the copies for generation of the libtool script.
18998   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18999     SED SHELL STRIP \
19000     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19001     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19002     deplibs_check_method reload_flag reload_cmds need_locks \
19003     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19004     lt_cv_sys_global_symbol_to_c_name_address \
19005     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19006     old_postinstall_cmds old_postuninstall_cmds \
19007     compiler_RC \
19008     CC_RC \
19009     LD_RC \
19010     lt_prog_compiler_wl_RC \
19011     lt_prog_compiler_pic_RC \
19012     lt_prog_compiler_static_RC \
19013     lt_prog_compiler_no_builtin_flag_RC \
19014     export_dynamic_flag_spec_RC \
19015     thread_safe_flag_spec_RC \
19016     whole_archive_flag_spec_RC \
19017     enable_shared_with_static_runtimes_RC \
19018     old_archive_cmds_RC \
19019     old_archive_from_new_cmds_RC \
19020     predep_objects_RC \
19021     postdep_objects_RC \
19022     predeps_RC \
19023     postdeps_RC \
19024     compiler_lib_search_path_RC \
19025     archive_cmds_RC \
19026     archive_expsym_cmds_RC \
19027     postinstall_cmds_RC \
19028     postuninstall_cmds_RC \
19029     old_archive_from_expsyms_cmds_RC \
19030     allow_undefined_flag_RC \
19031     no_undefined_flag_RC \
19032     export_symbols_cmds_RC \
19033     hardcode_libdir_flag_spec_RC \
19034     hardcode_libdir_flag_spec_ld_RC \
19035     hardcode_libdir_separator_RC \
19036     hardcode_automatic_RC \
19037     module_cmds_RC \
19038     module_expsym_cmds_RC \
19039     lt_cv_prog_compiler_c_o_RC \
19040     exclude_expsyms_RC \
19041     include_expsyms_RC; do
19042
19043     case $var in
19044     old_archive_cmds_RC | \
19045     old_archive_from_new_cmds_RC | \
19046     archive_cmds_RC | \
19047     archive_expsym_cmds_RC | \
19048     module_cmds_RC | \
19049     module_expsym_cmds_RC | \
19050     old_archive_from_expsyms_cmds_RC | \
19051     export_symbols_cmds_RC | \
19052     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19053     postinstall_cmds | postuninstall_cmds | \
19054     old_postinstall_cmds | old_postuninstall_cmds | \
19055     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19056       # Double-quote double-evaled strings.
19057       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19058       ;;
19059     *)
19060       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19061       ;;
19062     esac
19063   done
19064
19065   case $lt_echo in
19066   *'\$0 --fallback-echo"')
19067     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19068     ;;
19069   esac
19070
19071 cfgfile="$ofile"
19072
19073   cat <<__EOF__ >> "$cfgfile"
19074 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19075
19076 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19077
19078 # Shell to use when invoking shell scripts.
19079 SHELL=$lt_SHELL
19080
19081 # Whether or not to build shared libraries.
19082 build_libtool_libs=$enable_shared
19083
19084 # Whether or not to build static libraries.
19085 build_old_libs=$enable_static
19086
19087 # Whether or not to add -lc for building shared libraries.
19088 build_libtool_need_lc=$archive_cmds_need_lc_RC
19089
19090 # Whether or not to disallow shared libs when runtime libs are static
19091 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19092
19093 # Whether or not to optimize for fast installation.
19094 fast_install=$enable_fast_install
19095
19096 # The host system.
19097 host_alias=$host_alias
19098 host=$host
19099 host_os=$host_os
19100
19101 # The build system.
19102 build_alias=$build_alias
19103 build=$build
19104 build_os=$build_os
19105
19106 # An echo program that does not interpret backslashes.
19107 echo=$lt_echo
19108
19109 # The archiver.
19110 AR=$lt_AR
19111 AR_FLAGS=$lt_AR_FLAGS
19112
19113 # A C compiler.
19114 LTCC=$lt_LTCC
19115
19116 # LTCC compiler flags.
19117 LTCFLAGS=$lt_LTCFLAGS
19118
19119 # A language-specific compiler.
19120 CC=$lt_compiler_RC
19121
19122 # Is the compiler the GNU C compiler?
19123 with_gcc=$GCC_RC
19124
19125 # An ERE matcher.
19126 EGREP=$lt_EGREP
19127
19128 # The linker used to build libraries.
19129 LD=$lt_LD_RC
19130
19131 # Whether we need hard or soft links.
19132 LN_S=$lt_LN_S
19133
19134 # A BSD-compatible nm program.
19135 NM=$lt_NM
19136
19137 # A symbol stripping program
19138 STRIP=$lt_STRIP
19139
19140 # Used to examine libraries when file_magic_cmd begins "file"
19141 MAGIC_CMD=$MAGIC_CMD
19142
19143 # Used on cygwin: DLL creation program.
19144 DLLTOOL="$DLLTOOL"
19145
19146 # Used on cygwin: object dumper.
19147 OBJDUMP="$OBJDUMP"
19148
19149 # Used on cygwin: assembler.
19150 AS="$AS"
19151
19152 # The name of the directory that contains temporary libtool files.
19153 objdir=$objdir
19154
19155 # How to create reloadable object files.
19156 reload_flag=$lt_reload_flag
19157 reload_cmds=$lt_reload_cmds
19158
19159 # How to pass a linker flag through the compiler.
19160 wl=$lt_lt_prog_compiler_wl_RC
19161
19162 # Object file suffix (normally "o").
19163 objext="$ac_objext"
19164
19165 # Old archive suffix (normally "a").
19166 libext="$libext"
19167
19168 # Shared library suffix (normally ".so").
19169 shrext_cmds='$shrext_cmds'
19170
19171 # Executable file suffix (normally "").
19172 exeext="$exeext"
19173
19174 # Additional compiler flags for building library objects.
19175 pic_flag=$lt_lt_prog_compiler_pic_RC
19176 pic_mode=$pic_mode
19177
19178 # What is the maximum length of a command?
19179 max_cmd_len=$lt_cv_sys_max_cmd_len
19180
19181 # Does compiler simultaneously support -c and -o options?
19182 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19183
19184 # Must we lock files when doing compilation?
19185 need_locks=$lt_need_locks
19186
19187 # Do we need the lib prefix for modules?
19188 need_lib_prefix=$need_lib_prefix
19189
19190 # Do we need a version for libraries?
19191 need_version=$need_version
19192
19193 # Whether dlopen is supported.
19194 dlopen_support=$enable_dlopen
19195
19196 # Whether dlopen of programs is supported.
19197 dlopen_self=$enable_dlopen_self
19198
19199 # Whether dlopen of statically linked programs is supported.
19200 dlopen_self_static=$enable_dlopen_self_static
19201
19202 # Compiler flag to prevent dynamic linking.
19203 link_static_flag=$lt_lt_prog_compiler_static_RC
19204
19205 # Compiler flag to turn off builtin functions.
19206 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19207
19208 # Compiler flag to allow reflexive dlopens.
19209 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19210
19211 # Compiler flag to generate shared objects directly from archives.
19212 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19213
19214 # Compiler flag to generate thread-safe objects.
19215 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19216
19217 # Library versioning type.
19218 version_type=$version_type
19219
19220 # Format of library name prefix.
19221 libname_spec=$lt_libname_spec
19222
19223 # List of archive names.  First name is the real one, the rest are links.
19224 # The last name is the one that the linker finds with -lNAME.
19225 library_names_spec=$lt_library_names_spec
19226
19227 # The coded name of the library, if different from the real name.
19228 soname_spec=$lt_soname_spec
19229
19230 # Commands used to build and install an old-style archive.
19231 RANLIB=$lt_RANLIB
19232 old_archive_cmds=$lt_old_archive_cmds_RC
19233 old_postinstall_cmds=$lt_old_postinstall_cmds
19234 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19235
19236 # Create an old-style archive from a shared archive.
19237 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19238
19239 # Create a temporary old-style archive to link instead of a shared archive.
19240 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19241
19242 # Commands used to build and install a shared archive.
19243 archive_cmds=$lt_archive_cmds_RC
19244 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19245 postinstall_cmds=$lt_postinstall_cmds
19246 postuninstall_cmds=$lt_postuninstall_cmds
19247
19248 # Commands used to build a loadable module (assumed same as above if empty)
19249 module_cmds=$lt_module_cmds_RC
19250 module_expsym_cmds=$lt_module_expsym_cmds_RC
19251
19252 # Commands to strip libraries.
19253 old_striplib=$lt_old_striplib
19254 striplib=$lt_striplib
19255
19256 # Dependencies to place before the objects being linked to create a
19257 # shared library.
19258 predep_objects=$lt_predep_objects_RC
19259
19260 # Dependencies to place after the objects being linked to create a
19261 # shared library.
19262 postdep_objects=$lt_postdep_objects_RC
19263
19264 # Dependencies to place before the objects being linked to create a
19265 # shared library.
19266 predeps=$lt_predeps_RC
19267
19268 # Dependencies to place after the objects being linked to create a
19269 # shared library.
19270 postdeps=$lt_postdeps_RC
19271
19272 # The library search path used internally by the compiler when linking
19273 # a shared library.
19274 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19275
19276 # Method to check whether dependent libraries are shared objects.
19277 deplibs_check_method=$lt_deplibs_check_method
19278
19279 # Command to use when deplibs_check_method == file_magic.
19280 file_magic_cmd=$lt_file_magic_cmd
19281
19282 # Flag that allows shared libraries with undefined symbols to be built.
19283 allow_undefined_flag=$lt_allow_undefined_flag_RC
19284
19285 # Flag that forces no undefined symbols.
19286 no_undefined_flag=$lt_no_undefined_flag_RC
19287
19288 # Commands used to finish a libtool library installation in a directory.
19289 finish_cmds=$lt_finish_cmds
19290
19291 # Same as above, but a single script fragment to be evaled but not shown.
19292 finish_eval=$lt_finish_eval
19293
19294 # Take the output of nm and produce a listing of raw symbols and C names.
19295 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19296
19297 # Transform the output of nm in a proper C declaration
19298 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19299
19300 # Transform the output of nm in a C name address pair
19301 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19302
19303 # This is the shared library runtime path variable.
19304 runpath_var=$runpath_var
19305
19306 # This is the shared library path variable.
19307 shlibpath_var=$shlibpath_var
19308
19309 # Is shlibpath searched before the hard-coded library search path?
19310 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19311
19312 # How to hardcode a shared library path into an executable.
19313 hardcode_action=$hardcode_action_RC
19314
19315 # Whether we should hardcode library paths into libraries.
19316 hardcode_into_libs=$hardcode_into_libs
19317
19318 # Flag to hardcode \$libdir into a binary during linking.
19319 # This must work even if \$libdir does not exist.
19320 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19321
19322 # If ld is used when linking, flag to hardcode \$libdir into
19323 # a binary during linking. This must work even if \$libdir does
19324 # not exist.
19325 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19326
19327 # Whether we need a single -rpath flag with a separated argument.
19328 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19329
19330 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19331 # resulting binary.
19332 hardcode_direct=$hardcode_direct_RC
19333
19334 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19335 # resulting binary.
19336 hardcode_minus_L=$hardcode_minus_L_RC
19337
19338 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19339 # the resulting binary.
19340 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19341
19342 # Set to yes if building a shared library automatically hardcodes DIR into the library
19343 # and all subsequent libraries and executables linked against it.
19344 hardcode_automatic=$hardcode_automatic_RC
19345
19346 # Variables whose values should be saved in libtool wrapper scripts and
19347 # restored at relink time.
19348 variables_saved_for_relink="$variables_saved_for_relink"
19349
19350 # Whether libtool must link a program against all its dependency libraries.
19351 link_all_deplibs=$link_all_deplibs_RC
19352
19353 # Compile-time system search path for libraries
19354 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19355
19356 # Run-time system search path for libraries
19357 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19358
19359 # Fix the shell variable \$srcfile for the compiler.
19360 fix_srcfile_path="$fix_srcfile_path_RC"
19361
19362 # Set to yes if exported symbols are required.
19363 always_export_symbols=$always_export_symbols_RC
19364
19365 # The commands to list exported symbols.
19366 export_symbols_cmds=$lt_export_symbols_cmds_RC
19367
19368 # The commands to extract the exported symbol list from a shared archive.
19369 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19370
19371 # Symbols that should not be listed in the preloaded symbols.
19372 exclude_expsyms=$lt_exclude_expsyms_RC
19373
19374 # Symbols that must always be exported.
19375 include_expsyms=$lt_include_expsyms_RC
19376
19377 # ### END LIBTOOL TAG CONFIG: $tagname
19378
19379 __EOF__
19380
19381
19382 else
19383   # If there is no Makefile yet, we rely on a make rule to execute
19384   # `config.status --recheck' to rerun these tests and create the
19385   # libtool script then.
19386   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19387   if test -f "$ltmain_in"; then
19388     test -f Makefile && make "$ltmain"
19389   fi
19390 fi
19391
19392
19393 ac_ext=c
19394 ac_cpp='$CPP $CPPFLAGS'
19395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19398
19399 CC="$lt_save_CC"
19400
19401         ;;
19402
19403       *)
19404         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19405 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19406    { (exit 1); exit 1; }; }
19407         ;;
19408       esac
19409
19410       # Append the new tag name to the list of available tags.
19411       if test -n "$tagname" ; then
19412       available_tags="$available_tags $tagname"
19413     fi
19414     fi
19415   done
19416   IFS="$lt_save_ifs"
19417
19418   # Now substitute the updated list of available tags.
19419   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19420     mv "${ofile}T" "$ofile"
19421     chmod +x "$ofile"
19422   else
19423     rm -f "${ofile}T"
19424     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19425 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19426    { (exit 1); exit 1; }; }
19427   fi
19428 fi
19429
19430
19431
19432 # This can be used to rebuild libtool when needed
19433 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19434
19435 # Always use our own libtool.
19436 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19437
19438 # Prevent multiple expansion
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451 # Check whether --with-system-libtool was given.
19452 if test "${with_system_libtool+set}" = set; then
19453   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
19454 set dummy libtool; ac_word=$2
19455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19457 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19458   echo $ECHO_N "(cached) $ECHO_C" >&6
19459 else
19460   case $LIBTOOL in
19461   [\\/]* | ?:[\\/]*)
19462   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19463   ;;
19464   *)
19465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19466 as_dummy="$PATH:/usr/local/bin"
19467 for as_dir in $as_dummy
19468 do
19469   IFS=$as_save_IFS
19470   test -z "$as_dir" && as_dir=.
19471   for ac_exec_ext in '' $ac_executable_extensions; do
19472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19473     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19475     break 2
19476   fi
19477 done
19478 done
19479 IFS=$as_save_IFS
19480
19481   ;;
19482 esac
19483 fi
19484 LIBTOOL=$ac_cv_path_LIBTOOL
19485 if test -n "$LIBTOOL"; then
19486   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19487 echo "${ECHO_T}$LIBTOOL" >&6; }
19488 else
19489   { echo "$as_me:$LINENO: result: no" >&5
19490 echo "${ECHO_T}no" >&6; }
19491 fi
19492
19493
19494 else
19495
19496   LIBTOOL="`pwd`/libtool"
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511 fi
19512
19513
19514
19515
19516 # Check whether --enable-strict-dependencies was given.
19517 if test "${enable_strict_dependencies+set}" = set; then
19518   enableval=$enable_strict_dependencies;
19519 fi
19520
19521
19522 docdir='${datadir}/doc/freeradius'
19523 { echo "$as_me:$LINENO: checking docdir" >&5
19524 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
19525
19526 # Check whether --with-docdir was given.
19527 if test "${with_docdir+set}" = set; then
19528   withval=$with_docdir;  case "$withval" in
19529     no)
19530         docdir=no
19531         ;;
19532     yes)
19533         ;;
19534     [\\/$]* | ?:[\\/]* )
19535         docdir="$withval"
19536         ;;
19537     *)
19538         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19539 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19540    { (exit 1); exit 1; }; }
19541         ;;
19542   esac
19543
19544 fi
19545
19546
19547 { echo "$as_me:$LINENO: result: $docdir" >&5
19548 echo "${ECHO_T}$docdir" >&6; }
19549 if test "x$docdir" = xno; then
19550         { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
19551 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19552 fi
19553
19554 logdir='${localstatedir}/log/radius'
19555 { echo "$as_me:$LINENO: checking logdir" >&5
19556 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19557
19558 # Check whether --with-logdir was given.
19559 if test "${with_logdir+set}" = set; then
19560   withval=$with_logdir;  case "$withval" in
19561     no)
19562         { { echo "$as_me:$LINENO: error: Need logdir" >&5
19563 echo "$as_me: error: Need logdir" >&2;}
19564    { (exit 1); exit 1; }; }
19565         ;;
19566     yes)
19567         ;;
19568     [\\/$]* | ?:[\\/]* )
19569         logdir="$withval"
19570         ;;
19571     *)
19572         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19573 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19574    { (exit 1); exit 1; }; }
19575         ;;
19576   esac
19577
19578 fi
19579
19580
19581 { echo "$as_me:$LINENO: result: $logdir" >&5
19582 echo "${ECHO_T}$logdir" >&6; }
19583
19584 radacctdir='${logdir}/radacct'
19585 { echo "$as_me:$LINENO: checking radacctdir" >&5
19586 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19587
19588 # Check whether --with-radacctdir was given.
19589 if test "${with_radacctdir+set}" = set; then
19590   withval=$with_radacctdir;  case "$withval" in
19591     no)
19592         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19593 echo "$as_me: error: Need radacctdir" >&2;}
19594    { (exit 1); exit 1; }; }
19595         ;;
19596     yes)
19597         ;;
19598     [\\/$]* | ?:[\\/]* )
19599         radacctdir="$withval"
19600         ;;
19601     *)
19602         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19603 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19604    { (exit 1); exit 1; }; }
19605         ;;
19606   esac
19607
19608 fi
19609
19610
19611 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19612 echo "${ECHO_T}$radacctdir" >&6; }
19613
19614 raddbdir='${sysconfdir}/raddb'
19615 { echo "$as_me:$LINENO: checking raddbdir" >&5
19616 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19617
19618 # Check whether --with-raddbdir was given.
19619 if test "${with_raddbdir+set}" = set; then
19620   withval=$with_raddbdir;  case "$withval" in
19621     no)
19622         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19623 echo "$as_me: error: Need raddbdir" >&2;}
19624    { (exit 1); exit 1; }; }
19625         ;;
19626     yes)
19627         ;;
19628     [\\/$]* | ?:[\\/]* )
19629         raddbdir="$withval"
19630         ;;
19631     *)
19632         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19633 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19634    { (exit 1); exit 1; }; }
19635         ;;
19636   esac
19637
19638 fi
19639
19640
19641 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19642 echo "${ECHO_T}$raddbdir" >&6; }
19643
19644 ASCEND_BINARY=yes
19645
19646 # Check whether --with-ascend-binary was given.
19647 if test "${with_ascend_binary+set}" = set; then
19648   withval=$with_ascend_binary;  case "$withval" in
19649     yes)
19650         ;;
19651     *)
19652         ASCEND_BINARY=""
19653   esac
19654
19655 fi
19656
19657 if test "X$ASCEND_BINARY" = "Xyes"; then
19658
19659 cat >>confdefs.h <<\_ACEOF
19660 #define ASCEND_BINARY
19661 _ACEOF
19662
19663 fi
19664
19665 WITH_THREADS=yes
19666
19667 # Check whether --with-threads was given.
19668 if test "${with_threads+set}" = set; then
19669   withval=$with_threads;  case "$withval" in
19670     yes)
19671         ;;
19672     *)
19673         WITH_THREADS=""
19674   esac
19675
19676 fi
19677
19678
19679 WITH_VMPS=yes
19680
19681 # Check whether --with-vmps was given.
19682 if test "${with_vmps+set}" = set; then
19683   withval=$with_vmps;  case "$withval" in
19684     yes)
19685         ;;
19686     *)
19687         WITH_VMPS=no
19688   esac
19689
19690 fi
19691
19692 if test "x$WITH_VMPS" = "xyes"; then
19693
19694 cat >>confdefs.h <<\_ACEOF
19695 #define WITH_VMPS 1
19696 _ACEOF
19697
19698 fi
19699
19700
19701 # Check whether --with-dhcp was given.
19702 if test "${with_dhcp+set}" = set; then
19703   withval=$with_dhcp;  case "$withval" in
19704     yes)
19705
19706 cat >>confdefs.h <<\_ACEOF
19707 #define WITH_DHCP 1
19708 _ACEOF
19709
19710         ;;
19711     *)
19712         ;;
19713   esac
19714
19715 fi
19716
19717
19718
19719 STATIC_MODULES=
19720
19721 # Check whether --with-static_modules was given.
19722 if test "${with_static_modules+set}" = set; then
19723   withval=$with_static_modules;
19724   for i in $withval; do
19725     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19726   done
19727
19728 fi
19729
19730
19731 MODULES=
19732
19733 # Check whether --with-modules was given.
19734 if test "${with_modules+set}" = set; then
19735   withval=$with_modules;
19736  for i in $withval; do
19737    MODULES="$MODULES $i"
19738  done
19739
19740 fi
19741
19742
19743 # Check whether --enable-developer was given.
19744 if test "${enable_developer+set}" = set; then
19745   enableval=$enable_developer;  case "$enableval" in
19746     no)
19747         developer=no
19748         ;;
19749     *)
19750         developer=yes
19751   esac
19752
19753 fi
19754
19755
19756 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19757     developer="yes"
19758 fi
19759
19760 if test "x$developer" != "xno" -a -d $srcdir/.git; then
19761     developer="yes"
19762 fi
19763
19764 EXPERIMENTAL=
19765
19766 # Check whether --with-experimental-modules was given.
19767 if test "${with_experimental_modules+set}" = set; then
19768   withval=$with_experimental_modules;  case "$withval" in
19769     yes)
19770         EXPERIMENTAL=yes
19771         ;;
19772     *)
19773   esac
19774
19775 fi
19776
19777
19778 WITH_OPENSSL=yes
19779
19780 # Check whether --with-openssl was given.
19781 if test "${with_openssl+set}" = set; then
19782   withval=$with_openssl;  case "$withval" in
19783     no)
19784         WITH_OPENSSL=no
19785         ;;
19786     *)
19787         WITH_OPENSSL=yes
19788         ;;
19789   esac
19790
19791 fi
19792
19793
19794 OPENSSL_INCLUDE_DIR=
19795
19796 # Check whether --with-openssl-includes was given.
19797 if test "${with_openssl_includes+set}" = set; then
19798   withval=$with_openssl_includes;  case "$withval" in
19799     *) OPENSSL_INCLUDE_DIR="$withval"
19800         ;;
19801   esac
19802
19803 fi
19804
19805
19806 OPENSSL_LIB_DIR=
19807
19808 # Check whether --with-openssl-libraries was given.
19809 if test "${with_openssl_libraries+set}" = set; then
19810   withval=$with_openssl_libraries;  case "$withval" in
19811     *) OPENSSL_LIB_DIR="$withval"
19812         ;;
19813   esac
19814
19815 fi
19816
19817
19818
19819
19820 # Check whether --with-rlm-FOO-lib-dir was given.
19821 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19822   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
19823     *)
19824         ;;
19825   esac
19826
19827 fi
19828
19829
19830
19831 # Check whether --with-rlm-FOO-include-dir was given.
19832 if test "${with_rlm_FOO_include_dir+set}" = set; then
19833   withval=$with_rlm_FOO_include_dir;  case "$withval" in
19834     *)
19835         ;;
19836   esac
19837
19838 fi
19839
19840
19841
19842 WITH_UDPFROMTO=no
19843
19844 # Check whether --with-udpfromto was given.
19845 if test "${with_udpfromto+set}" = set; then
19846   withval=$with_udpfromto;  case "$withval" in
19847     yes)
19848         WITH_UDPFROMTO=yes
19849         ;;
19850     *)
19851         WITH_UDPFROMTO=no
19852   esac
19853
19854 fi
19855
19856
19857 if test "x$WITH_UDPFROMTO" = "xyes"; then
19858
19859 cat >>confdefs.h <<\_ACEOF
19860 #define WITH_UDPFROMTO
19861 _ACEOF
19862
19863 fi
19864
19865
19866 CHECKRAD=checkrad.pl
19867 # Extract the first word of "perl", so it can be a program name with args.
19868 set dummy perl; ac_word=$2
19869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19871 if test "${ac_cv_path_PERL+set}" = set; then
19872   echo $ECHO_N "(cached) $ECHO_C" >&6
19873 else
19874   case $PERL in
19875   [\\/]* | ?:[\\/]*)
19876   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19877   ;;
19878   *)
19879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19880 for as_dir in $PATH
19881 do
19882   IFS=$as_save_IFS
19883   test -z "$as_dir" && as_dir=.
19884   for ac_exec_ext in '' $ac_executable_extensions; do
19885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19886     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19888     break 2
19889   fi
19890 done
19891 done
19892 IFS=$as_save_IFS
19893
19894   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19895   ;;
19896 esac
19897 fi
19898 PERL=$ac_cv_path_PERL
19899 if test -n "$PERL"; then
19900   { echo "$as_me:$LINENO: result: $PERL" >&5
19901 echo "${ECHO_T}$PERL" >&6; }
19902 else
19903   { echo "$as_me:$LINENO: result: no" >&5
19904 echo "${ECHO_T}no" >&6; }
19905 fi
19906
19907
19908 if test "x$ac_cv_path_PERL" = "x"; then
19909   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19910 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19911 fi
19912 # Extract the first word of "snmpget", so it can be a program name with args.
19913 set dummy snmpget; ac_word=$2
19914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19916 if test "${ac_cv_path_SNMPGET+set}" = set; then
19917   echo $ECHO_N "(cached) $ECHO_C" >&6
19918 else
19919   case $SNMPGET in
19920   [\\/]* | ?:[\\/]*)
19921   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19922   ;;
19923   *)
19924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19925 for as_dir in $PATH
19926 do
19927   IFS=$as_save_IFS
19928   test -z "$as_dir" && as_dir=.
19929   for ac_exec_ext in '' $ac_executable_extensions; do
19930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19931     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19933     break 2
19934   fi
19935 done
19936 done
19937 IFS=$as_save_IFS
19938
19939   ;;
19940 esac
19941 fi
19942 SNMPGET=$ac_cv_path_SNMPGET
19943 if test -n "$SNMPGET"; then
19944   { echo "$as_me:$LINENO: result: $SNMPGET" >&5
19945 echo "${ECHO_T}$SNMPGET" >&6; }
19946 else
19947   { echo "$as_me:$LINENO: result: no" >&5
19948 echo "${ECHO_T}no" >&6; }
19949 fi
19950
19951
19952 if test "x$ac_cv_path_SNMPGET" = "x"; then
19953   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19954 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19955 fi
19956
19957 # Extract the first word of "snmpwalk", so it can be a program name with args.
19958 set dummy snmpwalk; ac_word=$2
19959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19961 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19962   echo $ECHO_N "(cached) $ECHO_C" >&6
19963 else
19964   case $SNMPWALK in
19965   [\\/]* | ?:[\\/]*)
19966   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19967   ;;
19968   *)
19969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19970 for as_dir in $PATH
19971 do
19972   IFS=$as_save_IFS
19973   test -z "$as_dir" && as_dir=.
19974   for ac_exec_ext in '' $ac_executable_extensions; do
19975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19976     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19978     break 2
19979   fi
19980 done
19981 done
19982 IFS=$as_save_IFS
19983
19984   ;;
19985 esac
19986 fi
19987 SNMPWALK=$ac_cv_path_SNMPWALK
19988 if test -n "$SNMPWALK"; then
19989   { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19990 echo "${ECHO_T}$SNMPWALK" >&6; }
19991 else
19992   { echo "$as_me:$LINENO: result: no" >&5
19993 echo "${ECHO_T}no" >&6; }
19994 fi
19995
19996
19997 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19998   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19999 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20000 fi
20001
20002 # Extract the first word of "rusers", so it can be a program name with args.
20003 set dummy rusers; ac_word=$2
20004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20006 if test "${ac_cv_path_RUSERS+set}" = set; then
20007   echo $ECHO_N "(cached) $ECHO_C" >&6
20008 else
20009   case $RUSERS in
20010   [\\/]* | ?:[\\/]*)
20011   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20012   ;;
20013   *)
20014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20015 for as_dir in $PATH
20016 do
20017   IFS=$as_save_IFS
20018   test -z "$as_dir" && as_dir=.
20019   for ac_exec_ext in '' $ac_executable_extensions; do
20020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20021     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20023     break 2
20024   fi
20025 done
20026 done
20027 IFS=$as_save_IFS
20028
20029   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20030   ;;
20031 esac
20032 fi
20033 RUSERS=$ac_cv_path_RUSERS
20034 if test -n "$RUSERS"; then
20035   { echo "$as_me:$LINENO: result: $RUSERS" >&5
20036 echo "${ECHO_T}$RUSERS" >&6; }
20037 else
20038   { echo "$as_me:$LINENO: result: no" >&5
20039 echo "${ECHO_T}no" >&6; }
20040 fi
20041
20042
20043
20044 missing_dir=`cd $ac_aux_dir && pwd`
20045 # expand $ac_aux_dir to an absolute path
20046 am_aux_dir=`cd $ac_aux_dir && pwd`
20047
20048 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20049 # Use eval to expand $SHELL
20050 if eval "$MISSING --run true"; then
20051   am_missing_run="$MISSING --run "
20052 else
20053   am_missing_run=
20054   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20055 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20056 fi
20057
20058
20059 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20060
20061
20062 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20063
20064
20065 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20066
20067
20068 # Extract the first word of "locate", so it can be a program name with args.
20069 set dummy locate; ac_word=$2
20070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20072 if test "${ac_cv_path_LOCATE+set}" = set; then
20073   echo $ECHO_N "(cached) $ECHO_C" >&6
20074 else
20075   case $LOCATE in
20076   [\\/]* | ?:[\\/]*)
20077   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20078   ;;
20079   *)
20080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20081 for as_dir in $PATH
20082 do
20083   IFS=$as_save_IFS
20084   test -z "$as_dir" && as_dir=.
20085   for ac_exec_ext in '' $ac_executable_extensions; do
20086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20087     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20089     break 2
20090   fi
20091 done
20092 done
20093 IFS=$as_save_IFS
20094
20095   ;;
20096 esac
20097 fi
20098 LOCATE=$ac_cv_path_LOCATE
20099 if test -n "$LOCATE"; then
20100   { echo "$as_me:$LINENO: result: $LOCATE" >&5
20101 echo "${ECHO_T}$LOCATE" >&6; }
20102 else
20103   { echo "$as_me:$LINENO: result: no" >&5
20104 echo "${ECHO_T}no" >&6; }
20105 fi
20106
20107
20108 # Extract the first word of "dirname", so it can be a program name with args.
20109 set dummy dirname; ac_word=$2
20110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20112 if test "${ac_cv_path_DIRNAME+set}" = set; then
20113   echo $ECHO_N "(cached) $ECHO_C" >&6
20114 else
20115   case $DIRNAME in
20116   [\\/]* | ?:[\\/]*)
20117   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20118   ;;
20119   *)
20120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20121 for as_dir in $PATH
20122 do
20123   IFS=$as_save_IFS
20124   test -z "$as_dir" && as_dir=.
20125   for ac_exec_ext in '' $ac_executable_extensions; do
20126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20127     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20129     break 2
20130   fi
20131 done
20132 done
20133 IFS=$as_save_IFS
20134
20135   ;;
20136 esac
20137 fi
20138 DIRNAME=$ac_cv_path_DIRNAME
20139 if test -n "$DIRNAME"; then
20140   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20141 echo "${ECHO_T}$DIRNAME" >&6; }
20142 else
20143   { echo "$as_me:$LINENO: result: no" >&5
20144 echo "${ECHO_T}no" >&6; }
20145 fi
20146
20147
20148 # Extract the first word of "grep", so it can be a program name with args.
20149 set dummy grep; ac_word=$2
20150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20152 if test "${ac_cv_path_GREP+set}" = set; then
20153   echo $ECHO_N "(cached) $ECHO_C" >&6
20154 else
20155   case $GREP in
20156   [\\/]* | ?:[\\/]*)
20157   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20158   ;;
20159   *)
20160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20161 for as_dir in $PATH
20162 do
20163   IFS=$as_save_IFS
20164   test -z "$as_dir" && as_dir=.
20165   for ac_exec_ext in '' $ac_executable_extensions; do
20166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20167     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20169     break 2
20170   fi
20171 done
20172 done
20173 IFS=$as_save_IFS
20174
20175   ;;
20176 esac
20177 fi
20178 GREP=$ac_cv_path_GREP
20179 if test -n "$GREP"; then
20180   { echo "$as_me:$LINENO: result: $GREP" >&5
20181 echo "${ECHO_T}$GREP" >&6; }
20182 else
20183   { echo "$as_me:$LINENO: result: no" >&5
20184 echo "${ECHO_T}no" >&6; }
20185 fi
20186
20187
20188
20189
20190 old_CFLAGS=$CFLAGS
20191 if test "x$WITH_THREADS" = "xyes"; then
20192   if test $ac_cv_prog_suncc = "yes"; then
20193     CFLAGS="$CFLAGS -mt"
20194   fi
20195
20196
20197 for ac_header in pthread.h
20198 do
20199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20201   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20204   echo $ECHO_N "(cached) $ECHO_C" >&6
20205 fi
20206 ac_res=`eval echo '${'$as_ac_Header'}'`
20207                { echo "$as_me:$LINENO: result: $ac_res" >&5
20208 echo "${ECHO_T}$ac_res" >&6; }
20209 else
20210   # Is the header compilable?
20211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20213 cat >conftest.$ac_ext <<_ACEOF
20214 /* confdefs.h.  */
20215 _ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h.  */
20219 $ac_includes_default
20220 #include <$ac_header>
20221 _ACEOF
20222 rm -f conftest.$ac_objext
20223 if { (ac_try="$ac_compile"
20224 case "(($ac_try" in
20225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20226   *) ac_try_echo=$ac_try;;
20227 esac
20228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20229   (eval "$ac_compile") 2>conftest.er1
20230   ac_status=$?
20231   grep -v '^ *+' conftest.er1 >conftest.err
20232   rm -f conftest.er1
20233   cat conftest.err >&5
20234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235   (exit $ac_status); } && {
20236          test -z "$ac_c_werror_flag" ||
20237          test ! -s conftest.err
20238        } && test -s conftest.$ac_objext; then
20239   ac_header_compiler=yes
20240 else
20241   echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20243
20244         ac_header_compiler=no
20245 fi
20246
20247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20249 echo "${ECHO_T}$ac_header_compiler" >&6; }
20250
20251 # Is the header present?
20252 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20254 cat >conftest.$ac_ext <<_ACEOF
20255 /* confdefs.h.  */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h.  */
20260 #include <$ac_header>
20261 _ACEOF
20262 if { (ac_try="$ac_cpp conftest.$ac_ext"
20263 case "(($ac_try" in
20264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265   *) ac_try_echo=$ac_try;;
20266 esac
20267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20269   ac_status=$?
20270   grep -v '^ *+' conftest.er1 >conftest.err
20271   rm -f conftest.er1
20272   cat conftest.err >&5
20273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274   (exit $ac_status); } >/dev/null && {
20275          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20276          test ! -s conftest.err
20277        }; then
20278   ac_header_preproc=yes
20279 else
20280   echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20282
20283   ac_header_preproc=no
20284 fi
20285
20286 rm -f conftest.err conftest.$ac_ext
20287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20288 echo "${ECHO_T}$ac_header_preproc" >&6; }
20289
20290 # So?  What about this header?
20291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20292   yes:no: )
20293     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20297     ac_header_preproc=yes
20298     ;;
20299   no:yes:* )
20300     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20302     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20303 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20304     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20306     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20307 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20310     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20312
20313     ;;
20314 esac
20315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20318   echo $ECHO_N "(cached) $ECHO_C" >&6
20319 else
20320   eval "$as_ac_Header=\$ac_header_preproc"
20321 fi
20322 ac_res=`eval echo '${'$as_ac_Header'}'`
20323                { echo "$as_me:$LINENO: result: $ac_res" >&5
20324 echo "${ECHO_T}$ac_res" >&6; }
20325
20326 fi
20327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20328   cat >>confdefs.h <<_ACEOF
20329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20330 _ACEOF
20331
20332 else
20333    WITH_THREADS="no"
20334 fi
20335
20336 done
20337
20338
20339   { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20340 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20341 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20342   echo $ECHO_N "(cached) $ECHO_C" >&6
20343 else
20344   ac_check_lib_save_LIBS=$LIBS
20345 LIBS="-lpthread  $LIBS"
20346 cat >conftest.$ac_ext <<_ACEOF
20347 /* confdefs.h.  */
20348 _ACEOF
20349 cat confdefs.h >>conftest.$ac_ext
20350 cat >>conftest.$ac_ext <<_ACEOF
20351 /* end confdefs.h.  */
20352
20353 /* Override any GCC internal prototype to avoid an error.
20354    Use char because int might match the return type of a GCC
20355    builtin and then its argument prototype would still apply.  */
20356 #ifdef __cplusplus
20357 extern "C"
20358 #endif
20359 char pthread_create ();
20360 int
20361 main ()
20362 {
20363 return pthread_create ();
20364   ;
20365   return 0;
20366 }
20367 _ACEOF
20368 rm -f conftest.$ac_objext conftest$ac_exeext
20369 if { (ac_try="$ac_link"
20370 case "(($ac_try" in
20371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372   *) ac_try_echo=$ac_try;;
20373 esac
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375   (eval "$ac_link") 2>conftest.er1
20376   ac_status=$?
20377   grep -v '^ *+' conftest.er1 >conftest.err
20378   rm -f conftest.er1
20379   cat conftest.err >&5
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); } && {
20382          test -z "$ac_c_werror_flag" ||
20383          test ! -s conftest.err
20384        } && test -s conftest$ac_exeext &&
20385        $as_test_x conftest$ac_exeext; then
20386   ac_cv_lib_pthread_pthread_create=yes
20387 else
20388   echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20390
20391         ac_cv_lib_pthread_pthread_create=no
20392 fi
20393
20394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20395       conftest$ac_exeext conftest.$ac_ext
20396 LIBS=$ac_check_lib_save_LIBS
20397 fi
20398 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20399 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20400 if test $ac_cv_lib_pthread_pthread_create = yes; then
20401    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20402                   LIBS="$LIBS -lpthread"
20403 else
20404   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20405 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20406 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20407   echo $ECHO_N "(cached) $ECHO_C" >&6
20408 else
20409   ac_check_lib_save_LIBS=$LIBS
20410 LIBS="-lc_r  $LIBS"
20411 cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h.  */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h.  */
20417
20418 /* Override any GCC internal prototype to avoid an error.
20419    Use char because int might match the return type of a GCC
20420    builtin and then its argument prototype would still apply.  */
20421 #ifdef __cplusplus
20422 extern "C"
20423 #endif
20424 char pthread_create ();
20425 int
20426 main ()
20427 {
20428 return pthread_create ();
20429   ;
20430   return 0;
20431 }
20432 _ACEOF
20433 rm -f conftest.$ac_objext conftest$ac_exeext
20434 if { (ac_try="$ac_link"
20435 case "(($ac_try" in
20436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437   *) ac_try_echo=$ac_try;;
20438 esac
20439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20440   (eval "$ac_link") 2>conftest.er1
20441   ac_status=$?
20442   grep -v '^ *+' conftest.er1 >conftest.err
20443   rm -f conftest.er1
20444   cat conftest.err >&5
20445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446   (exit $ac_status); } && {
20447          test -z "$ac_c_werror_flag" ||
20448          test ! -s conftest.err
20449        } && test -s conftest$ac_exeext &&
20450        $as_test_x conftest$ac_exeext; then
20451   ac_cv_lib_c_r_pthread_create=yes
20452 else
20453   echo "$as_me: failed program was:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20455
20456         ac_cv_lib_c_r_pthread_create=no
20457 fi
20458
20459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20460       conftest$ac_exeext conftest.$ac_ext
20461 LIBS=$ac_check_lib_save_LIBS
20462 fi
20463 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20464 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20465 if test $ac_cv_lib_c_r_pthread_create = yes; then
20466    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20467 else
20468    WITH_THREADS="no"
20469
20470 fi
20471
20472
20473 fi
20474
20475 fi
20476
20477 if test "x$WITH_THREADS" != "xyes"; then
20478   CFLAGS=$old_CFLAGS
20479   ac_cv_header_pthread_h="no"
20480   WITH_THREADS=no
20481 else
20482
20483   { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20484 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20485 if test "${ac_cv_search_sem_init+set}" = set; then
20486   echo $ECHO_N "(cached) $ECHO_C" >&6
20487 else
20488   ac_func_search_save_LIBS=$LIBS
20489 cat >conftest.$ac_ext <<_ACEOF
20490 /* confdefs.h.  */
20491 _ACEOF
20492 cat confdefs.h >>conftest.$ac_ext
20493 cat >>conftest.$ac_ext <<_ACEOF
20494 /* end confdefs.h.  */
20495
20496 /* Override any GCC internal prototype to avoid an error.
20497    Use char because int might match the return type of a GCC
20498    builtin and then its argument prototype would still apply.  */
20499 #ifdef __cplusplus
20500 extern "C"
20501 #endif
20502 char sem_init ();
20503 int
20504 main ()
20505 {
20506 return sem_init ();
20507   ;
20508   return 0;
20509 }
20510 _ACEOF
20511 for ac_lib in '' pthread sem posix4 rt semaphore; do
20512   if test -z "$ac_lib"; then
20513     ac_res="none required"
20514   else
20515     ac_res=-l$ac_lib
20516     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20517   fi
20518   rm -f conftest.$ac_objext conftest$ac_exeext
20519 if { (ac_try="$ac_link"
20520 case "(($ac_try" in
20521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522   *) ac_try_echo=$ac_try;;
20523 esac
20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525   (eval "$ac_link") 2>conftest.er1
20526   ac_status=$?
20527   grep -v '^ *+' conftest.er1 >conftest.err
20528   rm -f conftest.er1
20529   cat conftest.err >&5
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); } && {
20532          test -z "$ac_c_werror_flag" ||
20533          test ! -s conftest.err
20534        } && test -s conftest$ac_exeext &&
20535        $as_test_x conftest$ac_exeext; then
20536   ac_cv_search_sem_init=$ac_res
20537 else
20538   echo "$as_me: failed program was:" >&5
20539 sed 's/^/| /' conftest.$ac_ext >&5
20540
20541
20542 fi
20543
20544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20545       conftest$ac_exeext
20546   if test "${ac_cv_search_sem_init+set}" = set; then
20547   break
20548 fi
20549 done
20550 if test "${ac_cv_search_sem_init+set}" = set; then
20551   :
20552 else
20553   ac_cv_search_sem_init=no
20554 fi
20555 rm conftest.$ac_ext
20556 LIBS=$ac_func_search_save_LIBS
20557 fi
20558 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20559 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20560 ac_res=$ac_cv_search_sem_init
20561 if test "$ac_res" != no; then
20562   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20563
20564 else
20565   { { 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
20566 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;}
20567    { (exit 1); exit 1; }; }
20568
20569 fi
20570
20571 fi
20572
20573
20574 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20575 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20576 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20577   echo $ECHO_N "(cached) $ECHO_C" >&6
20578 else
20579   ac_check_lib_save_LIBS=$LIBS
20580 LIBS="-lsocket  $LIBS"
20581 cat >conftest.$ac_ext <<_ACEOF
20582 /* confdefs.h.  */
20583 _ACEOF
20584 cat confdefs.h >>conftest.$ac_ext
20585 cat >>conftest.$ac_ext <<_ACEOF
20586 /* end confdefs.h.  */
20587
20588 /* Override any GCC internal prototype to avoid an error.
20589    Use char because int might match the return type of a GCC
20590    builtin and then its argument prototype would still apply.  */
20591 #ifdef __cplusplus
20592 extern "C"
20593 #endif
20594 char getsockname ();
20595 int
20596 main ()
20597 {
20598 return getsockname ();
20599   ;
20600   return 0;
20601 }
20602 _ACEOF
20603 rm -f conftest.$ac_objext conftest$ac_exeext
20604 if { (ac_try="$ac_link"
20605 case "(($ac_try" in
20606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20607   *) ac_try_echo=$ac_try;;
20608 esac
20609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20610   (eval "$ac_link") 2>conftest.er1
20611   ac_status=$?
20612   grep -v '^ *+' conftest.er1 >conftest.err
20613   rm -f conftest.er1
20614   cat conftest.err >&5
20615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616   (exit $ac_status); } && {
20617          test -z "$ac_c_werror_flag" ||
20618          test ! -s conftest.err
20619        } && test -s conftest$ac_exeext &&
20620        $as_test_x conftest$ac_exeext; then
20621   ac_cv_lib_socket_getsockname=yes
20622 else
20623   echo "$as_me: failed program was:" >&5
20624 sed 's/^/| /' conftest.$ac_ext >&5
20625
20626         ac_cv_lib_socket_getsockname=no
20627 fi
20628
20629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20630       conftest$ac_exeext conftest.$ac_ext
20631 LIBS=$ac_check_lib_save_LIBS
20632 fi
20633 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20634 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20635 if test $ac_cv_lib_socket_getsockname = yes; then
20636   cat >>confdefs.h <<_ACEOF
20637 #define HAVE_LIBSOCKET 1
20638 _ACEOF
20639
20640   LIBS="-lsocket $LIBS"
20641
20642 fi
20643
20644
20645
20646 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20647 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20648 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20649   echo $ECHO_N "(cached) $ECHO_C" >&6
20650 else
20651   ac_check_lib_save_LIBS=$LIBS
20652 LIBS="-lresolv  $LIBS"
20653 cat >conftest.$ac_ext <<_ACEOF
20654 /* confdefs.h.  */
20655 _ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h.  */
20659
20660 /* Override any GCC internal prototype to avoid an error.
20661    Use char because int might match the return type of a GCC
20662    builtin and then its argument prototype would still apply.  */
20663 #ifdef __cplusplus
20664 extern "C"
20665 #endif
20666 char inet_aton ();
20667 int
20668 main ()
20669 {
20670 return inet_aton ();
20671   ;
20672   return 0;
20673 }
20674 _ACEOF
20675 rm -f conftest.$ac_objext conftest$ac_exeext
20676 if { (ac_try="$ac_link"
20677 case "(($ac_try" in
20678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679   *) ac_try_echo=$ac_try;;
20680 esac
20681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682   (eval "$ac_link") 2>conftest.er1
20683   ac_status=$?
20684   grep -v '^ *+' conftest.er1 >conftest.err
20685   rm -f conftest.er1
20686   cat conftest.err >&5
20687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688   (exit $ac_status); } && {
20689          test -z "$ac_c_werror_flag" ||
20690          test ! -s conftest.err
20691        } && test -s conftest$ac_exeext &&
20692        $as_test_x conftest$ac_exeext; then
20693   ac_cv_lib_resolv_inet_aton=yes
20694 else
20695   echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20697
20698         ac_cv_lib_resolv_inet_aton=no
20699 fi
20700
20701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20702       conftest$ac_exeext conftest.$ac_ext
20703 LIBS=$ac_check_lib_save_LIBS
20704 fi
20705 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20706 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20707 if test $ac_cv_lib_resolv_inet_aton = yes; then
20708   cat >>confdefs.h <<_ACEOF
20709 #define HAVE_LIBRESOLV 1
20710 _ACEOF
20711
20712   LIBS="-lresolv $LIBS"
20713
20714 fi
20715
20716
20717
20718 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20719 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
20720 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20721   echo $ECHO_N "(cached) $ECHO_C" >&6
20722 else
20723   ac_check_lib_save_LIBS=$LIBS
20724 LIBS="-lnsl  $LIBS"
20725 cat >conftest.$ac_ext <<_ACEOF
20726 /* confdefs.h.  */
20727 _ACEOF
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h.  */
20731
20732 /* Override any GCC internal prototype to avoid an error.
20733    Use char because int might match the return type of a GCC
20734    builtin and then its argument prototype would still apply.  */
20735 #ifdef __cplusplus
20736 extern "C"
20737 #endif
20738 char inet_ntoa ();
20739 int
20740 main ()
20741 {
20742 return inet_ntoa ();
20743   ;
20744   return 0;
20745 }
20746 _ACEOF
20747 rm -f conftest.$ac_objext conftest$ac_exeext
20748 if { (ac_try="$ac_link"
20749 case "(($ac_try" in
20750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751   *) ac_try_echo=$ac_try;;
20752 esac
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754   (eval "$ac_link") 2>conftest.er1
20755   ac_status=$?
20756   grep -v '^ *+' conftest.er1 >conftest.err
20757   rm -f conftest.er1
20758   cat conftest.err >&5
20759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760   (exit $ac_status); } && {
20761          test -z "$ac_c_werror_flag" ||
20762          test ! -s conftest.err
20763        } && test -s conftest$ac_exeext &&
20764        $as_test_x conftest$ac_exeext; then
20765   ac_cv_lib_nsl_inet_ntoa=yes
20766 else
20767   echo "$as_me: failed program was:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20769
20770         ac_cv_lib_nsl_inet_ntoa=no
20771 fi
20772
20773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20774       conftest$ac_exeext conftest.$ac_ext
20775 LIBS=$ac_check_lib_save_LIBS
20776 fi
20777 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20778 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
20779 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20780   cat >>confdefs.h <<_ACEOF
20781 #define HAVE_LIBNSL 1
20782 _ACEOF
20783
20784   LIBS="-lnsl $LIBS"
20785
20786 fi
20787
20788
20789 OPENSSL_LIBS=
20790 if test "x$WITH_OPENSSL" = xyes; then
20791   old_LIBS=$LIBS
20792   if test "x$OPENSSL_LIB_DIR" != "x"; then
20793     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20794   fi
20795   { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20796 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
20797 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20798   echo $ECHO_N "(cached) $ECHO_C" >&6
20799 else
20800   ac_check_lib_save_LIBS=$LIBS
20801 LIBS="-lcrypto  $LIBS"
20802 cat >conftest.$ac_ext <<_ACEOF
20803 /* confdefs.h.  */
20804 _ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h.  */
20808
20809 /* Override any GCC internal prototype to avoid an error.
20810    Use char because int might match the return type of a GCC
20811    builtin and then its argument prototype would still apply.  */
20812 #ifdef __cplusplus
20813 extern "C"
20814 #endif
20815 char DH_new ();
20816 int
20817 main ()
20818 {
20819 return DH_new ();
20820   ;
20821   return 0;
20822 }
20823 _ACEOF
20824 rm -f conftest.$ac_objext conftest$ac_exeext
20825 if { (ac_try="$ac_link"
20826 case "(($ac_try" in
20827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20828   *) ac_try_echo=$ac_try;;
20829 esac
20830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20831   (eval "$ac_link") 2>conftest.er1
20832   ac_status=$?
20833   grep -v '^ *+' conftest.er1 >conftest.err
20834   rm -f conftest.er1
20835   cat conftest.err >&5
20836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837   (exit $ac_status); } && {
20838          test -z "$ac_c_werror_flag" ||
20839          test ! -s conftest.err
20840        } && test -s conftest$ac_exeext &&
20841        $as_test_x conftest$ac_exeext; then
20842   ac_cv_lib_crypto_DH_new=yes
20843 else
20844   echo "$as_me: failed program was:" >&5
20845 sed 's/^/| /' conftest.$ac_ext >&5
20846
20847         ac_cv_lib_crypto_DH_new=no
20848 fi
20849
20850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20851       conftest$ac_exeext conftest.$ac_ext
20852 LIBS=$ac_check_lib_save_LIBS
20853 fi
20854 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20855 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
20856 if test $ac_cv_lib_crypto_DH_new = yes; then
20857
20858         LIBS="-lcrypto $LIBS"
20859
20860 cat >>confdefs.h <<\_ACEOF
20861 #define HAVE_LIBCRYPTO 1
20862 _ACEOF
20863
20864         { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20865 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
20866 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20867   echo $ECHO_N "(cached) $ECHO_C" >&6
20868 else
20869   ac_check_lib_save_LIBS=$LIBS
20870 LIBS="-lssl  $LIBS"
20871 cat >conftest.$ac_ext <<_ACEOF
20872 /* confdefs.h.  */
20873 _ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h.  */
20877
20878 /* Override any GCC internal prototype to avoid an error.
20879    Use char because int might match the return type of a GCC
20880    builtin and then its argument prototype would still apply.  */
20881 #ifdef __cplusplus
20882 extern "C"
20883 #endif
20884 char SSL_new ();
20885 int
20886 main ()
20887 {
20888 return SSL_new ();
20889   ;
20890   return 0;
20891 }
20892 _ACEOF
20893 rm -f conftest.$ac_objext conftest$ac_exeext
20894 if { (ac_try="$ac_link"
20895 case "(($ac_try" in
20896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897   *) ac_try_echo=$ac_try;;
20898 esac
20899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900   (eval "$ac_link") 2>conftest.er1
20901   ac_status=$?
20902   grep -v '^ *+' conftest.er1 >conftest.err
20903   rm -f conftest.er1
20904   cat conftest.err >&5
20905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906   (exit $ac_status); } && {
20907          test -z "$ac_c_werror_flag" ||
20908          test ! -s conftest.err
20909        } && test -s conftest$ac_exeext &&
20910        $as_test_x conftest$ac_exeext; then
20911   ac_cv_lib_ssl_SSL_new=yes
20912 else
20913   echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20915
20916         ac_cv_lib_ssl_SSL_new=no
20917 fi
20918
20919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20920       conftest$ac_exeext conftest.$ac_ext
20921 LIBS=$ac_check_lib_save_LIBS
20922 fi
20923 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20924 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
20925 if test $ac_cv_lib_ssl_SSL_new = yes; then
20926
20927
20928 cat >>confdefs.h <<\_ACEOF
20929 #define HAVE_LIBSSL 1
20930 _ACEOF
20931
20932                 if test "x$OPENSSL_LIB_DIR" != "x"; then
20933                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20934                 fi
20935                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20936
20937 fi
20938
20939
20940 fi
20941
20942   LIBS=$old_LIBS
20943 fi
20944
20945
20946 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
20947 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
20948 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
20949   echo $ECHO_N "(cached) $ECHO_C" >&6
20950 else
20951   ac_check_lib_save_LIBS=$LIBS
20952 LIBS="-lws2_32  $LIBS"
20953 cat >conftest.$ac_ext <<_ACEOF
20954 /* confdefs.h.  */
20955 _ACEOF
20956 cat confdefs.h >>conftest.$ac_ext
20957 cat >>conftest.$ac_ext <<_ACEOF
20958 /* end confdefs.h.  */
20959
20960 /* Override any GCC internal prototype to avoid an error.
20961    Use char because int might match the return type of a GCC
20962    builtin and then its argument prototype would still apply.  */
20963 #ifdef __cplusplus
20964 extern "C"
20965 #endif
20966 char htonl ();
20967 int
20968 main ()
20969 {
20970 return htonl ();
20971   ;
20972   return 0;
20973 }
20974 _ACEOF
20975 rm -f conftest.$ac_objext conftest$ac_exeext
20976 if { (ac_try="$ac_link"
20977 case "(($ac_try" in
20978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979   *) ac_try_echo=$ac_try;;
20980 esac
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982   (eval "$ac_link") 2>conftest.er1
20983   ac_status=$?
20984   grep -v '^ *+' conftest.er1 >conftest.err
20985   rm -f conftest.er1
20986   cat conftest.err >&5
20987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988   (exit $ac_status); } && {
20989          test -z "$ac_c_werror_flag" ||
20990          test ! -s conftest.err
20991        } && test -s conftest$ac_exeext &&
20992        $as_test_x conftest$ac_exeext; then
20993   ac_cv_lib_ws2_32_htonl=yes
20994 else
20995   echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20997
20998         ac_cv_lib_ws2_32_htonl=no
20999 fi
21000
21001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21002       conftest$ac_exeext conftest.$ac_ext
21003 LIBS=$ac_check_lib_save_LIBS
21004 fi
21005 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21006 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21007 if test $ac_cv_lib_ws2_32_htonl = yes; then
21008   cat >>confdefs.h <<_ACEOF
21009 #define HAVE_LIBWS2_32 1
21010 _ACEOF
21011
21012   LIBS="-lws2_32 $LIBS"
21013
21014 fi
21015
21016
21017 PCAP_LIBS=
21018 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21019 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21020 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21021   echo $ECHO_N "(cached) $ECHO_C" >&6
21022 else
21023   ac_check_lib_save_LIBS=$LIBS
21024 LIBS="-lpcap  $LIBS"
21025 cat >conftest.$ac_ext <<_ACEOF
21026 /* confdefs.h.  */
21027 _ACEOF
21028 cat confdefs.h >>conftest.$ac_ext
21029 cat >>conftest.$ac_ext <<_ACEOF
21030 /* end confdefs.h.  */
21031
21032 /* Override any GCC internal prototype to avoid an error.
21033    Use char because int might match the return type of a GCC
21034    builtin and then its argument prototype would still apply.  */
21035 #ifdef __cplusplus
21036 extern "C"
21037 #endif
21038 char pcap_open_live ();
21039 int
21040 main ()
21041 {
21042 return pcap_open_live ();
21043   ;
21044   return 0;
21045 }
21046 _ACEOF
21047 rm -f conftest.$ac_objext conftest$ac_exeext
21048 if { (ac_try="$ac_link"
21049 case "(($ac_try" in
21050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051   *) ac_try_echo=$ac_try;;
21052 esac
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054   (eval "$ac_link") 2>conftest.er1
21055   ac_status=$?
21056   grep -v '^ *+' conftest.er1 >conftest.err
21057   rm -f conftest.er1
21058   cat conftest.err >&5
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); } && {
21061          test -z "$ac_c_werror_flag" ||
21062          test ! -s conftest.err
21063        } && test -s conftest$ac_exeext &&
21064        $as_test_x conftest$ac_exeext; then
21065   ac_cv_lib_pcap_pcap_open_live=yes
21066 else
21067   echo "$as_me: failed program was:" >&5
21068 sed 's/^/| /' conftest.$ac_ext >&5
21069
21070         ac_cv_lib_pcap_pcap_open_live=no
21071 fi
21072
21073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21074       conftest$ac_exeext conftest.$ac_ext
21075 LIBS=$ac_check_lib_save_LIBS
21076 fi
21077 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21078 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21079 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21080    PCAP_LIBS="-lpcap"
21081
21082 cat >>confdefs.h <<\_ACEOF
21083 #define HAVE_LIBPCAP 1
21084 _ACEOF
21085
21086
21087 else
21088    { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21089 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21090 fi
21091
21092
21093
21094   { echo "$as_me:$LINENO: checking for a readline compatible library" >&5
21095 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6; }
21096 if test "${ac_cv_lib_readline+set}" = set; then
21097   echo $ECHO_N "(cached) $ECHO_C" >&6
21098 else
21099
21100     ORIG_LIBS=$LIBS
21101     for readline_lib in readline edit editline; do
21102       for termcap_lib in "" termcap curses ncurses; do
21103         if test -z "$termcap_lib"; then
21104           TRY_LIB="-l$readline_lib"
21105         else
21106           TRY_LIB="-l$readline_lib -l$termcap_lib"
21107         fi
21108         LIBS="$ORIG_LIBS $TRY_LIB"
21109         cat >conftest.$ac_ext <<_ACEOF
21110 /* confdefs.h.  */
21111 _ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h.  */
21115
21116 /* Override any GCC internal prototype to avoid an error.
21117    Use char because int might match the return type of a GCC
21118    builtin and then its argument prototype would still apply.  */
21119 #ifdef __cplusplus
21120 extern "C"
21121 #endif
21122 char readline ();
21123 int
21124 main ()
21125 {
21126 return readline ();
21127   ;
21128   return 0;
21129 }
21130 _ACEOF
21131 rm -f conftest.$ac_objext conftest$ac_exeext
21132 if { (ac_try="$ac_link"
21133 case "(($ac_try" in
21134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21135   *) ac_try_echo=$ac_try;;
21136 esac
21137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21138   (eval "$ac_link") 2>conftest.er1
21139   ac_status=$?
21140   grep -v '^ *+' conftest.er1 >conftest.err
21141   rm -f conftest.er1
21142   cat conftest.err >&5
21143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144   (exit $ac_status); } && {
21145          test -z "$ac_c_werror_flag" ||
21146          test ! -s conftest.err
21147        } && test -s conftest$ac_exeext &&
21148        $as_test_x conftest$ac_exeext; then
21149   ac_cv_lib_readline="$TRY_LIB"
21150 else
21151   echo "$as_me: failed program was:" >&5
21152 sed 's/^/| /' conftest.$ac_ext >&5
21153
21154
21155 fi
21156
21157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21158       conftest$ac_exeext conftest.$ac_ext
21159         if test -n "$ac_cv_lib_readline"; then
21160           LIBREADLINE="$TRY_LIB"
21161
21162           break
21163         fi
21164       done
21165       if test -n "$ac_cv_lib_readline"; then
21166         break
21167       fi
21168     done
21169     if test -z "$ac_cv_lib_readline"; then
21170       ac_cv_lib_readline="no"
21171       LIBS=$ORIG_LIBS
21172     fi
21173
21174 fi
21175 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
21176 echo "${ECHO_T}$ac_cv_lib_readline" >&6; }
21177
21178   if test "$ac_cv_lib_readline" != "no"; then
21179
21180 cat >>confdefs.h <<\_ACEOF
21181 #define HAVE_LIBREADLINE 1
21182 _ACEOF
21183
21184
21185
21186 for ac_header in readline.h readline/readline.h
21187 do
21188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21190   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21193   echo $ECHO_N "(cached) $ECHO_C" >&6
21194 fi
21195 ac_res=`eval echo '${'$as_ac_Header'}'`
21196                { echo "$as_me:$LINENO: result: $ac_res" >&5
21197 echo "${ECHO_T}$ac_res" >&6; }
21198 else
21199   # Is the header compilable?
21200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21202 cat >conftest.$ac_ext <<_ACEOF
21203 /* confdefs.h.  */
21204 _ACEOF
21205 cat confdefs.h >>conftest.$ac_ext
21206 cat >>conftest.$ac_ext <<_ACEOF
21207 /* end confdefs.h.  */
21208 $ac_includes_default
21209 #include <$ac_header>
21210 _ACEOF
21211 rm -f conftest.$ac_objext
21212 if { (ac_try="$ac_compile"
21213 case "(($ac_try" in
21214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21215   *) ac_try_echo=$ac_try;;
21216 esac
21217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21218   (eval "$ac_compile") 2>conftest.er1
21219   ac_status=$?
21220   grep -v '^ *+' conftest.er1 >conftest.err
21221   rm -f conftest.er1
21222   cat conftest.err >&5
21223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224   (exit $ac_status); } && {
21225          test -z "$ac_c_werror_flag" ||
21226          test ! -s conftest.err
21227        } && test -s conftest.$ac_objext; then
21228   ac_header_compiler=yes
21229 else
21230   echo "$as_me: failed program was:" >&5
21231 sed 's/^/| /' conftest.$ac_ext >&5
21232
21233         ac_header_compiler=no
21234 fi
21235
21236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21238 echo "${ECHO_T}$ac_header_compiler" >&6; }
21239
21240 # Is the header present?
21241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21243 cat >conftest.$ac_ext <<_ACEOF
21244 /* confdefs.h.  */
21245 _ACEOF
21246 cat confdefs.h >>conftest.$ac_ext
21247 cat >>conftest.$ac_ext <<_ACEOF
21248 /* end confdefs.h.  */
21249 #include <$ac_header>
21250 _ACEOF
21251 if { (ac_try="$ac_cpp conftest.$ac_ext"
21252 case "(($ac_try" in
21253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254   *) ac_try_echo=$ac_try;;
21255 esac
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21258   ac_status=$?
21259   grep -v '^ *+' conftest.er1 >conftest.err
21260   rm -f conftest.er1
21261   cat conftest.err >&5
21262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263   (exit $ac_status); } >/dev/null && {
21264          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21265          test ! -s conftest.err
21266        }; then
21267   ac_header_preproc=yes
21268 else
21269   echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21271
21272   ac_header_preproc=no
21273 fi
21274
21275 rm -f conftest.err conftest.$ac_ext
21276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21277 echo "${ECHO_T}$ac_header_preproc" >&6; }
21278
21279 # So?  What about this header?
21280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21281   yes:no: )
21282     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21286     ac_header_preproc=yes
21287     ;;
21288   no:yes:* )
21289     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21291     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21292 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21293     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21295     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21296 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21299     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21301
21302     ;;
21303 esac
21304 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21307   echo $ECHO_N "(cached) $ECHO_C" >&6
21308 else
21309   eval "$as_ac_Header=\$ac_header_preproc"
21310 fi
21311 ac_res=`eval echo '${'$as_ac_Header'}'`
21312                { echo "$as_me:$LINENO: result: $ac_res" >&5
21313 echo "${ECHO_T}$ac_res" >&6; }
21314
21315 fi
21316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21317   cat >>confdefs.h <<_ACEOF
21318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21319 _ACEOF
21320
21321 fi
21322
21323 done
21324
21325     { echo "$as_me:$LINENO: checking whether readline supports history" >&5
21326 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6; }
21327 if test "${ac_cv_lib_readline_history+set}" = set; then
21328   echo $ECHO_N "(cached) $ECHO_C" >&6
21329 else
21330
21331       ac_cv_lib_readline_history="no"
21332       cat >conftest.$ac_ext <<_ACEOF
21333 /* confdefs.h.  */
21334 _ACEOF
21335 cat confdefs.h >>conftest.$ac_ext
21336 cat >>conftest.$ac_ext <<_ACEOF
21337 /* end confdefs.h.  */
21338
21339 /* Override any GCC internal prototype to avoid an error.
21340    Use char because int might match the return type of a GCC
21341    builtin and then its argument prototype would still apply.  */
21342 #ifdef __cplusplus
21343 extern "C"
21344 #endif
21345 char add_history ();
21346 int
21347 main ()
21348 {
21349 return add_history ();
21350   ;
21351   return 0;
21352 }
21353 _ACEOF
21354 rm -f conftest.$ac_objext conftest$ac_exeext
21355 if { (ac_try="$ac_link"
21356 case "(($ac_try" in
21357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21358   *) ac_try_echo=$ac_try;;
21359 esac
21360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21361   (eval "$ac_link") 2>conftest.er1
21362   ac_status=$?
21363   grep -v '^ *+' conftest.er1 >conftest.err
21364   rm -f conftest.er1
21365   cat conftest.err >&5
21366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367   (exit $ac_status); } && {
21368          test -z "$ac_c_werror_flag" ||
21369          test ! -s conftest.err
21370        } && test -s conftest$ac_exeext &&
21371        $as_test_x conftest$ac_exeext; then
21372   ac_cv_lib_readline_history="yes"
21373 else
21374   echo "$as_me: failed program was:" >&5
21375 sed 's/^/| /' conftest.$ac_ext >&5
21376
21377
21378 fi
21379
21380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21381       conftest$ac_exeext conftest.$ac_ext
21382
21383 fi
21384 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
21385 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6; }
21386     if test "$ac_cv_lib_readline_history" = "yes"; then
21387
21388 cat >>confdefs.h <<\_ACEOF
21389 #define HAVE_READLINE_HISTORY 1
21390 _ACEOF
21391
21392
21393
21394 for ac_header in history.h readline/history.h
21395 do
21396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21398   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21401   echo $ECHO_N "(cached) $ECHO_C" >&6
21402 fi
21403 ac_res=`eval echo '${'$as_ac_Header'}'`
21404                { echo "$as_me:$LINENO: result: $ac_res" >&5
21405 echo "${ECHO_T}$ac_res" >&6; }
21406 else
21407   # Is the header compilable?
21408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21410 cat >conftest.$ac_ext <<_ACEOF
21411 /* confdefs.h.  */
21412 _ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h.  */
21416 $ac_includes_default
21417 #include <$ac_header>
21418 _ACEOF
21419 rm -f conftest.$ac_objext
21420 if { (ac_try="$ac_compile"
21421 case "(($ac_try" in
21422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423   *) ac_try_echo=$ac_try;;
21424 esac
21425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426   (eval "$ac_compile") 2>conftest.er1
21427   ac_status=$?
21428   grep -v '^ *+' conftest.er1 >conftest.err
21429   rm -f conftest.er1
21430   cat conftest.err >&5
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); } && {
21433          test -z "$ac_c_werror_flag" ||
21434          test ! -s conftest.err
21435        } && test -s conftest.$ac_objext; then
21436   ac_header_compiler=yes
21437 else
21438   echo "$as_me: failed program was:" >&5
21439 sed 's/^/| /' conftest.$ac_ext >&5
21440
21441         ac_header_compiler=no
21442 fi
21443
21444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21446 echo "${ECHO_T}$ac_header_compiler" >&6; }
21447
21448 # Is the header present?
21449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21451 cat >conftest.$ac_ext <<_ACEOF
21452 /* confdefs.h.  */
21453 _ACEOF
21454 cat confdefs.h >>conftest.$ac_ext
21455 cat >>conftest.$ac_ext <<_ACEOF
21456 /* end confdefs.h.  */
21457 #include <$ac_header>
21458 _ACEOF
21459 if { (ac_try="$ac_cpp conftest.$ac_ext"
21460 case "(($ac_try" in
21461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462   *) ac_try_echo=$ac_try;;
21463 esac
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21466   ac_status=$?
21467   grep -v '^ *+' conftest.er1 >conftest.err
21468   rm -f conftest.er1
21469   cat conftest.err >&5
21470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471   (exit $ac_status); } >/dev/null && {
21472          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21473          test ! -s conftest.err
21474        }; then
21475   ac_header_preproc=yes
21476 else
21477   echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21479
21480   ac_header_preproc=no
21481 fi
21482
21483 rm -f conftest.err conftest.$ac_ext
21484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21485 echo "${ECHO_T}$ac_header_preproc" >&6; }
21486
21487 # So?  What about this header?
21488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21489   yes:no: )
21490     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21494     ac_header_preproc=yes
21495     ;;
21496   no:yes:* )
21497     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21499     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21500 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21501     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21503     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21504 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21507     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21509
21510     ;;
21511 esac
21512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21515   echo $ECHO_N "(cached) $ECHO_C" >&6
21516 else
21517   eval "$as_ac_Header=\$ac_header_preproc"
21518 fi
21519 ac_res=`eval echo '${'$as_ac_Header'}'`
21520                { echo "$as_me:$LINENO: result: $ac_res" >&5
21521 echo "${ECHO_T}$ac_res" >&6; }
21522
21523 fi
21524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21525   cat >>confdefs.h <<_ACEOF
21526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21527 _ACEOF
21528
21529 fi
21530
21531 done
21532
21533     fi
21534   fi
21535
21536
21537
21538 case "$host" in
21539 *-interix*)
21540         CFLAGS="$CFLAGS -D_ALL_SOURCE"
21541         ;;
21542 *-darwin*)
21543         CFLAGS="$CFLAGS -DDARWIN"
21544         LIBS="-framework DirectoryService $LIBS"
21545         ;;
21546 esac
21547
21548
21549
21550
21551
21552
21553 ac_header_dirent=no
21554 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21555   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21556 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21557 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21559   echo $ECHO_N "(cached) $ECHO_C" >&6
21560 else
21561   cat >conftest.$ac_ext <<_ACEOF
21562 /* confdefs.h.  */
21563 _ACEOF
21564 cat confdefs.h >>conftest.$ac_ext
21565 cat >>conftest.$ac_ext <<_ACEOF
21566 /* end confdefs.h.  */
21567 #include <sys/types.h>
21568 #include <$ac_hdr>
21569
21570 int
21571 main ()
21572 {
21573 if ((DIR *) 0)
21574 return 0;
21575   ;
21576   return 0;
21577 }
21578 _ACEOF
21579 rm -f conftest.$ac_objext
21580 if { (ac_try="$ac_compile"
21581 case "(($ac_try" in
21582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21583   *) ac_try_echo=$ac_try;;
21584 esac
21585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21586   (eval "$ac_compile") 2>conftest.er1
21587   ac_status=$?
21588   grep -v '^ *+' conftest.er1 >conftest.err
21589   rm -f conftest.er1
21590   cat conftest.err >&5
21591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592   (exit $ac_status); } && {
21593          test -z "$ac_c_werror_flag" ||
21594          test ! -s conftest.err
21595        } && test -s conftest.$ac_objext; then
21596   eval "$as_ac_Header=yes"
21597 else
21598   echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21600
21601         eval "$as_ac_Header=no"
21602 fi
21603
21604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21605 fi
21606 ac_res=`eval echo '${'$as_ac_Header'}'`
21607                { echo "$as_me:$LINENO: result: $ac_res" >&5
21608 echo "${ECHO_T}$ac_res" >&6; }
21609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21610   cat >>confdefs.h <<_ACEOF
21611 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21612 _ACEOF
21613
21614 ac_header_dirent=$ac_hdr; break
21615 fi
21616
21617 done
21618 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21619 if test $ac_header_dirent = dirent.h; then
21620   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21621 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21622 if test "${ac_cv_search_opendir+set}" = set; then
21623   echo $ECHO_N "(cached) $ECHO_C" >&6
21624 else
21625   ac_func_search_save_LIBS=$LIBS
21626 cat >conftest.$ac_ext <<_ACEOF
21627 /* confdefs.h.  */
21628 _ACEOF
21629 cat confdefs.h >>conftest.$ac_ext
21630 cat >>conftest.$ac_ext <<_ACEOF
21631 /* end confdefs.h.  */
21632
21633 /* Override any GCC internal prototype to avoid an error.
21634    Use char because int might match the return type of a GCC
21635    builtin and then its argument prototype would still apply.  */
21636 #ifdef __cplusplus
21637 extern "C"
21638 #endif
21639 char opendir ();
21640 int
21641 main ()
21642 {
21643 return opendir ();
21644   ;
21645   return 0;
21646 }
21647 _ACEOF
21648 for ac_lib in '' dir; do
21649   if test -z "$ac_lib"; then
21650     ac_res="none required"
21651   else
21652     ac_res=-l$ac_lib
21653     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21654   fi
21655   rm -f conftest.$ac_objext conftest$ac_exeext
21656 if { (ac_try="$ac_link"
21657 case "(($ac_try" in
21658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21659   *) ac_try_echo=$ac_try;;
21660 esac
21661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21662   (eval "$ac_link") 2>conftest.er1
21663   ac_status=$?
21664   grep -v '^ *+' conftest.er1 >conftest.err
21665   rm -f conftest.er1
21666   cat conftest.err >&5
21667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668   (exit $ac_status); } && {
21669          test -z "$ac_c_werror_flag" ||
21670          test ! -s conftest.err
21671        } && test -s conftest$ac_exeext &&
21672        $as_test_x conftest$ac_exeext; then
21673   ac_cv_search_opendir=$ac_res
21674 else
21675   echo "$as_me: failed program was:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21677
21678
21679 fi
21680
21681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21682       conftest$ac_exeext
21683   if test "${ac_cv_search_opendir+set}" = set; then
21684   break
21685 fi
21686 done
21687 if test "${ac_cv_search_opendir+set}" = set; then
21688   :
21689 else
21690   ac_cv_search_opendir=no
21691 fi
21692 rm conftest.$ac_ext
21693 LIBS=$ac_func_search_save_LIBS
21694 fi
21695 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21696 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21697 ac_res=$ac_cv_search_opendir
21698 if test "$ac_res" != no; then
21699   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21700
21701 fi
21702
21703 else
21704   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21705 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21706 if test "${ac_cv_search_opendir+set}" = set; then
21707   echo $ECHO_N "(cached) $ECHO_C" >&6
21708 else
21709   ac_func_search_save_LIBS=$LIBS
21710 cat >conftest.$ac_ext <<_ACEOF
21711 /* confdefs.h.  */
21712 _ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h.  */
21716
21717 /* Override any GCC internal prototype to avoid an error.
21718    Use char because int might match the return type of a GCC
21719    builtin and then its argument prototype would still apply.  */
21720 #ifdef __cplusplus
21721 extern "C"
21722 #endif
21723 char opendir ();
21724 int
21725 main ()
21726 {
21727 return opendir ();
21728   ;
21729   return 0;
21730 }
21731 _ACEOF
21732 for ac_lib in '' x; do
21733   if test -z "$ac_lib"; then
21734     ac_res="none required"
21735   else
21736     ac_res=-l$ac_lib
21737     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21738   fi
21739   rm -f conftest.$ac_objext conftest$ac_exeext
21740 if { (ac_try="$ac_link"
21741 case "(($ac_try" in
21742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21743   *) ac_try_echo=$ac_try;;
21744 esac
21745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21746   (eval "$ac_link") 2>conftest.er1
21747   ac_status=$?
21748   grep -v '^ *+' conftest.er1 >conftest.err
21749   rm -f conftest.er1
21750   cat conftest.err >&5
21751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752   (exit $ac_status); } && {
21753          test -z "$ac_c_werror_flag" ||
21754          test ! -s conftest.err
21755        } && test -s conftest$ac_exeext &&
21756        $as_test_x conftest$ac_exeext; then
21757   ac_cv_search_opendir=$ac_res
21758 else
21759   echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21761
21762
21763 fi
21764
21765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21766       conftest$ac_exeext
21767   if test "${ac_cv_search_opendir+set}" = set; then
21768   break
21769 fi
21770 done
21771 if test "${ac_cv_search_opendir+set}" = set; then
21772   :
21773 else
21774   ac_cv_search_opendir=no
21775 fi
21776 rm conftest.$ac_ext
21777 LIBS=$ac_func_search_save_LIBS
21778 fi
21779 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21780 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21781 ac_res=$ac_cv_search_opendir
21782 if test "$ac_res" != no; then
21783   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21784
21785 fi
21786
21787 fi
21788
21789 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21790 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21791 if test "${ac_cv_header_stdc+set}" = set; then
21792   echo $ECHO_N "(cached) $ECHO_C" >&6
21793 else
21794   cat >conftest.$ac_ext <<_ACEOF
21795 /* confdefs.h.  */
21796 _ACEOF
21797 cat confdefs.h >>conftest.$ac_ext
21798 cat >>conftest.$ac_ext <<_ACEOF
21799 /* end confdefs.h.  */
21800 #include <stdlib.h>
21801 #include <stdarg.h>
21802 #include <string.h>
21803 #include <float.h>
21804
21805 int
21806 main ()
21807 {
21808
21809   ;
21810   return 0;
21811 }
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_cv_header_stdc=yes
21831 else
21832   echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21834
21835         ac_cv_header_stdc=no
21836 fi
21837
21838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21839
21840 if test $ac_cv_header_stdc = yes; then
21841   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21842   cat >conftest.$ac_ext <<_ACEOF
21843 /* confdefs.h.  */
21844 _ACEOF
21845 cat confdefs.h >>conftest.$ac_ext
21846 cat >>conftest.$ac_ext <<_ACEOF
21847 /* end confdefs.h.  */
21848 #include <string.h>
21849
21850 _ACEOF
21851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21852   $EGREP "memchr" >/dev/null 2>&1; then
21853   :
21854 else
21855   ac_cv_header_stdc=no
21856 fi
21857 rm -f conftest*
21858
21859 fi
21860
21861 if test $ac_cv_header_stdc = yes; then
21862   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21863   cat >conftest.$ac_ext <<_ACEOF
21864 /* confdefs.h.  */
21865 _ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h.  */
21869 #include <stdlib.h>
21870
21871 _ACEOF
21872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21873   $EGREP "free" >/dev/null 2>&1; then
21874   :
21875 else
21876   ac_cv_header_stdc=no
21877 fi
21878 rm -f conftest*
21879
21880 fi
21881
21882 if test $ac_cv_header_stdc = yes; then
21883   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21884   if test "$cross_compiling" = yes; then
21885   :
21886 else
21887   cat >conftest.$ac_ext <<_ACEOF
21888 /* confdefs.h.  */
21889 _ACEOF
21890 cat confdefs.h >>conftest.$ac_ext
21891 cat >>conftest.$ac_ext <<_ACEOF
21892 /* end confdefs.h.  */
21893 #include <ctype.h>
21894 #include <stdlib.h>
21895 #if ((' ' & 0x0FF) == 0x020)
21896 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21897 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21898 #else
21899 # define ISLOWER(c) \
21900                    (('a' <= (c) && (c) <= 'i') \
21901                      || ('j' <= (c) && (c) <= 'r') \
21902                      || ('s' <= (c) && (c) <= 'z'))
21903 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21904 #endif
21905
21906 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21907 int
21908 main ()
21909 {
21910   int i;
21911   for (i = 0; i < 256; i++)
21912     if (XOR (islower (i), ISLOWER (i))
21913         || toupper (i) != TOUPPER (i))
21914       return 2;
21915   return 0;
21916 }
21917 _ACEOF
21918 rm -f conftest$ac_exeext
21919 if { (ac_try="$ac_link"
21920 case "(($ac_try" in
21921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922   *) ac_try_echo=$ac_try;;
21923 esac
21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925   (eval "$ac_link") 2>&5
21926   ac_status=$?
21927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21929   { (case "(($ac_try" in
21930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931   *) ac_try_echo=$ac_try;;
21932 esac
21933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21934   (eval "$ac_try") 2>&5
21935   ac_status=$?
21936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937   (exit $ac_status); }; }; then
21938   :
21939 else
21940   echo "$as_me: program exited with status $ac_status" >&5
21941 echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21943
21944 ( exit $ac_status )
21945 ac_cv_header_stdc=no
21946 fi
21947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21948 fi
21949
21950
21951 fi
21952 fi
21953 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21954 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21955 if test $ac_cv_header_stdc = yes; then
21956
21957 cat >>confdefs.h <<\_ACEOF
21958 #define STDC_HEADERS 1
21959 _ACEOF
21960
21961 fi
21962
21963 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21964 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21965 if test "${ac_cv_header_time+set}" = set; then
21966   echo $ECHO_N "(cached) $ECHO_C" >&6
21967 else
21968   cat >conftest.$ac_ext <<_ACEOF
21969 /* confdefs.h.  */
21970 _ACEOF
21971 cat confdefs.h >>conftest.$ac_ext
21972 cat >>conftest.$ac_ext <<_ACEOF
21973 /* end confdefs.h.  */
21974 #include <sys/types.h>
21975 #include <sys/time.h>
21976 #include <time.h>
21977
21978 int
21979 main ()
21980 {
21981 if ((struct tm *) 0)
21982 return 0;
21983   ;
21984   return 0;
21985 }
21986 _ACEOF
21987 rm -f conftest.$ac_objext
21988 if { (ac_try="$ac_compile"
21989 case "(($ac_try" in
21990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21991   *) ac_try_echo=$ac_try;;
21992 esac
21993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21994   (eval "$ac_compile") 2>conftest.er1
21995   ac_status=$?
21996   grep -v '^ *+' conftest.er1 >conftest.err
21997   rm -f conftest.er1
21998   cat conftest.err >&5
21999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000   (exit $ac_status); } && {
22001          test -z "$ac_c_werror_flag" ||
22002          test ! -s conftest.err
22003        } && test -s conftest.$ac_objext; then
22004   ac_cv_header_time=yes
22005 else
22006   echo "$as_me: failed program was:" >&5
22007 sed 's/^/| /' conftest.$ac_ext >&5
22008
22009         ac_cv_header_time=no
22010 fi
22011
22012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22013 fi
22014 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22015 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22016 if test $ac_cv_header_time = yes; then
22017
22018 cat >>confdefs.h <<\_ACEOF
22019 #define TIME_WITH_SYS_TIME 1
22020 _ACEOF
22021
22022 fi
22023
22024 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22025 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22026 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22027   echo $ECHO_N "(cached) $ECHO_C" >&6
22028 else
22029   cat >conftest.$ac_ext <<_ACEOF
22030 /* confdefs.h.  */
22031 _ACEOF
22032 cat confdefs.h >>conftest.$ac_ext
22033 cat >>conftest.$ac_ext <<_ACEOF
22034 /* end confdefs.h.  */
22035 #include <sys/types.h>
22036 #include <sys/wait.h>
22037 #ifndef WEXITSTATUS
22038 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22039 #endif
22040 #ifndef WIFEXITED
22041 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22042 #endif
22043
22044 int
22045 main ()
22046 {
22047   int s;
22048   wait (&s);
22049   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22050   ;
22051   return 0;
22052 }
22053 _ACEOF
22054 rm -f conftest.$ac_objext
22055 if { (ac_try="$ac_compile"
22056 case "(($ac_try" in
22057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058   *) ac_try_echo=$ac_try;;
22059 esac
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061   (eval "$ac_compile") 2>conftest.er1
22062   ac_status=$?
22063   grep -v '^ *+' conftest.er1 >conftest.err
22064   rm -f conftest.er1
22065   cat conftest.err >&5
22066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067   (exit $ac_status); } && {
22068          test -z "$ac_c_werror_flag" ||
22069          test ! -s conftest.err
22070        } && test -s conftest.$ac_objext; then
22071   ac_cv_header_sys_wait_h=yes
22072 else
22073   echo "$as_me: failed program was:" >&5
22074 sed 's/^/| /' conftest.$ac_ext >&5
22075
22076         ac_cv_header_sys_wait_h=no
22077 fi
22078
22079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22080 fi
22081 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22082 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22083 if test $ac_cv_header_sys_wait_h = yes; then
22084
22085 cat >>confdefs.h <<\_ACEOF
22086 #define HAVE_SYS_WAIT_H 1
22087 _ACEOF
22088
22089 fi
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127 for ac_header in \
22128         unistd.h \
22129         crypt.h \
22130         errno.h \
22131         resource.h \
22132         sys/resource.h \
22133         getopt.h \
22134         malloc.h \
22135         utmp.h \
22136         utmpx.h \
22137         signal.h \
22138         sys/select.h \
22139         syslog.h \
22140         inttypes.h \
22141         stdint.h \
22142         stdio.h \
22143         netdb.h \
22144         semaphore.h \
22145         arpa/inet.h \
22146         netinet/in.h \
22147         sys/types.h \
22148         sys/socket.h \
22149         winsock.h \
22150         sys/time.h \
22151         sys/wait.h \
22152         sys/security.h \
22153         fcntl.h \
22154         sys/fcntl.h \
22155         sys/prctl.h \
22156         sys/un.h \
22157         glob.h \
22158         prot.h \
22159         pwd.h \
22160         grp.h \
22161         sia.h \
22162         siad.h
22163
22164 do
22165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22167   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22170   echo $ECHO_N "(cached) $ECHO_C" >&6
22171 fi
22172 ac_res=`eval echo '${'$as_ac_Header'}'`
22173                { echo "$as_me:$LINENO: result: $ac_res" >&5
22174 echo "${ECHO_T}$ac_res" >&6; }
22175 else
22176   # Is the header compilable?
22177 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22179 cat >conftest.$ac_ext <<_ACEOF
22180 /* confdefs.h.  */
22181 _ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h.  */
22185 $ac_includes_default
22186 #include <$ac_header>
22187 _ACEOF
22188 rm -f conftest.$ac_objext
22189 if { (ac_try="$ac_compile"
22190 case "(($ac_try" in
22191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192   *) ac_try_echo=$ac_try;;
22193 esac
22194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22195   (eval "$ac_compile") 2>conftest.er1
22196   ac_status=$?
22197   grep -v '^ *+' conftest.er1 >conftest.err
22198   rm -f conftest.er1
22199   cat conftest.err >&5
22200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201   (exit $ac_status); } && {
22202          test -z "$ac_c_werror_flag" ||
22203          test ! -s conftest.err
22204        } && test -s conftest.$ac_objext; then
22205   ac_header_compiler=yes
22206 else
22207   echo "$as_me: failed program was:" >&5
22208 sed 's/^/| /' conftest.$ac_ext >&5
22209
22210         ac_header_compiler=no
22211 fi
22212
22213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22215 echo "${ECHO_T}$ac_header_compiler" >&6; }
22216
22217 # Is the header present?
22218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22220 cat >conftest.$ac_ext <<_ACEOF
22221 /* confdefs.h.  */
22222 _ACEOF
22223 cat confdefs.h >>conftest.$ac_ext
22224 cat >>conftest.$ac_ext <<_ACEOF
22225 /* end confdefs.h.  */
22226 #include <$ac_header>
22227 _ACEOF
22228 if { (ac_try="$ac_cpp conftest.$ac_ext"
22229 case "(($ac_try" in
22230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231   *) ac_try_echo=$ac_try;;
22232 esac
22233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22235   ac_status=$?
22236   grep -v '^ *+' conftest.er1 >conftest.err
22237   rm -f conftest.er1
22238   cat conftest.err >&5
22239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240   (exit $ac_status); } >/dev/null && {
22241          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22242          test ! -s conftest.err
22243        }; then
22244   ac_header_preproc=yes
22245 else
22246   echo "$as_me: failed program was:" >&5
22247 sed 's/^/| /' conftest.$ac_ext >&5
22248
22249   ac_header_preproc=no
22250 fi
22251
22252 rm -f conftest.err conftest.$ac_ext
22253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22254 echo "${ECHO_T}$ac_header_preproc" >&6; }
22255
22256 # So?  What about this header?
22257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22258   yes:no: )
22259     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22261     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22263     ac_header_preproc=yes
22264     ;;
22265   no:yes:* )
22266     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22268     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22269 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22270     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22272     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22273 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22274     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22276     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22278
22279     ;;
22280 esac
22281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22284   echo $ECHO_N "(cached) $ECHO_C" >&6
22285 else
22286   eval "$as_ac_Header=\$ac_header_preproc"
22287 fi
22288 ac_res=`eval echo '${'$as_ac_Header'}'`
22289                { echo "$as_me:$LINENO: result: $ac_res" >&5
22290 echo "${ECHO_T}$ac_res" >&6; }
22291
22292 fi
22293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22294   cat >>confdefs.h <<_ACEOF
22295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22296 _ACEOF
22297
22298 fi
22299
22300 done
22301
22302
22303
22304 for ac_header in net/if.h
22305 do
22306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22310   echo $ECHO_N "(cached) $ECHO_C" >&6
22311 else
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 #ifdef HAVE_SYS_SOCKET_H
22319 # include <sys/socket.h>
22320 # endif
22321
22322
22323 #include <$ac_header>
22324 _ACEOF
22325 rm -f conftest.$ac_objext
22326 if { (ac_try="$ac_compile"
22327 case "(($ac_try" in
22328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329   *) ac_try_echo=$ac_try;;
22330 esac
22331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22332   (eval "$ac_compile") 2>conftest.er1
22333   ac_status=$?
22334   grep -v '^ *+' conftest.er1 >conftest.err
22335   rm -f conftest.er1
22336   cat conftest.err >&5
22337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338   (exit $ac_status); } && {
22339          test -z "$ac_c_werror_flag" ||
22340          test ! -s conftest.err
22341        } && test -s conftest.$ac_objext; then
22342   eval "$as_ac_Header=yes"
22343 else
22344   echo "$as_me: failed program was:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22346
22347         eval "$as_ac_Header=no"
22348 fi
22349
22350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22351 fi
22352 ac_res=`eval echo '${'$as_ac_Header'}'`
22353                { echo "$as_me:$LINENO: result: $ac_res" >&5
22354 echo "${ECHO_T}$ac_res" >&6; }
22355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22356   cat >>confdefs.h <<_ACEOF
22357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22358 _ACEOF
22359
22360 fi
22361
22362 done
22363
22364
22365 REGEX=no
22366 if test "${ac_cv_header_regex_h+set}" = set; then
22367   { echo "$as_me:$LINENO: checking for regex.h" >&5
22368 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22369 if test "${ac_cv_header_regex_h+set}" = set; then
22370   echo $ECHO_N "(cached) $ECHO_C" >&6
22371 fi
22372 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22373 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22374 else
22375   # Is the header compilable?
22376 { echo "$as_me:$LINENO: checking regex.h usability" >&5
22377 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
22378 cat >conftest.$ac_ext <<_ACEOF
22379 /* confdefs.h.  */
22380 _ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h.  */
22384 $ac_includes_default
22385 #include <regex.h>
22386 _ACEOF
22387 rm -f conftest.$ac_objext
22388 if { (ac_try="$ac_compile"
22389 case "(($ac_try" in
22390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22391   *) ac_try_echo=$ac_try;;
22392 esac
22393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22394   (eval "$ac_compile") 2>conftest.er1
22395   ac_status=$?
22396   grep -v '^ *+' conftest.er1 >conftest.err
22397   rm -f conftest.er1
22398   cat conftest.err >&5
22399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400   (exit $ac_status); } && {
22401          test -z "$ac_c_werror_flag" ||
22402          test ! -s conftest.err
22403        } && test -s conftest.$ac_objext; then
22404   ac_header_compiler=yes
22405 else
22406   echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22408
22409         ac_header_compiler=no
22410 fi
22411
22412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22414 echo "${ECHO_T}$ac_header_compiler" >&6; }
22415
22416 # Is the header present?
22417 { echo "$as_me:$LINENO: checking regex.h presence" >&5
22418 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
22419 cat >conftest.$ac_ext <<_ACEOF
22420 /* confdefs.h.  */
22421 _ACEOF
22422 cat confdefs.h >>conftest.$ac_ext
22423 cat >>conftest.$ac_ext <<_ACEOF
22424 /* end confdefs.h.  */
22425 #include <regex.h>
22426 _ACEOF
22427 if { (ac_try="$ac_cpp conftest.$ac_ext"
22428 case "(($ac_try" in
22429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22430   *) ac_try_echo=$ac_try;;
22431 esac
22432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22433   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22434   ac_status=$?
22435   grep -v '^ *+' conftest.er1 >conftest.err
22436   rm -f conftest.er1
22437   cat conftest.err >&5
22438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439   (exit $ac_status); } >/dev/null && {
22440          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22441          test ! -s conftest.err
22442        }; then
22443   ac_header_preproc=yes
22444 else
22445   echo "$as_me: failed program was:" >&5
22446 sed 's/^/| /' conftest.$ac_ext >&5
22447
22448   ac_header_preproc=no
22449 fi
22450
22451 rm -f conftest.err conftest.$ac_ext
22452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22453 echo "${ECHO_T}$ac_header_preproc" >&6; }
22454
22455 # So?  What about this header?
22456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22457   yes:no: )
22458     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22459 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22460     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22461 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22462     ac_header_preproc=yes
22463     ;;
22464   no:yes:* )
22465     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22466 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
22467     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
22468 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
22469     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22470 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22471     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
22472 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22473     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22474 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
22475     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22476 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
22477
22478     ;;
22479 esac
22480 { echo "$as_me:$LINENO: checking for regex.h" >&5
22481 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22482 if test "${ac_cv_header_regex_h+set}" = set; then
22483   echo $ECHO_N "(cached) $ECHO_C" >&6
22484 else
22485   ac_cv_header_regex_h=$ac_header_preproc
22486 fi
22487 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22488 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22489
22490 fi
22491 if test $ac_cv_header_regex_h = yes; then
22492
22493 cat >>confdefs.h <<\_ACEOF
22494 #define HAVE_REGEX_H
22495 _ACEOF
22496
22497 fi
22498
22499
22500 if test "x$ac_cv_header_regex_h" = "xyes"; then
22501   REGEX_EXTENDED=no
22502   REGEX=yes
22503   cat >conftest.$ac_ext <<_ACEOF
22504 /* confdefs.h.  */
22505 _ACEOF
22506 cat confdefs.h >>conftest.$ac_ext
22507 cat >>conftest.$ac_ext <<_ACEOF
22508 /* end confdefs.h.  */
22509 #include <regex.h>
22510      #ifdef REG_EXTENDED
22511        yes
22512      #endif
22513
22514 _ACEOF
22515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22516   $EGREP "yes" >/dev/null 2>&1; then
22517
22518 cat >>confdefs.h <<\_ACEOF
22519 #define HAVE_REG_EXTENDED
22520 _ACEOF
22521  REGEX_EXTENDED=yes
22522 fi
22523 rm -f conftest*
22524
22525 fi
22526
22527
22528
22529 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
22530 then
22531
22532 cat >>confdefs.h <<\_ACEOF
22533 #define OSFC2
22534 _ACEOF
22535
22536 fi
22537
22538 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
22539 then
22540
22541 cat >>confdefs.h <<\_ACEOF
22542 #define OSFSIA
22543 _ACEOF
22544
22545 fi
22546
22547 OPENSSL_INCLUDE="-DNO_OPENSSL"
22548 if test "x$WITH_OPENSSL" = xyes; then
22549   if test "x$OPENSSL_LIBS" = "x"; then
22550     { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
22551 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
22552   else
22553     old_CPPFLAGS=$CPPFLAGS
22554     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22555         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
22556     fi
22557         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
22558
22559
22560
22561
22562
22563 for ac_header in \
22564         openssl/ssl.h \
22565         openssl/crypto.h \
22566         openssl/err.h \
22567         openssl/evp.h \
22568         openssl/engine.h
22569 do
22570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22572   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22575   echo $ECHO_N "(cached) $ECHO_C" >&6
22576 fi
22577 ac_res=`eval echo '${'$as_ac_Header'}'`
22578                { echo "$as_me:$LINENO: result: $ac_res" >&5
22579 echo "${ECHO_T}$ac_res" >&6; }
22580 else
22581   # Is the header compilable?
22582 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22584 cat >conftest.$ac_ext <<_ACEOF
22585 /* confdefs.h.  */
22586 _ACEOF
22587 cat confdefs.h >>conftest.$ac_ext
22588 cat >>conftest.$ac_ext <<_ACEOF
22589 /* end confdefs.h.  */
22590 $ac_includes_default
22591 #include <$ac_header>
22592 _ACEOF
22593 rm -f conftest.$ac_objext
22594 if { (ac_try="$ac_compile"
22595 case "(($ac_try" in
22596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22597   *) ac_try_echo=$ac_try;;
22598 esac
22599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22600   (eval "$ac_compile") 2>conftest.er1
22601   ac_status=$?
22602   grep -v '^ *+' conftest.er1 >conftest.err
22603   rm -f conftest.er1
22604   cat conftest.err >&5
22605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606   (exit $ac_status); } && {
22607          test -z "$ac_c_werror_flag" ||
22608          test ! -s conftest.err
22609        } && test -s conftest.$ac_objext; then
22610   ac_header_compiler=yes
22611 else
22612   echo "$as_me: failed program was:" >&5
22613 sed 's/^/| /' conftest.$ac_ext >&5
22614
22615         ac_header_compiler=no
22616 fi
22617
22618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22620 echo "${ECHO_T}$ac_header_compiler" >&6; }
22621
22622 # Is the header present?
22623 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22625 cat >conftest.$ac_ext <<_ACEOF
22626 /* confdefs.h.  */
22627 _ACEOF
22628 cat confdefs.h >>conftest.$ac_ext
22629 cat >>conftest.$ac_ext <<_ACEOF
22630 /* end confdefs.h.  */
22631 #include <$ac_header>
22632 _ACEOF
22633 if { (ac_try="$ac_cpp conftest.$ac_ext"
22634 case "(($ac_try" in
22635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22636   *) ac_try_echo=$ac_try;;
22637 esac
22638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22640   ac_status=$?
22641   grep -v '^ *+' conftest.er1 >conftest.err
22642   rm -f conftest.er1
22643   cat conftest.err >&5
22644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645   (exit $ac_status); } >/dev/null && {
22646          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22647          test ! -s conftest.err
22648        }; then
22649   ac_header_preproc=yes
22650 else
22651   echo "$as_me: failed program was:" >&5
22652 sed 's/^/| /' conftest.$ac_ext >&5
22653
22654   ac_header_preproc=no
22655 fi
22656
22657 rm -f conftest.err conftest.$ac_ext
22658 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22659 echo "${ECHO_T}$ac_header_preproc" >&6; }
22660
22661 # So?  What about this header?
22662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22663   yes:no: )
22664     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22666     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22667 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22668     ac_header_preproc=yes
22669     ;;
22670   no:yes:* )
22671     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22673     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22674 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22675     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22676 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22677     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22678 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22679     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22681     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22682 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22683
22684     ;;
22685 esac
22686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22689   echo $ECHO_N "(cached) $ECHO_C" >&6
22690 else
22691   eval "$as_ac_Header=\$ac_header_preproc"
22692 fi
22693 ac_res=`eval echo '${'$as_ac_Header'}'`
22694                { echo "$as_me:$LINENO: result: $ac_res" >&5
22695 echo "${ECHO_T}$ac_res" >&6; }
22696
22697 fi
22698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22699   cat >>confdefs.h <<_ACEOF
22700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22701 _ACEOF
22702
22703 else
22704   OPENSSL_LIBS=
22705
22706 fi
22707
22708 done
22709
22710     if test "x$OPENSSL_LIBS" != "x"; then
22711         { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22712 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
22713         cat >conftest.$ac_ext <<_ACEOF
22714 /* confdefs.h.  */
22715 _ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h.  */
22719 #include <openssl/crypto.h>
22720              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22721              yes
22722              #endif
22723
22724 _ACEOF
22725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22726   $EGREP "yes" >/dev/null 2>&1; then
22727   goodssl="yes"
22728 fi
22729 rm -f conftest*
22730
22731         if test "x$goodssl" != "xyes"; then
22732             { echo "$as_me:$LINENO: result: no" >&5
22733 echo "${ECHO_T}no" >&6; }
22734             OPENSSL_LIBS=
22735         else
22736             { echo "$as_me:$LINENO: result: yes" >&5
22737 echo "${ECHO_T}yes" >&6; }
22738             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22739                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
22740             else
22741                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
22742             fi
22743         fi
22744     fi
22745     CPPFLAGS=$old_CPPFLAGS
22746   fi
22747 fi
22748
22749
22750 export OPENSSL_LIBS
22751
22752 if test "x$PCAP_LIBS" = x; then
22753     { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
22754 echo "$as_me: skipping test for pcap.h." >&6;}
22755 else
22756     if test "${ac_cv_header_pcap_h+set}" = set; then
22757   { echo "$as_me:$LINENO: checking for pcap.h" >&5
22758 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22759 if test "${ac_cv_header_pcap_h+set}" = set; then
22760   echo $ECHO_N "(cached) $ECHO_C" >&6
22761 fi
22762 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22763 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22764 else
22765   # Is the header compilable?
22766 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
22767 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
22768 cat >conftest.$ac_ext <<_ACEOF
22769 /* confdefs.h.  */
22770 _ACEOF
22771 cat confdefs.h >>conftest.$ac_ext
22772 cat >>conftest.$ac_ext <<_ACEOF
22773 /* end confdefs.h.  */
22774 $ac_includes_default
22775 #include <pcap.h>
22776 _ACEOF
22777 rm -f conftest.$ac_objext
22778 if { (ac_try="$ac_compile"
22779 case "(($ac_try" in
22780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22781   *) ac_try_echo=$ac_try;;
22782 esac
22783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22784   (eval "$ac_compile") 2>conftest.er1
22785   ac_status=$?
22786   grep -v '^ *+' conftest.er1 >conftest.err
22787   rm -f conftest.er1
22788   cat conftest.err >&5
22789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790   (exit $ac_status); } && {
22791          test -z "$ac_c_werror_flag" ||
22792          test ! -s conftest.err
22793        } && test -s conftest.$ac_objext; then
22794   ac_header_compiler=yes
22795 else
22796   echo "$as_me: failed program was:" >&5
22797 sed 's/^/| /' conftest.$ac_ext >&5
22798
22799         ac_header_compiler=no
22800 fi
22801
22802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22804 echo "${ECHO_T}$ac_header_compiler" >&6; }
22805
22806 # Is the header present?
22807 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
22808 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
22809 cat >conftest.$ac_ext <<_ACEOF
22810 /* confdefs.h.  */
22811 _ACEOF
22812 cat confdefs.h >>conftest.$ac_ext
22813 cat >>conftest.$ac_ext <<_ACEOF
22814 /* end confdefs.h.  */
22815 #include <pcap.h>
22816 _ACEOF
22817 if { (ac_try="$ac_cpp conftest.$ac_ext"
22818 case "(($ac_try" in
22819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22820   *) ac_try_echo=$ac_try;;
22821 esac
22822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22823   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22824   ac_status=$?
22825   grep -v '^ *+' conftest.er1 >conftest.err
22826   rm -f conftest.er1
22827   cat conftest.err >&5
22828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829   (exit $ac_status); } >/dev/null && {
22830          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22831          test ! -s conftest.err
22832        }; then
22833   ac_header_preproc=yes
22834 else
22835   echo "$as_me: failed program was:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22837
22838   ac_header_preproc=no
22839 fi
22840
22841 rm -f conftest.err conftest.$ac_ext
22842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22843 echo "${ECHO_T}$ac_header_preproc" >&6; }
22844
22845 # So?  What about this header?
22846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22847   yes:no: )
22848     { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
22849 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22850     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
22851 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
22852     ac_header_preproc=yes
22853     ;;
22854   no:yes:* )
22855     { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
22856 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
22857     { echo "$as_me:$LINENO: WARNING: pcap.h:     check for missing prerequisite headers?" >&5
22858 echo "$as_me: WARNING: pcap.h:     check for missing prerequisite headers?" >&2;}
22859     { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
22860 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
22861     { echo "$as_me:$LINENO: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&5
22862 echo "$as_me: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22863     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
22864 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
22865     { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
22866 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
22867
22868     ;;
22869 esac
22870 { echo "$as_me:$LINENO: checking for pcap.h" >&5
22871 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22872 if test "${ac_cv_header_pcap_h+set}" = set; then
22873   echo $ECHO_N "(cached) $ECHO_C" >&6
22874 else
22875   ac_cv_header_pcap_h=$ac_header_preproc
22876 fi
22877 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22878 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22879
22880 fi
22881 if test $ac_cv_header_pcap_h = yes; then
22882
22883 cat >>confdefs.h <<\_ACEOF
22884 #define HAVE_PCAP_H 1
22885 _ACEOF
22886
22887 else
22888    PCAP_LIBS=
22889         { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
22890 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
22891
22892 fi
22893
22894
22895 fi
22896
22897
22898
22899 { echo "$as_me:$LINENO: checking for off_t" >&5
22900 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22901 if test "${ac_cv_type_off_t+set}" = set; then
22902   echo $ECHO_N "(cached) $ECHO_C" >&6
22903 else
22904   cat >conftest.$ac_ext <<_ACEOF
22905 /* confdefs.h.  */
22906 _ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h.  */
22910 $ac_includes_default
22911 typedef off_t ac__type_new_;
22912 int
22913 main ()
22914 {
22915 if ((ac__type_new_ *) 0)
22916   return 0;
22917 if (sizeof (ac__type_new_))
22918   return 0;
22919   ;
22920   return 0;
22921 }
22922 _ACEOF
22923 rm -f conftest.$ac_objext
22924 if { (ac_try="$ac_compile"
22925 case "(($ac_try" in
22926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22927   *) ac_try_echo=$ac_try;;
22928 esac
22929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22930   (eval "$ac_compile") 2>conftest.er1
22931   ac_status=$?
22932   grep -v '^ *+' conftest.er1 >conftest.err
22933   rm -f conftest.er1
22934   cat conftest.err >&5
22935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936   (exit $ac_status); } && {
22937          test -z "$ac_c_werror_flag" ||
22938          test ! -s conftest.err
22939        } && test -s conftest.$ac_objext; then
22940   ac_cv_type_off_t=yes
22941 else
22942   echo "$as_me: failed program was:" >&5
22943 sed 's/^/| /' conftest.$ac_ext >&5
22944
22945         ac_cv_type_off_t=no
22946 fi
22947
22948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22949 fi
22950 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22951 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22952 if test $ac_cv_type_off_t = yes; then
22953   :
22954 else
22955
22956 cat >>confdefs.h <<_ACEOF
22957 #define off_t long int
22958 _ACEOF
22959
22960 fi
22961
22962 { echo "$as_me:$LINENO: checking for pid_t" >&5
22963 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22964 if test "${ac_cv_type_pid_t+set}" = set; then
22965   echo $ECHO_N "(cached) $ECHO_C" >&6
22966 else
22967   cat >conftest.$ac_ext <<_ACEOF
22968 /* confdefs.h.  */
22969 _ACEOF
22970 cat confdefs.h >>conftest.$ac_ext
22971 cat >>conftest.$ac_ext <<_ACEOF
22972 /* end confdefs.h.  */
22973 $ac_includes_default
22974 typedef pid_t ac__type_new_;
22975 int
22976 main ()
22977 {
22978 if ((ac__type_new_ *) 0)
22979   return 0;
22980 if (sizeof (ac__type_new_))
22981   return 0;
22982   ;
22983   return 0;
22984 }
22985 _ACEOF
22986 rm -f conftest.$ac_objext
22987 if { (ac_try="$ac_compile"
22988 case "(($ac_try" in
22989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22990   *) ac_try_echo=$ac_try;;
22991 esac
22992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22993   (eval "$ac_compile") 2>conftest.er1
22994   ac_status=$?
22995   grep -v '^ *+' conftest.er1 >conftest.err
22996   rm -f conftest.er1
22997   cat conftest.err >&5
22998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22999   (exit $ac_status); } && {
23000          test -z "$ac_c_werror_flag" ||
23001          test ! -s conftest.err
23002        } && test -s conftest.$ac_objext; then
23003   ac_cv_type_pid_t=yes
23004 else
23005   echo "$as_me: failed program was:" >&5
23006 sed 's/^/| /' conftest.$ac_ext >&5
23007
23008         ac_cv_type_pid_t=no
23009 fi
23010
23011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23012 fi
23013 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23014 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23015 if test $ac_cv_type_pid_t = yes; then
23016   :
23017 else
23018
23019 cat >>confdefs.h <<_ACEOF
23020 #define pid_t int
23021 _ACEOF
23022
23023 fi
23024
23025 { echo "$as_me:$LINENO: checking for size_t" >&5
23026 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23027 if test "${ac_cv_type_size_t+set}" = set; then
23028   echo $ECHO_N "(cached) $ECHO_C" >&6
23029 else
23030   cat >conftest.$ac_ext <<_ACEOF
23031 /* confdefs.h.  */
23032 _ACEOF
23033 cat confdefs.h >>conftest.$ac_ext
23034 cat >>conftest.$ac_ext <<_ACEOF
23035 /* end confdefs.h.  */
23036 $ac_includes_default
23037 typedef size_t ac__type_new_;
23038 int
23039 main ()
23040 {
23041 if ((ac__type_new_ *) 0)
23042   return 0;
23043 if (sizeof (ac__type_new_))
23044   return 0;
23045   ;
23046   return 0;
23047 }
23048 _ACEOF
23049 rm -f conftest.$ac_objext
23050 if { (ac_try="$ac_compile"
23051 case "(($ac_try" in
23052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23053   *) ac_try_echo=$ac_try;;
23054 esac
23055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23056   (eval "$ac_compile") 2>conftest.er1
23057   ac_status=$?
23058   grep -v '^ *+' conftest.er1 >conftest.err
23059   rm -f conftest.er1
23060   cat conftest.err >&5
23061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062   (exit $ac_status); } && {
23063          test -z "$ac_c_werror_flag" ||
23064          test ! -s conftest.err
23065        } && test -s conftest.$ac_objext; then
23066   ac_cv_type_size_t=yes
23067 else
23068   echo "$as_me: failed program was:" >&5
23069 sed 's/^/| /' conftest.$ac_ext >&5
23070
23071         ac_cv_type_size_t=no
23072 fi
23073
23074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23075 fi
23076 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23077 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23078 if test $ac_cv_type_size_t = yes; then
23079   :
23080 else
23081
23082 cat >>confdefs.h <<_ACEOF
23083 #define size_t unsigned int
23084 _ACEOF
23085
23086 fi
23087
23088 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23089 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23090 if test "${ac_cv_type_uid_t+set}" = set; then
23091   echo $ECHO_N "(cached) $ECHO_C" >&6
23092 else
23093   cat >conftest.$ac_ext <<_ACEOF
23094 /* confdefs.h.  */
23095 _ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h.  */
23099 #include <sys/types.h>
23100
23101 _ACEOF
23102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23103   $EGREP "uid_t" >/dev/null 2>&1; then
23104   ac_cv_type_uid_t=yes
23105 else
23106   ac_cv_type_uid_t=no
23107 fi
23108 rm -f conftest*
23109
23110 fi
23111 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23112 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23113 if test $ac_cv_type_uid_t = no; then
23114
23115 cat >>confdefs.h <<\_ACEOF
23116 #define uid_t int
23117 _ACEOF
23118
23119
23120 cat >>confdefs.h <<\_ACEOF
23121 #define gid_t int
23122 _ACEOF
23123
23124 fi
23125
23126
23127
23128   { echo "$as_me:$LINENO: checking for socklen_t" >&5
23129 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23130 if test "${ac_cv_type_socklen_t+set}" = set; then
23131   echo $ECHO_N "(cached) $ECHO_C" >&6
23132 else
23133    ac_cv_type_socklen_t=no
23134       cat >conftest.$ac_ext <<_ACEOF
23135 /* confdefs.h.  */
23136 _ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h.  */
23140 #ifdef HAVE_SYS_TYPES_H
23141 #include <sys/types.h>
23142 #endif
23143 #ifdef HAVE_SYS_SOCKET_H
23144 #include <sys/socket.h>
23145 #endif
23146
23147 int
23148 main ()
23149 {
23150 socklen_t foo
23151   ;
23152   return 0;
23153 }
23154 _ACEOF
23155 rm -f conftest.$ac_objext
23156 if { (ac_try="$ac_compile"
23157 case "(($ac_try" in
23158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23159   *) ac_try_echo=$ac_try;;
23160 esac
23161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23162   (eval "$ac_compile") 2>conftest.er1
23163   ac_status=$?
23164   grep -v '^ *+' conftest.er1 >conftest.err
23165   rm -f conftest.er1
23166   cat conftest.err >&5
23167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168   (exit $ac_status); } && {
23169          test -z "$ac_c_werror_flag" ||
23170          test ! -s conftest.err
23171        } && test -s conftest.$ac_objext; then
23172   ac_cv_type_socklen_t=yes
23173 else
23174   echo "$as_me: failed program was:" >&5
23175 sed 's/^/| /' conftest.$ac_ext >&5
23176
23177
23178 fi
23179
23180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23181
23182
23183 fi
23184 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23185 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23186
23187   if test "$ac_cv_type_socklen_t" != "yes"; then
23188
23189 cat >>confdefs.h <<\_ACEOF
23190 #define socklen_t int
23191 _ACEOF
23192
23193   fi
23194
23195
23196
23197   { echo "$as_me:$LINENO: checking for uint8_t" >&5
23198 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23199 if test "${ac_cv_type_uint8_t+set}" = set; then
23200   echo $ECHO_N "(cached) $ECHO_C" >&6
23201 else
23202    ac_cv_type_uint8_t=no
23203       cat >conftest.$ac_ext <<_ACEOF
23204 /* confdefs.h.  */
23205 _ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h.  */
23209 #ifdef HAVE_INTTYPES_H
23210 #include <inttypes.h>
23211 #endif
23212 #ifdef HAVE_STDINT_H
23213 #include <stdint.h>
23214 #endif
23215
23216 int
23217 main ()
23218 {
23219 uint8_t foo
23220   ;
23221   return 0;
23222 }
23223 _ACEOF
23224 rm -f conftest.$ac_objext
23225 if { (ac_try="$ac_compile"
23226 case "(($ac_try" in
23227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23228   *) ac_try_echo=$ac_try;;
23229 esac
23230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23231   (eval "$ac_compile") 2>conftest.er1
23232   ac_status=$?
23233   grep -v '^ *+' conftest.er1 >conftest.err
23234   rm -f conftest.er1
23235   cat conftest.err >&5
23236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237   (exit $ac_status); } && {
23238          test -z "$ac_c_werror_flag" ||
23239          test ! -s conftest.err
23240        } && test -s conftest.$ac_objext; then
23241   ac_cv_type_uint8_t=yes
23242 else
23243   echo "$as_me: failed program was:" >&5
23244 sed 's/^/| /' conftest.$ac_ext >&5
23245
23246
23247 fi
23248
23249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23250
23251
23252 fi
23253 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23254 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23255
23256   if test "$ac_cv_type_uint8_t" != "yes"; then
23257
23258 cat >>confdefs.h <<\_ACEOF
23259 #define uint8_t unsigned char
23260 _ACEOF
23261
23262   fi
23263
23264
23265
23266   { echo "$as_me:$LINENO: checking for uint16_t" >&5
23267 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
23268 if test "${ac_cv_type_uint16_t+set}" = set; then
23269   echo $ECHO_N "(cached) $ECHO_C" >&6
23270 else
23271    ac_cv_type_uint16_t=no
23272       cat >conftest.$ac_ext <<_ACEOF
23273 /* confdefs.h.  */
23274 _ACEOF
23275 cat confdefs.h >>conftest.$ac_ext
23276 cat >>conftest.$ac_ext <<_ACEOF
23277 /* end confdefs.h.  */
23278 #ifdef HAVE_INTTYPES_H
23279 #include <inttypes.h>
23280 #endif
23281 #ifdef HAVE_STDINT_H
23282 #include <stdint.h>
23283 #endif
23284
23285 int
23286 main ()
23287 {
23288 uint16_t foo
23289   ;
23290   return 0;
23291 }
23292 _ACEOF
23293 rm -f conftest.$ac_objext
23294 if { (ac_try="$ac_compile"
23295 case "(($ac_try" in
23296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23297   *) ac_try_echo=$ac_try;;
23298 esac
23299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23300   (eval "$ac_compile") 2>conftest.er1
23301   ac_status=$?
23302   grep -v '^ *+' conftest.er1 >conftest.err
23303   rm -f conftest.er1
23304   cat conftest.err >&5
23305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306   (exit $ac_status); } && {
23307          test -z "$ac_c_werror_flag" ||
23308          test ! -s conftest.err
23309        } && test -s conftest.$ac_objext; then
23310   ac_cv_type_uint16_t=yes
23311 else
23312   echo "$as_me: failed program was:" >&5
23313 sed 's/^/| /' conftest.$ac_ext >&5
23314
23315
23316 fi
23317
23318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23319
23320
23321 fi
23322 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
23323 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
23324
23325   if test "$ac_cv_type_uint16_t" != "yes"; then
23326
23327 cat >>confdefs.h <<\_ACEOF
23328 #define uint16_t unsigned short
23329 _ACEOF
23330
23331   fi
23332
23333
23334
23335   { echo "$as_me:$LINENO: checking for uint32_t" >&5
23336 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
23337 if test "${ac_cv_type_uint32_t+set}" = set; then
23338   echo $ECHO_N "(cached) $ECHO_C" >&6
23339 else
23340    ac_cv_type_uint32_t=no
23341       cat >conftest.$ac_ext <<_ACEOF
23342 /* confdefs.h.  */
23343 _ACEOF
23344 cat confdefs.h >>conftest.$ac_ext
23345 cat >>conftest.$ac_ext <<_ACEOF
23346 /* end confdefs.h.  */
23347 #ifdef HAVE_INTTYPES_H
23348 #include <inttypes.h>
23349 #endif
23350 #ifdef HAVE_STDINT_H
23351 #include <stdint.h>
23352 #endif
23353
23354 int
23355 main ()
23356 {
23357 uint32_t foo
23358   ;
23359   return 0;
23360 }
23361 _ACEOF
23362 rm -f conftest.$ac_objext
23363 if { (ac_try="$ac_compile"
23364 case "(($ac_try" in
23365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366   *) ac_try_echo=$ac_try;;
23367 esac
23368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23369   (eval "$ac_compile") 2>conftest.er1
23370   ac_status=$?
23371   grep -v '^ *+' conftest.er1 >conftest.err
23372   rm -f conftest.er1
23373   cat conftest.err >&5
23374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375   (exit $ac_status); } && {
23376          test -z "$ac_c_werror_flag" ||
23377          test ! -s conftest.err
23378        } && test -s conftest.$ac_objext; then
23379   ac_cv_type_uint32_t=yes
23380 else
23381   echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23383
23384
23385 fi
23386
23387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23388
23389
23390 fi
23391 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
23392 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
23393
23394   if test "$ac_cv_type_uint32_t" != "yes"; then
23395
23396 cat >>confdefs.h <<\_ACEOF
23397 #define uint32_t unsigned int
23398 _ACEOF
23399
23400   fi
23401
23402
23403 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
23404 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
23405 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
23406   echo $ECHO_N "(cached) $ECHO_C" >&6
23407 else
23408   cat >conftest.$ac_ext <<_ACEOF
23409 /* confdefs.h.  */
23410 _ACEOF
23411 cat confdefs.h >>conftest.$ac_ext
23412 cat >>conftest.$ac_ext <<_ACEOF
23413 /* end confdefs.h.  */
23414
23415 #ifdef HAVE_NETINET_IN_H
23416 #include <netinet/in.h>
23417 #endif
23418
23419
23420 typedef struct in6_addr ac__type_new_;
23421 int
23422 main ()
23423 {
23424 if ((ac__type_new_ *) 0)
23425   return 0;
23426 if (sizeof (ac__type_new_))
23427   return 0;
23428   ;
23429   return 0;
23430 }
23431 _ACEOF
23432 rm -f conftest.$ac_objext
23433 if { (ac_try="$ac_compile"
23434 case "(($ac_try" in
23435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23436   *) ac_try_echo=$ac_try;;
23437 esac
23438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23439   (eval "$ac_compile") 2>conftest.er1
23440   ac_status=$?
23441   grep -v '^ *+' conftest.er1 >conftest.err
23442   rm -f conftest.er1
23443   cat conftest.err >&5
23444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445   (exit $ac_status); } && {
23446          test -z "$ac_c_werror_flag" ||
23447          test ! -s conftest.err
23448        } && test -s conftest.$ac_objext; then
23449   ac_cv_type_struct_in6_addr=yes
23450 else
23451   echo "$as_me: failed program was:" >&5
23452 sed 's/^/| /' conftest.$ac_ext >&5
23453
23454         ac_cv_type_struct_in6_addr=no
23455 fi
23456
23457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23458 fi
23459 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
23460 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
23461 if test $ac_cv_type_struct_in6_addr = yes; then
23462
23463 cat >>confdefs.h <<\_ACEOF
23464 #define HAVE_STRUCT_IN6_ADDR 1
23465 _ACEOF
23466
23467 fi
23468
23469
23470 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23471 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
23472 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
23473   echo $ECHO_N "(cached) $ECHO_C" >&6
23474 else
23475   cat >conftest.$ac_ext <<_ACEOF
23476 /* confdefs.h.  */
23477 _ACEOF
23478 cat confdefs.h >>conftest.$ac_ext
23479 cat >>conftest.$ac_ext <<_ACEOF
23480 /* end confdefs.h.  */
23481
23482 #ifdef HAVE_NETINET_IN_H
23483 #include <netinet/in.h>
23484 #endif
23485 #ifdef HAVE_SYS_SOCKET_H
23486 #include <sys/socket.h>
23487 #endif
23488
23489
23490 typedef struct sockaddr_storage ac__type_new_;
23491 int
23492 main ()
23493 {
23494 if ((ac__type_new_ *) 0)
23495   return 0;
23496 if (sizeof (ac__type_new_))
23497   return 0;
23498   ;
23499   return 0;
23500 }
23501 _ACEOF
23502 rm -f conftest.$ac_objext
23503 if { (ac_try="$ac_compile"
23504 case "(($ac_try" in
23505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23506   *) ac_try_echo=$ac_try;;
23507 esac
23508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23509   (eval "$ac_compile") 2>conftest.er1
23510   ac_status=$?
23511   grep -v '^ *+' conftest.er1 >conftest.err
23512   rm -f conftest.er1
23513   cat conftest.err >&5
23514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515   (exit $ac_status); } && {
23516          test -z "$ac_c_werror_flag" ||
23517          test ! -s conftest.err
23518        } && test -s conftest.$ac_objext; then
23519   ac_cv_type_struct_sockaddr_storage=yes
23520 else
23521   echo "$as_me: failed program was:" >&5
23522 sed 's/^/| /' conftest.$ac_ext >&5
23523
23524         ac_cv_type_struct_sockaddr_storage=no
23525 fi
23526
23527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23528 fi
23529 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
23530 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
23531 if test $ac_cv_type_struct_sockaddr_storage = yes; then
23532
23533 cat >>confdefs.h <<\_ACEOF
23534 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
23535 _ACEOF
23536
23537 fi
23538
23539
23540 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23541 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
23542 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
23543   echo $ECHO_N "(cached) $ECHO_C" >&6
23544 else
23545   cat >conftest.$ac_ext <<_ACEOF
23546 /* confdefs.h.  */
23547 _ACEOF
23548 cat confdefs.h >>conftest.$ac_ext
23549 cat >>conftest.$ac_ext <<_ACEOF
23550 /* end confdefs.h.  */
23551
23552 #ifdef HAVE_NETINET_IN_H
23553 #include <netinet/in.h>
23554 #endif
23555
23556
23557 typedef struct sockaddr_in6 ac__type_new_;
23558 int
23559 main ()
23560 {
23561 if ((ac__type_new_ *) 0)
23562   return 0;
23563 if (sizeof (ac__type_new_))
23564   return 0;
23565   ;
23566   return 0;
23567 }
23568 _ACEOF
23569 rm -f conftest.$ac_objext
23570 if { (ac_try="$ac_compile"
23571 case "(($ac_try" in
23572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23573   *) ac_try_echo=$ac_try;;
23574 esac
23575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23576   (eval "$ac_compile") 2>conftest.er1
23577   ac_status=$?
23578   grep -v '^ *+' conftest.er1 >conftest.err
23579   rm -f conftest.er1
23580   cat conftest.err >&5
23581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582   (exit $ac_status); } && {
23583          test -z "$ac_c_werror_flag" ||
23584          test ! -s conftest.err
23585        } && test -s conftest.$ac_objext; then
23586   ac_cv_type_struct_sockaddr_in6=yes
23587 else
23588   echo "$as_me: failed program was:" >&5
23589 sed 's/^/| /' conftest.$ac_ext >&5
23590
23591         ac_cv_type_struct_sockaddr_in6=no
23592 fi
23593
23594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23595 fi
23596 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23597 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
23598 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
23599
23600 cat >>confdefs.h <<\_ACEOF
23601 #define HAVE_STRUCT_SOCKADDR_IN6 1
23602 _ACEOF
23603
23604 fi
23605
23606
23607 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23608 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
23609 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
23610   echo $ECHO_N "(cached) $ECHO_C" >&6
23611 else
23612   cat >conftest.$ac_ext <<_ACEOF
23613 /* confdefs.h.  */
23614 _ACEOF
23615 cat confdefs.h >>conftest.$ac_ext
23616 cat >>conftest.$ac_ext <<_ACEOF
23617 /* end confdefs.h.  */
23618
23619 #ifdef HAVE_SYS_TYPES_H
23620 #include <sys/types.h>
23621 #endif
23622 #ifdef HAVE_SYS_SOCKET_H
23623 #include <sys/socket.h>
23624 #endif
23625 #ifdef HAVE_NETDB_H
23626 #include <netdb.h>
23627 #endif
23628
23629
23630 typedef struct addrinfo ac__type_new_;
23631 int
23632 main ()
23633 {
23634 if ((ac__type_new_ *) 0)
23635   return 0;
23636 if (sizeof (ac__type_new_))
23637   return 0;
23638   ;
23639   return 0;
23640 }
23641 _ACEOF
23642 rm -f conftest.$ac_objext
23643 if { (ac_try="$ac_compile"
23644 case "(($ac_try" in
23645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23646   *) ac_try_echo=$ac_try;;
23647 esac
23648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23649   (eval "$ac_compile") 2>conftest.er1
23650   ac_status=$?
23651   grep -v '^ *+' conftest.er1 >conftest.err
23652   rm -f conftest.er1
23653   cat conftest.err >&5
23654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655   (exit $ac_status); } && {
23656          test -z "$ac_c_werror_flag" ||
23657          test ! -s conftest.err
23658        } && test -s conftest.$ac_objext; then
23659   ac_cv_type_struct_addrinfo=yes
23660 else
23661   echo "$as_me: failed program was:" >&5
23662 sed 's/^/| /' conftest.$ac_ext >&5
23663
23664         ac_cv_type_struct_addrinfo=no
23665 fi
23666
23667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23668 fi
23669 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
23670 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
23671 if test $ac_cv_type_struct_addrinfo = yes; then
23672
23673 cat >>confdefs.h <<\_ACEOF
23674 #define HAVE_STRUCT_ADDRINFO 1
23675 _ACEOF
23676
23677 fi
23678
23679
23680
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690
23691
23692
23693
23694
23695
23696
23697
23698
23699
23700
23701
23702
23703
23704
23705
23706
23707
23708
23709 for ac_func in \
23710         getopt_long \
23711         lockf \
23712         strsignal \
23713         sigaction \
23714         sigprocmask \
23715         pthread_sigmask \
23716         snprintf \
23717         vsnprintf \
23718         setsid \
23719         strncasecmp \
23720         strcasecmp \
23721         localtime_r \
23722         ctime_r \
23723         gmtime_r \
23724         strsep \
23725         inet_aton \
23726         inet_pton \
23727         inet_ntop \
23728         setlinebuf \
23729         setvbuf \
23730         getusershell \
23731         initgroups \
23732         getaddrinfo \
23733         getnameinfo \
23734         closefrom \
23735         gettimeofday \
23736         getpeereid \
23737         strlcat \
23738         strlcpy
23739
23740 do
23741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23745   echo $ECHO_N "(cached) $ECHO_C" >&6
23746 else
23747   cat >conftest.$ac_ext <<_ACEOF
23748 /* confdefs.h.  */
23749 _ACEOF
23750 cat confdefs.h >>conftest.$ac_ext
23751 cat >>conftest.$ac_ext <<_ACEOF
23752 /* end confdefs.h.  */
23753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23755 #define $ac_func innocuous_$ac_func
23756
23757 /* System header to define __stub macros and hopefully few prototypes,
23758     which can conflict with char $ac_func (); below.
23759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23760     <limits.h> exists even on freestanding compilers.  */
23761
23762 #ifdef __STDC__
23763 # include <limits.h>
23764 #else
23765 # include <assert.h>
23766 #endif
23767
23768 #undef $ac_func
23769
23770 /* Override any GCC internal prototype to avoid an error.
23771    Use char because int might match the return type of a GCC
23772    builtin and then its argument prototype would still apply.  */
23773 #ifdef __cplusplus
23774 extern "C"
23775 #endif
23776 char $ac_func ();
23777 /* The GNU C library defines this for functions which it implements
23778     to always fail with ENOSYS.  Some functions are actually named
23779     something starting with __ and the normal name is an alias.  */
23780 #if defined __stub_$ac_func || defined __stub___$ac_func
23781 choke me
23782 #endif
23783
23784 int
23785 main ()
23786 {
23787 return $ac_func ();
23788   ;
23789   return 0;
23790 }
23791 _ACEOF
23792 rm -f conftest.$ac_objext conftest$ac_exeext
23793 if { (ac_try="$ac_link"
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_link") 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_exeext &&
23809        $as_test_x conftest$ac_exeext; then
23810   eval "$as_ac_var=yes"
23811 else
23812   echo "$as_me: failed program was:" >&5
23813 sed 's/^/| /' conftest.$ac_ext >&5
23814
23815         eval "$as_ac_var=no"
23816 fi
23817
23818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23819       conftest$ac_exeext conftest.$ac_ext
23820 fi
23821 ac_res=`eval echo '${'$as_ac_var'}'`
23822                { echo "$as_me:$LINENO: result: $ac_res" >&5
23823 echo "${ECHO_T}$ac_res" >&6; }
23824 if test `eval echo '${'$as_ac_var'}'` = yes; then
23825   cat >>confdefs.h <<_ACEOF
23826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23827 _ACEOF
23828
23829 fi
23830 done
23831
23832 for ac_func in \
23833         crypt \
23834         strncasecmp \
23835         strcasecmp \
23836         inet_aton \
23837         setlinebuf \
23838         getusershell \
23839         endusershell
23840
23841 do
23842 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23843 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
23844 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
23845   echo $ECHO_N "(cached) $ECHO_C" >&6
23846 else
23847   cat >conftest.$ac_ext <<_ACEOF
23848 /* confdefs.h.  */
23849 _ACEOF
23850 cat confdefs.h >>conftest.$ac_ext
23851 cat >>conftest.$ac_ext <<_ACEOF
23852 /* end confdefs.h.  */
23853
23854 #include <stdio.h>
23855 #include <string.h>
23856 #ifdef HAVE_UNISTD_H
23857 #include <unistd.h>
23858 #endif
23859 #ifdef HAVE_CRYPT_H
23860 #include <crypt.h>
23861 #endif
23862 #ifdef HAVE_ERRNO_H
23863 #include <errno.h>
23864 #endif
23865 #ifdef HAVE_RESOURCE_H
23866 #include <resource.h>
23867 #endif
23868 #ifdef HAVE_GETOPT_H
23869 #include <getopt.h>
23870 #endif
23871 #ifdef HAVE_MALLOC_H
23872 #include <malloc.h>
23873 #endif
23874 #ifdef HAVE_UTMP_H
23875 #include <utmp.h>
23876 #endif
23877 #ifdef HAVE_UTMPX_H
23878 #include <utmpx.h>
23879 #endif
23880 #ifdef HAVE_SYS_SELECT_H
23881 #include <sys/select.h>
23882 #endif
23883 #ifdef HAVE_DLFCN_H
23884 #include <dlfcn.h>
23885 #endif
23886 #ifdef HAVE_REGEX_H
23887 #include <regex.h>
23888 #endif
23889 #ifdef HAVE_SYSLOG_H
23890 #include <syslog.h>
23891 #endif
23892 #ifdef HAVE_INTTYPES_H
23893 #include <inttypes.h>
23894 #endif
23895 #ifdef HAVE_STDINT_H
23896 #include <stdint.h>
23897 #endif
23898 #ifdef HAVE_ARPA_INET_H
23899 #include <arpa/inet.h>
23900 #endif
23901
23902 int
23903 main ()
23904 {
23905 char *(*pfn) = (char *(*)) $ac_func
23906   ;
23907   return 0;
23908 }
23909 _ACEOF
23910 rm -f conftest.$ac_objext
23911 if { (ac_try="$ac_compile"
23912 case "(($ac_try" in
23913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23914   *) ac_try_echo=$ac_try;;
23915 esac
23916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23917   (eval "$ac_compile") 2>conftest.er1
23918   ac_status=$?
23919   grep -v '^ *+' conftest.er1 >conftest.err
23920   rm -f conftest.er1
23921   cat conftest.err >&5
23922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923   (exit $ac_status); } && {
23924          test -z "$ac_c_werror_flag" ||
23925          test ! -s conftest.err
23926        } && test -s conftest.$ac_objext; then
23927   eval "radius_cv_decl_needed_$ac_func=no"
23928 else
23929   echo "$as_me: failed program was:" >&5
23930 sed 's/^/| /' conftest.$ac_ext >&5
23931
23932         eval "radius_cv_decl_needed_$ac_func=yes"
23933 fi
23934
23935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23936 fi
23937
23938 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23939   { echo "$as_me:$LINENO: result: yes" >&5
23940 echo "${ECHO_T}yes" >&6; }
23941   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23942   cat >>confdefs.h <<_ACEOF
23943 #define $radius_tr_decl 1
23944 _ACEOF
23945
23946 else
23947   { echo "$as_me:$LINENO: result: no" >&5
23948 echo "${ECHO_T}no" >&6; }
23949 fi
23950
23951 done
23952
23953
23954 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23955 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
23956 if test "${ac_cv_type_signal+set}" = set; then
23957   echo $ECHO_N "(cached) $ECHO_C" >&6
23958 else
23959   cat >conftest.$ac_ext <<_ACEOF
23960 /* confdefs.h.  */
23961 _ACEOF
23962 cat confdefs.h >>conftest.$ac_ext
23963 cat >>conftest.$ac_ext <<_ACEOF
23964 /* end confdefs.h.  */
23965 #include <sys/types.h>
23966 #include <signal.h>
23967
23968 int
23969 main ()
23970 {
23971 return *(signal (0, 0)) (0) == 1;
23972   ;
23973   return 0;
23974 }
23975 _ACEOF
23976 rm -f conftest.$ac_objext
23977 if { (ac_try="$ac_compile"
23978 case "(($ac_try" in
23979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23980   *) ac_try_echo=$ac_try;;
23981 esac
23982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23983   (eval "$ac_compile") 2>conftest.er1
23984   ac_status=$?
23985   grep -v '^ *+' conftest.er1 >conftest.err
23986   rm -f conftest.er1
23987   cat conftest.err >&5
23988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989   (exit $ac_status); } && {
23990          test -z "$ac_c_werror_flag" ||
23991          test ! -s conftest.err
23992        } && test -s conftest.$ac_objext; then
23993   ac_cv_type_signal=int
23994 else
23995   echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
23997
23998         ac_cv_type_signal=void
23999 fi
24000
24001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24002 fi
24003 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24004 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24005
24006 cat >>confdefs.h <<_ACEOF
24007 #define RETSIGTYPE $ac_cv_type_signal
24008 _ACEOF
24009
24010
24011
24012 if test "x$ac_cv_header_utmpx_h" = "xyes"
24013 then
24014
24015   { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
24016 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
24017
24018
24019   cat >conftest.$ac_ext <<_ACEOF
24020 /* confdefs.h.  */
24021 _ACEOF
24022 cat confdefs.h >>conftest.$ac_ext
24023 cat >>conftest.$ac_ext <<_ACEOF
24024 /* end confdefs.h.  */
24025
24026 #include <utmpx.h>
24027 #ifndef offsetof
24028 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24029 #endif
24030
24031 int
24032 main ()
24033 {
24034  int foo = offsetof(struct utmpx, ut_xtime)
24035   ;
24036   return 0;
24037 }
24038 _ACEOF
24039 rm -f conftest.$ac_objext
24040 if { (ac_try="$ac_compile"
24041 case "(($ac_try" in
24042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24043   *) ac_try_echo=$ac_try;;
24044 esac
24045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24046   (eval "$ac_compile") 2>conftest.er1
24047   ac_status=$?
24048   grep -v '^ *+' conftest.er1 >conftest.err
24049   rm -f conftest.er1
24050   cat conftest.err >&5
24051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052   (exit $ac_status); } && {
24053          test -z "$ac_c_werror_flag" ||
24054          test ! -s conftest.err
24055        } && test -s conftest.$ac_objext; then
24056   has_element=" "
24057 else
24058   echo "$as_me: failed program was:" >&5
24059 sed 's/^/| /' conftest.$ac_ext >&5
24060
24061         has_element=
24062 fi
24063
24064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24065
24066   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
24067   if test "x$has_element" != "x"; then
24068     { echo "$as_me:$LINENO: result: yes" >&5
24069 echo "${ECHO_T}yes" >&6; }
24070     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
24071   else
24072     { echo "$as_me:$LINENO: result: no" >&5
24073 echo "${ECHO_T}no" >&6; }
24074     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
24075  fi
24076
24077  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
24078  then
24079
24080 cat >>confdefs.h <<\_ACEOF
24081 #define ut_xtime ut_tv.tv_sec
24082 _ACEOF
24083
24084  fi
24085 fi
24086
24087
24088   { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
24089 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
24090
24091
24092   cat >conftest.$ac_ext <<_ACEOF
24093 /* confdefs.h.  */
24094 _ACEOF
24095 cat confdefs.h >>conftest.$ac_ext
24096 cat >>conftest.$ac_ext <<_ACEOF
24097 /* end confdefs.h.  */
24098
24099 #include <netinet/in.h>
24100 #ifndef offsetof
24101 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24102 #endif
24103
24104 int
24105 main ()
24106 {
24107  int foo = offsetof(struct in_pktinfo, ipi_addr)
24108   ;
24109   return 0;
24110 }
24111 _ACEOF
24112 rm -f conftest.$ac_objext
24113 if { (ac_try="$ac_compile"
24114 case "(($ac_try" in
24115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24116   *) ac_try_echo=$ac_try;;
24117 esac
24118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24119   (eval "$ac_compile") 2>conftest.er1
24120   ac_status=$?
24121   grep -v '^ *+' conftest.er1 >conftest.err
24122   rm -f conftest.er1
24123   cat conftest.err >&5
24124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125   (exit $ac_status); } && {
24126          test -z "$ac_c_werror_flag" ||
24127          test ! -s conftest.err
24128        } && test -s conftest.$ac_objext; then
24129   has_element=" "
24130 else
24131   echo "$as_me: failed program was:" >&5
24132 sed 's/^/| /' conftest.$ac_ext >&5
24133
24134         has_element=
24135 fi
24136
24137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24138
24139   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
24140   if test "x$has_element" != "x"; then
24141     { echo "$as_me:$LINENO: result: yes" >&5
24142 echo "${ECHO_T}yes" >&6; }
24143     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
24144   else
24145     { echo "$as_me:$LINENO: result: no" >&5
24146 echo "${ECHO_T}no" >&6; }
24147     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
24148  fi
24149
24150 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
24151 then
24152
24153 cat >>confdefs.h <<\_ACEOF
24154 #define HAVE_IP_PKTINFO
24155 _ACEOF
24156
24157 fi
24158
24159
24160   { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
24161 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
24162
24163
24164   cat >conftest.$ac_ext <<_ACEOF
24165 /* confdefs.h.  */
24166 _ACEOF
24167 cat confdefs.h >>conftest.$ac_ext
24168 cat >>conftest.$ac_ext <<_ACEOF
24169 /* end confdefs.h.  */
24170
24171 #include <netinet/in.h>
24172 #ifndef offsetof
24173 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24174 #endif
24175
24176 int
24177 main ()
24178 {
24179  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
24180   ;
24181   return 0;
24182 }
24183 _ACEOF
24184 rm -f conftest.$ac_objext
24185 if { (ac_try="$ac_compile"
24186 case "(($ac_try" in
24187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24188   *) ac_try_echo=$ac_try;;
24189 esac
24190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24191   (eval "$ac_compile") 2>conftest.er1
24192   ac_status=$?
24193   grep -v '^ *+' conftest.er1 >conftest.err
24194   rm -f conftest.er1
24195   cat conftest.err >&5
24196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197   (exit $ac_status); } && {
24198          test -z "$ac_c_werror_flag" ||
24199          test ! -s conftest.err
24200        } && test -s conftest.$ac_objext; then
24201   has_element=" "
24202 else
24203   echo "$as_me: failed program was:" >&5
24204 sed 's/^/| /' conftest.$ac_ext >&5
24205
24206         has_element=
24207 fi
24208
24209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24210
24211   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
24212   if test "x$has_element" != "x"; then
24213     { echo "$as_me:$LINENO: result: yes" >&5
24214 echo "${ECHO_T}yes" >&6; }
24215     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
24216   else
24217     { echo "$as_me:$LINENO: result: no" >&5
24218 echo "${ECHO_T}no" >&6; }
24219     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
24220  fi
24221
24222 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
24223 then
24224
24225 cat >>confdefs.h <<\_ACEOF
24226 #define HAVE_IN6_PKTINFO
24227 _ACEOF
24228
24229 fi
24230
24231
24232 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24233 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24234 if test "${ac_cv_c_const+set}" = set; then
24235   echo $ECHO_N "(cached) $ECHO_C" >&6
24236 else
24237   cat >conftest.$ac_ext <<_ACEOF
24238 /* confdefs.h.  */
24239 _ACEOF
24240 cat confdefs.h >>conftest.$ac_ext
24241 cat >>conftest.$ac_ext <<_ACEOF
24242 /* end confdefs.h.  */
24243
24244 int
24245 main ()
24246 {
24247 /* FIXME: Include the comments suggested by Paul. */
24248 #ifndef __cplusplus
24249   /* Ultrix mips cc rejects this.  */
24250   typedef int charset[2];
24251   const charset cs;
24252   /* SunOS 4.1.1 cc rejects this.  */
24253   char const *const *pcpcc;
24254   char **ppc;
24255   /* NEC SVR4.0.2 mips cc rejects this.  */
24256   struct point {int x, y;};
24257   static struct point const zero = {0,0};
24258   /* AIX XL C 1.02.0.0 rejects this.
24259      It does not let you subtract one const X* pointer from another in
24260      an arm of an if-expression whose if-part is not a constant
24261      expression */
24262   const char *g = "string";
24263   pcpcc = &g + (g ? g-g : 0);
24264   /* HPUX 7.0 cc rejects these. */
24265   ++pcpcc;
24266   ppc = (char**) pcpcc;
24267   pcpcc = (char const *const *) ppc;
24268   { /* SCO 3.2v4 cc rejects this.  */
24269     char *t;
24270     char const *s = 0 ? (char *) 0 : (char const *) 0;
24271
24272     *t++ = 0;
24273     if (s) return 0;
24274   }
24275   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24276     int x[] = {25, 17};
24277     const int *foo = &x[0];
24278     ++foo;
24279   }
24280   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24281     typedef const int *iptr;
24282     iptr p = 0;
24283     ++p;
24284   }
24285   { /* AIX XL C 1.02.0.0 rejects this saying
24286        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24287     struct s { int j; const int *ap[3]; };
24288     struct s *b; b->j = 5;
24289   }
24290   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24291     const int foo = 10;
24292     if (!foo) return 0;
24293   }
24294   return !cs[0] && !zero.x;
24295 #endif
24296
24297   ;
24298   return 0;
24299 }
24300 _ACEOF
24301 rm -f conftest.$ac_objext
24302 if { (ac_try="$ac_compile"
24303 case "(($ac_try" in
24304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24305   *) ac_try_echo=$ac_try;;
24306 esac
24307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24308   (eval "$ac_compile") 2>conftest.er1
24309   ac_status=$?
24310   grep -v '^ *+' conftest.er1 >conftest.err
24311   rm -f conftest.er1
24312   cat conftest.err >&5
24313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314   (exit $ac_status); } && {
24315          test -z "$ac_c_werror_flag" ||
24316          test ! -s conftest.err
24317        } && test -s conftest.$ac_objext; then
24318   ac_cv_c_const=yes
24319 else
24320   echo "$as_me: failed program was:" >&5
24321 sed 's/^/| /' conftest.$ac_ext >&5
24322
24323         ac_cv_c_const=no
24324 fi
24325
24326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24327 fi
24328 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24329 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24330 if test $ac_cv_c_const = no; then
24331
24332 cat >>confdefs.h <<\_ACEOF
24333 #define const
24334 _ACEOF
24335
24336 fi
24337
24338
24339 { echo "$as_me:$LINENO: checking type of OS" >&5
24340 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
24341 OS=`uname -s`
24342 { echo "$as_me:$LINENO: result: $OS" >&5
24343 echo "${ECHO_T}$OS" >&6; }
24344 if test "$OS" = "OS/2"; then
24345         LIBPREFIX=
24346 else
24347         LIBPREFIX=lib
24348 fi
24349
24350
24351 if test "x$GCC" = "xyes"; then
24352     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
24353 fi
24354
24355 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
24356 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
24357 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
24358   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
24359   CFLAGS="$CFLAGS $devflags"
24360   INSTALLSTRIP=""
24361   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
24362 echo "${ECHO_T}yes.  Using $devflags" >&6; }
24363 else
24364   devflags=""
24365   CFLAGS="$CFLAGS -DNDEBUG"
24366   INSTALLSTRIP=""
24367   { echo "$as_me:$LINENO: result: no." >&5
24368 echo "${ECHO_T}no." >&6; }
24369 fi
24370
24371
24372     { echo "$as_me:$LINENO: checking for TLS" >&5
24373 echo $ECHO_N "checking for TLS... $ECHO_C" >&6; }
24374     if test "$cross_compiling" = yes; then
24375   have_tls=no
24376 else
24377   cat >conftest.$ac_ext <<_ACEOF
24378 /* confdefs.h.  */
24379 _ACEOF
24380 cat confdefs.h >>conftest.$ac_ext
24381 cat >>conftest.$ac_ext <<_ACEOF
24382 /* end confdefs.h.  */
24383  static __thread int val; int main() { return 0; }
24384 _ACEOF
24385 rm -f conftest$ac_exeext
24386 if { (ac_try="$ac_link"
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_link") 2>&5
24393   ac_status=$?
24394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24396   { (case "(($ac_try" in
24397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24398   *) ac_try_echo=$ac_try;;
24399 esac
24400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24401   (eval "$ac_try") 2>&5
24402   ac_status=$?
24403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404   (exit $ac_status); }; }; then
24405   have_tls=yes
24406 else
24407   echo "$as_me: program exited with status $ac_status" >&5
24408 echo "$as_me: failed program was:" >&5
24409 sed 's/^/| /' conftest.$ac_ext >&5
24410
24411 ( exit $ac_status )
24412 have_tls=no
24413 fi
24414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24415 fi
24416
24417
24418     { echo "$as_me:$LINENO: result: $have_tls" >&5
24419 echo "${ECHO_T}$have_tls" >&6; }
24420     if test "$have_tls" = "yes"; then
24421
24422 cat >>confdefs.h <<\_ACEOF
24423 #define HAVE_THREAD_TLS 1
24424 _ACEOF
24425
24426     fi
24427
24428
24429
24430 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
24431 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
24432 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
24433   echo $ECHO_N "(cached) $ECHO_C" >&6
24434 else
24435   ac_check_lib_save_LIBS=$LIBS
24436 LIBS="-lcrypt  $LIBS"
24437 cat >conftest.$ac_ext <<_ACEOF
24438 /* confdefs.h.  */
24439 _ACEOF
24440 cat confdefs.h >>conftest.$ac_ext
24441 cat >>conftest.$ac_ext <<_ACEOF
24442 /* end confdefs.h.  */
24443
24444 /* Override any GCC internal prototype to avoid an error.
24445    Use char because int might match the return type of a GCC
24446    builtin and then its argument prototype would still apply.  */
24447 #ifdef __cplusplus
24448 extern "C"
24449 #endif
24450 char crypt ();
24451 int
24452 main ()
24453 {
24454 return crypt ();
24455   ;
24456   return 0;
24457 }
24458 _ACEOF
24459 rm -f conftest.$ac_objext conftest$ac_exeext
24460 if { (ac_try="$ac_link"
24461 case "(($ac_try" in
24462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24463   *) ac_try_echo=$ac_try;;
24464 esac
24465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24466   (eval "$ac_link") 2>conftest.er1
24467   ac_status=$?
24468   grep -v '^ *+' conftest.er1 >conftest.err
24469   rm -f conftest.er1
24470   cat conftest.err >&5
24471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472   (exit $ac_status); } && {
24473          test -z "$ac_c_werror_flag" ||
24474          test ! -s conftest.err
24475        } && test -s conftest$ac_exeext &&
24476        $as_test_x conftest$ac_exeext; then
24477   ac_cv_lib_crypt_crypt=yes
24478 else
24479   echo "$as_me: failed program was:" >&5
24480 sed 's/^/| /' conftest.$ac_ext >&5
24481
24482         ac_cv_lib_crypt_crypt=no
24483 fi
24484
24485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24486       conftest$ac_exeext conftest.$ac_ext
24487 LIBS=$ac_check_lib_save_LIBS
24488 fi
24489 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
24490 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
24491 if test $ac_cv_lib_crypt_crypt = yes; then
24492   CRYPTLIB="-lcrypt"
24493
24494 fi
24495
24496 if test "$CRYPTLIB" != ""; then
24497
24498 cat >>confdefs.h <<\_ACEOF
24499 #define HAVE_CRYPT
24500 _ACEOF
24501
24502 else
24503   { echo "$as_me:$LINENO: checking for crypt" >&5
24504 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
24505 if test "${ac_cv_func_crypt+set}" = set; then
24506   echo $ECHO_N "(cached) $ECHO_C" >&6
24507 else
24508   cat >conftest.$ac_ext <<_ACEOF
24509 /* confdefs.h.  */
24510 _ACEOF
24511 cat confdefs.h >>conftest.$ac_ext
24512 cat >>conftest.$ac_ext <<_ACEOF
24513 /* end confdefs.h.  */
24514 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
24515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24516 #define crypt innocuous_crypt
24517
24518 /* System header to define __stub macros and hopefully few prototypes,
24519     which can conflict with char crypt (); below.
24520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24521     <limits.h> exists even on freestanding compilers.  */
24522
24523 #ifdef __STDC__
24524 # include <limits.h>
24525 #else
24526 # include <assert.h>
24527 #endif
24528
24529 #undef crypt
24530
24531 /* Override any GCC internal prototype to avoid an error.
24532    Use char because int might match the return type of a GCC
24533    builtin and then its argument prototype would still apply.  */
24534 #ifdef __cplusplus
24535 extern "C"
24536 #endif
24537 char crypt ();
24538 /* The GNU C library defines this for functions which it implements
24539     to always fail with ENOSYS.  Some functions are actually named
24540     something starting with __ and the normal name is an alias.  */
24541 #if defined __stub_crypt || defined __stub___crypt
24542 choke me
24543 #endif
24544
24545 int
24546 main ()
24547 {
24548 return crypt ();
24549   ;
24550   return 0;
24551 }
24552 _ACEOF
24553 rm -f conftest.$ac_objext conftest$ac_exeext
24554 if { (ac_try="$ac_link"
24555 case "(($ac_try" in
24556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24557   *) ac_try_echo=$ac_try;;
24558 esac
24559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24560   (eval "$ac_link") 2>conftest.er1
24561   ac_status=$?
24562   grep -v '^ *+' conftest.er1 >conftest.err
24563   rm -f conftest.er1
24564   cat conftest.err >&5
24565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566   (exit $ac_status); } && {
24567          test -z "$ac_c_werror_flag" ||
24568          test ! -s conftest.err
24569        } && test -s conftest$ac_exeext &&
24570        $as_test_x conftest$ac_exeext; then
24571   ac_cv_func_crypt=yes
24572 else
24573   echo "$as_me: failed program was:" >&5
24574 sed 's/^/| /' conftest.$ac_ext >&5
24575
24576         ac_cv_func_crypt=no
24577 fi
24578
24579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24580       conftest$ac_exeext conftest.$ac_ext
24581 fi
24582 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
24583 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
24584 if test $ac_cv_func_crypt = yes; then
24585
24586 cat >>confdefs.h <<\_ACEOF
24587 #define HAVE_CRYPT
24588 _ACEOF
24589
24590 fi
24591
24592 fi
24593
24594 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
24595 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
24596 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
24597   echo $ECHO_N "(cached) $ECHO_C" >&6
24598 else
24599   ac_check_lib_save_LIBS=$LIBS
24600 LIBS="-lcipher  $LIBS"
24601 cat >conftest.$ac_ext <<_ACEOF
24602 /* confdefs.h.  */
24603 _ACEOF
24604 cat confdefs.h >>conftest.$ac_ext
24605 cat >>conftest.$ac_ext <<_ACEOF
24606 /* end confdefs.h.  */
24607
24608 /* Override any GCC internal prototype to avoid an error.
24609    Use char because int might match the return type of a GCC
24610    builtin and then its argument prototype would still apply.  */
24611 #ifdef __cplusplus
24612 extern "C"
24613 #endif
24614 char setkey ();
24615 int
24616 main ()
24617 {
24618 return setkey ();
24619   ;
24620   return 0;
24621 }
24622 _ACEOF
24623 rm -f conftest.$ac_objext conftest$ac_exeext
24624 if { (ac_try="$ac_link"
24625 case "(($ac_try" in
24626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24627   *) ac_try_echo=$ac_try;;
24628 esac
24629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24630   (eval "$ac_link") 2>conftest.er1
24631   ac_status=$?
24632   grep -v '^ *+' conftest.er1 >conftest.err
24633   rm -f conftest.er1
24634   cat conftest.err >&5
24635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636   (exit $ac_status); } && {
24637          test -z "$ac_c_werror_flag" ||
24638          test ! -s conftest.err
24639        } && test -s conftest$ac_exeext &&
24640        $as_test_x conftest$ac_exeext; then
24641   ac_cv_lib_cipher_setkey=yes
24642 else
24643   echo "$as_me: failed program was:" >&5
24644 sed 's/^/| /' conftest.$ac_ext >&5
24645
24646         ac_cv_lib_cipher_setkey=no
24647 fi
24648
24649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24650       conftest$ac_exeext conftest.$ac_ext
24651 LIBS=$ac_check_lib_save_LIBS
24652 fi
24653 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24654 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
24655 if test $ac_cv_lib_cipher_setkey = yes; then
24656   CRYPTLIB="${CRYPTLIB} -lcipher"
24657
24658 fi
24659
24660
24661
24662
24663 cat >>confdefs.h <<\_ACEOF
24664 #define GNUSTYLE 1
24665 _ACEOF
24666
24667
24668 cat >>confdefs.h <<\_ACEOF
24669 #define SYSVSTYLE 2
24670 _ACEOF
24671
24672
24673 cat >>confdefs.h <<\_ACEOF
24674 #define BSDSTYLE 3
24675 _ACEOF
24676
24677 gethostbyaddrrstyle=""
24678 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24679 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
24680 case "$host" in
24681 *-freebsd*)
24682         { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
24683 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
24684 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
24685   echo $ECHO_N "(cached) $ECHO_C" >&6
24686 else
24687   cat >conftest.$ac_ext <<_ACEOF
24688 /* confdefs.h.  */
24689 _ACEOF
24690 cat confdefs.h >>conftest.$ac_ext
24691 cat >>conftest.$ac_ext <<_ACEOF
24692 /* end confdefs.h.  */
24693
24694 #ifdef HAVE_NETDB_H
24695 #include <netdb.h>
24696 #endif
24697
24698
24699 int
24700 main ()
24701 {
24702 #ifndef gethostbyaddr_r
24703   (void) gethostbyaddr_r;
24704 #endif
24705
24706   ;
24707   return 0;
24708 }
24709 _ACEOF
24710 rm -f conftest.$ac_objext
24711 if { (ac_try="$ac_compile"
24712 case "(($ac_try" in
24713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714   *) ac_try_echo=$ac_try;;
24715 esac
24716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24717   (eval "$ac_compile") 2>conftest.er1
24718   ac_status=$?
24719   grep -v '^ *+' conftest.er1 >conftest.err
24720   rm -f conftest.er1
24721   cat conftest.err >&5
24722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723   (exit $ac_status); } && {
24724          test -z "$ac_c_werror_flag" ||
24725          test ! -s conftest.err
24726        } && test -s conftest.$ac_objext; then
24727   ac_cv_have_decl_gethostbyaddr_r=yes
24728 else
24729   echo "$as_me: failed program was:" >&5
24730 sed 's/^/| /' conftest.$ac_ext >&5
24731
24732         ac_cv_have_decl_gethostbyaddr_r=no
24733 fi
24734
24735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24736 fi
24737 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
24738 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
24739 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
24740
24741 cat >>confdefs.h <<_ACEOF
24742 #define HAVE_DECL_GETHOSTBYADDR_R 1
24743 _ACEOF
24744
24745
24746 else
24747   cat >>confdefs.h <<_ACEOF
24748 #define HAVE_DECL_GETHOSTBYADDR_R 0
24749 _ACEOF
24750
24751
24752
24753 cat >>confdefs.h <<\_ACEOF
24754 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24755 _ACEOF
24756
24757                 gethostbyaddrrstyle=BSD
24758                 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24759 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24760
24761 fi
24762
24763
24764         ;;
24765 esac
24766 if test "x$gethostbyaddrrstyle" = "x"; then
24767         cat >conftest.$ac_ext <<_ACEOF
24768 /* confdefs.h.  */
24769 _ACEOF
24770 cat confdefs.h >>conftest.$ac_ext
24771 cat >>conftest.$ac_ext <<_ACEOF
24772 /* end confdefs.h.  */
24773
24774 #include <stdio.h>
24775 #include <netdb.h>
24776
24777 int
24778 main ()
24779 {
24780  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24781   ;
24782   return 0;
24783 }
24784 _ACEOF
24785 rm -f conftest.$ac_objext conftest$ac_exeext
24786 if { (ac_try="$ac_link"
24787 case "(($ac_try" in
24788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24789   *) ac_try_echo=$ac_try;;
24790 esac
24791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24792   (eval "$ac_link") 2>conftest.er1
24793   ac_status=$?
24794   grep -v '^ *+' conftest.er1 >conftest.err
24795   rm -f conftest.er1
24796   cat conftest.err >&5
24797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798   (exit $ac_status); } && {
24799          test -z "$ac_c_werror_flag" ||
24800          test ! -s conftest.err
24801        } && test -s conftest$ac_exeext &&
24802        $as_test_x conftest$ac_exeext; then
24803
24804
24805 cat >>confdefs.h <<\_ACEOF
24806 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24807 _ACEOF
24808
24809         gethostbyaddrrstyle=GNU
24810
24811 else
24812   echo "$as_me: failed program was:" >&5
24813 sed 's/^/| /' conftest.$ac_ext >&5
24814
24815
24816 fi
24817
24818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24819       conftest$ac_exeext conftest.$ac_ext
24820 fi
24821 if test "x$gethostbyaddrrstyle" = "x"; then
24822         cat >conftest.$ac_ext <<_ACEOF
24823 /* confdefs.h.  */
24824 _ACEOF
24825 cat confdefs.h >>conftest.$ac_ext
24826 cat >>conftest.$ac_ext <<_ACEOF
24827 /* end confdefs.h.  */
24828
24829 #include <stdio.h>
24830 #include <netdb.h>
24831
24832 int
24833 main ()
24834 {
24835  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24836   ;
24837   return 0;
24838 }
24839 _ACEOF
24840 rm -f conftest.$ac_objext conftest$ac_exeext
24841 if { (ac_try="$ac_link"
24842 case "(($ac_try" in
24843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24844   *) ac_try_echo=$ac_try;;
24845 esac
24846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24847   (eval "$ac_link") 2>conftest.er1
24848   ac_status=$?
24849   grep -v '^ *+' conftest.er1 >conftest.err
24850   rm -f conftest.er1
24851   cat conftest.err >&5
24852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853   (exit $ac_status); } && {
24854          test -z "$ac_c_werror_flag" ||
24855          test ! -s conftest.err
24856        } && test -s conftest$ac_exeext &&
24857        $as_test_x conftest$ac_exeext; then
24858
24859
24860 cat >>confdefs.h <<\_ACEOF
24861 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
24862 _ACEOF
24863
24864                 gethostbyaddrrstyle=SYSV
24865
24866 else
24867   echo "$as_me: failed program was:" >&5
24868 sed 's/^/| /' conftest.$ac_ext >&5
24869
24870
24871 fi
24872
24873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24874       conftest$ac_exeext conftest.$ac_ext
24875 fi
24876 if test "x$gethostbyaddrrstyle" = "x"; then
24877         cat >conftest.$ac_ext <<_ACEOF
24878 /* confdefs.h.  */
24879 _ACEOF
24880 cat confdefs.h >>conftest.$ac_ext
24881 cat >>conftest.$ac_ext <<_ACEOF
24882 /* end confdefs.h.  */
24883
24884 #include <stdio.h>
24885 #include <netdb.h>
24886
24887 int
24888 main ()
24889 {
24890  gethostbyaddr(NULL, 0, 0)
24891   ;
24892   return 0;
24893 }
24894 _ACEOF
24895 rm -f conftest.$ac_objext conftest$ac_exeext
24896 if { (ac_try="$ac_link"
24897 case "(($ac_try" in
24898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24899   *) ac_try_echo=$ac_try;;
24900 esac
24901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24902   (eval "$ac_link") 2>conftest.er1
24903   ac_status=$?
24904   grep -v '^ *+' conftest.er1 >conftest.err
24905   rm -f conftest.er1
24906   cat conftest.err >&5
24907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908   (exit $ac_status); } && {
24909          test -z "$ac_c_werror_flag" ||
24910          test ! -s conftest.err
24911        } && test -s conftest$ac_exeext &&
24912        $as_test_x conftest$ac_exeext; then
24913
24914
24915 cat >>confdefs.h <<\_ACEOF
24916 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24917 _ACEOF
24918
24919                 gethostbyaddrrstyle=BSD
24920
24921 else
24922   echo "$as_me: failed program was:" >&5
24923 sed 's/^/| /' conftest.$ac_ext >&5
24924
24925
24926 fi
24927
24928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24929       conftest$ac_exeext conftest.$ac_ext
24930 fi
24931
24932 if test "x$gethostbyaddrrstyle" = "x"; then
24933         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24934 echo "${ECHO_T}none!  It must not exist, here." >&6; }
24935 else
24936         { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
24937 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
24938 fi
24939
24940 if test "x$gethostbyaddrrstyle" = "xBSD"; then
24941         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
24942 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
24943 fi
24944
24945 gethostbynamerstyle=""
24946 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
24947 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
24948 cat >conftest.$ac_ext <<_ACEOF
24949 /* confdefs.h.  */
24950 _ACEOF
24951 cat confdefs.h >>conftest.$ac_ext
24952 cat >>conftest.$ac_ext <<_ACEOF
24953 /* end confdefs.h.  */
24954
24955 #include <stdio.h>
24956 #include <netdb.h>
24957
24958 int
24959 main ()
24960 {
24961  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
24962   ;
24963   return 0;
24964 }
24965 _ACEOF
24966 rm -f conftest.$ac_objext conftest$ac_exeext
24967 if { (ac_try="$ac_link"
24968 case "(($ac_try" in
24969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24970   *) ac_try_echo=$ac_try;;
24971 esac
24972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24973   (eval "$ac_link") 2>conftest.er1
24974   ac_status=$?
24975   grep -v '^ *+' conftest.er1 >conftest.err
24976   rm -f conftest.er1
24977   cat conftest.err >&5
24978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979   (exit $ac_status); } && {
24980          test -z "$ac_c_werror_flag" ||
24981          test ! -s conftest.err
24982        } && test -s conftest$ac_exeext &&
24983        $as_test_x conftest$ac_exeext; then
24984
24985
24986 cat >>confdefs.h <<\_ACEOF
24987 #define GETHOSTBYNAMERSTYLE GNUSTYLE
24988 _ACEOF
24989
24990         gethostbynamerstyle=GNU
24991
24992 else
24993   echo "$as_me: failed program was:" >&5
24994 sed 's/^/| /' conftest.$ac_ext >&5
24995
24996
24997 fi
24998
24999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25000       conftest$ac_exeext conftest.$ac_ext
25001 if test "x$gethostbynamerstyle" = "x"; then
25002         cat >conftest.$ac_ext <<_ACEOF
25003 /* confdefs.h.  */
25004 _ACEOF
25005 cat confdefs.h >>conftest.$ac_ext
25006 cat >>conftest.$ac_ext <<_ACEOF
25007 /* end confdefs.h.  */
25008
25009 #include <stdio.h>
25010 #include <netdb.h>
25011
25012 int
25013 main ()
25014 {
25015  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25016   ;
25017   return 0;
25018 }
25019 _ACEOF
25020 rm -f conftest.$ac_objext conftest$ac_exeext
25021 if { (ac_try="$ac_link"
25022 case "(($ac_try" in
25023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25024   *) ac_try_echo=$ac_try;;
25025 esac
25026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25027   (eval "$ac_link") 2>conftest.er1
25028   ac_status=$?
25029   grep -v '^ *+' conftest.er1 >conftest.err
25030   rm -f conftest.er1
25031   cat conftest.err >&5
25032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033   (exit $ac_status); } && {
25034          test -z "$ac_c_werror_flag" ||
25035          test ! -s conftest.err
25036        } && test -s conftest$ac_exeext &&
25037        $as_test_x conftest$ac_exeext; then
25038
25039
25040 cat >>confdefs.h <<\_ACEOF
25041 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25042 _ACEOF
25043
25044                 gethostbynamerstyle=SYSV
25045
25046 else
25047   echo "$as_me: failed program was:" >&5
25048 sed 's/^/| /' conftest.$ac_ext >&5
25049
25050
25051 fi
25052
25053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25054       conftest$ac_exeext conftest.$ac_ext
25055 fi
25056 if test "x$gethostbynamerstyle" = "x"; then
25057         cat >conftest.$ac_ext <<_ACEOF
25058 /* confdefs.h.  */
25059 _ACEOF
25060 cat confdefs.h >>conftest.$ac_ext
25061 cat >>conftest.$ac_ext <<_ACEOF
25062 /* end confdefs.h.  */
25063
25064 #include <stdio.h>
25065 #include <netdb.h>
25066
25067 int
25068 main ()
25069 {
25070  gethostbyname(NULL)
25071   ;
25072   return 0;
25073 }
25074 _ACEOF
25075 rm -f conftest.$ac_objext conftest$ac_exeext
25076 if { (ac_try="$ac_link"
25077 case "(($ac_try" in
25078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25079   *) ac_try_echo=$ac_try;;
25080 esac
25081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25082   (eval "$ac_link") 2>conftest.er1
25083   ac_status=$?
25084   grep -v '^ *+' conftest.er1 >conftest.err
25085   rm -f conftest.er1
25086   cat conftest.err >&5
25087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088   (exit $ac_status); } && {
25089          test -z "$ac_c_werror_flag" ||
25090          test ! -s conftest.err
25091        } && test -s conftest$ac_exeext &&
25092        $as_test_x conftest$ac_exeext; then
25093
25094
25095 cat >>confdefs.h <<\_ACEOF
25096 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25097 _ACEOF
25098
25099                 gethostbynamerstyle=BSD
25100
25101 else
25102   echo "$as_me: failed program was:" >&5
25103 sed 's/^/| /' conftest.$ac_ext >&5
25104
25105
25106 fi
25107
25108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25109       conftest$ac_exeext conftest.$ac_ext
25110 fi
25111
25112 if test "x$gethostbynamerstyle" = "x"; then
25113         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25114 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25115 else
25116         { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25117 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25118 fi
25119
25120 if test "x$gethostbynamerstyle" = "xBSD"; then
25121         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25122 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25123 fi
25124
25125
25126 cat >>confdefs.h <<\_ACEOF
25127 #define POSIXSTYLE 1
25128 _ACEOF
25129
25130
25131 cat >>confdefs.h <<\_ACEOF
25132 #define SOLARISSTYLE 2
25133 _ACEOF
25134
25135 ctimerstyle=""
25136 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25137 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
25138 cat >conftest.$ac_ext <<_ACEOF
25139 /* confdefs.h.  */
25140 _ACEOF
25141 cat confdefs.h >>conftest.$ac_ext
25142 cat >>conftest.$ac_ext <<_ACEOF
25143 /* end confdefs.h.  */
25144
25145 #include <time.h>
25146
25147 int
25148 main ()
25149 {
25150  ctime_r(NULL, NULL, 0)
25151   ;
25152   return 0;
25153 }
25154 _ACEOF
25155 rm -f conftest.$ac_objext conftest$ac_exeext
25156 if { (ac_try="$ac_link"
25157 case "(($ac_try" in
25158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25159   *) ac_try_echo=$ac_try;;
25160 esac
25161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25162   (eval "$ac_link") 2>conftest.er1
25163   ac_status=$?
25164   grep -v '^ *+' conftest.er1 >conftest.err
25165   rm -f conftest.er1
25166   cat conftest.err >&5
25167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168   (exit $ac_status); } && {
25169          test -z "$ac_c_werror_flag" ||
25170          test ! -s conftest.err
25171        } && test -s conftest$ac_exeext &&
25172        $as_test_x conftest$ac_exeext; then
25173
25174
25175 cat >>confdefs.h <<\_ACEOF
25176 #define CTIMERSTYLE SOLARISSTYLE
25177 _ACEOF
25178
25179         ctimerstyle="SOLARIS"
25180
25181 else
25182   echo "$as_me: failed program was:" >&5
25183 sed 's/^/| /' conftest.$ac_ext >&5
25184
25185
25186 fi
25187
25188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25189       conftest$ac_exeext conftest.$ac_ext
25190 if test "x$ctimerstyle" = "x"; then
25191         cat >conftest.$ac_ext <<_ACEOF
25192 /* confdefs.h.  */
25193 _ACEOF
25194 cat confdefs.h >>conftest.$ac_ext
25195 cat >>conftest.$ac_ext <<_ACEOF
25196 /* end confdefs.h.  */
25197
25198 #include <time.h>
25199
25200 int
25201 main ()
25202 {
25203  ctime_r(NULL, NULL)
25204   ;
25205   return 0;
25206 }
25207 _ACEOF
25208 rm -f conftest.$ac_objext conftest$ac_exeext
25209 if { (ac_try="$ac_link"
25210 case "(($ac_try" in
25211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25212   *) ac_try_echo=$ac_try;;
25213 esac
25214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25215   (eval "$ac_link") 2>conftest.er1
25216   ac_status=$?
25217   grep -v '^ *+' conftest.er1 >conftest.err
25218   rm -f conftest.er1
25219   cat conftest.err >&5
25220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221   (exit $ac_status); } && {
25222          test -z "$ac_c_werror_flag" ||
25223          test ! -s conftest.err
25224        } && test -s conftest$ac_exeext &&
25225        $as_test_x conftest$ac_exeext; then
25226
25227
25228 cat >>confdefs.h <<\_ACEOF
25229 #define CTIMERSTYLE POSIXSTYLE
25230 _ACEOF
25231
25232                 ctimerstyle="POSIX"
25233
25234 else
25235   echo "$as_me: failed program was:" >&5
25236 sed 's/^/| /' conftest.$ac_ext >&5
25237
25238
25239 fi
25240
25241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25242       conftest$ac_exeext conftest.$ac_ext
25243 fi
25244
25245 if test "x$ctimerstyle" = "x"; then
25246         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25247 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25248 else
25249         { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25250 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
25251 fi
25252
25253 HOSTINFO=$host
25254
25255
25256
25257 top_builddir=`pwd`
25258 export top_builddir
25259 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25260 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
25261
25262
25263
25264
25265
25266 mysubdirs="$LIBLTDLPATH"
25267 if test "x$EXPERIMENTAL" = "xyes"; then
25268   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
25269     mysubdirs=`echo $mysubdirs $bar`
25270 else
25271         for bar in `cat "${srcdir}"/src/modules/stable`; do
25272     if test -f "${srcdir}"/src/modules/$bar/configure; then
25273       mysubdirs="$mysubdirs src/modules/$bar"
25274     fi
25275   done
25276 fi
25277
25278 if test "x$EXPERIMENTAL" = "xyes"; then
25279   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
25280     MODULES="$MODULES $foo"
25281   done
25282 else
25283             for foo in `cat "${srcdir}"/src/modules/stable`; do
25284     MODULES="$MODULES $foo"
25285    done
25286 fi
25287
25288 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
25289
25290
25291
25292
25293 ac_config_commands="$ac_config_commands stamp-h"
25294
25295 ac_config_commands="$ac_config_commands build-radpaths-h"
25296
25297 ac_config_commands="$ac_config_commands main-chmod"
25298
25299 ac_config_commands="$ac_config_commands scripts-chmod"
25300
25301
25302
25303
25304
25305 USE_SHARED_LIBS=$enable_shared
25306
25307 USE_STATIC_LIBS=$enable_static
25308
25309
25310
25311
25312
25313
25314
25315   unset ac_cv_env_LIBS_set
25316   unset ac_cv_env_LIBS_value
25317
25318   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/radiusd.conf"
25319
25320 cat >confcache <<\_ACEOF
25321 # This file is a shell script that caches the results of configure
25322 # tests run on this system so they can be shared between configure
25323 # scripts and configure runs, see configure's option --config-cache.
25324 # It is not useful on other systems.  If it contains results you don't
25325 # want to keep, you may remove or edit it.
25326 #
25327 # config.status only pays attention to the cache file if you give it
25328 # the --recheck option to rerun configure.
25329 #
25330 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25331 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25332 # following values.
25333
25334 _ACEOF
25335
25336 # The following way of writing the cache mishandles newlines in values,
25337 # but we know of no workaround that is simple, portable, and efficient.
25338 # So, we kill variables containing newlines.
25339 # Ultrix sh set writes to stderr and can't be redirected directly,
25340 # and sets the high bit in the cache file unless we assign to the vars.
25341 (
25342   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25343     eval ac_val=\$$ac_var
25344     case $ac_val in #(
25345     *${as_nl}*)
25346       case $ac_var in #(
25347       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25348 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25349       esac
25350       case $ac_var in #(
25351       _ | IFS | as_nl) ;; #(
25352       *) $as_unset $ac_var ;;
25353       esac ;;
25354     esac
25355   done
25356
25357   (set) 2>&1 |
25358     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25359     *${as_nl}ac_space=\ *)
25360       # `set' does not quote correctly, so add quotes (double-quote
25361       # substitution turns \\\\ into \\, and sed turns \\ into \).
25362       sed -n \
25363         "s/'/'\\\\''/g;
25364           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25365       ;; #(
25366     *)
25367       # `set' quotes correctly as required by POSIX, so do not add quotes.
25368       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25369       ;;
25370     esac |
25371     sort
25372 ) |
25373   sed '
25374      /^ac_cv_env_/b end
25375      t clear
25376      :clear
25377      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25378      t end
25379      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25380      :end' >>confcache
25381 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25382   if test -w "$cache_file"; then
25383     test "x$cache_file" != "x/dev/null" &&
25384       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25385 echo "$as_me: updating cache $cache_file" >&6;}
25386     cat confcache >$cache_file
25387   else
25388     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25389 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25390   fi
25391 fi
25392 rm -f confcache
25393
25394 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25395 # Let make expand exec_prefix.
25396 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25397
25398 DEFS=-DHAVE_CONFIG_H
25399
25400 ac_libobjs=
25401 ac_ltlibobjs=
25402 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25403   # 1. Remove the extension, and $U if already installed.
25404   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25405   ac_i=`echo "$ac_i" | sed "$ac_script"`
25406   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25407   #    will be set to the directory where LIBOBJS objects are built.
25408   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25409   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25410 done
25411 LIBOBJS=$ac_libobjs
25412
25413 LTLIBOBJS=$ac_ltlibobjs
25414
25415
25416
25417 : ${CONFIG_STATUS=./config.status}
25418 ac_clean_files_save=$ac_clean_files
25419 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25420 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25421 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25422 cat >$CONFIG_STATUS <<_ACEOF
25423 #! $SHELL
25424 # Generated by $as_me.
25425 # Run this file to recreate the current configuration.
25426 # Compiler output produced by configure, useful for debugging
25427 # configure, is in config.log if it exists.
25428
25429 debug=false
25430 ac_cs_recheck=false
25431 ac_cs_silent=false
25432 SHELL=\${CONFIG_SHELL-$SHELL}
25433 _ACEOF
25434
25435 cat >>$CONFIG_STATUS <<\_ACEOF
25436 ## --------------------- ##
25437 ## M4sh Initialization.  ##
25438 ## --------------------- ##
25439
25440 # Be more Bourne compatible
25441 DUALCASE=1; export DUALCASE # for MKS sh
25442 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25443   emulate sh
25444   NULLCMD=:
25445   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25446   # is contrary to our usage.  Disable this feature.
25447   alias -g '${1+"$@"}'='"$@"'
25448   setopt NO_GLOB_SUBST
25449 else
25450   case `(set -o) 2>/dev/null` in
25451   *posix*) set -o posix ;;
25452 esac
25453
25454 fi
25455
25456
25457
25458
25459 # PATH needs CR
25460 # Avoid depending upon Character Ranges.
25461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25464 as_cr_digits='0123456789'
25465 as_cr_alnum=$as_cr_Letters$as_cr_digits
25466
25467 # The user is always right.
25468 if test "${PATH_SEPARATOR+set}" != set; then
25469   echo "#! /bin/sh" >conf$$.sh
25470   echo  "exit 0"   >>conf$$.sh
25471   chmod +x conf$$.sh
25472   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25473     PATH_SEPARATOR=';'
25474   else
25475     PATH_SEPARATOR=:
25476   fi
25477   rm -f conf$$.sh
25478 fi
25479
25480 # Support unset when possible.
25481 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25482   as_unset=unset
25483 else
25484   as_unset=false
25485 fi
25486
25487
25488 # IFS
25489 # We need space, tab and new line, in precisely that order.  Quoting is
25490 # there to prevent editors from complaining about space-tab.
25491 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25492 # splitting by setting IFS to empty value.)
25493 as_nl='
25494 '
25495 IFS=" ""        $as_nl"
25496
25497 # Find who we are.  Look in the path if we contain no directory separator.
25498 case $0 in
25499   *[\\/]* ) as_myself=$0 ;;
25500   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25501 for as_dir in $PATH
25502 do
25503   IFS=$as_save_IFS
25504   test -z "$as_dir" && as_dir=.
25505   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25506 done
25507 IFS=$as_save_IFS
25508
25509      ;;
25510 esac
25511 # We did not find ourselves, most probably we were run as `sh COMMAND'
25512 # in which case we are not to be found in the path.
25513 if test "x$as_myself" = x; then
25514   as_myself=$0
25515 fi
25516 if test ! -f "$as_myself"; then
25517   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25518   { (exit 1); exit 1; }
25519 fi
25520
25521 # Work around bugs in pre-3.0 UWIN ksh.
25522 for as_var in ENV MAIL MAILPATH
25523 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25524 done
25525 PS1='$ '
25526 PS2='> '
25527 PS4='+ '
25528
25529 # NLS nuisances.
25530 for as_var in \
25531   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25532   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25533   LC_TELEPHONE LC_TIME
25534 do
25535   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25536     eval $as_var=C; export $as_var
25537   else
25538     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25539   fi
25540 done
25541
25542 # Required to use basename.
25543 if expr a : '\(a\)' >/dev/null 2>&1 &&
25544    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25545   as_expr=expr
25546 else
25547   as_expr=false
25548 fi
25549
25550 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25551   as_basename=basename
25552 else
25553   as_basename=false
25554 fi
25555
25556
25557 # Name of the executable.
25558 as_me=`$as_basename -- "$0" ||
25559 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25560          X"$0" : 'X\(//\)$' \| \
25561          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25562 echo X/"$0" |
25563     sed '/^.*\/\([^/][^/]*\)\/*$/{
25564             s//\1/
25565             q
25566           }
25567           /^X\/\(\/\/\)$/{
25568             s//\1/
25569             q
25570           }
25571           /^X\/\(\/\).*/{
25572             s//\1/
25573             q
25574           }
25575           s/.*/./; q'`
25576
25577 # CDPATH.
25578 $as_unset CDPATH
25579
25580
25581
25582   as_lineno_1=$LINENO
25583   as_lineno_2=$LINENO
25584   test "x$as_lineno_1" != "x$as_lineno_2" &&
25585   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25586
25587   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25588   # uniformly replaced by the line number.  The first 'sed' inserts a
25589   # line-number line after each line using $LINENO; the second 'sed'
25590   # does the real work.  The second script uses 'N' to pair each
25591   # line-number line with the line containing $LINENO, and appends
25592   # trailing '-' during substitution so that $LINENO is not a special
25593   # case at line end.
25594   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25595   # scripts with optimization help from Paolo Bonzini.  Blame Lee
25596   # E. McMahon (1931-1989) for sed's syntax.  :-)
25597   sed -n '
25598     p
25599     /[$]LINENO/=
25600   ' <$as_myself |
25601     sed '
25602       s/[$]LINENO.*/&-/
25603       t lineno
25604       b
25605       :lineno
25606       N
25607       :loop
25608       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25609       t loop
25610       s/-\n.*//
25611     ' >$as_me.lineno &&
25612   chmod +x "$as_me.lineno" ||
25613     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25614    { (exit 1); exit 1; }; }
25615
25616   # Don't try to exec as it changes $[0], causing all sort of problems
25617   # (the dirname of $[0] is not the place where we might find the
25618   # original and so on.  Autoconf is especially sensitive to this).
25619   . "./$as_me.lineno"
25620   # Exit status is that of the last command.
25621   exit
25622 }
25623
25624
25625 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25626   as_dirname=dirname
25627 else
25628   as_dirname=false
25629 fi
25630
25631 ECHO_C= ECHO_N= ECHO_T=
25632 case `echo -n x` in
25633 -n*)
25634   case `echo 'x\c'` in
25635   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25636   *)   ECHO_C='\c';;
25637   esac;;
25638 *)
25639   ECHO_N='-n';;
25640 esac
25641
25642 if expr a : '\(a\)' >/dev/null 2>&1 &&
25643    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25644   as_expr=expr
25645 else
25646   as_expr=false
25647 fi
25648
25649 rm -f conf$$ conf$$.exe conf$$.file
25650 if test -d conf$$.dir; then
25651   rm -f conf$$.dir/conf$$.file
25652 else
25653   rm -f conf$$.dir
25654   mkdir conf$$.dir
25655 fi
25656 echo >conf$$.file
25657 if ln -s conf$$.file conf$$ 2>/dev/null; then
25658   as_ln_s='ln -s'
25659   # ... but there are two gotchas:
25660   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25661   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25662   # In both cases, we have to default to `cp -p'.
25663   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25664     as_ln_s='cp -p'
25665 elif ln conf$$.file conf$$ 2>/dev/null; then
25666   as_ln_s=ln
25667 else
25668   as_ln_s='cp -p'
25669 fi
25670 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25671 rmdir conf$$.dir 2>/dev/null
25672
25673 if mkdir -p . 2>/dev/null; then
25674   as_mkdir_p=:
25675 else
25676   test -d ./-p && rmdir ./-p
25677   as_mkdir_p=false
25678 fi
25679
25680 if test -x / >/dev/null 2>&1; then
25681   as_test_x='test -x'
25682 else
25683   if ls -dL / >/dev/null 2>&1; then
25684     as_ls_L_option=L
25685   else
25686     as_ls_L_option=
25687   fi
25688   as_test_x='
25689     eval sh -c '\''
25690       if test -d "$1"; then
25691         test -d "$1/.";
25692       else
25693         case $1 in
25694         -*)set "./$1";;
25695         esac;
25696         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25697         ???[sx]*):;;*)false;;esac;fi
25698     '\'' sh
25699   '
25700 fi
25701 as_executable_p=$as_test_x
25702
25703 # Sed expression to map a string onto a valid CPP name.
25704 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25705
25706 # Sed expression to map a string onto a valid variable name.
25707 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25708
25709
25710 exec 6>&1
25711
25712 # Save the log message, to keep $[0] and so on meaningful, and to
25713 # report actual input values of CONFIG_FILES etc. instead of their
25714 # values after options handling.
25715 ac_log="
25716 This file was extended by $as_me, which was
25717 generated by GNU Autoconf 2.61.  Invocation command line was
25718
25719   CONFIG_FILES    = $CONFIG_FILES
25720   CONFIG_HEADERS  = $CONFIG_HEADERS
25721   CONFIG_LINKS    = $CONFIG_LINKS
25722   CONFIG_COMMANDS = $CONFIG_COMMANDS
25723   $ $0 $@
25724
25725 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25726 "
25727
25728 _ACEOF
25729
25730 cat >>$CONFIG_STATUS <<_ACEOF
25731 # Files that config.status was made for.
25732 config_files="$ac_config_files"
25733 config_headers="$ac_config_headers"
25734 config_commands="$ac_config_commands"
25735
25736 _ACEOF
25737
25738 cat >>$CONFIG_STATUS <<\_ACEOF
25739 ac_cs_usage="\
25740 \`$as_me' instantiates files from templates according to the
25741 current configuration.
25742
25743 Usage: $0 [OPTIONS] [FILE]...
25744
25745   -h, --help       print this help, then exit
25746   -V, --version    print version number and configuration settings, then exit
25747   -q, --quiet      do not print progress messages
25748   -d, --debug      don't remove temporary files
25749       --recheck    update $as_me by reconfiguring in the same conditions
25750   --file=FILE[:TEMPLATE]
25751                    instantiate the configuration file FILE
25752   --header=FILE[:TEMPLATE]
25753                    instantiate the configuration header FILE
25754
25755 Configuration files:
25756 $config_files
25757
25758 Configuration headers:
25759 $config_headers
25760
25761 Configuration commands:
25762 $config_commands
25763
25764 Report bugs to <bug-autoconf@gnu.org>."
25765
25766 _ACEOF
25767 cat >>$CONFIG_STATUS <<_ACEOF
25768 ac_cs_version="\\
25769 config.status
25770 configured by $0, generated by GNU Autoconf 2.61,
25771   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25772
25773 Copyright (C) 2006 Free Software Foundation, Inc.
25774 This config.status script is free software; the Free Software Foundation
25775 gives unlimited permission to copy, distribute and modify it."
25776
25777 ac_pwd='$ac_pwd'
25778 srcdir='$srcdir'
25779 _ACEOF
25780
25781 cat >>$CONFIG_STATUS <<\_ACEOF
25782 # If no file are specified by the user, then we need to provide default
25783 # value.  By we need to know if files were specified by the user.
25784 ac_need_defaults=:
25785 while test $# != 0
25786 do
25787   case $1 in
25788   --*=*)
25789     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25790     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25791     ac_shift=:
25792     ;;
25793   *)
25794     ac_option=$1
25795     ac_optarg=$2
25796     ac_shift=shift
25797     ;;
25798   esac
25799
25800   case $ac_option in
25801   # Handling of the options.
25802   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25803     ac_cs_recheck=: ;;
25804   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25805     echo "$ac_cs_version"; exit ;;
25806   --debug | --debu | --deb | --de | --d | -d )
25807     debug=: ;;
25808   --file | --fil | --fi | --f )
25809     $ac_shift
25810     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25811     ac_need_defaults=false;;
25812   --header | --heade | --head | --hea )
25813     $ac_shift
25814     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25815     ac_need_defaults=false;;
25816   --he | --h)
25817     # Conflict between --help and --header
25818     { echo "$as_me: error: ambiguous option: $1
25819 Try \`$0 --help' for more information." >&2
25820    { (exit 1); exit 1; }; };;
25821   --help | --hel | -h )
25822     echo "$ac_cs_usage"; exit ;;
25823   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25824   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25825     ac_cs_silent=: ;;
25826
25827   # This is an error.
25828   -*) { echo "$as_me: error: unrecognized option: $1
25829 Try \`$0 --help' for more information." >&2
25830    { (exit 1); exit 1; }; } ;;
25831
25832   *) ac_config_targets="$ac_config_targets $1"
25833      ac_need_defaults=false ;;
25834
25835   esac
25836   shift
25837 done
25838
25839 ac_configure_extra_args=
25840
25841 if $ac_cs_silent; then
25842   exec 6>/dev/null
25843   ac_configure_extra_args="$ac_configure_extra_args --silent"
25844 fi
25845
25846 _ACEOF
25847 cat >>$CONFIG_STATUS <<_ACEOF
25848 if \$ac_cs_recheck; then
25849   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25850   CONFIG_SHELL=$SHELL
25851   export CONFIG_SHELL
25852   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25853 fi
25854
25855 _ACEOF
25856 cat >>$CONFIG_STATUS <<\_ACEOF
25857 exec 5>>config.log
25858 {
25859   echo
25860   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25861 ## Running $as_me. ##
25862 _ASBOX
25863   echo "$ac_log"
25864 } >&5
25865
25866 _ACEOF
25867 cat >>$CONFIG_STATUS <<_ACEOF
25868 _ACEOF
25869
25870 cat >>$CONFIG_STATUS <<\_ACEOF
25871
25872 # Handling of arguments.
25873 for ac_config_target in $ac_config_targets
25874 do
25875   case $ac_config_target in
25876     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
25877     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
25878     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
25879     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
25880     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
25881     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
25882     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
25883     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
25884     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
25885     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
25886     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
25887     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
25888     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
25889     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
25890     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
25891     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
25892     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
25893     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
25894
25895   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25896 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25897    { (exit 1); exit 1; }; };;
25898   esac
25899 done
25900
25901
25902 # If the user did not use the arguments to specify the items to instantiate,
25903 # then the envvar interface is used.  Set only those that are not.
25904 # We use the long form for the default assignment because of an extremely
25905 # bizarre bug on SunOS 4.1.3.
25906 if $ac_need_defaults; then
25907   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25908   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25909   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25910 fi
25911
25912 # Have a temporary directory for convenience.  Make it in the build tree
25913 # simply because there is no reason against having it here, and in addition,
25914 # creating and moving files from /tmp can sometimes cause problems.
25915 # Hook for its removal unless debugging.
25916 # Note that there is a small window in which the directory will not be cleaned:
25917 # after its creation but before its name has been assigned to `$tmp'.
25918 $debug ||
25919 {
25920   tmp=
25921   trap 'exit_status=$?
25922   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25923 ' 0
25924   trap '{ (exit 1); exit 1; }' 1 2 13 15
25925 }
25926 # Create a (secure) tmp directory for tmp files.
25927
25928 {
25929   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25930   test -n "$tmp" && test -d "$tmp"
25931 }  ||
25932 {
25933   tmp=./conf$$-$RANDOM
25934   (umask 077 && mkdir "$tmp")
25935 } ||
25936 {
25937    echo "$me: cannot create a temporary directory in ." >&2
25938    { (exit 1); exit 1; }
25939 }
25940
25941 #
25942 # Set up the sed scripts for CONFIG_FILES section.
25943 #
25944
25945 # No need to generate the scripts if there are no CONFIG_FILES.
25946 # This happens for instance when ./config.status config.h
25947 if test -n "$CONFIG_FILES"; then
25948
25949 _ACEOF
25950
25951
25952
25953 ac_delim='%!_!# '
25954 for ac_last_try in false false false false false :; do
25955   cat >conf$$subs.sed <<_ACEOF
25956 SHELL!$SHELL$ac_delim
25957 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25958 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25959 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25960 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25961 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25962 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25963 exec_prefix!$exec_prefix$ac_delim
25964 prefix!$prefix$ac_delim
25965 program_transform_name!$program_transform_name$ac_delim
25966 bindir!$bindir$ac_delim
25967 sbindir!$sbindir$ac_delim
25968 libexecdir!$libexecdir$ac_delim
25969 datarootdir!$datarootdir$ac_delim
25970 datadir!$datadir$ac_delim
25971 sysconfdir!$sysconfdir$ac_delim
25972 sharedstatedir!$sharedstatedir$ac_delim
25973 localstatedir!$localstatedir$ac_delim
25974 includedir!$includedir$ac_delim
25975 oldincludedir!$oldincludedir$ac_delim
25976 docdir!$docdir$ac_delim
25977 infodir!$infodir$ac_delim
25978 htmldir!$htmldir$ac_delim
25979 dvidir!$dvidir$ac_delim
25980 pdfdir!$pdfdir$ac_delim
25981 psdir!$psdir$ac_delim
25982 libdir!$libdir$ac_delim
25983 localedir!$localedir$ac_delim
25984 mandir!$mandir$ac_delim
25985 DEFS!$DEFS$ac_delim
25986 ECHO_C!$ECHO_C$ac_delim
25987 ECHO_N!$ECHO_N$ac_delim
25988 ECHO_T!$ECHO_T$ac_delim
25989 LIBS!$LIBS$ac_delim
25990 build_alias!$build_alias$ac_delim
25991 host_alias!$host_alias$ac_delim
25992 target_alias!$target_alias$ac_delim
25993 CC!$CC$ac_delim
25994 CFLAGS!$CFLAGS$ac_delim
25995 LDFLAGS!$LDFLAGS$ac_delim
25996 CPPFLAGS!$CPPFLAGS$ac_delim
25997 ac_ct_CC!$ac_ct_CC$ac_delim
25998 EXEEXT!$EXEEXT$ac_delim
25999 OBJEXT!$OBJEXT$ac_delim
26000 CXX!$CXX$ac_delim
26001 CXXFLAGS!$CXXFLAGS$ac_delim
26002 ac_ct_CXX!$ac_ct_CXX$ac_delim
26003 CPP!$CPP$ac_delim
26004 GREP!$GREP$ac_delim
26005 EGREP!$EGREP$ac_delim
26006 RANLIB!$RANLIB$ac_delim
26007 GMAKE!$GMAKE$ac_delim
26008 MAKE!$MAKE$ac_delim
26009 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
26010 LIBTOOL!$LIBTOOL$ac_delim
26011 build!$build$ac_delim
26012 build_cpu!$build_cpu$ac_delim
26013 build_vendor!$build_vendor$ac_delim
26014 build_os!$build_os$ac_delim
26015 host!$host$ac_delim
26016 host_cpu!$host_cpu$ac_delim
26017 host_vendor!$host_vendor$ac_delim
26018 host_os!$host_os$ac_delim
26019 LN_S!$LN_S$ac_delim
26020 ECHO!$ECHO$ac_delim
26021 AR!$AR$ac_delim
26022 STRIP!$STRIP$ac_delim
26023 CXXCPP!$CXXCPP$ac_delim
26024 F77!$F77$ac_delim
26025 FFLAGS!$FFLAGS$ac_delim
26026 ac_ct_F77!$ac_ct_F77$ac_delim
26027 logdir!$logdir$ac_delim
26028 radacctdir!$radacctdir$ac_delim
26029 raddbdir!$raddbdir$ac_delim
26030 PERL!$PERL$ac_delim
26031 SNMPGET!$SNMPGET$ac_delim
26032 SNMPWALK!$SNMPWALK$ac_delim
26033 RUSERS!$RUSERS$ac_delim
26034 ACLOCAL!$ACLOCAL$ac_delim
26035 AUTOCONF!$AUTOCONF$ac_delim
26036 AUTOHEADER!$AUTOHEADER$ac_delim
26037 LOCATE!$LOCATE$ac_delim
26038 DIRNAME!$DIRNAME$ac_delim
26039 LIBREADLINE!$LIBREADLINE$ac_delim
26040 REGEX!$REGEX$ac_delim
26041 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26042 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26043 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26044 PCAP_LIBS!$PCAP_LIBS$ac_delim
26045 LIBPREFIX!$LIBPREFIX$ac_delim
26046 CRYPTLIB!$CRYPTLIB$ac_delim
26047 HOSTINFO!$HOSTINFO$ac_delim
26048 LIBLTDL!$LIBLTDL$ac_delim
26049 INCLTDL!$INCLTDL$ac_delim
26050 subdirs!$subdirs$ac_delim
26051 MODULES!$MODULES$ac_delim
26052 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26053 _ACEOF
26054
26055   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26056     break
26057   elif $ac_last_try; then
26058     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26059 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26060    { (exit 1); exit 1; }; }
26061   else
26062     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26063   fi
26064 done
26065
26066 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26067 if test -n "$ac_eof"; then
26068   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26069   ac_eof=`expr $ac_eof + 1`
26070 fi
26071
26072 cat >>$CONFIG_STATUS <<_ACEOF
26073 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26075 _ACEOF
26076 sed '
26077 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26078 s/^/s,@/; s/!/@,|#_!!_#|/
26079 :n
26080 t n
26081 s/'"$ac_delim"'$/,g/; t
26082 s/$/\\/; p
26083 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26084 ' >>$CONFIG_STATUS <conf$$subs.sed
26085 rm -f conf$$subs.sed
26086 cat >>$CONFIG_STATUS <<_ACEOF
26087 CEOF$ac_eof
26088 _ACEOF
26089
26090
26091 ac_delim='%!_!# '
26092 for ac_last_try in false false false false false :; do
26093   cat >conf$$subs.sed <<_ACEOF
26094 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26095 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26096 STATIC_MODULES!$STATIC_MODULES$ac_delim
26097 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26098 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26099 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26100 LIBOBJS!$LIBOBJS$ac_delim
26101 LTLIBOBJS!$LTLIBOBJS$ac_delim
26102 _ACEOF
26103
26104   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
26105     break
26106   elif $ac_last_try; then
26107     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26108 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26109    { (exit 1); exit 1; }; }
26110   else
26111     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26112   fi
26113 done
26114
26115 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26116 if test -n "$ac_eof"; then
26117   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26118   ac_eof=`expr $ac_eof + 1`
26119 fi
26120
26121 cat >>$CONFIG_STATUS <<_ACEOF
26122 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26123 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26124 _ACEOF
26125 sed '
26126 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26127 s/^/s,@/; s/!/@,|#_!!_#|/
26128 :n
26129 t n
26130 s/'"$ac_delim"'$/,g/; t
26131 s/$/\\/; p
26132 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26133 ' >>$CONFIG_STATUS <conf$$subs.sed
26134 rm -f conf$$subs.sed
26135 cat >>$CONFIG_STATUS <<_ACEOF
26136 :end
26137 s/|#_!!_#|//g
26138 CEOF$ac_eof
26139 _ACEOF
26140
26141
26142 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26143 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26144 # trailing colons and then remove the whole line if VPATH becomes empty
26145 # (actually we leave an empty line to preserve line numbers).
26146 if test "x$srcdir" = x.; then
26147   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26148 s/:*\$(srcdir):*/:/
26149 s/:*\${srcdir}:*/:/
26150 s/:*@srcdir@:*/:/
26151 s/^\([^=]*=[     ]*\):*/\1/
26152 s/:*$//
26153 s/^[^=]*=[       ]*$//
26154 }'
26155 fi
26156
26157 cat >>$CONFIG_STATUS <<\_ACEOF
26158 fi # test -n "$CONFIG_FILES"
26159
26160
26161 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
26162 do
26163   case $ac_tag in
26164   :[FHLC]) ac_mode=$ac_tag; continue;;
26165   esac
26166   case $ac_mode$ac_tag in
26167   :[FHL]*:*);;
26168   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26169 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26170    { (exit 1); exit 1; }; };;
26171   :[FH]-) ac_tag=-:-;;
26172   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26173   esac
26174   ac_save_IFS=$IFS
26175   IFS=:
26176   set x $ac_tag
26177   IFS=$ac_save_IFS
26178   shift
26179   ac_file=$1
26180   shift
26181
26182   case $ac_mode in
26183   :L) ac_source=$1;;
26184   :[FH])
26185     ac_file_inputs=
26186     for ac_f
26187     do
26188       case $ac_f in
26189       -) ac_f="$tmp/stdin";;
26190       *) # Look for the file first in the build tree, then in the source tree
26191          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26192          # because $ac_f cannot contain `:'.
26193          test -f "$ac_f" ||
26194            case $ac_f in
26195            [\\/$]*) false;;
26196            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26197            esac ||
26198            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26199 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26200    { (exit 1); exit 1; }; };;
26201       esac
26202       ac_file_inputs="$ac_file_inputs $ac_f"
26203     done
26204
26205     # Let's still pretend it is `configure' which instantiates (i.e., don't
26206     # use $as_me), people would be surprised to read:
26207     #    /* config.h.  Generated by config.status.  */
26208     configure_input="Generated from "`IFS=:
26209           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26210     if test x"$ac_file" != x-; then
26211       configure_input="$ac_file.  $configure_input"
26212       { echo "$as_me:$LINENO: creating $ac_file" >&5
26213 echo "$as_me: creating $ac_file" >&6;}
26214     fi
26215
26216     case $ac_tag in
26217     *:-:* | *:-) cat >"$tmp/stdin";;
26218     esac
26219     ;;
26220   esac
26221
26222   ac_dir=`$as_dirname -- "$ac_file" ||
26223 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26224          X"$ac_file" : 'X\(//\)[^/]' \| \
26225          X"$ac_file" : 'X\(//\)$' \| \
26226          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26227 echo X"$ac_file" |
26228     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26229             s//\1/
26230             q
26231           }
26232           /^X\(\/\/\)[^/].*/{
26233             s//\1/
26234             q
26235           }
26236           /^X\(\/\/\)$/{
26237             s//\1/
26238             q
26239           }
26240           /^X\(\/\).*/{
26241             s//\1/
26242             q
26243           }
26244           s/.*/./; q'`
26245   { as_dir="$ac_dir"
26246   case $as_dir in #(
26247   -*) as_dir=./$as_dir;;
26248   esac
26249   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26250     as_dirs=
26251     while :; do
26252       case $as_dir in #(
26253       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26254       *) as_qdir=$as_dir;;
26255       esac
26256       as_dirs="'$as_qdir' $as_dirs"
26257       as_dir=`$as_dirname -- "$as_dir" ||
26258 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26259          X"$as_dir" : 'X\(//\)[^/]' \| \
26260          X"$as_dir" : 'X\(//\)$' \| \
26261          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26262 echo X"$as_dir" |
26263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26264             s//\1/
26265             q
26266           }
26267           /^X\(\/\/\)[^/].*/{
26268             s//\1/
26269             q
26270           }
26271           /^X\(\/\/\)$/{
26272             s//\1/
26273             q
26274           }
26275           /^X\(\/\).*/{
26276             s//\1/
26277             q
26278           }
26279           s/.*/./; q'`
26280       test -d "$as_dir" && break
26281     done
26282     test -z "$as_dirs" || eval "mkdir $as_dirs"
26283   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26284 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26285    { (exit 1); exit 1; }; }; }
26286   ac_builddir=.
26287
26288 case "$ac_dir" in
26289 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26290 *)
26291   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26292   # A ".." for each directory in $ac_dir_suffix.
26293   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26294   case $ac_top_builddir_sub in
26295   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26296   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26297   esac ;;
26298 esac
26299 ac_abs_top_builddir=$ac_pwd
26300 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26301 # for backward compatibility:
26302 ac_top_builddir=$ac_top_build_prefix
26303
26304 case $srcdir in
26305   .)  # We are building in place.
26306     ac_srcdir=.
26307     ac_top_srcdir=$ac_top_builddir_sub
26308     ac_abs_top_srcdir=$ac_pwd ;;
26309   [\\/]* | ?:[\\/]* )  # Absolute name.
26310     ac_srcdir=$srcdir$ac_dir_suffix;
26311     ac_top_srcdir=$srcdir
26312     ac_abs_top_srcdir=$srcdir ;;
26313   *) # Relative name.
26314     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26315     ac_top_srcdir=$ac_top_build_prefix$srcdir
26316     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26317 esac
26318 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26319
26320
26321   case $ac_mode in
26322   :F)
26323   #
26324   # CONFIG_FILE
26325   #
26326
26327 _ACEOF
26328
26329 cat >>$CONFIG_STATUS <<\_ACEOF
26330 # If the template does not know about datarootdir, expand it.
26331 # FIXME: This hack should be removed a few years after 2.60.
26332 ac_datarootdir_hack=; ac_datarootdir_seen=
26333
26334 case `sed -n '/datarootdir/ {
26335   p
26336   q
26337 }
26338 /@datadir@/p
26339 /@docdir@/p
26340 /@infodir@/p
26341 /@localedir@/p
26342 /@mandir@/p
26343 ' $ac_file_inputs` in
26344 *datarootdir*) ac_datarootdir_seen=yes;;
26345 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26346   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26347 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26348 _ACEOF
26349 cat >>$CONFIG_STATUS <<_ACEOF
26350   ac_datarootdir_hack='
26351   s&@datadir@&$datadir&g
26352   s&@docdir@&$docdir&g
26353   s&@infodir@&$infodir&g
26354   s&@localedir@&$localedir&g
26355   s&@mandir@&$mandir&g
26356     s&\\\${datarootdir}&$datarootdir&g' ;;
26357 esac
26358 _ACEOF
26359
26360 # Neutralize VPATH when `$srcdir' = `.'.
26361 # Shell code in configure.ac might set extrasub.
26362 # FIXME: do we really want to maintain this feature?
26363 cat >>$CONFIG_STATUS <<_ACEOF
26364   sed "$ac_vpsub
26365 $extrasub
26366 _ACEOF
26367 cat >>$CONFIG_STATUS <<\_ACEOF
26368 :t
26369 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26370 s&@configure_input@&$configure_input&;t t
26371 s&@top_builddir@&$ac_top_builddir_sub&;t t
26372 s&@srcdir@&$ac_srcdir&;t t
26373 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26374 s&@top_srcdir@&$ac_top_srcdir&;t t
26375 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26376 s&@builddir@&$ac_builddir&;t t
26377 s&@abs_builddir@&$ac_abs_builddir&;t t
26378 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26379 $ac_datarootdir_hack
26380 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26381
26382 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26383   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26384   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26385   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26386 which seems to be undefined.  Please make sure it is defined." >&5
26387 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26388 which seems to be undefined.  Please make sure it is defined." >&2;}
26389
26390   rm -f "$tmp/stdin"
26391   case $ac_file in
26392   -) cat "$tmp/out"; rm -f "$tmp/out";;
26393   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26394   esac
26395  ;;
26396   :H)
26397   #
26398   # CONFIG_HEADER
26399   #
26400 _ACEOF
26401
26402 # Transform confdefs.h into a sed script `conftest.defines', that
26403 # substitutes the proper values into config.h.in to produce config.h.
26404 rm -f conftest.defines conftest.tail
26405 # First, append a space to every undef/define line, to ease matching.
26406 echo 's/$/ /' >conftest.defines
26407 # Then, protect against being on the right side of a sed subst, or in
26408 # an unquoted here document, in config.status.  If some macros were
26409 # called several times there might be several #defines for the same
26410 # symbol, which is useless.  But do not sort them, since the last
26411 # AC_DEFINE must be honored.
26412 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26413 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26414 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26415 # PARAMS is the parameter list in the macro definition--in most cases, it's
26416 # just an empty string.
26417 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
26418 ac_dB='\\)[      (].*,\\1define\\2'
26419 ac_dC=' '
26420 ac_dD=' ,'
26421
26422 uniq confdefs.h |
26423   sed -n '
26424         t rset
26425         :rset
26426         s/^[     ]*#[    ]*define[       ][      ]*//
26427         t ok
26428         d
26429         :ok
26430         s/[\\&,]/\\&/g
26431         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26432         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26433   ' >>conftest.defines
26434
26435 # Remove the space that was appended to ease matching.
26436 # Then replace #undef with comments.  This is necessary, for
26437 # example, in the case of _POSIX_SOURCE, which is predefined and required
26438 # on some systems where configure will not decide to define it.
26439 # (The regexp can be short, since the line contains either #define or #undef.)
26440 echo 's/ $//
26441 s,^[     #]*u.*,/* & */,' >>conftest.defines
26442
26443 # Break up conftest.defines:
26444 ac_max_sed_lines=50
26445
26446 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26447 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26448 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26449 # et cetera.
26450 ac_in='$ac_file_inputs'
26451 ac_out='"$tmp/out1"'
26452 ac_nxt='"$tmp/out2"'
26453
26454 while :
26455 do
26456   # Write a here document:
26457     cat >>$CONFIG_STATUS <<_ACEOF
26458     # First, check the format of the line:
26459     cat >"\$tmp/defines.sed" <<\\CEOF
26460 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
26461 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
26462 b
26463 :def
26464 _ACEOF
26465   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26466   echo 'CEOF
26467     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26468   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26469   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26470   grep . conftest.tail >/dev/null || break
26471   rm -f conftest.defines
26472   mv conftest.tail conftest.defines
26473 done
26474 rm -f conftest.defines conftest.tail
26475
26476 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26477 cat >>$CONFIG_STATUS <<\_ACEOF
26478   if test x"$ac_file" != x-; then
26479     echo "/* $configure_input  */" >"$tmp/config.h"
26480     cat "$ac_result" >>"$tmp/config.h"
26481     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26482       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26483 echo "$as_me: $ac_file is unchanged" >&6;}
26484     else
26485       rm -f $ac_file
26486       mv "$tmp/config.h" $ac_file
26487     fi
26488   else
26489     echo "/* $configure_input  */"
26490     cat "$ac_result"
26491   fi
26492   rm -f "$tmp/out12"
26493  ;;
26494
26495   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26496 echo "$as_me: executing $ac_file commands" >&6;}
26497  ;;
26498   esac
26499
26500
26501   case $ac_file$ac_mode in
26502     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
26503     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26504     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
26505     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26506
26507   esac
26508 done # for ac_tag
26509
26510
26511 { (exit 0); exit 0; }
26512 _ACEOF
26513 chmod +x $CONFIG_STATUS
26514 ac_clean_files=$ac_clean_files_save
26515
26516
26517 # configure is writing to config.log, and then calls config.status.
26518 # config.status does its own redirection, appending to config.log.
26519 # Unfortunately, on DOS this fails, as config.log is still kept open
26520 # by configure, so config.status won't be able to write to it; its
26521 # output is simply discarded.  So we exec the FD to /dev/null,
26522 # effectively closing config.log, so it can be properly (re)opened and
26523 # appended to by config.status.  When coming back to configure, we
26524 # need to make the FD available again.
26525 if test "$no_create" != yes; then
26526   ac_cs_success=:
26527   ac_config_status_args=
26528   test "$silent" = yes &&
26529     ac_config_status_args="$ac_config_status_args --quiet"
26530   exec 5>/dev/null
26531   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26532   exec 5>>config.log
26533   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26534   # would make configure fail if this is the last instruction.
26535   $ac_cs_success || { (exit 1); exit 1; }
26536 fi
26537
26538 #
26539 # CONFIG_SUBDIRS section.
26540 #
26541 if test "$no_recursion" != yes; then
26542
26543   # Remove --cache-file and --srcdir arguments so they do not pile up.
26544   ac_sub_configure_args=
26545   ac_prev=
26546   eval "set x $ac_configure_args"
26547   shift
26548   for ac_arg
26549   do
26550     if test -n "$ac_prev"; then
26551       ac_prev=
26552       continue
26553     fi
26554     case $ac_arg in
26555     -cache-file | --cache-file | --cache-fil | --cache-fi \
26556     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26557       ac_prev=cache_file ;;
26558     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26559     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26560     | --c=*)
26561       ;;
26562     --config-cache | -C)
26563       ;;
26564     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26565       ac_prev=srcdir ;;
26566     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26567       ;;
26568     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26569       ac_prev=prefix ;;
26570     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26571       ;;
26572     *)
26573       case $ac_arg in
26574       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26575       esac
26576       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
26577     esac
26578   done
26579
26580   # Always prepend --prefix to ensure using the same prefix
26581   # in subdir configurations.
26582   ac_arg="--prefix=$prefix"
26583   case $ac_arg in
26584   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26585   esac
26586   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
26587
26588   # Pass --silent
26589   if test "$silent" = yes; then
26590     ac_sub_configure_args="--silent $ac_sub_configure_args"
26591   fi
26592
26593   ac_popdir=`pwd`
26594   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26595
26596     # Do not complain, so a configure script can configure whichever
26597     # parts of a large source tree are present.
26598     test -d "$srcdir/$ac_dir" || continue
26599
26600     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26601     echo "$as_me:$LINENO: $ac_msg" >&5
26602     echo "$ac_msg" >&6
26603     { as_dir="$ac_dir"
26604   case $as_dir in #(
26605   -*) as_dir=./$as_dir;;
26606   esac
26607   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26608     as_dirs=
26609     while :; do
26610       case $as_dir in #(
26611       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26612       *) as_qdir=$as_dir;;
26613       esac
26614       as_dirs="'$as_qdir' $as_dirs"
26615       as_dir=`$as_dirname -- "$as_dir" ||
26616 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26617          X"$as_dir" : 'X\(//\)[^/]' \| \
26618          X"$as_dir" : 'X\(//\)$' \| \
26619          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26620 echo X"$as_dir" |
26621     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26622             s//\1/
26623             q
26624           }
26625           /^X\(\/\/\)[^/].*/{
26626             s//\1/
26627             q
26628           }
26629           /^X\(\/\/\)$/{
26630             s//\1/
26631             q
26632           }
26633           /^X\(\/\).*/{
26634             s//\1/
26635             q
26636           }
26637           s/.*/./; q'`
26638       test -d "$as_dir" && break
26639     done
26640     test -z "$as_dirs" || eval "mkdir $as_dirs"
26641   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26642 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26643    { (exit 1); exit 1; }; }; }
26644     ac_builddir=.
26645
26646 case "$ac_dir" in
26647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26648 *)
26649   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26650   # A ".." for each directory in $ac_dir_suffix.
26651   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26652   case $ac_top_builddir_sub in
26653   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26654   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26655   esac ;;
26656 esac
26657 ac_abs_top_builddir=$ac_pwd
26658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26659 # for backward compatibility:
26660 ac_top_builddir=$ac_top_build_prefix
26661
26662 case $srcdir in
26663   .)  # We are building in place.
26664     ac_srcdir=.
26665     ac_top_srcdir=$ac_top_builddir_sub
26666     ac_abs_top_srcdir=$ac_pwd ;;
26667   [\\/]* | ?:[\\/]* )  # Absolute name.
26668     ac_srcdir=$srcdir$ac_dir_suffix;
26669     ac_top_srcdir=$srcdir
26670     ac_abs_top_srcdir=$srcdir ;;
26671   *) # Relative name.
26672     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26673     ac_top_srcdir=$ac_top_build_prefix$srcdir
26674     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26675 esac
26676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26677
26678
26679     cd "$ac_dir"
26680
26681     # Check for guested configure; otherwise get Cygnus style configure.
26682     if test -f "$ac_srcdir/configure.gnu"; then
26683       ac_sub_configure=$ac_srcdir/configure.gnu
26684     elif test -f "$ac_srcdir/configure"; then
26685       ac_sub_configure=$ac_srcdir/configure
26686     elif test -f "$ac_srcdir/configure.in"; then
26687       # This should be Cygnus configure.
26688       ac_sub_configure=$ac_aux_dir/configure
26689     else
26690       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26691 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26692       ac_sub_configure=
26693     fi
26694
26695     # The recursion is here.
26696     if test -n "$ac_sub_configure"; then
26697       # Make the cache file name correct relative to the subdirectory.
26698       case $cache_file in
26699       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26700       *) # Relative name.
26701         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
26702       esac
26703
26704       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26705 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26706       # The eval makes quoting arguments work.
26707       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
26708            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
26709         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26710 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26711    { (exit 1); exit 1; }; }
26712     fi
26713
26714     cd "$ac_popdir"
26715   done
26716 fi
26717
26718