Updating dictionary.erx based on Juniper documentation
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in
25   *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43   echo "#! /bin/sh" >conf$$.sh
44   echo  "exit 0"   >>conf$$.sh
45   chmod +x conf$$.sh
46   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47     PATH_SEPARATOR=';'
48   else
49     PATH_SEPARATOR=:
50   fi
51   rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56   as_unset=unset
57 else
58   as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order.  Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" ""        $as_nl"
70
71 # Find who we are.  Look in the path if we contain no directory separator.
72 case $0 in
73   *[\\/]* ) as_myself=$0 ;;
74   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77   IFS=$as_save_IFS
78   test -z "$as_dir" && as_dir=.
79   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83      ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88   as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92   { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107   LC_TELEPHONE LC_TIME
108 do
109   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110     eval $as_var=C; export $as_var
111   else
112     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113   fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118    test "X`expr 00001 : '.*\(...\)'`" = X001; then
119   as_expr=expr
120 else
121   as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125   as_basename=basename
126 else
127   as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134          X"$0" : 'X\(//\)$' \| \
135          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137     sed '/^.*\/\([^/][^/]*\)\/*$/{
138             s//\1/
139             q
140           }
141           /^X\/\(\/\/\)$/{
142             s//\1/
143             q
144           }
145           /^X\/\(\/\).*/{
146             s//\1/
147             q
148           }
149           s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156   if (eval ":") 2>/dev/null; then
157   as_have_required=yes
158 else
159   as_have_required=no
160 fi
161
162   if test $as_have_required = yes &&     (eval ":
163 (as_func_return () {
164   (exit \$1)
165 }
166 as_func_success () {
167   as_func_return 0
168 }
169 as_func_failure () {
170   as_func_return 1
171 }
172 as_func_ret_success () {
173   return 0
174 }
175 as_func_ret_failure () {
176   return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181   :
182 else
183   exitcode=1
184   echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188   exitcode=1
189   echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193   :
194 else
195   exitcode=1
196   echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200   exitcode=1
201   echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205   :
206 else
207   exitcode=1
208   echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214   as_lineno_1=\$LINENO
215   as_lineno_2=\$LINENO
216   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219   :
220 else
221   as_candidate_shells=
222     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225   IFS=$as_save_IFS
226   test -z "$as_dir" && as_dir=.
227   case $as_dir in
228          /*)
229            for as_base in sh bash ksh sh5; do
230              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231            done;;
232        esac
233 done
234 IFS=$as_save_IFS
235
236
237       for as_shell in $as_candidate_shells $SHELL; do
238          # Try only shells that exist, to save several forks.
239          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240                 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in
250   *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259   CONFIG_SHELL=$as_shell
260                as_have_required=yes
261                if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263   emulate sh
264   NULLCMD=:
265   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266   # is contrary to our usage.  Disable this feature.
267   alias -g '${1+"$@"}'='"$@"'
268   setopt NO_GLOB_SUBST
269 else
270   case `(set -o) 2>/dev/null` in
271   *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279   (exit $1)
280 }
281 as_func_success () {
282   as_func_return 0
283 }
284 as_func_failure () {
285   as_func_return 1
286 }
287 as_func_ret_success () {
288   return 0
289 }
290 as_func_ret_failure () {
291   return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296   :
297 else
298   exitcode=1
299   echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303   exitcode=1
304   echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308   :
309 else
310   exitcode=1
311   echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315   exitcode=1
316   echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320   :
321 else
322   exitcode=1
323   echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329   as_lineno_1=$LINENO
330   as_lineno_2=$LINENO
331   test "x$as_lineno_1" != "x$as_lineno_2" &&
332   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336   break
337 fi
338
339 fi
340
341       done
342
343       if test "x$CONFIG_SHELL" != x; then
344   for as_var in BASH_ENV ENV
345         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346         done
347         export CONFIG_SHELL
348         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352     if test $as_have_required = no; then
353   echo This script requires a shell more modern than all the
354       echo shells that I found on your system.  Please install a
355       echo modern shell, or manually run the script under such a
356       echo shell if you do have one.
357       { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368   (exit \$1)
369 }
370 as_func_success () {
371   as_func_return 0
372 }
373 as_func_failure () {
374   as_func_return 1
375 }
376 as_func_ret_success () {
377   return 0
378 }
379 as_func_ret_failure () {
380   return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385   :
386 else
387   exitcode=1
388   echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392   exitcode=1
393   echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397   :
398 else
399   exitcode=1
400   echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404   exitcode=1
405   echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409   :
410 else
411   exitcode=1
412   echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416   echo No shell found that supports shell functions.
417   echo Please tell autoconf@gnu.org about your system,
418   echo including any error possibly output before this
419   echo message
420 }
421
422
423
424   as_lineno_1=$LINENO
425   as_lineno_2=$LINENO
426   test "x$as_lineno_1" != "x$as_lineno_2" &&
427   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430   # uniformly replaced by the line number.  The first 'sed' inserts a
431   # line-number line after each line using $LINENO; the second 'sed'
432   # does the real work.  The second script uses 'N' to pair each
433   # line-number line with the line containing $LINENO, and appends
434   # trailing '-' during substitution so that $LINENO is not a special
435   # case at line end.
436   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437   # scripts with optimization help from Paolo Bonzini.  Blame Lee
438   # E. McMahon (1931-1989) for sed's syntax.  :-)
439   sed -n '
440     p
441     /[$]LINENO/=
442   ' <$as_myself |
443     sed '
444       s/[$]LINENO.*/&-/
445       t lineno
446       b
447       :lineno
448       N
449       :loop
450       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451       t loop
452       s/-\n.*//
453     ' >$as_me.lineno &&
454   chmod +x "$as_me.lineno" ||
455     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456    { (exit 1); exit 1; }; }
457
458   # Don't try to exec as it changes $[0], causing all sort of problems
459   # (the dirname of $[0] is not the place where we might find the
460   # original and so on.  Autoconf is especially sensitive to this).
461   . "./$as_me.lineno"
462   # Exit status is that of the last command.
463   exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468   as_dirname=dirname
469 else
470   as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476   case `echo 'x\c'` in
477   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
478   *)   ECHO_C='\c';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485    test "X`expr 00001 : '.*\(...\)'`" = X001; then
486   as_expr=expr
487 else
488   as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493   rm -f conf$$.dir/conf$$.file
494 else
495   rm -f conf$$.dir
496   mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500   as_ln_s='ln -s'
501   # ... but there are two gotchas:
502   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504   # In both cases, we have to default to `cp -p'.
505   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506     as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508   as_ln_s=ln
509 else
510   as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516   as_mkdir_p=:
517 else
518   test -d ./-p && rmdir ./-p
519   as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523   as_test_x='test -x'
524 else
525   if ls -dL / >/dev/null 2>&1; then
526     as_ls_L_option=L
527   else
528     as_ls_L_option=
529   fi
530   as_test_x='
531     eval sh -c '\''
532       if test -d "$1"; then
533         test -d "$1/.";
534       else
535         case $1 in
536         -*)set "./$1";;
537         esac;
538         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539         ???[sx]*):;;*)false;;esac;fi
540     '\'' sh
541   '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553
554 # Check that we are running under the correct shell.
555 SHELL=${CONFIG_SHELL-/bin/sh}
556
557 case X$ECHO in
558 X*--fallback-echo)
559   # Remove one level of quotation (which was required for Make).
560   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
561   ;;
562 esac
563
564 echo=${ECHO-echo}
565 if test "X$1" = X--no-reexec; then
566   # Discard the --no-reexec flag, and continue.
567   shift
568 elif test "X$1" = X--fallback-echo; then
569   # Avoid inline document here, it may be left over
570   :
571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
572   # Yippee, $echo works!
573   :
574 else
575   # Restart under the correct shell.
576   exec $SHELL "$0" --no-reexec ${1+"$@"}
577 fi
578
579 if test "X$1" = X--fallback-echo; then
580   # used as fallback echo
581   shift
582   cat <<EOF
583 $*
584 EOF
585   exit 0
586 fi
587
588 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 # if CDPATH is set.
590 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591
592 if test -z "$ECHO"; then
593 if test "X${echo_test_string+set}" != Xset; then
594 # find a string as large as possible, as long as the shell can cope with it
595   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
598        echo_test_string=`eval $cmd` &&
599        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
600     then
601       break
602     fi
603   done
604 fi
605
606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
607    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
608    test "X$echo_testing_string" = "X$echo_test_string"; then
609   :
610 else
611   # The Solaris, AIX, and Digital Unix default echo programs unquote
612   # backslashes.  This makes it impossible to quote backslashes using
613   #   echo "$something" | sed 's/\\/\\\\/g'
614   #
615   # So, first we look for a working echo in the user's PATH.
616
617   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618   for dir in $PATH /usr/ucb; do
619     IFS="$lt_save_ifs"
620     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623        test "X$echo_testing_string" = "X$echo_test_string"; then
624       echo="$dir/echo"
625       break
626     fi
627   done
628   IFS="$lt_save_ifs"
629
630   if test "X$echo" = Xecho; then
631     # We didn't find a better echo, so look for alternatives.
632     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
633        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
634        test "X$echo_testing_string" = "X$echo_test_string"; then
635       # This shell has a builtin print -r that does the trick.
636       echo='print -r'
637     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
638          test "X$CONFIG_SHELL" != X/bin/ksh; then
639       # If we have ksh, try running configure again with it.
640       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641       export ORIGINAL_CONFIG_SHELL
642       CONFIG_SHELL=/bin/ksh
643       export CONFIG_SHELL
644       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645     else
646       # Try using printf.
647       echo='printf %s\n'
648       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
649          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
650          test "X$echo_testing_string" = "X$echo_test_string"; then
651         # Cool, printf works
652         :
653       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654            test "X$echo_testing_string" = 'X\t' &&
655            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656            test "X$echo_testing_string" = "X$echo_test_string"; then
657         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658         export CONFIG_SHELL
659         SHELL="$CONFIG_SHELL"
660         export SHELL
661         echo="$CONFIG_SHELL $0 --fallback-echo"
662       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663            test "X$echo_testing_string" = 'X\t' &&
664            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665            test "X$echo_testing_string" = "X$echo_test_string"; then
666         echo="$CONFIG_SHELL $0 --fallback-echo"
667       else
668         # maybe with a smaller string...
669         prev=:
670
671         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
673           then
674             break
675           fi
676           prev="$cmd"
677         done
678
679         if test "$prev" != 'sed 50q "$0"'; then
680           echo_test_string=`eval $prev`
681           export echo_test_string
682           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683         else
684           # Oops.  We lost completely, so just stick with echo.
685           echo=echo
686         fi
687       fi
688     fi
689   fi
690 fi
691 fi
692
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
695 ECHO=$echo
696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698 fi
699
700
701
702
703 tagnames=${tagnames+${tagnames},}CXX
704
705 tagnames=${tagnames+${tagnames},}F77
706
707 exec 7<&0 </dev/null 6>&1
708
709 # Name of the host.
710 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
711 # so uname gets run too.
712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713
714 #
715 # Initializations.
716 #
717 ac_default_prefix=/usr/local
718 ac_clean_files=
719 ac_config_libobj_dir=.
720 LIBOBJS=
721 cross_compiling=no
722 subdirs=
723 MFLAGS=
724 MAKEFLAGS=
725 SHELL=${CONFIG_SHELL-/bin/sh}
726
727 # Identity of this package.
728 PACKAGE_NAME=
729 PACKAGE_TARNAME=
730 PACKAGE_VERSION=
731 PACKAGE_STRING=
732 PACKAGE_BUGREPORT=
733
734 ac_unique_file="src/main/radiusd.c"
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 #  include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 #  include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
770
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 CPPFLAGS
812 ac_ct_CC
813 EXEEXT
814 OBJEXT
815 CXX
816 CXXFLAGS
817 ac_ct_CXX
818 CPP
819 GREP
820 EGREP
821 RANLIB
822 GMAKE
823 MAKE
824 LTDL_SUBDIRS
825 LIBTOOL
826 build
827 build_cpu
828 build_vendor
829 build_os
830 host
831 host_cpu
832 host_vendor
833 host_os
834 SED
835 LN_S
836 ECHO
837 AR
838 STRIP
839 DSYMUTIL
840 NMEDIT
841 CXXCPP
842 F77
843 FFLAGS
844 ac_ct_F77
845 logdir
846 radacctdir
847 raddbdir
848 PERL
849 SNMPGET
850 SNMPWALK
851 RUSERS
852 ACLOCAL
853 AUTOCONF
854 AUTOHEADER
855 LOCATE
856 DIRNAME
857 LIBREADLINE
858 REGEX
859 REGEX_EXTENDED
860 OPENSSL_INCLUDE
861 OPENSSL_LIBS
862 PCAP_LIBS
863 LIBPREFIX
864 CRYPTLIB
865 HOSTINFO
866 LIBLTDL
867 INCLTDL
868 subdirs
869 MODULES
870 INSTALLSTRIP
871 USE_SHARED_LIBS
872 USE_STATIC_LIBS
873 STATIC_MODULES
874 RADIUSD_MAJOR_VERSION
875 RADIUSD_MINOR_VERSION
876 RADIUSD_VERSION
877 LIBOBJS
878 LTLIBOBJS'
879 ac_subst_files=''
880       ac_precious_vars='build_alias
881 host_alias
882 target_alias
883 CC
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
888 CXX
889 CXXFLAGS
890 CCC
891 CPP
892 CXXCPP
893 F77
894 FFLAGS'
895 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
896
897 # Initialize some variables set by options.
898 ac_init_help=
899 ac_init_version=false
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
902 cache_file=/dev/null
903 exec_prefix=NONE
904 no_create=
905 no_recursion=
906 prefix=NONE
907 program_prefix=NONE
908 program_suffix=NONE
909 program_transform_name=s,x,x,
910 silent=
911 site=
912 srcdir=
913 verbose=
914 x_includes=NONE
915 x_libraries=NONE
916
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE}'
934 infodir='${datarootdir}/info'
935 htmldir='${docdir}'
936 dvidir='${docdir}'
937 pdfdir='${docdir}'
938 psdir='${docdir}'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
942
943 ac_prev=
944 ac_dashdash=
945 for ac_option
946 do
947   # If the previous option needs an argument, assign it.
948   if test -n "$ac_prev"; then
949     eval $ac_prev=\$ac_option
950     ac_prev=
951     continue
952   fi
953
954   case $ac_option in
955   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956   *)    ac_optarg=yes ;;
957   esac
958
959   # Accept the important Cygnus configure options, so we can diagnose typos.
960
961   case $ac_dashdash$ac_option in
962   --)
963     ac_dashdash=yes ;;
964
965   -bindir | --bindir | --bindi | --bind | --bin | --bi)
966     ac_prev=bindir ;;
967   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968     bindir=$ac_optarg ;;
969
970   -build | --build | --buil | --bui | --bu)
971     ac_prev=build_alias ;;
972   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973     build_alias=$ac_optarg ;;
974
975   -cache-file | --cache-file | --cache-fil | --cache-fi \
976   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977     ac_prev=cache_file ;;
978   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980     cache_file=$ac_optarg ;;
981
982   --config-cache | -C)
983     cache_file=config.cache ;;
984
985   -datadir | --datadir | --datadi | --datad)
986     ac_prev=datadir ;;
987   -datadir=* | --datadir=* | --datadi=* | --datad=*)
988     datadir=$ac_optarg ;;
989
990   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991   | --dataroo | --dataro | --datar)
992     ac_prev=datarootdir ;;
993   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995     datarootdir=$ac_optarg ;;
996
997   -disable-* | --disable-*)
998     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002    { (exit 1); exit 1; }; }
1003     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004     eval enable_$ac_feature=no ;;
1005
1006   -docdir | --docdir | --docdi | --doc | --do)
1007     ac_prev=docdir ;;
1008   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009     docdir=$ac_optarg ;;
1010
1011   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012     ac_prev=dvidir ;;
1013   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014     dvidir=$ac_optarg ;;
1015
1016   -enable-* | --enable-*)
1017     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018     # Reject names that are not valid shell variable names.
1019     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021    { (exit 1); exit 1; }; }
1022     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023     eval enable_$ac_feature=\$ac_optarg ;;
1024
1025   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027   | --exec | --exe | --ex)
1028     ac_prev=exec_prefix ;;
1029   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031   | --exec=* | --exe=* | --ex=*)
1032     exec_prefix=$ac_optarg ;;
1033
1034   -gas | --gas | --ga | --g)
1035     # Obsolete; use --with-gas.
1036     with_gas=yes ;;
1037
1038   -help | --help | --hel | --he | -h)
1039     ac_init_help=long ;;
1040   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041     ac_init_help=recursive ;;
1042   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043     ac_init_help=short ;;
1044
1045   -host | --host | --hos | --ho)
1046     ac_prev=host_alias ;;
1047   -host=* | --host=* | --hos=* | --ho=*)
1048     host_alias=$ac_optarg ;;
1049
1050   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051     ac_prev=htmldir ;;
1052   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053   | --ht=*)
1054     htmldir=$ac_optarg ;;
1055
1056   -includedir | --includedir | --includedi | --included | --include \
1057   | --includ | --inclu | --incl | --inc)
1058     ac_prev=includedir ;;
1059   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060   | --includ=* | --inclu=* | --incl=* | --inc=*)
1061     includedir=$ac_optarg ;;
1062
1063   -infodir | --infodir | --infodi | --infod | --info | --inf)
1064     ac_prev=infodir ;;
1065   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066     infodir=$ac_optarg ;;
1067
1068   -libdir | --libdir | --libdi | --libd)
1069     ac_prev=libdir ;;
1070   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071     libdir=$ac_optarg ;;
1072
1073   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074   | --libexe | --libex | --libe)
1075     ac_prev=libexecdir ;;
1076   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077   | --libexe=* | --libex=* | --libe=*)
1078     libexecdir=$ac_optarg ;;
1079
1080   -localedir | --localedir | --localedi | --localed | --locale)
1081     ac_prev=localedir ;;
1082   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083     localedir=$ac_optarg ;;
1084
1085   -localstatedir | --localstatedir | --localstatedi | --localstated \
1086   | --localstate | --localstat | --localsta | --localst | --locals)
1087     ac_prev=localstatedir ;;
1088   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090     localstatedir=$ac_optarg ;;
1091
1092   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093     ac_prev=mandir ;;
1094   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095     mandir=$ac_optarg ;;
1096
1097   -nfp | --nfp | --nf)
1098     # Obsolete; use --without-fp.
1099     with_fp=no ;;
1100
1101   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102   | --no-cr | --no-c | -n)
1103     no_create=yes ;;
1104
1105   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107     no_recursion=yes ;;
1108
1109   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111   | --oldin | --oldi | --old | --ol | --o)
1112     ac_prev=oldincludedir ;;
1113   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116     oldincludedir=$ac_optarg ;;
1117
1118   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119     ac_prev=prefix ;;
1120   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121     prefix=$ac_optarg ;;
1122
1123   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124   | --program-pre | --program-pr | --program-p)
1125     ac_prev=program_prefix ;;
1126   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128     program_prefix=$ac_optarg ;;
1129
1130   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131   | --program-suf | --program-su | --program-s)
1132     ac_prev=program_suffix ;;
1133   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135     program_suffix=$ac_optarg ;;
1136
1137   -program-transform-name | --program-transform-name \
1138   | --program-transform-nam | --program-transform-na \
1139   | --program-transform-n | --program-transform- \
1140   | --program-transform | --program-transfor \
1141   | --program-transfo | --program-transf \
1142   | --program-trans | --program-tran \
1143   | --progr-tra | --program-tr | --program-t)
1144     ac_prev=program_transform_name ;;
1145   -program-transform-name=* | --program-transform-name=* \
1146   | --program-transform-nam=* | --program-transform-na=* \
1147   | --program-transform-n=* | --program-transform-=* \
1148   | --program-transform=* | --program-transfor=* \
1149   | --program-transfo=* | --program-transf=* \
1150   | --program-trans=* | --program-tran=* \
1151   | --progr-tra=* | --program-tr=* | --program-t=*)
1152     program_transform_name=$ac_optarg ;;
1153
1154   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155     ac_prev=pdfdir ;;
1156   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157     pdfdir=$ac_optarg ;;
1158
1159   -psdir | --psdir | --psdi | --psd | --ps)
1160     ac_prev=psdir ;;
1161   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162     psdir=$ac_optarg ;;
1163
1164   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165   | -silent | --silent | --silen | --sile | --sil)
1166     silent=yes ;;
1167
1168   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169     ac_prev=sbindir ;;
1170   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171   | --sbi=* | --sb=*)
1172     sbindir=$ac_optarg ;;
1173
1174   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176   | --sharedst | --shareds | --shared | --share | --shar \
1177   | --sha | --sh)
1178     ac_prev=sharedstatedir ;;
1179   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182   | --sha=* | --sh=*)
1183     sharedstatedir=$ac_optarg ;;
1184
1185   -site | --site | --sit)
1186     ac_prev=site ;;
1187   -site=* | --site=* | --sit=*)
1188     site=$ac_optarg ;;
1189
1190   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191     ac_prev=srcdir ;;
1192   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193     srcdir=$ac_optarg ;;
1194
1195   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196   | --syscon | --sysco | --sysc | --sys | --sy)
1197     ac_prev=sysconfdir ;;
1198   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200     sysconfdir=$ac_optarg ;;
1201
1202   -target | --target | --targe | --targ | --tar | --ta | --t)
1203     ac_prev=target_alias ;;
1204   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205     target_alias=$ac_optarg ;;
1206
1207   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208     verbose=yes ;;
1209
1210   -version | --version | --versio | --versi | --vers | -V)
1211     ac_init_version=: ;;
1212
1213   -with-* | --with-*)
1214     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215     # Reject names that are not valid shell variable names.
1216     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217       { echo "$as_me: error: invalid package name: $ac_package" >&2
1218    { (exit 1); exit 1; }; }
1219     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1220     eval with_$ac_package=\$ac_optarg ;;
1221
1222   -without-* | --without-*)
1223     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224     # Reject names that are not valid shell variable names.
1225     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226       { echo "$as_me: error: invalid package name: $ac_package" >&2
1227    { (exit 1); exit 1; }; }
1228     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229     eval with_$ac_package=no ;;
1230
1231   --x)
1232     # Obsolete; use --with-x.
1233     with_x=yes ;;
1234
1235   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236   | --x-incl | --x-inc | --x-in | --x-i)
1237     ac_prev=x_includes ;;
1238   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240     x_includes=$ac_optarg ;;
1241
1242   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244     ac_prev=x_libraries ;;
1245   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247     x_libraries=$ac_optarg ;;
1248
1249   -*) { echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251    { (exit 1); exit 1; }; }
1252     ;;
1253
1254   *=*)
1255     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256     # Reject names that are not valid shell variable names.
1257     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259    { (exit 1); exit 1; }; }
1260     eval $ac_envvar=\$ac_optarg
1261     export $ac_envvar ;;
1262
1263   *)
1264     # FIXME: should be removed in autoconf 3.0.
1265     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269     ;;
1270
1271   esac
1272 done
1273
1274 if test -n "$ac_prev"; then
1275   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276   { echo "$as_me: error: missing argument to $ac_option" >&2
1277    { (exit 1); exit 1; }; }
1278 fi
1279
1280 # Be sure to have absolute directory names.
1281 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282                 datadir sysconfdir sharedstatedir localstatedir includedir \
1283                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284                 libdir localedir mandir
1285 do
1286   eval ac_val=\$$ac_var
1287   case $ac_val in
1288     [\\/$]* | ?:[\\/]* )  continue;;
1289     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290   esac
1291   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292    { (exit 1); exit 1; }; }
1293 done
1294
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1298 build=$build_alias
1299 host=$host_alias
1300 target=$target_alias
1301
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304   if test "x$build_alias" = x; then
1305     cross_compiling=maybe
1306     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307     If a cross compiler is detected then cross compile mode will be used." >&2
1308   elif test "x$build_alias" != "x$host_alias"; then
1309     cross_compiling=yes
1310   fi
1311 fi
1312
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316 test "$silent" = yes && exec 6>/dev/null
1317
1318
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322   { echo "$as_me: error: Working directory cannot be determined" >&2
1323    { (exit 1); exit 1; }; }
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325   { echo "$as_me: error: pwd does not report name of working directory" >&2
1326    { (exit 1); exit 1; }; }
1327
1328
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331   ac_srcdir_defaulted=yes
1332   # Try the directory containing this script, then the parent directory.
1333   ac_confdir=`$as_dirname -- "$0" ||
1334 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335          X"$0" : 'X\(//\)[^/]' \| \
1336          X"$0" : 'X\(//\)$' \| \
1337          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1338 echo X"$0" |
1339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\/\)[^/].*/{
1344             s//\1/
1345             q
1346           }
1347           /^X\(\/\/\)$/{
1348             s//\1/
1349             q
1350           }
1351           /^X\(\/\).*/{
1352             s//\1/
1353             q
1354           }
1355           s/.*/./; q'`
1356   srcdir=$ac_confdir
1357   if test ! -r "$srcdir/$ac_unique_file"; then
1358     srcdir=..
1359   fi
1360 else
1361   ac_srcdir_defaulted=no
1362 fi
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1366    { (exit 1); exit 1; }; }
1367 fi
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1371    { (exit 1); exit 1; }; }
1372         pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375   srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385   eval ac_env_${ac_var}_value=\$${ac_var}
1386   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394   # Omit some internal or obsolete options to make the list less imposing.
1395   # This message is too long to be a string in the A/UX 3.1 sh.
1396   cat <<_ACEOF
1397 \`configure' configures this package to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE.  See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407   -h, --help              display this help and exit
1408       --help=short        display options specific to this package
1409       --help=recursive    display the short help of all the included packages
1410   -V, --version           display version information and exit
1411   -q, --quiet, --silent   do not print \`checking...' messages
1412       --cache-file=FILE   cache test results in FILE [disabled]
1413   -C, --config-cache      alias for \`--cache-file=config.cache'
1414   -n, --no-create         do not create output files
1415       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418   --prefix=PREFIX         install architecture-independent files in PREFIX
1419                           [$ac_default_prefix]
1420   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1421                           [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431   --bindir=DIR           user executables [EPREFIX/bin]
1432   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1433   --libexecdir=DIR       program executables [EPREFIX/libexec]
1434   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1435   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1436   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1437   --libdir=DIR           object code libraries [EPREFIX/lib]
1438   --includedir=DIR       C header files [PREFIX/include]
1439   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1440   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1441   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1442   --infodir=DIR          info documentation [DATAROOTDIR/info]
1443   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1444   --mandir=DIR           man documentation [DATAROOTDIR/man]
1445   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1446   --htmldir=DIR          html documentation [DOCDIR]
1447   --dvidir=DIR           dvi documentation [DOCDIR]
1448   --pdfdir=DIR           pdf documentation [DOCDIR]
1449   --psdir=DIR            ps documentation [DOCDIR]
1450 _ACEOF
1451
1452   cat <<\_ACEOF
1453
1454 System types:
1455   --build=BUILD     configure for building on BUILD [guessed]
1456   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1457 _ACEOF
1458 fi
1459
1460 if test -n "$ac_init_help"; then
1461
1462   cat <<\_ACEOF
1463
1464 Optional Features:
1465   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1466   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1467   --disable-largefile     omit support for large files
1468   --enable-shared[=PKGS]  build shared libraries [default=yes]
1469   --enable-static[=PKGS]  build static libraries [default=yes]
1470   --enable-fast-install[=PKGS]
1471                           optimize for fast installation [default=yes]
1472   --disable-libtool-lock  avoid locking (might break parallel builds)
1473   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1474   --enable-developer               Enables features of interest to developers.
1475
1476 Optional Packages:
1477   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1478   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1479   --with-system-libtldl   Use the libltdl installed in your system (default=use our own)
1480   --with-system-libtool   Use the libtool installed in your system (default=use our own)
1481   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1482   --with-pic              try to use only PIC/non-PIC objects [default=use
1483                           both]
1484   --with-tags[=TAGS]      include additional configurations [automatic]
1485   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1486   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1487   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1488   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1489   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1490   --with-threads          Use threads, if available.  (default=yes)
1491   --with-vmps             Compile in VMPS support. (default=yes)
1492   --with-dhcp             Compile in DHCP support. (default=no)
1493   --with-static-modules=QUOTED-MODULE-LIST
1494  --with-modules=QUOTED-MODULE-LIST
1495   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1496   --with-openssl                   Use OpenSSL. (default=yes)
1497   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1498   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1499   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1500   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1501   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1502
1503 Some influential environment variables:
1504   CC          C compiler command
1505   CFLAGS      C compiler flags
1506   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1507               nonstandard directory <lib dir>
1508   LIBS        libraries to pass to the linker, e.g. -l<library>
1509   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1510               you have headers in a nonstandard directory <include dir>
1511   CXX         C++ compiler command
1512   CXXFLAGS    C++ compiler flags
1513   CPP         C preprocessor
1514   CXXCPP      C++ preprocessor
1515   F77         Fortran 77 compiler command
1516   FFLAGS      Fortran 77 compiler flags
1517
1518 Use these variables to override the choices made by `configure' or to help
1519 it to find libraries and programs with nonstandard names/locations.
1520
1521 _ACEOF
1522 ac_status=$?
1523 fi
1524
1525 if test "$ac_init_help" = "recursive"; then
1526   # If there are subdirs, report their specific --help.
1527   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528     test -d "$ac_dir" || continue
1529     ac_builddir=.
1530
1531 case "$ac_dir" in
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *)
1534   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1535   # A ".." for each directory in $ac_dir_suffix.
1536   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1537   case $ac_top_builddir_sub in
1538   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540   esac ;;
1541 esac
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1546
1547 case $srcdir in
1548   .)  # We are building in place.
1549     ac_srcdir=.
1550     ac_top_srcdir=$ac_top_builddir_sub
1551     ac_abs_top_srcdir=$ac_pwd ;;
1552   [\\/]* | ?:[\\/]* )  # Absolute name.
1553     ac_srcdir=$srcdir$ac_dir_suffix;
1554     ac_top_srcdir=$srcdir
1555     ac_abs_top_srcdir=$srcdir ;;
1556   *) # Relative name.
1557     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558     ac_top_srcdir=$ac_top_build_prefix$srcdir
1559     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 esac
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563     cd "$ac_dir" || { ac_status=$?; continue; }
1564     # Check for guested configure.
1565     if test -f "$ac_srcdir/configure.gnu"; then
1566       echo &&
1567       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568     elif test -f "$ac_srcdir/configure"; then
1569       echo &&
1570       $SHELL "$ac_srcdir/configure" --help=recursive
1571     else
1572       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573     fi || ac_status=$?
1574     cd "$ac_pwd" || { ac_status=$?; break; }
1575   done
1576 fi
1577
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1580   cat <<\_ACEOF
1581 configure
1582 generated by GNU Autoconf 2.61
1583
1584 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1585 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1588 _ACEOF
1589   exit
1590 fi
1591 cat >config.log <<_ACEOF
1592 This file contains any messages produced by compilers while
1593 running configure, to aid debugging if configure makes a mistake.
1594
1595 It was created by $as_me, which was
1596 generated by GNU Autoconf 2.61.  Invocation command line was
1597
1598   $ $0 $@
1599
1600 _ACEOF
1601 exec 5>>config.log
1602 {
1603 cat <<_ASUNAME
1604 ## --------- ##
1605 ## Platform. ##
1606 ## --------- ##
1607
1608 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1609 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1610 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1611 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1612 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1613
1614 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1615 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1616
1617 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1618 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1619 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1620 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1621 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1622 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1623 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1624
1625 _ASUNAME
1626
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 for as_dir in $PATH
1629 do
1630   IFS=$as_save_IFS
1631   test -z "$as_dir" && as_dir=.
1632   echo "PATH: $as_dir"
1633 done
1634 IFS=$as_save_IFS
1635
1636 } >&5
1637
1638 cat >&5 <<_ACEOF
1639
1640
1641 ## ----------- ##
1642 ## Core tests. ##
1643 ## ----------- ##
1644
1645 _ACEOF
1646
1647
1648 # Keep a trace of the command line.
1649 # Strip out --no-create and --no-recursion so they do not pile up.
1650 # Strip out --silent because we don't want to record it for future runs.
1651 # Also quote any args containing shell meta-characters.
1652 # Make two passes to allow for proper duplicate-argument suppression.
1653 ac_configure_args=
1654 ac_configure_args0=
1655 ac_configure_args1=
1656 ac_must_keep_next=false
1657 for ac_pass in 1 2
1658 do
1659   for ac_arg
1660   do
1661     case $ac_arg in
1662     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1663     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1664     | -silent | --silent | --silen | --sile | --sil)
1665       continue ;;
1666     *\'*)
1667       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1668     esac
1669     case $ac_pass in
1670     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1671     2)
1672       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1673       if test $ac_must_keep_next = true; then
1674         ac_must_keep_next=false # Got value, back to normal.
1675       else
1676         case $ac_arg in
1677           *=* | --config-cache | -C | -disable-* | --disable-* \
1678           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1679           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1680           | -with-* | --with-* | -without-* | --without-* | --x)
1681             case "$ac_configure_args0 " in
1682               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1683             esac
1684             ;;
1685           -* ) ac_must_keep_next=true ;;
1686         esac
1687       fi
1688       ac_configure_args="$ac_configure_args '$ac_arg'"
1689       ;;
1690     esac
1691   done
1692 done
1693 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1694 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1695
1696 # When interrupted or exit'd, cleanup temporary files, and complete
1697 # config.log.  We remove comments because anyway the quotes in there
1698 # would cause problems or look ugly.
1699 # WARNING: Use '\'' to represent an apostrophe within the trap.
1700 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1701 trap 'exit_status=$?
1702   # Save into config.log some information that might help in debugging.
1703   {
1704     echo
1705
1706     cat <<\_ASBOX
1707 ## ---------------- ##
1708 ## Cache variables. ##
1709 ## ---------------- ##
1710 _ASBOX
1711     echo
1712     # The following way of writing the cache mishandles newlines in values,
1713 (
1714   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1715     eval ac_val=\$$ac_var
1716     case $ac_val in #(
1717     *${as_nl}*)
1718       case $ac_var in #(
1719       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1720 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1721       esac
1722       case $ac_var in #(
1723       _ | IFS | as_nl) ;; #(
1724       *) $as_unset $ac_var ;;
1725       esac ;;
1726     esac
1727   done
1728   (set) 2>&1 |
1729     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1730     *${as_nl}ac_space=\ *)
1731       sed -n \
1732         "s/'\''/'\''\\\\'\'''\''/g;
1733           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1734       ;; #(
1735     *)
1736       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1737       ;;
1738     esac |
1739     sort
1740 )
1741     echo
1742
1743     cat <<\_ASBOX
1744 ## ----------------- ##
1745 ## Output variables. ##
1746 ## ----------------- ##
1747 _ASBOX
1748     echo
1749     for ac_var in $ac_subst_vars
1750     do
1751       eval ac_val=\$$ac_var
1752       case $ac_val in
1753       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754       esac
1755       echo "$ac_var='\''$ac_val'\''"
1756     done | sort
1757     echo
1758
1759     if test -n "$ac_subst_files"; then
1760       cat <<\_ASBOX
1761 ## ------------------- ##
1762 ## File substitutions. ##
1763 ## ------------------- ##
1764 _ASBOX
1765       echo
1766       for ac_var in $ac_subst_files
1767       do
1768         eval ac_val=\$$ac_var
1769         case $ac_val in
1770         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771         esac
1772         echo "$ac_var='\''$ac_val'\''"
1773       done | sort
1774       echo
1775     fi
1776
1777     if test -s confdefs.h; then
1778       cat <<\_ASBOX
1779 ## ----------- ##
1780 ## confdefs.h. ##
1781 ## ----------- ##
1782 _ASBOX
1783       echo
1784       cat confdefs.h
1785       echo
1786     fi
1787     test "$ac_signal" != 0 &&
1788       echo "$as_me: caught signal $ac_signal"
1789     echo "$as_me: exit $exit_status"
1790   } >&5
1791   rm -f core *.core core.conftest.* &&
1792     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1793     exit $exit_status
1794 ' 0
1795 for ac_signal in 1 2 13 15; do
1796   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1797 done
1798 ac_signal=0
1799
1800 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1801 rm -f -r conftest* confdefs.h
1802
1803 # Predefined preprocessor variables.
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_NAME "$PACKAGE_NAME"
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1812 _ACEOF
1813
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1817 _ACEOF
1818
1819
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_STRING "$PACKAGE_STRING"
1822 _ACEOF
1823
1824
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1827 _ACEOF
1828
1829
1830 # Let the site file select an alternate cache file if it wants to.
1831 # Prefer explicitly selected file to automatically selected ones.
1832 if test -n "$CONFIG_SITE"; then
1833   set x "$CONFIG_SITE"
1834 elif test "x$prefix" != xNONE; then
1835   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1836 else
1837   set x "$ac_default_prefix/share/config.site" \
1838         "$ac_default_prefix/etc/config.site"
1839 fi
1840 shift
1841 for ac_site_file
1842 do
1843   if test -r "$ac_site_file"; then
1844     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1845 echo "$as_me: loading site script $ac_site_file" >&6;}
1846     sed 's/^/| /' "$ac_site_file" >&5
1847     . "$ac_site_file"
1848   fi
1849 done
1850
1851 if test -r "$cache_file"; then
1852   # Some versions of bash will fail to source /dev/null (special
1853   # files actually), so we avoid doing that.
1854   if test -f "$cache_file"; then
1855     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1856 echo "$as_me: loading cache $cache_file" >&6;}
1857     case $cache_file in
1858       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1859       *)                      . "./$cache_file";;
1860     esac
1861   fi
1862 else
1863   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1864 echo "$as_me: creating cache $cache_file" >&6;}
1865   >$cache_file
1866 fi
1867
1868 # Check that the precious variables saved in the cache have kept the same
1869 # value.
1870 ac_cache_corrupted=false
1871 for ac_var in $ac_precious_vars; do
1872   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1873   eval ac_new_set=\$ac_env_${ac_var}_set
1874   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1875   eval ac_new_val=\$ac_env_${ac_var}_value
1876   case $ac_old_set,$ac_new_set in
1877     set,)
1878       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1879 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1880       ac_cache_corrupted=: ;;
1881     ,set)
1882       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1883 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1884       ac_cache_corrupted=: ;;
1885     ,);;
1886     *)
1887       if test "x$ac_old_val" != "x$ac_new_val"; then
1888         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1889 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1890         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1891 echo "$as_me:   former value:  $ac_old_val" >&2;}
1892         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1893 echo "$as_me:   current value: $ac_new_val" >&2;}
1894         ac_cache_corrupted=:
1895       fi;;
1896   esac
1897   # Pass precious variables to config.status.
1898   if test "$ac_new_set" = set; then
1899     case $ac_new_val in
1900     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1901     *) ac_arg=$ac_var=$ac_new_val ;;
1902     esac
1903     case " $ac_configure_args " in
1904       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1905       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1906     esac
1907   fi
1908 done
1909 if $ac_cache_corrupted; then
1910   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1911 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1912   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1913 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1914    { (exit 1); exit 1; }; }
1915 fi
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933 ac_ext=c
1934 ac_cpp='$CPP $CPPFLAGS'
1935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1938
1939
1940 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1941
1942
1943 RADIUSD_VERSION=`cat VERSION`
1944 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
1945 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^2\.//'`
1946 PACKAGE=freeradius
1947
1948
1949 ac_ext=c
1950 ac_cpp='$CPP $CPPFLAGS'
1951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954 if test -n "$ac_tool_prefix"; then
1955   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1956 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1959 if test "${ac_cv_prog_CC+set}" = set; then
1960   echo $ECHO_N "(cached) $ECHO_C" >&6
1961 else
1962   if test -n "$CC"; then
1963   ac_cv_prog_CC="$CC" # Let the user override the test.
1964 else
1965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966 for as_dir in $PATH
1967 do
1968   IFS=$as_save_IFS
1969   test -z "$as_dir" && as_dir=.
1970   for ac_exec_ext in '' $ac_executable_extensions; do
1971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1972     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974     break 2
1975   fi
1976 done
1977 done
1978 IFS=$as_save_IFS
1979
1980 fi
1981 fi
1982 CC=$ac_cv_prog_CC
1983 if test -n "$CC"; then
1984   { echo "$as_me:$LINENO: result: $CC" >&5
1985 echo "${ECHO_T}$CC" >&6; }
1986 else
1987   { echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6; }
1989 fi
1990
1991
1992 fi
1993 if test -z "$ac_cv_prog_CC"; then
1994   ac_ct_CC=$CC
1995   # Extract the first word of "gcc", so it can be a program name with args.
1996 set dummy gcc; ac_word=$2
1997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2000   echo $ECHO_N "(cached) $ECHO_C" >&6
2001 else
2002   if test -n "$ac_ct_CC"; then
2003   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2004 else
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 for as_dir in $PATH
2007 do
2008   IFS=$as_save_IFS
2009   test -z "$as_dir" && as_dir=.
2010   for ac_exec_ext in '' $ac_executable_extensions; do
2011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2012     ac_cv_prog_ac_ct_CC="gcc"
2013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014     break 2
2015   fi
2016 done
2017 done
2018 IFS=$as_save_IFS
2019
2020 fi
2021 fi
2022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2023 if test -n "$ac_ct_CC"; then
2024   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025 echo "${ECHO_T}$ac_ct_CC" >&6; }
2026 else
2027   { echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6; }
2029 fi
2030
2031   if test "x$ac_ct_CC" = x; then
2032     CC=""
2033   else
2034     case $cross_compiling:$ac_tool_warned in
2035 yes:)
2036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2037 whose name does not start with the host triplet.  If you think this
2038 configuration is useful to you, please write to autoconf@gnu.org." >&5
2039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2040 whose name does not start with the host triplet.  If you think this
2041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2042 ac_tool_warned=yes ;;
2043 esac
2044     CC=$ac_ct_CC
2045   fi
2046 else
2047   CC="$ac_cv_prog_CC"
2048 fi
2049
2050 if test -z "$CC"; then
2051           if test -n "$ac_tool_prefix"; then
2052     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2053 set dummy ${ac_tool_prefix}cc; ac_word=$2
2054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2056 if test "${ac_cv_prog_CC+set}" = set; then
2057   echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059   if test -n "$CC"; then
2060   ac_cv_prog_CC="$CC" # Let the user override the test.
2061 else
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065   IFS=$as_save_IFS
2066   test -z "$as_dir" && as_dir=.
2067   for ac_exec_ext in '' $ac_executable_extensions; do
2068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069     ac_cv_prog_CC="${ac_tool_prefix}cc"
2070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071     break 2
2072   fi
2073 done
2074 done
2075 IFS=$as_save_IFS
2076
2077 fi
2078 fi
2079 CC=$ac_cv_prog_CC
2080 if test -n "$CC"; then
2081   { echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6; }
2083 else
2084   { echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6; }
2086 fi
2087
2088
2089   fi
2090 fi
2091 if test -z "$CC"; then
2092   # Extract the first word of "cc", so it can be a program name with args.
2093 set dummy cc; ac_word=$2
2094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2096 if test "${ac_cv_prog_CC+set}" = set; then
2097   echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099   if test -n "$CC"; then
2100   ac_cv_prog_CC="$CC" # Let the user override the test.
2101 else
2102   ac_prog_rejected=no
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2105 do
2106   IFS=$as_save_IFS
2107   test -z "$as_dir" && as_dir=.
2108   for ac_exec_ext in '' $ac_executable_extensions; do
2109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2110     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2111        ac_prog_rejected=yes
2112        continue
2113      fi
2114     ac_cv_prog_CC="cc"
2115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116     break 2
2117   fi
2118 done
2119 done
2120 IFS=$as_save_IFS
2121
2122 if test $ac_prog_rejected = yes; then
2123   # We found a bogon in the path, so make sure we never use it.
2124   set dummy $ac_cv_prog_CC
2125   shift
2126   if test $# != 0; then
2127     # We chose a different compiler from the bogus one.
2128     # However, it has the same basename, so the bogon will be chosen
2129     # first if we set CC to just the basename; use the full file name.
2130     shift
2131     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2132   fi
2133 fi
2134 fi
2135 fi
2136 CC=$ac_cv_prog_CC
2137 if test -n "$CC"; then
2138   { echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6; }
2140 else
2141   { echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6; }
2143 fi
2144
2145
2146 fi
2147 if test -z "$CC"; then
2148   if test -n "$ac_tool_prefix"; then
2149   for ac_prog in cl.exe
2150   do
2151     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_CC+set}" = set; then
2156   echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158   if test -n "$CC"; then
2159   ac_cv_prog_CC="$CC" # Let the user override the test.
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2163 do
2164   IFS=$as_save_IFS
2165   test -z "$as_dir" && as_dir=.
2166   for ac_exec_ext in '' $ac_executable_extensions; do
2167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170     break 2
2171   fi
2172 done
2173 done
2174 IFS=$as_save_IFS
2175
2176 fi
2177 fi
2178 CC=$ac_cv_prog_CC
2179 if test -n "$CC"; then
2180   { echo "$as_me:$LINENO: result: $CC" >&5
2181 echo "${ECHO_T}$CC" >&6; }
2182 else
2183   { echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6; }
2185 fi
2186
2187
2188     test -n "$CC" && break
2189   done
2190 fi
2191 if test -z "$CC"; then
2192   ac_ct_CC=$CC
2193   for ac_prog in cl.exe
2194 do
2195   # Extract the first word of "$ac_prog", so it can be a program name with args.
2196 set dummy $ac_prog; ac_word=$2
2197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2199 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2200   echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202   if test -n "$ac_ct_CC"; then
2203   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2204 else
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2207 do
2208   IFS=$as_save_IFS
2209   test -z "$as_dir" && as_dir=.
2210   for ac_exec_ext in '' $ac_executable_extensions; do
2211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2212     ac_cv_prog_ac_ct_CC="$ac_prog"
2213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214     break 2
2215   fi
2216 done
2217 done
2218 IFS=$as_save_IFS
2219
2220 fi
2221 fi
2222 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2223 if test -n "$ac_ct_CC"; then
2224   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2225 echo "${ECHO_T}$ac_ct_CC" >&6; }
2226 else
2227   { echo "$as_me:$LINENO: result: no" >&5
2228 echo "${ECHO_T}no" >&6; }
2229 fi
2230
2231
2232   test -n "$ac_ct_CC" && break
2233 done
2234
2235   if test "x$ac_ct_CC" = x; then
2236     CC=""
2237   else
2238     case $cross_compiling:$ac_tool_warned in
2239 yes:)
2240 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2241 whose name does not start with the host triplet.  If you think this
2242 configuration is useful to you, please write to autoconf@gnu.org." >&5
2243 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2244 whose name does not start with the host triplet.  If you think this
2245 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2246 ac_tool_warned=yes ;;
2247 esac
2248     CC=$ac_ct_CC
2249   fi
2250 fi
2251
2252 fi
2253
2254
2255 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: no acceptable C compiler found in \$PATH
2258 See \`config.log' for more details." >&2;}
2259    { (exit 1); exit 1; }; }
2260
2261 # Provide some information about the compiler.
2262 echo "$as_me:$LINENO: checking for C compiler version" >&5
2263 ac_compiler=`set X $ac_compile; echo $2`
2264 { (ac_try="$ac_compiler --version >&5"
2265 case "(($ac_try" in
2266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267   *) ac_try_echo=$ac_try;;
2268 esac
2269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2270   (eval "$ac_compiler --version >&5") 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }
2274 { (ac_try="$ac_compiler -v >&5"
2275 case "(($ac_try" in
2276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277   *) ac_try_echo=$ac_try;;
2278 esac
2279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2280   (eval "$ac_compiler -v >&5") 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); }
2284 { (ac_try="$ac_compiler -V >&5"
2285 case "(($ac_try" in
2286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287   *) ac_try_echo=$ac_try;;
2288 esac
2289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2290   (eval "$ac_compiler -V >&5") 2>&5
2291   ac_status=$?
2292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293   (exit $ac_status); }
2294
2295 cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h.  */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h.  */
2301
2302 int
2303 main ()
2304 {
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 ac_clean_files_save=$ac_clean_files
2311 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2312 # Try to create an executable without -o first, disregard a.out.
2313 # It will help us diagnose broken compilers, and finding out an intuition
2314 # of exeext.
2315 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2316 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2317 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2318 #
2319 # List of possible output files, starting from the most likely.
2320 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2321 # only as a last resort.  b.out is created by i960 compilers.
2322 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2323 #
2324 # The IRIX 6 linker writes into existing files which may not be
2325 # executable, retaining their permissions.  Remove them first so a
2326 # subsequent execution test works.
2327 ac_rmfiles=
2328 for ac_file in $ac_files
2329 do
2330   case $ac_file in
2331     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2332     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2333   esac
2334 done
2335 rm -f $ac_rmfiles
2336
2337 if { (ac_try="$ac_link_default"
2338 case "(($ac_try" in
2339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340   *) ac_try_echo=$ac_try;;
2341 esac
2342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2343   (eval "$ac_link_default") 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); }; then
2347   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2348 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2349 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2350 # so that the user can short-circuit this test for compilers unknown to
2351 # Autoconf.
2352 for ac_file in $ac_files ''
2353 do
2354   test -f "$ac_file" || continue
2355   case $ac_file in
2356     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2357         ;;
2358     [ab].out )
2359         # We found the default executable, but exeext='' is most
2360         # certainly right.
2361         break;;
2362     *.* )
2363         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2364         then :; else
2365            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2366         fi
2367         # We set ac_cv_exeext here because the later test for it is not
2368         # safe: cross compilers may not add the suffix if given an `-o'
2369         # argument, so we may need to know it at that point already.
2370         # Even if this section looks crufty: it has the advantage of
2371         # actually working.
2372         break;;
2373     * )
2374         break;;
2375   esac
2376 done
2377 test "$ac_cv_exeext" = no && ac_cv_exeext=
2378
2379 else
2380   ac_file=''
2381 fi
2382
2383 { echo "$as_me:$LINENO: result: $ac_file" >&5
2384 echo "${ECHO_T}$ac_file" >&6; }
2385 if test -z "$ac_file"; then
2386   echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2388
2389 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: C compiler cannot create executables
2392 See \`config.log' for more details." >&2;}
2393    { (exit 77); exit 77; }; }
2394 fi
2395
2396 ac_exeext=$ac_cv_exeext
2397
2398 # Check that the compiler produces executables we can run.  If not, either
2399 # the compiler is broken, or we cross compile.
2400 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2401 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2402 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2403 # If not cross compiling, check that we can run a simple program.
2404 if test "$cross_compiling" != yes; then
2405   if { ac_try='./$ac_file'
2406   { (case "(($ac_try" in
2407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408   *) ac_try_echo=$ac_try;;
2409 esac
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411   (eval "$ac_try") 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; }; then
2415     cross_compiling=no
2416   else
2417     if test "$cross_compiling" = maybe; then
2418         cross_compiling=yes
2419     else
2420         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2421 If you meant to cross compile, use \`--host'.
2422 See \`config.log' for more details." >&5
2423 echo "$as_me: error: cannot run C compiled programs.
2424 If you meant to cross compile, use \`--host'.
2425 See \`config.log' for more details." >&2;}
2426    { (exit 1); exit 1; }; }
2427     fi
2428   fi
2429 fi
2430 { echo "$as_me:$LINENO: result: yes" >&5
2431 echo "${ECHO_T}yes" >&6; }
2432
2433 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2434 ac_clean_files=$ac_clean_files_save
2435 # Check that the compiler produces executables we can run.  If not, either
2436 # the compiler is broken, or we cross compile.
2437 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2438 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2439 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2440 echo "${ECHO_T}$cross_compiling" >&6; }
2441
2442 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2443 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2444 if { (ac_try="$ac_link"
2445 case "(($ac_try" in
2446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447   *) ac_try_echo=$ac_try;;
2448 esac
2449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2450   (eval "$ac_link") 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }; then
2454   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2455 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2456 # work properly (i.e., refer to `conftest.exe'), while it won't with
2457 # `rm'.
2458 for ac_file in conftest.exe conftest conftest.*; do
2459   test -f "$ac_file" || continue
2460   case $ac_file in
2461     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2462     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2463           break;;
2464     * ) break;;
2465   esac
2466 done
2467 else
2468   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2469 See \`config.log' for more details." >&5
2470 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2471 See \`config.log' for more details." >&2;}
2472    { (exit 1); exit 1; }; }
2473 fi
2474
2475 rm -f conftest$ac_cv_exeext
2476 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2477 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2478
2479 rm -f conftest.$ac_ext
2480 EXEEXT=$ac_cv_exeext
2481 ac_exeext=$EXEEXT
2482 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2483 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2484 if test "${ac_cv_objext+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h.  */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h.  */
2493
2494 int
2495 main ()
2496 {
2497
2498   ;
2499   return 0;
2500 }
2501 _ACEOF
2502 rm -f conftest.o conftest.obj
2503 if { (ac_try="$ac_compile"
2504 case "(($ac_try" in
2505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506   *) ac_try_echo=$ac_try;;
2507 esac
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509   (eval "$ac_compile") 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; then
2513   for ac_file in conftest.o conftest.obj conftest.*; do
2514   test -f "$ac_file" || continue;
2515   case $ac_file in
2516     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2517     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2518        break;;
2519   esac
2520 done
2521 else
2522   echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2524
2525 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2528 See \`config.log' for more details." >&2;}
2529    { (exit 1); exit 1; }; }
2530 fi
2531
2532 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2533 fi
2534 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2535 echo "${ECHO_T}$ac_cv_objext" >&6; }
2536 OBJEXT=$ac_cv_objext
2537 ac_objext=$OBJEXT
2538 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2539 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2540 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2541   echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543   cat >conftest.$ac_ext <<_ACEOF
2544 /* confdefs.h.  */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h.  */
2549
2550 int
2551 main ()
2552 {
2553 #ifndef __GNUC__
2554        choke me
2555 #endif
2556
2557   ;
2558   return 0;
2559 }
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (ac_try="$ac_compile"
2563 case "(($ac_try" in
2564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565   *) ac_try_echo=$ac_try;;
2566 esac
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568   (eval "$ac_compile") 2>conftest.er1
2569   ac_status=$?
2570   grep -v '^ *+' conftest.er1 >conftest.err
2571   rm -f conftest.er1
2572   cat conftest.err >&5
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); } && {
2575          test -z "$ac_c_werror_flag" ||
2576          test ! -s conftest.err
2577        } && test -s conftest.$ac_objext; then
2578   ac_compiler_gnu=yes
2579 else
2580   echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583         ac_compiler_gnu=no
2584 fi
2585
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2588
2589 fi
2590 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2591 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2592 GCC=`test $ac_compiler_gnu = yes && echo yes`
2593 ac_test_CFLAGS=${CFLAGS+set}
2594 ac_save_CFLAGS=$CFLAGS
2595 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2596 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_cc_g+set}" = set; then
2598   echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600   ac_save_c_werror_flag=$ac_c_werror_flag
2601    ac_c_werror_flag=yes
2602    ac_cv_prog_cc_g=no
2603    CFLAGS="-g"
2604    cat >conftest.$ac_ext <<_ACEOF
2605 /* confdefs.h.  */
2606 _ACEOF
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h.  */
2610
2611 int
2612 main ()
2613 {
2614
2615   ;
2616   return 0;
2617 }
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (ac_try="$ac_compile"
2621 case "(($ac_try" in
2622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623   *) ac_try_echo=$ac_try;;
2624 esac
2625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626   (eval "$ac_compile") 2>conftest.er1
2627   ac_status=$?
2628   grep -v '^ *+' conftest.er1 >conftest.err
2629   rm -f conftest.er1
2630   cat conftest.err >&5
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } && {
2633          test -z "$ac_c_werror_flag" ||
2634          test ! -s conftest.err
2635        } && test -s conftest.$ac_objext; then
2636   ac_cv_prog_cc_g=yes
2637 else
2638   echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2640
2641         CFLAGS=""
2642       cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648
2649 int
2650 main ()
2651 {
2652
2653   ;
2654   return 0;
2655 }
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (ac_try="$ac_compile"
2659 case "(($ac_try" in
2660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661   *) ac_try_echo=$ac_try;;
2662 esac
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664   (eval "$ac_compile") 2>conftest.er1
2665   ac_status=$?
2666   grep -v '^ *+' conftest.er1 >conftest.err
2667   rm -f conftest.er1
2668   cat conftest.err >&5
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); } && {
2671          test -z "$ac_c_werror_flag" ||
2672          test ! -s conftest.err
2673        } && test -s conftest.$ac_objext; then
2674   :
2675 else
2676   echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2678
2679         ac_c_werror_flag=$ac_save_c_werror_flag
2680          CFLAGS="-g"
2681          cat >conftest.$ac_ext <<_ACEOF
2682 /* confdefs.h.  */
2683 _ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h.  */
2687
2688 int
2689 main ()
2690 {
2691
2692   ;
2693   return 0;
2694 }
2695 _ACEOF
2696 rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2698 case "(($ac_try" in
2699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700   *) ac_try_echo=$ac_try;;
2701 esac
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703   (eval "$ac_compile") 2>conftest.er1
2704   ac_status=$?
2705   grep -v '^ *+' conftest.er1 >conftest.err
2706   rm -f conftest.er1
2707   cat conftest.err >&5
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); } && {
2710          test -z "$ac_c_werror_flag" ||
2711          test ! -s conftest.err
2712        } && test -s conftest.$ac_objext; then
2713   ac_cv_prog_cc_g=yes
2714 else
2715   echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718
2719 fi
2720
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 fi
2723
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 fi
2726
2727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728    ac_c_werror_flag=$ac_save_c_werror_flag
2729 fi
2730 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2731 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2732 if test "$ac_test_CFLAGS" = set; then
2733   CFLAGS=$ac_save_CFLAGS
2734 elif test $ac_cv_prog_cc_g = yes; then
2735   if test "$GCC" = yes; then
2736     CFLAGS="-g -O2"
2737   else
2738     CFLAGS="-g"
2739   fi
2740 else
2741   if test "$GCC" = yes; then
2742     CFLAGS="-O2"
2743   else
2744     CFLAGS=
2745   fi
2746 fi
2747 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2748 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2749 if test "${ac_cv_prog_cc_c89+set}" = set; then
2750   echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752   ac_cv_prog_cc_c89=no
2753 ac_save_CC=$CC
2754 cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h.  */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h.  */
2760 #include <stdarg.h>
2761 #include <stdio.h>
2762 #include <sys/types.h>
2763 #include <sys/stat.h>
2764 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2765 struct buf { int x; };
2766 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2767 static char *e (p, i)
2768      char **p;
2769      int i;
2770 {
2771   return p[i];
2772 }
2773 static char *f (char * (*g) (char **, int), char **p, ...)
2774 {
2775   char *s;
2776   va_list v;
2777   va_start (v,p);
2778   s = g (p, va_arg (v,int));
2779   va_end (v);
2780   return s;
2781 }
2782
2783 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2784    function prototypes and stuff, but not '\xHH' hex character constants.
2785    These don't provoke an error unfortunately, instead are silently treated
2786    as 'x'.  The following induces an error, until -std is added to get
2787    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2788    array size at least.  It's necessary to write '\x00'==0 to get something
2789    that's true only with -std.  */
2790 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2791
2792 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2793    inside strings and character constants.  */
2794 #define FOO(x) 'x'
2795 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2796
2797 int test (int i, double x);
2798 struct s1 {int (*f) (int a);};
2799 struct s2 {int (*f) (double a);};
2800 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2801 int argc;
2802 char **argv;
2803 int
2804 main ()
2805 {
2806 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2807   ;
2808   return 0;
2809 }
2810 _ACEOF
2811 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2812         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2813 do
2814   CC="$ac_save_CC $ac_arg"
2815   rm -f conftest.$ac_objext
2816 if { (ac_try="$ac_compile"
2817 case "(($ac_try" in
2818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819   *) ac_try_echo=$ac_try;;
2820 esac
2821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822   (eval "$ac_compile") 2>conftest.er1
2823   ac_status=$?
2824   grep -v '^ *+' conftest.er1 >conftest.err
2825   rm -f conftest.er1
2826   cat conftest.err >&5
2827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828   (exit $ac_status); } && {
2829          test -z "$ac_c_werror_flag" ||
2830          test ! -s conftest.err
2831        } && test -s conftest.$ac_objext; then
2832   ac_cv_prog_cc_c89=$ac_arg
2833 else
2834   echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837
2838 fi
2839
2840 rm -f core conftest.err conftest.$ac_objext
2841   test "x$ac_cv_prog_cc_c89" != "xno" && break
2842 done
2843 rm -f conftest.$ac_ext
2844 CC=$ac_save_CC
2845
2846 fi
2847 # AC_CACHE_VAL
2848 case "x$ac_cv_prog_cc_c89" in
2849   x)
2850     { echo "$as_me:$LINENO: result: none needed" >&5
2851 echo "${ECHO_T}none needed" >&6; } ;;
2852   xno)
2853     { echo "$as_me:$LINENO: result: unsupported" >&5
2854 echo "${ECHO_T}unsupported" >&6; } ;;
2855   *)
2856     CC="$CC $ac_cv_prog_cc_c89"
2857     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2858 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2859 esac
2860
2861
2862 ac_ext=c
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867
2868 ac_ext=cpp
2869 ac_cpp='$CXXCPP $CPPFLAGS'
2870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2873 if test -z "$CXX"; then
2874   if test -n "$CCC"; then
2875     CXX=$CCC
2876   else
2877     if test -n "$ac_tool_prefix"; then
2878   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2879   do
2880     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2884 if test "${ac_cv_prog_CXX+set}" = set; then
2885   echo $ECHO_N "(cached) $ECHO_C" >&6
2886 else
2887   if test -n "$CXX"; then
2888   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893   IFS=$as_save_IFS
2894   test -z "$as_dir" && as_dir=.
2895   for ac_exec_ext in '' $ac_executable_extensions; do
2896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899     break 2
2900   fi
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 CXX=$ac_cv_prog_CXX
2908 if test -n "$CXX"; then
2909   { echo "$as_me:$LINENO: result: $CXX" >&5
2910 echo "${ECHO_T}$CXX" >&6; }
2911 else
2912   { echo "$as_me:$LINENO: result: no" >&5
2913 echo "${ECHO_T}no" >&6; }
2914 fi
2915
2916
2917     test -n "$CXX" && break
2918   done
2919 fi
2920 if test -z "$CXX"; then
2921   ac_ct_CXX=$CXX
2922   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2923 do
2924   # Extract the first word of "$ac_prog", so it can be a program name with args.
2925 set dummy $ac_prog; ac_word=$2
2926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2928 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2929   echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931   if test -n "$ac_ct_CXX"; then
2932   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937   IFS=$as_save_IFS
2938   test -z "$as_dir" && as_dir=.
2939   for ac_exec_ext in '' $ac_executable_extensions; do
2940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941     ac_cv_prog_ac_ct_CXX="$ac_prog"
2942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2943     break 2
2944   fi
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2952 if test -n "$ac_ct_CXX"; then
2953   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2954 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2955 else
2956   { echo "$as_me:$LINENO: result: no" >&5
2957 echo "${ECHO_T}no" >&6; }
2958 fi
2959
2960
2961   test -n "$ac_ct_CXX" && break
2962 done
2963
2964   if test "x$ac_ct_CXX" = x; then
2965     CXX="g++"
2966   else
2967     case $cross_compiling:$ac_tool_warned in
2968 yes:)
2969 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2970 whose name does not start with the host triplet.  If you think this
2971 configuration is useful to you, please write to autoconf@gnu.org." >&5
2972 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2973 whose name does not start with the host triplet.  If you think this
2974 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2975 ac_tool_warned=yes ;;
2976 esac
2977     CXX=$ac_ct_CXX
2978   fi
2979 fi
2980
2981   fi
2982 fi
2983 # Provide some information about the compiler.
2984 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2985 ac_compiler=`set X $ac_compile; echo $2`
2986 { (ac_try="$ac_compiler --version >&5"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_compiler --version >&5") 2>&5
2993   ac_status=$?
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); }
2996 { (ac_try="$ac_compiler -v >&5"
2997 case "(($ac_try" in
2998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999   *) ac_try_echo=$ac_try;;
3000 esac
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002   (eval "$ac_compiler -v >&5") 2>&5
3003   ac_status=$?
3004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005   (exit $ac_status); }
3006 { (ac_try="$ac_compiler -V >&5"
3007 case "(($ac_try" in
3008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009   *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012   (eval "$ac_compiler -V >&5") 2>&5
3013   ac_status=$?
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); }
3016
3017 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3018 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3019 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3020   echo $ECHO_N "(cached) $ECHO_C" >&6
3021 else
3022   cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h.  */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h.  */
3028
3029 int
3030 main ()
3031 {
3032 #ifndef __GNUC__
3033        choke me
3034 #endif
3035
3036   ;
3037   return 0;
3038 }
3039 _ACEOF
3040 rm -f conftest.$ac_objext
3041 if { (ac_try="$ac_compile"
3042 case "(($ac_try" in
3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044   *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047   (eval "$ac_compile") 2>conftest.er1
3048   ac_status=$?
3049   grep -v '^ *+' conftest.er1 >conftest.err
3050   rm -f conftest.er1
3051   cat conftest.err >&5
3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); } && {
3054          test -z "$ac_cxx_werror_flag" ||
3055          test ! -s conftest.err
3056        } && test -s conftest.$ac_objext; then
3057   ac_compiler_gnu=yes
3058 else
3059   echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3061
3062         ac_compiler_gnu=no
3063 fi
3064
3065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3066 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3067
3068 fi
3069 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3070 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3071 GXX=`test $ac_compiler_gnu = yes && echo yes`
3072 ac_test_CXXFLAGS=${CXXFLAGS+set}
3073 ac_save_CXXFLAGS=$CXXFLAGS
3074 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3075 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3076 if test "${ac_cv_prog_cxx_g+set}" = set; then
3077   echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3080    ac_cxx_werror_flag=yes
3081    ac_cv_prog_cxx_g=no
3082    CXXFLAGS="-g"
3083    cat >conftest.$ac_ext <<_ACEOF
3084 /* confdefs.h.  */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h.  */
3089
3090 int
3091 main ()
3092 {
3093
3094   ;
3095   return 0;
3096 }
3097 _ACEOF
3098 rm -f conftest.$ac_objext
3099 if { (ac_try="$ac_compile"
3100 case "(($ac_try" in
3101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102   *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105   (eval "$ac_compile") 2>conftest.er1
3106   ac_status=$?
3107   grep -v '^ *+' conftest.er1 >conftest.err
3108   rm -f conftest.er1
3109   cat conftest.err >&5
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); } && {
3112          test -z "$ac_cxx_werror_flag" ||
3113          test ! -s conftest.err
3114        } && test -s conftest.$ac_objext; then
3115   ac_cv_prog_cxx_g=yes
3116 else
3117   echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3119
3120         CXXFLAGS=""
3121       cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127
3128 int
3129 main ()
3130 {
3131
3132   ;
3133   return 0;
3134 }
3135 _ACEOF
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3138 case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143   (eval "$ac_compile") 2>conftest.er1
3144   ac_status=$?
3145   grep -v '^ *+' conftest.er1 >conftest.err
3146   rm -f conftest.er1
3147   cat conftest.err >&5
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); } && {
3150          test -z "$ac_cxx_werror_flag" ||
3151          test ! -s conftest.err
3152        } && test -s conftest.$ac_objext; then
3153   :
3154 else
3155   echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3159          CXXFLAGS="-g"
3160          cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h.  */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h.  */
3166
3167 int
3168 main ()
3169 {
3170
3171   ;
3172   return 0;
3173 }
3174 _ACEOF
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_compile") 2>conftest.er1
3183   ac_status=$?
3184   grep -v '^ *+' conftest.er1 >conftest.err
3185   rm -f conftest.er1
3186   cat conftest.err >&5
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); } && {
3189          test -z "$ac_cxx_werror_flag" ||
3190          test ! -s conftest.err
3191        } && test -s conftest.$ac_objext; then
3192   ac_cv_prog_cxx_g=yes
3193 else
3194   echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197
3198 fi
3199
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 fi
3202
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 fi
3205
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3208 fi
3209 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3210 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3211 if test "$ac_test_CXXFLAGS" = set; then
3212   CXXFLAGS=$ac_save_CXXFLAGS
3213 elif test $ac_cv_prog_cxx_g = yes; then
3214   if test "$GXX" = yes; then
3215     CXXFLAGS="-g -O2"
3216   else
3217     CXXFLAGS="-g"
3218   fi
3219 else
3220   if test "$GXX" = yes; then
3221     CXXFLAGS="-O2"
3222   else
3223     CXXFLAGS=
3224   fi
3225 fi
3226 ac_ext=c
3227 ac_cpp='$CPP $CPPFLAGS'
3228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231
3232
3233
3234 ac_ext=c
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3240 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3241 # On Suns, sometimes $CPP names a directory.
3242 if test -n "$CPP" && test -d "$CPP"; then
3243   CPP=
3244 fi
3245 if test -z "$CPP"; then
3246   if test "${ac_cv_prog_CPP+set}" = set; then
3247   echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249       # Double quotes because CPP needs to be expanded
3250     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3251     do
3252       ac_preproc_ok=false
3253 for ac_c_preproc_warn_flag in '' yes
3254 do
3255   # Use a header file that comes with gcc, so configuring glibc
3256   # with a fresh cross-compiler works.
3257   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3258   # <limits.h> exists even on freestanding compilers.
3259   # On the NeXT, cc -E runs the code through the compiler's parser,
3260   # not just through cpp. "Syntax error" is here to catch this case.
3261   cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h.  */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h.  */
3267 #ifdef __STDC__
3268 # include <limits.h>
3269 #else
3270 # include <assert.h>
3271 #endif
3272                      Syntax error
3273 _ACEOF
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } >/dev/null && {
3287          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3288          test ! -s conftest.err
3289        }; then
3290   :
3291 else
3292   echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3294
3295   # Broken: fails on valid input.
3296 continue
3297 fi
3298
3299 rm -f conftest.err conftest.$ac_ext
3300
3301   # OK, works on sane cases.  Now check whether nonexistent headers
3302   # can be detected and how.
3303   cat >conftest.$ac_ext <<_ACEOF
3304 /* confdefs.h.  */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h.  */
3309 #include <ac_nonexistent.h>
3310 _ACEOF
3311 if { (ac_try="$ac_cpp conftest.$ac_ext"
3312 case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3318   ac_status=$?
3319   grep -v '^ *+' conftest.er1 >conftest.err
3320   rm -f conftest.er1
3321   cat conftest.err >&5
3322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323   (exit $ac_status); } >/dev/null && {
3324          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3325          test ! -s conftest.err
3326        }; then
3327   # Broken: success on invalid input.
3328 continue
3329 else
3330   echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333   # Passes both tests.
3334 ac_preproc_ok=:
3335 break
3336 fi
3337
3338 rm -f conftest.err conftest.$ac_ext
3339
3340 done
3341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3342 rm -f conftest.err conftest.$ac_ext
3343 if $ac_preproc_ok; then
3344   break
3345 fi
3346
3347     done
3348     ac_cv_prog_CPP=$CPP
3349
3350 fi
3351   CPP=$ac_cv_prog_CPP
3352 else
3353   ac_cv_prog_CPP=$CPP
3354 fi
3355 { echo "$as_me:$LINENO: result: $CPP" >&5
3356 echo "${ECHO_T}$CPP" >&6; }
3357 ac_preproc_ok=false
3358 for ac_c_preproc_warn_flag in '' yes
3359 do
3360   # Use a header file that comes with gcc, so configuring glibc
3361   # with a fresh cross-compiler works.
3362   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3363   # <limits.h> exists even on freestanding compilers.
3364   # On the NeXT, cc -E runs the code through the compiler's parser,
3365   # not just through cpp. "Syntax error" is here to catch this case.
3366   cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h.  */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h.  */
3372 #ifdef __STDC__
3373 # include <limits.h>
3374 #else
3375 # include <assert.h>
3376 #endif
3377                      Syntax error
3378 _ACEOF
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3380 case "(($ac_try" in
3381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382   *) ac_try_echo=$ac_try;;
3383 esac
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3386   ac_status=$?
3387   grep -v '^ *+' conftest.er1 >conftest.err
3388   rm -f conftest.er1
3389   cat conftest.err >&5
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); } >/dev/null && {
3392          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3393          test ! -s conftest.err
3394        }; then
3395   :
3396 else
3397   echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400   # Broken: fails on valid input.
3401 continue
3402 fi
3403
3404 rm -f conftest.err conftest.$ac_ext
3405
3406   # OK, works on sane cases.  Now check whether nonexistent headers
3407   # can be detected and how.
3408   cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h.  */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h.  */
3414 #include <ac_nonexistent.h>
3415 _ACEOF
3416 if { (ac_try="$ac_cpp conftest.$ac_ext"
3417 case "(($ac_try" in
3418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419   *) ac_try_echo=$ac_try;;
3420 esac
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3423   ac_status=$?
3424   grep -v '^ *+' conftest.er1 >conftest.err
3425   rm -f conftest.er1
3426   cat conftest.err >&5
3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428   (exit $ac_status); } >/dev/null && {
3429          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3430          test ! -s conftest.err
3431        }; then
3432   # Broken: success on invalid input.
3433 continue
3434 else
3435   echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438   # Passes both tests.
3439 ac_preproc_ok=:
3440 break
3441 fi
3442
3443 rm -f conftest.err conftest.$ac_ext
3444
3445 done
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3449   :
3450 else
3451   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&5
3453 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&2;}
3455    { (exit 1); exit 1; }; }
3456 fi
3457
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464
3465 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3466 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3467 if test "${ac_cv_path_GREP+set}" = set; then
3468   echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470   # Extract the first word of "grep ggrep" to use in msg output
3471 if test -z "$GREP"; then
3472 set dummy grep ggrep; ac_prog_name=$2
3473 if test "${ac_cv_path_GREP+set}" = set; then
3474   echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476   ac_path_GREP_found=false
3477 # Loop through the user's path and test for each of PROGNAME-LIST
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3480 do
3481   IFS=$as_save_IFS
3482   test -z "$as_dir" && as_dir=.
3483   for ac_prog in grep ggrep; do
3484   for ac_exec_ext in '' $ac_executable_extensions; do
3485     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3486     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3487     # Check for GNU ac_path_GREP and select it if it is found.
3488   # Check for GNU $ac_path_GREP
3489 case `"$ac_path_GREP" --version 2>&1` in
3490 *GNU*)
3491   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3492 *)
3493   ac_count=0
3494   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3495   while :
3496   do
3497     cat "conftest.in" "conftest.in" >"conftest.tmp"
3498     mv "conftest.tmp" "conftest.in"
3499     cp "conftest.in" "conftest.nl"
3500     echo 'GREP' >> "conftest.nl"
3501     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3502     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3503     ac_count=`expr $ac_count + 1`
3504     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3505       # Best one so far, save it but keep looking for a better one
3506       ac_cv_path_GREP="$ac_path_GREP"
3507       ac_path_GREP_max=$ac_count
3508     fi
3509     # 10*(2^10) chars as input seems more than enough
3510     test $ac_count -gt 10 && break
3511   done
3512   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3513 esac
3514
3515
3516     $ac_path_GREP_found && break 3
3517   done
3518 done
3519
3520 done
3521 IFS=$as_save_IFS
3522
3523
3524 fi
3525
3526 GREP="$ac_cv_path_GREP"
3527 if test -z "$GREP"; then
3528   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3529 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3530    { (exit 1); exit 1; }; }
3531 fi
3532
3533 else
3534   ac_cv_path_GREP=$GREP
3535 fi
3536
3537
3538 fi
3539 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3540 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3541  GREP="$ac_cv_path_GREP"
3542
3543
3544 { echo "$as_me:$LINENO: checking for egrep" >&5
3545 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3546 if test "${ac_cv_path_EGREP+set}" = set; then
3547   echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3550    then ac_cv_path_EGREP="$GREP -E"
3551    else
3552      # Extract the first word of "egrep" to use in msg output
3553 if test -z "$EGREP"; then
3554 set dummy egrep; ac_prog_name=$2
3555 if test "${ac_cv_path_EGREP+set}" = set; then
3556   echo $ECHO_N "(cached) $ECHO_C" >&6
3557 else
3558   ac_path_EGREP_found=false
3559 # Loop through the user's path and test for each of PROGNAME-LIST
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3562 do
3563   IFS=$as_save_IFS
3564   test -z "$as_dir" && as_dir=.
3565   for ac_prog in egrep; do
3566   for ac_exec_ext in '' $ac_executable_extensions; do
3567     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3568     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3569     # Check for GNU ac_path_EGREP and select it if it is found.
3570   # Check for GNU $ac_path_EGREP
3571 case `"$ac_path_EGREP" --version 2>&1` in
3572 *GNU*)
3573   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3574 *)
3575   ac_count=0
3576   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3577   while :
3578   do
3579     cat "conftest.in" "conftest.in" >"conftest.tmp"
3580     mv "conftest.tmp" "conftest.in"
3581     cp "conftest.in" "conftest.nl"
3582     echo 'EGREP' >> "conftest.nl"
3583     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3584     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3585     ac_count=`expr $ac_count + 1`
3586     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3587       # Best one so far, save it but keep looking for a better one
3588       ac_cv_path_EGREP="$ac_path_EGREP"
3589       ac_path_EGREP_max=$ac_count
3590     fi
3591     # 10*(2^10) chars as input seems more than enough
3592     test $ac_count -gt 10 && break
3593   done
3594   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3595 esac
3596
3597
3598     $ac_path_EGREP_found && break 3
3599   done
3600 done
3601
3602 done
3603 IFS=$as_save_IFS
3604
3605
3606 fi
3607
3608 EGREP="$ac_cv_path_EGREP"
3609 if test -z "$EGREP"; then
3610   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3611 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3612    { (exit 1); exit 1; }; }
3613 fi
3614
3615 else
3616   ac_cv_path_EGREP=$EGREP
3617 fi
3618
3619
3620    fi
3621 fi
3622 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3623 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3624  EGREP="$ac_cv_path_EGREP"
3625
3626
3627
3628 { echo "$as_me:$LINENO: checking for AIX" >&5
3629 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3630 cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h.  */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h.  */
3636 #ifdef _AIX
3637   yes
3638 #endif
3639
3640 _ACEOF
3641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3642   $EGREP "yes" >/dev/null 2>&1; then
3643   { echo "$as_me:$LINENO: result: yes" >&5
3644 echo "${ECHO_T}yes" >&6; }
3645 cat >>confdefs.h <<\_ACEOF
3646 #define _ALL_SOURCE 1
3647 _ACEOF
3648
3649 else
3650   { echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6; }
3652 fi
3653 rm -f conftest*
3654
3655
3656
3657 if test $ac_cv_c_compiler_gnu = yes; then
3658     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3659 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3660 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663     ac_pattern="Autoconf.*'x'"
3664   cat >conftest.$ac_ext <<_ACEOF
3665 /* confdefs.h.  */
3666 _ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h.  */
3670 #include <sgtty.h>
3671 Autoconf TIOCGETP
3672 _ACEOF
3673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3674   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3675   ac_cv_prog_gcc_traditional=yes
3676 else
3677   ac_cv_prog_gcc_traditional=no
3678 fi
3679 rm -f conftest*
3680
3681
3682   if test $ac_cv_prog_gcc_traditional = no; then
3683     cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h.  */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h.  */
3689 #include <termio.h>
3690 Autoconf TCGETA
3691 _ACEOF
3692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3693   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3694   ac_cv_prog_gcc_traditional=yes
3695 fi
3696 rm -f conftest*
3697
3698   fi
3699 fi
3700 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3701 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3702   if test $ac_cv_prog_gcc_traditional = yes; then
3703     CC="$CC -traditional"
3704   fi
3705 fi
3706
3707 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3708 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3709 if test "${ac_cv_prog_suncc+set}" = set; then
3710   echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712   cat > conftest.c <<EOF
3713 #ifdef __SUNPRO_C
3714   yes;
3715 #endif
3716 EOF
3717 if { ac_try='${CC-cc} -E conftest.c'
3718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719   (eval $ac_try) 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3723   ac_cv_prog_suncc=yes
3724 else
3725   ac_cv_prog_suncc=no
3726 fi
3727 fi
3728 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3729 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3730 if test -n "$ac_tool_prefix"; then
3731   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3732 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3735 if test "${ac_cv_prog_RANLIB+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   if test -n "$RANLIB"; then
3739   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746   for ac_exec_ext in '' $ac_executable_extensions; do
3747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3750     break 2
3751   fi
3752 done
3753 done
3754 IFS=$as_save_IFS
3755
3756 fi
3757 fi
3758 RANLIB=$ac_cv_prog_RANLIB
3759 if test -n "$RANLIB"; then
3760   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3761 echo "${ECHO_T}$RANLIB" >&6; }
3762 else
3763   { echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6; }
3765 fi
3766
3767
3768 fi
3769 if test -z "$ac_cv_prog_RANLIB"; then
3770   ac_ct_RANLIB=$RANLIB
3771   # Extract the first word of "ranlib", so it can be a program name with args.
3772 set dummy ranlib; ac_word=$2
3773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3775 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3776   echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778   if test -n "$ac_ct_RANLIB"; then
3779   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3780 else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3783 do
3784   IFS=$as_save_IFS
3785   test -z "$as_dir" && as_dir=.
3786   for ac_exec_ext in '' $ac_executable_extensions; do
3787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3788     ac_cv_prog_ac_ct_RANLIB="ranlib"
3789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3790     break 2
3791   fi
3792 done
3793 done
3794 IFS=$as_save_IFS
3795
3796 fi
3797 fi
3798 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3799 if test -n "$ac_ct_RANLIB"; then
3800   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3801 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3802 else
3803   { echo "$as_me:$LINENO: result: no" >&5
3804 echo "${ECHO_T}no" >&6; }
3805 fi
3806
3807   if test "x$ac_ct_RANLIB" = x; then
3808     RANLIB=":"
3809   else
3810     case $cross_compiling:$ac_tool_warned in
3811 yes:)
3812 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3813 whose name does not start with the host triplet.  If you think this
3814 configuration is useful to you, please write to autoconf@gnu.org." >&5
3815 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3816 whose name does not start with the host triplet.  If you think this
3817 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3818 ac_tool_warned=yes ;;
3819 esac
3820     RANLIB=$ac_ct_RANLIB
3821   fi
3822 else
3823   RANLIB="$ac_cv_prog_RANLIB"
3824 fi
3825
3826
3827 # Check whether --enable-largefile was given.
3828 if test "${enable_largefile+set}" = set; then
3829   enableval=$enable_largefile;
3830 fi
3831
3832 if test "$enable_largefile" != no; then
3833
3834   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3835 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3836 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3837   echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839   ac_cv_sys_largefile_CC=no
3840      if test "$GCC" != yes; then
3841        ac_save_CC=$CC
3842        while :; do
3843          # IRIX 6.2 and later do not support large files by default,
3844          # so use the C compiler's -n32 option if that helps.
3845          cat >conftest.$ac_ext <<_ACEOF
3846 /* confdefs.h.  */
3847 _ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h.  */
3851 #include <sys/types.h>
3852  /* Check that off_t can represent 2**63 - 1 correctly.
3853     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3854     since some C++ compilers masquerading as C compilers
3855     incorrectly reject 9223372036854775807.  */
3856 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3857   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3858                        && LARGE_OFF_T % 2147483647 == 1)
3859                       ? 1 : -1];
3860 int
3861 main ()
3862 {
3863
3864   ;
3865   return 0;
3866 }
3867 _ACEOF
3868          rm -f conftest.$ac_objext
3869 if { (ac_try="$ac_compile"
3870 case "(($ac_try" in
3871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872   *) ac_try_echo=$ac_try;;
3873 esac
3874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3875   (eval "$ac_compile") 2>conftest.er1
3876   ac_status=$?
3877   grep -v '^ *+' conftest.er1 >conftest.err
3878   rm -f conftest.er1
3879   cat conftest.err >&5
3880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881   (exit $ac_status); } && {
3882          test -z "$ac_c_werror_flag" ||
3883          test ! -s conftest.err
3884        } && test -s conftest.$ac_objext; then
3885   break
3886 else
3887   echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3889
3890
3891 fi
3892
3893 rm -f core conftest.err conftest.$ac_objext
3894          CC="$CC -n32"
3895          rm -f conftest.$ac_objext
3896 if { (ac_try="$ac_compile"
3897 case "(($ac_try" in
3898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899   *) ac_try_echo=$ac_try;;
3900 esac
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902   (eval "$ac_compile") 2>conftest.er1
3903   ac_status=$?
3904   grep -v '^ *+' conftest.er1 >conftest.err
3905   rm -f conftest.er1
3906   cat conftest.err >&5
3907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908   (exit $ac_status); } && {
3909          test -z "$ac_c_werror_flag" ||
3910          test ! -s conftest.err
3911        } && test -s conftest.$ac_objext; then
3912   ac_cv_sys_largefile_CC=' -n32'; break
3913 else
3914   echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3916
3917
3918 fi
3919
3920 rm -f core conftest.err conftest.$ac_objext
3921          break
3922        done
3923        CC=$ac_save_CC
3924        rm -f conftest.$ac_ext
3925     fi
3926 fi
3927 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3928 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3929   if test "$ac_cv_sys_largefile_CC" != no; then
3930     CC=$CC$ac_cv_sys_largefile_CC
3931   fi
3932
3933   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3934 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3935 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3936   echo $ECHO_N "(cached) $ECHO_C" >&6
3937 else
3938   while :; do
3939   cat >conftest.$ac_ext <<_ACEOF
3940 /* confdefs.h.  */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h.  */
3945 #include <sys/types.h>
3946  /* Check that off_t can represent 2**63 - 1 correctly.
3947     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3948     since some C++ compilers masquerading as C compilers
3949     incorrectly reject 9223372036854775807.  */
3950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3951   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3952                        && LARGE_OFF_T % 2147483647 == 1)
3953                       ? 1 : -1];
3954 int
3955 main ()
3956 {
3957
3958   ;
3959   return 0;
3960 }
3961 _ACEOF
3962 rm -f conftest.$ac_objext
3963 if { (ac_try="$ac_compile"
3964 case "(($ac_try" in
3965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966   *) ac_try_echo=$ac_try;;
3967 esac
3968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969   (eval "$ac_compile") 2>conftest.er1
3970   ac_status=$?
3971   grep -v '^ *+' conftest.er1 >conftest.err
3972   rm -f conftest.er1
3973   cat conftest.err >&5
3974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975   (exit $ac_status); } && {
3976          test -z "$ac_c_werror_flag" ||
3977          test ! -s conftest.err
3978        } && test -s conftest.$ac_objext; then
3979   ac_cv_sys_file_offset_bits=no; break
3980 else
3981   echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3983
3984
3985 fi
3986
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988   cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h.  */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h.  */
3994 #define _FILE_OFFSET_BITS 64
3995 #include <sys/types.h>
3996  /* Check that off_t can represent 2**63 - 1 correctly.
3997     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3998     since some C++ compilers masquerading as C compilers
3999     incorrectly reject 9223372036854775807.  */
4000 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4001   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4002                        && LARGE_OFF_T % 2147483647 == 1)
4003                       ? 1 : -1];
4004 int
4005 main ()
4006 {
4007
4008   ;
4009   return 0;
4010 }
4011 _ACEOF
4012 rm -f conftest.$ac_objext
4013 if { (ac_try="$ac_compile"
4014 case "(($ac_try" in
4015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016   *) ac_try_echo=$ac_try;;
4017 esac
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019   (eval "$ac_compile") 2>conftest.er1
4020   ac_status=$?
4021   grep -v '^ *+' conftest.er1 >conftest.err
4022   rm -f conftest.er1
4023   cat conftest.err >&5
4024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025   (exit $ac_status); } && {
4026          test -z "$ac_c_werror_flag" ||
4027          test ! -s conftest.err
4028        } && test -s conftest.$ac_objext; then
4029   ac_cv_sys_file_offset_bits=64; break
4030 else
4031   echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4033
4034
4035 fi
4036
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038   ac_cv_sys_file_offset_bits=unknown
4039   break
4040 done
4041 fi
4042 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4043 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4044 case $ac_cv_sys_file_offset_bits in #(
4045   no | unknown) ;;
4046   *)
4047 cat >>confdefs.h <<_ACEOF
4048 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4049 _ACEOF
4050 ;;
4051 esac
4052 rm -f conftest*
4053   if test $ac_cv_sys_file_offset_bits = unknown; then
4054     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4055 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4056 if test "${ac_cv_sys_large_files+set}" = set; then
4057   echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059   while :; do
4060   cat >conftest.$ac_ext <<_ACEOF
4061 /* confdefs.h.  */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h.  */
4066 #include <sys/types.h>
4067  /* Check that off_t can represent 2**63 - 1 correctly.
4068     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4069     since some C++ compilers masquerading as C compilers
4070     incorrectly reject 9223372036854775807.  */
4071 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4072   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4073                        && LARGE_OFF_T % 2147483647 == 1)
4074                       ? 1 : -1];
4075 int
4076 main ()
4077 {
4078
4079   ;
4080   return 0;
4081 }
4082 _ACEOF
4083 rm -f conftest.$ac_objext
4084 if { (ac_try="$ac_compile"
4085 case "(($ac_try" in
4086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087   *) ac_try_echo=$ac_try;;
4088 esac
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090   (eval "$ac_compile") 2>conftest.er1
4091   ac_status=$?
4092   grep -v '^ *+' conftest.er1 >conftest.err
4093   rm -f conftest.er1
4094   cat conftest.err >&5
4095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096   (exit $ac_status); } && {
4097          test -z "$ac_c_werror_flag" ||
4098          test ! -s conftest.err
4099        } && test -s conftest.$ac_objext; then
4100   ac_cv_sys_large_files=no; break
4101 else
4102   echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4104
4105
4106 fi
4107
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109   cat >conftest.$ac_ext <<_ACEOF
4110 /* confdefs.h.  */
4111 _ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h.  */
4115 #define _LARGE_FILES 1
4116 #include <sys/types.h>
4117  /* Check that off_t can represent 2**63 - 1 correctly.
4118     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4119     since some C++ compilers masquerading as C compilers
4120     incorrectly reject 9223372036854775807.  */
4121 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4122   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4123                        && LARGE_OFF_T % 2147483647 == 1)
4124                       ? 1 : -1];
4125 int
4126 main ()
4127 {
4128
4129   ;
4130   return 0;
4131 }
4132 _ACEOF
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4135 case "(($ac_try" in
4136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137   *) ac_try_echo=$ac_try;;
4138 esac
4139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140   (eval "$ac_compile") 2>conftest.er1
4141   ac_status=$?
4142   grep -v '^ *+' conftest.er1 >conftest.err
4143   rm -f conftest.er1
4144   cat conftest.err >&5
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); } && {
4147          test -z "$ac_c_werror_flag" ||
4148          test ! -s conftest.err
4149        } && test -s conftest.$ac_objext; then
4150   ac_cv_sys_large_files=1; break
4151 else
4152   echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4154
4155
4156 fi
4157
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159   ac_cv_sys_large_files=unknown
4160   break
4161 done
4162 fi
4163 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4164 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4165 case $ac_cv_sys_large_files in #(
4166   no | unknown) ;;
4167   *)
4168 cat >>confdefs.h <<_ACEOF
4169 #define _LARGE_FILES $ac_cv_sys_large_files
4170 _ACEOF
4171 ;;
4172 esac
4173 rm -f conftest*
4174   fi
4175 fi
4176
4177
4178 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4179 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4180 if test "${ac_cv_header_stdc+set}" = set; then
4181   echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183   cat >conftest.$ac_ext <<_ACEOF
4184 /* confdefs.h.  */
4185 _ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h.  */
4189 #include <stdlib.h>
4190 #include <stdarg.h>
4191 #include <string.h>
4192 #include <float.h>
4193
4194 int
4195 main ()
4196 {
4197
4198   ;
4199   return 0;
4200 }
4201 _ACEOF
4202 rm -f conftest.$ac_objext
4203 if { (ac_try="$ac_compile"
4204 case "(($ac_try" in
4205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206   *) ac_try_echo=$ac_try;;
4207 esac
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209   (eval "$ac_compile") 2>conftest.er1
4210   ac_status=$?
4211   grep -v '^ *+' conftest.er1 >conftest.err
4212   rm -f conftest.er1
4213   cat conftest.err >&5
4214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215   (exit $ac_status); } && {
4216          test -z "$ac_c_werror_flag" ||
4217          test ! -s conftest.err
4218        } && test -s conftest.$ac_objext; then
4219   ac_cv_header_stdc=yes
4220 else
4221   echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4223
4224         ac_cv_header_stdc=no
4225 fi
4226
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228
4229 if test $ac_cv_header_stdc = yes; then
4230   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4231   cat >conftest.$ac_ext <<_ACEOF
4232 /* confdefs.h.  */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h.  */
4237 #include <string.h>
4238
4239 _ACEOF
4240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4241   $EGREP "memchr" >/dev/null 2>&1; then
4242   :
4243 else
4244   ac_cv_header_stdc=no
4245 fi
4246 rm -f conftest*
4247
4248 fi
4249
4250 if test $ac_cv_header_stdc = yes; then
4251   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4252   cat >conftest.$ac_ext <<_ACEOF
4253 /* confdefs.h.  */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h.  */
4258 #include <stdlib.h>
4259
4260 _ACEOF
4261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4262   $EGREP "free" >/dev/null 2>&1; then
4263   :
4264 else
4265   ac_cv_header_stdc=no
4266 fi
4267 rm -f conftest*
4268
4269 fi
4270
4271 if test $ac_cv_header_stdc = yes; then
4272   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4273   if test "$cross_compiling" = yes; then
4274   :
4275 else
4276   cat >conftest.$ac_ext <<_ACEOF
4277 /* confdefs.h.  */
4278 _ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h.  */
4282 #include <ctype.h>
4283 #include <stdlib.h>
4284 #if ((' ' & 0x0FF) == 0x020)
4285 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4286 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4287 #else
4288 # define ISLOWER(c) \
4289                    (('a' <= (c) && (c) <= 'i') \
4290                      || ('j' <= (c) && (c) <= 'r') \
4291                      || ('s' <= (c) && (c) <= 'z'))
4292 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4293 #endif
4294
4295 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4296 int
4297 main ()
4298 {
4299   int i;
4300   for (i = 0; i < 256; i++)
4301     if (XOR (islower (i), ISLOWER (i))
4302         || toupper (i) != TOUPPER (i))
4303       return 2;
4304   return 0;
4305 }
4306 _ACEOF
4307 rm -f conftest$ac_exeext
4308 if { (ac_try="$ac_link"
4309 case "(($ac_try" in
4310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311   *) ac_try_echo=$ac_try;;
4312 esac
4313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314   (eval "$ac_link") 2>&5
4315   ac_status=$?
4316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4318   { (case "(($ac_try" in
4319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320   *) ac_try_echo=$ac_try;;
4321 esac
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323   (eval "$ac_try") 2>&5
4324   ac_status=$?
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); }; }; then
4327   :
4328 else
4329   echo "$as_me: program exited with status $ac_status" >&5
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4332
4333 ( exit $ac_status )
4334 ac_cv_header_stdc=no
4335 fi
4336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4337 fi
4338
4339
4340 fi
4341 fi
4342 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4343 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4344 if test $ac_cv_header_stdc = yes; then
4345
4346 cat >>confdefs.h <<\_ACEOF
4347 #define STDC_HEADERS 1
4348 _ACEOF
4349
4350 fi
4351
4352 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4363                   inttypes.h stdint.h unistd.h
4364 do
4365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371   cat >conftest.$ac_ext <<_ACEOF
4372 /* confdefs.h.  */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h.  */
4377 $ac_includes_default
4378
4379 #include <$ac_header>
4380 _ACEOF
4381 rm -f conftest.$ac_objext
4382 if { (ac_try="$ac_compile"
4383 case "(($ac_try" in
4384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385   *) ac_try_echo=$ac_try;;
4386 esac
4387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388   (eval "$ac_compile") 2>conftest.er1
4389   ac_status=$?
4390   grep -v '^ *+' conftest.er1 >conftest.err
4391   rm -f conftest.er1
4392   cat conftest.err >&5
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); } && {
4395          test -z "$ac_c_werror_flag" ||
4396          test ! -s conftest.err
4397        } && test -s conftest.$ac_objext; then
4398   eval "$as_ac_Header=yes"
4399 else
4400   echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4402
4403         eval "$as_ac_Header=no"
4404 fi
4405
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 fi
4408 ac_res=`eval echo '${'$as_ac_Header'}'`
4409                { echo "$as_me:$LINENO: result: $ac_res" >&5
4410 echo "${ECHO_T}$ac_res" >&6; }
4411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4412   cat >>confdefs.h <<_ACEOF
4413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4414 _ACEOF
4415
4416 fi
4417
4418 done
4419
4420
4421 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4422 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4423 if test "${ac_cv_c_bigendian+set}" = set; then
4424   echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426   # See if sys/param.h defines the BYTE_ORDER macro.
4427 cat >conftest.$ac_ext <<_ACEOF
4428 /* confdefs.h.  */
4429 _ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h.  */
4433 #include <sys/types.h>
4434 #include <sys/param.h>
4435
4436 int
4437 main ()
4438 {
4439 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4440         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4441  bogus endian macros
4442 #endif
4443
4444   ;
4445   return 0;
4446 }
4447 _ACEOF
4448 rm -f conftest.$ac_objext
4449 if { (ac_try="$ac_compile"
4450 case "(($ac_try" in
4451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452   *) ac_try_echo=$ac_try;;
4453 esac
4454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4455   (eval "$ac_compile") 2>conftest.er1
4456   ac_status=$?
4457   grep -v '^ *+' conftest.er1 >conftest.err
4458   rm -f conftest.er1
4459   cat conftest.err >&5
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); } && {
4462          test -z "$ac_c_werror_flag" ||
4463          test ! -s conftest.err
4464        } && test -s conftest.$ac_objext; then
4465   # It does; now see whether it defined to BIG_ENDIAN or not.
4466 cat >conftest.$ac_ext <<_ACEOF
4467 /* confdefs.h.  */
4468 _ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h.  */
4472 #include <sys/types.h>
4473 #include <sys/param.h>
4474
4475 int
4476 main ()
4477 {
4478 #if BYTE_ORDER != BIG_ENDIAN
4479  not big endian
4480 #endif
4481
4482   ;
4483   return 0;
4484 }
4485 _ACEOF
4486 rm -f conftest.$ac_objext
4487 if { (ac_try="$ac_compile"
4488 case "(($ac_try" in
4489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490   *) ac_try_echo=$ac_try;;
4491 esac
4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493   (eval "$ac_compile") 2>conftest.er1
4494   ac_status=$?
4495   grep -v '^ *+' conftest.er1 >conftest.err
4496   rm -f conftest.er1
4497   cat conftest.err >&5
4498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499   (exit $ac_status); } && {
4500          test -z "$ac_c_werror_flag" ||
4501          test ! -s conftest.err
4502        } && test -s conftest.$ac_objext; then
4503   ac_cv_c_bigendian=yes
4504 else
4505   echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508         ac_cv_c_bigendian=no
4509 fi
4510
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 else
4513   echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4515
4516         # It does not; compile a test program.
4517 if test "$cross_compiling" = yes; then
4518   # try to guess the endianness by grepping values into an object file
4519   ac_cv_c_bigendian=unknown
4520   cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h.  */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h.  */
4526 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4527 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4528 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4529 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4530 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4531 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4532 int
4533 main ()
4534 {
4535  _ascii (); _ebcdic ();
4536   ;
4537   return 0;
4538 }
4539 _ACEOF
4540 rm -f conftest.$ac_objext
4541 if { (ac_try="$ac_compile"
4542 case "(($ac_try" in
4543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544   *) ac_try_echo=$ac_try;;
4545 esac
4546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4547   (eval "$ac_compile") 2>conftest.er1
4548   ac_status=$?
4549   grep -v '^ *+' conftest.er1 >conftest.err
4550   rm -f conftest.er1
4551   cat conftest.err >&5
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); } && {
4554          test -z "$ac_c_werror_flag" ||
4555          test ! -s conftest.err
4556        } && test -s conftest.$ac_objext; then
4557   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4558   ac_cv_c_bigendian=yes
4559 fi
4560 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4561   if test "$ac_cv_c_bigendian" = unknown; then
4562     ac_cv_c_bigendian=no
4563   else
4564     # finding both strings is unlikely to happen, but who knows?
4565     ac_cv_c_bigendian=unknown
4566   fi
4567 fi
4568 else
4569   echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4571
4572
4573 fi
4574
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 else
4577   cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h.  */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h.  */
4583 $ac_includes_default
4584 int
4585 main ()
4586 {
4587
4588   /* Are we little or big endian?  From Harbison&Steele.  */
4589   union
4590   {
4591     long int l;
4592     char c[sizeof (long int)];
4593   } u;
4594   u.l = 1;
4595   return u.c[sizeof (long int) - 1] == 1;
4596
4597   ;
4598   return 0;
4599 }
4600 _ACEOF
4601 rm -f conftest$ac_exeext
4602 if { (ac_try="$ac_link"
4603 case "(($ac_try" in
4604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605   *) ac_try_echo=$ac_try;;
4606 esac
4607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4608   (eval "$ac_link") 2>&5
4609   ac_status=$?
4610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4612   { (case "(($ac_try" in
4613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614   *) ac_try_echo=$ac_try;;
4615 esac
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617   (eval "$ac_try") 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }; }; then
4621   ac_cv_c_bigendian=no
4622 else
4623   echo "$as_me: program exited with status $ac_status" >&5
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627 ( exit $ac_status )
4628 ac_cv_c_bigendian=yes
4629 fi
4630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4631 fi
4632
4633
4634 fi
4635
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 fi
4638 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4639 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4640 case $ac_cv_c_bigendian in
4641   yes)
4642
4643 cat >>confdefs.h <<\_ACEOF
4644 #define WORDS_BIGENDIAN 1
4645 _ACEOF
4646  ;;
4647   no)
4648      ;;
4649   *)
4650     { { echo "$as_me:$LINENO: error: unknown endianness
4651 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4652 echo "$as_me: error: unknown endianness
4653 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4654    { (exit 1); exit 1; }; } ;;
4655 esac
4656
4657
4658 # Extract the first word of "gmake", so it can be a program name with args.
4659 set dummy gmake; ac_word=$2
4660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662 if test "${ac_cv_prog_GMAKE+set}" = set; then
4663   echo $ECHO_N "(cached) $ECHO_C" >&6
4664 else
4665   if test -n "$GMAKE"; then
4666   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4667 else
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671   IFS=$as_save_IFS
4672   test -z "$as_dir" && as_dir=.
4673   for ac_exec_ext in '' $ac_executable_extensions; do
4674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675     ac_cv_prog_GMAKE="yes"
4676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677     break 2
4678   fi
4679 done
4680 done
4681 IFS=$as_save_IFS
4682
4683   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4684 fi
4685 fi
4686 GMAKE=$ac_cv_prog_GMAKE
4687 if test -n "$GMAKE"; then
4688   { echo "$as_me:$LINENO: result: $GMAKE" >&5
4689 echo "${ECHO_T}$GMAKE" >&6; }
4690 else
4691   { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4693 fi
4694
4695
4696 if test $GMAKE = no; then
4697   # Extract the first word of "make", so it can be a program name with args.
4698 set dummy make; ac_word=$2
4699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4701 if test "${ac_cv_path_MAKE+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704   case $MAKE in
4705   [\\/]* | ?:[\\/]*)
4706   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4707   ;;
4708   *)
4709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714   for ac_exec_ext in '' $ac_executable_extensions; do
4715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721 done
4722 IFS=$as_save_IFS
4723
4724   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4725   ;;
4726 esac
4727 fi
4728 MAKE=$ac_cv_path_MAKE
4729 if test -n "$MAKE"; then
4730   { echo "$as_me:$LINENO: result: $MAKE" >&5
4731 echo "${ECHO_T}$MAKE" >&6; }
4732 else
4733   { echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6; }
4735 fi
4736
4737
4738 else
4739   # Extract the first word of "gmake", so it can be a program name with args.
4740 set dummy gmake; ac_word=$2
4741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4743 if test "${ac_cv_path_MAKE+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746   case $MAKE in
4747   [\\/]* | ?:[\\/]*)
4748   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4749   ;;
4750   *)
4751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4753 do
4754   IFS=$as_save_IFS
4755   test -z "$as_dir" && as_dir=.
4756   for ac_exec_ext in '' $ac_executable_extensions; do
4757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4758     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4760     break 2
4761   fi
4762 done
4763 done
4764 IFS=$as_save_IFS
4765
4766   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4767   ;;
4768 esac
4769 fi
4770 MAKE=$ac_cv_path_MAKE
4771 if test -n "$MAKE"; then
4772   { echo "$as_me:$LINENO: result: $MAKE" >&5
4773 echo "${ECHO_T}$MAKE" >&6; }
4774 else
4775   { echo "$as_me:$LINENO: result: no" >&5
4776 echo "${ECHO_T}no" >&6; }
4777 fi
4778
4779
4780 fi
4781 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4782 if test -z "$makever"; then
4783   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
4784                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4785 echo "$as_me: error: GNU Make is not installed.  Please download and install it
4786                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4787    { (exit 1); exit 1; }; }
4788 fi
4789
4790
4791 # Check whether --with-system-libtldl was given.
4792 if test "${with_system_libtldl+set}" = set; then
4793   withval=$with_system_libtldl;
4794 LIBLTDL="-lltdl"
4795 INCLTDL=
4796 LTDL_SUBDIRS=
4797
4798 else
4799
4800   { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4801 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4802 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4803   echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805   ac_check_lib_save_LIBS=$LIBS
4806 LIBS="-lltdl  $LIBS"
4807 cat >conftest.$ac_ext <<_ACEOF
4808 /* confdefs.h.  */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h.  */
4813
4814 /* Override any GCC internal prototype to avoid an error.
4815    Use char because int might match the return type of a GCC
4816    builtin and then its argument prototype would still apply.  */
4817 #ifdef __cplusplus
4818 extern "C"
4819 #endif
4820 char lt_dlinit ();
4821 int
4822 main ()
4823 {
4824 return lt_dlinit ();
4825   ;
4826   return 0;
4827 }
4828 _ACEOF
4829 rm -f conftest.$ac_objext conftest$ac_exeext
4830 if { (ac_try="$ac_link"
4831 case "(($ac_try" in
4832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833   *) ac_try_echo=$ac_try;;
4834 esac
4835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836   (eval "$ac_link") 2>conftest.er1
4837   ac_status=$?
4838   grep -v '^ *+' conftest.er1 >conftest.err
4839   rm -f conftest.er1
4840   cat conftest.err >&5
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); } && {
4843          test -z "$ac_c_werror_flag" ||
4844          test ! -s conftest.err
4845        } && test -s conftest$ac_exeext &&
4846        $as_test_x conftest$ac_exeext; then
4847   ac_cv_lib_ltdl_lt_dlinit=yes
4848 else
4849   echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4851
4852         ac_cv_lib_ltdl_lt_dlinit=no
4853 fi
4854
4855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4856       conftest$ac_exeext conftest.$ac_ext
4857 LIBS=$ac_check_lib_save_LIBS
4858 fi
4859 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4860 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4861 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4862   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4863 else
4864   if test x"$enable_ltdl_install" = xno; then
4865      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4866 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4867    else
4868      enable_ltdl_install=yes
4869    fi
4870
4871 fi
4872
4873   if test x"$enable_ltdl_install" = x"yes"; then
4874     ac_configure_args="$ac_configure_args --enable-ltdl-install"
4875     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4876     LTDLINCL='-I${top_srcdir}/''libltdl'
4877   else
4878     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4879     LIBLTDL="-lltdl"
4880     LTDLINCL=
4881   fi
4882   # For backwards non-gettext consistent compatibility...
4883   INCLTDL="$LTDLINCL"
4884
4885
4886 if test x"$enable_ltdl_install" = x"yes"; then
4887   LTDL_SUBDIRS=libltdl
4888 fi
4889
4890 fi
4891
4892
4893
4894 # Check whether --enable-shared was given.
4895 if test "${enable_shared+set}" = set; then
4896   enableval=$enable_shared; p=${PACKAGE-default}
4897     case $enableval in
4898     yes) enable_shared=yes ;;
4899     no) enable_shared=no ;;
4900     *)
4901       enable_shared=no
4902       # Look at the argument we got.  We use all the common list separators.
4903       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4904       for pkg in $enableval; do
4905         IFS="$lt_save_ifs"
4906         if test "X$pkg" = "X$p"; then
4907           enable_shared=yes
4908         fi
4909       done
4910       IFS="$lt_save_ifs"
4911       ;;
4912     esac
4913 else
4914   enable_shared=yes
4915 fi
4916
4917
4918 # Check whether --enable-static was given.
4919 if test "${enable_static+set}" = set; then
4920   enableval=$enable_static; p=${PACKAGE-default}
4921     case $enableval in
4922     yes) enable_static=yes ;;
4923     no) enable_static=no ;;
4924     *)
4925      enable_static=no
4926       # Look at the argument we got.  We use all the common list separators.
4927       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4928       for pkg in $enableval; do
4929         IFS="$lt_save_ifs"
4930         if test "X$pkg" = "X$p"; then
4931           enable_static=yes
4932         fi
4933       done
4934       IFS="$lt_save_ifs"
4935       ;;
4936     esac
4937 else
4938   enable_static=yes
4939 fi
4940
4941
4942 # Check whether --enable-fast-install was given.
4943 if test "${enable_fast_install+set}" = set; then
4944   enableval=$enable_fast_install; p=${PACKAGE-default}
4945     case $enableval in
4946     yes) enable_fast_install=yes ;;
4947     no) enable_fast_install=no ;;
4948     *)
4949       enable_fast_install=no
4950       # Look at the argument we got.  We use all the common list separators.
4951       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4952       for pkg in $enableval; do
4953         IFS="$lt_save_ifs"
4954         if test "X$pkg" = "X$p"; then
4955           enable_fast_install=yes
4956         fi
4957       done
4958       IFS="$lt_save_ifs"
4959       ;;
4960     esac
4961 else
4962   enable_fast_install=yes
4963 fi
4964
4965
4966 ac_aux_dir=
4967 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4968   if test -f "$ac_dir/install-sh"; then
4969     ac_aux_dir=$ac_dir
4970     ac_install_sh="$ac_aux_dir/install-sh -c"
4971     break
4972   elif test -f "$ac_dir/install.sh"; then
4973     ac_aux_dir=$ac_dir
4974     ac_install_sh="$ac_aux_dir/install.sh -c"
4975     break
4976   elif test -f "$ac_dir/shtool"; then
4977     ac_aux_dir=$ac_dir
4978     ac_install_sh="$ac_aux_dir/shtool install -c"
4979     break
4980   fi
4981 done
4982 if test -z "$ac_aux_dir"; then
4983   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4984 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4985    { (exit 1); exit 1; }; }
4986 fi
4987
4988 # These three variables are undocumented and unsupported,
4989 # and are intended to be withdrawn in a future Autoconf release.
4990 # They can cause serious problems if a builder's source tree is in a directory
4991 # whose full name contains unusual characters.
4992 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4993 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4994 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4995
4996
4997 # Make sure we can run config.sub.
4998 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4999   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5000 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5001    { (exit 1); exit 1; }; }
5002
5003 { echo "$as_me:$LINENO: checking build system type" >&5
5004 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5005 if test "${ac_cv_build+set}" = set; then
5006   echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5008   ac_build_alias=$build_alias
5009 test "x$ac_build_alias" = x &&
5010   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5011 test "x$ac_build_alias" = x &&
5012   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5013 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5014    { (exit 1); exit 1; }; }
5015 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5016   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5017 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5018    { (exit 1); exit 1; }; }
5019
5020 fi
5021 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5022 echo "${ECHO_T}$ac_cv_build" >&6; }
5023 case $ac_cv_build in
5024 *-*-*) ;;
5025 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5026 echo "$as_me: error: invalid value of canonical build" >&2;}
5027    { (exit 1); exit 1; }; };;
5028 esac
5029 build=$ac_cv_build
5030 ac_save_IFS=$IFS; IFS='-'
5031 set x $ac_cv_build
5032 shift
5033 build_cpu=$1
5034 build_vendor=$2
5035 shift; shift
5036 # Remember, the first character of IFS is used to create $*,
5037 # except with old shells:
5038 build_os=$*
5039 IFS=$ac_save_IFS
5040 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5041
5042
5043 { echo "$as_me:$LINENO: checking host system type" >&5
5044 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5045 if test "${ac_cv_host+set}" = set; then
5046   echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048   if test "x$host_alias" = x; then
5049   ac_cv_host=$ac_cv_build
5050 else
5051   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5052     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5053 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5054    { (exit 1); exit 1; }; }
5055 fi
5056
5057 fi
5058 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5059 echo "${ECHO_T}$ac_cv_host" >&6; }
5060 case $ac_cv_host in
5061 *-*-*) ;;
5062 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5063 echo "$as_me: error: invalid value of canonical host" >&2;}
5064    { (exit 1); exit 1; }; };;
5065 esac
5066 host=$ac_cv_host
5067 ac_save_IFS=$IFS; IFS='-'
5068 set x $ac_cv_host
5069 shift
5070 host_cpu=$1
5071 host_vendor=$2
5072 shift; shift
5073 # Remember, the first character of IFS is used to create $*,
5074 # except with old shells:
5075 host_os=$*
5076 IFS=$ac_save_IFS
5077 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5078
5079
5080 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5081 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5082 if test "${lt_cv_path_SED+set}" = set; then
5083   echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085   # Loop through the user's path and test for sed and gsed.
5086 # Then use that list of sed's as ones to test for truncation.
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH
5089 do
5090   IFS=$as_save_IFS
5091   test -z "$as_dir" && as_dir=.
5092   for lt_ac_prog in sed gsed; do
5093     for ac_exec_ext in '' $ac_executable_extensions; do
5094       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5095         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5096       fi
5097     done
5098   done
5099 done
5100 IFS=$as_save_IFS
5101 lt_ac_max=0
5102 lt_ac_count=0
5103 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5104 # along with /bin/sed that truncates output.
5105 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5106   test ! -f $lt_ac_sed && continue
5107   cat /dev/null > conftest.in
5108   lt_ac_count=0
5109   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5110   # Check for GNU sed and select it if it is found.
5111   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5112     lt_cv_path_SED=$lt_ac_sed
5113     break
5114   fi
5115   while true; do
5116     cat conftest.in conftest.in >conftest.tmp
5117     mv conftest.tmp conftest.in
5118     cp conftest.in conftest.nl
5119     echo >>conftest.nl
5120     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5121     cmp -s conftest.out conftest.nl || break
5122     # 10000 chars as input seems more than enough
5123     test $lt_ac_count -gt 10 && break
5124     lt_ac_count=`expr $lt_ac_count + 1`
5125     if test $lt_ac_count -gt $lt_ac_max; then
5126       lt_ac_max=$lt_ac_count
5127       lt_cv_path_SED=$lt_ac_sed
5128     fi
5129   done
5130 done
5131
5132 fi
5133
5134 SED=$lt_cv_path_SED
5135
5136 { echo "$as_me:$LINENO: result: $SED" >&5
5137 echo "${ECHO_T}$SED" >&6; }
5138
5139
5140 # Check whether --with-gnu-ld was given.
5141 if test "${with_gnu_ld+set}" = set; then
5142   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5143 else
5144   with_gnu_ld=no
5145 fi
5146
5147 ac_prog=ld
5148 if test "$GCC" = yes; then
5149   # Check if gcc -print-prog-name=ld gives a path.
5150   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5151 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5152   case $host in
5153   *-*-mingw*)
5154     # gcc leaves a trailing carriage return which upsets mingw
5155     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5156   *)
5157     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5158   esac
5159   case $ac_prog in
5160     # Accept absolute paths.
5161     [\\/]* | ?:[\\/]*)
5162       re_direlt='/[^/][^/]*/\.\./'
5163       # Canonicalize the pathname of ld
5164       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5165       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5166         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5167       done
5168       test -z "$LD" && LD="$ac_prog"
5169       ;;
5170   "")
5171     # If it fails, then pretend we aren't using GCC.
5172     ac_prog=ld
5173     ;;
5174   *)
5175     # If it is relative, then search for the first ld in PATH.
5176     with_gnu_ld=unknown
5177     ;;
5178   esac
5179 elif test "$with_gnu_ld" = yes; then
5180   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5181 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5182 else
5183   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5184 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5185 fi
5186 if test "${lt_cv_path_LD+set}" = set; then
5187   echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189   if test -z "$LD"; then
5190   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5191   for ac_dir in $PATH; do
5192     IFS="$lt_save_ifs"
5193     test -z "$ac_dir" && ac_dir=.
5194     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5195       lt_cv_path_LD="$ac_dir/$ac_prog"
5196       # Check to see if the program is GNU ld.  I'd rather use --version,
5197       # but apparently some variants of GNU ld only accept -v.
5198       # Break only if it was the GNU/non-GNU ld that we prefer.
5199       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5200       *GNU* | *'with BFD'*)
5201         test "$with_gnu_ld" != no && break
5202         ;;
5203       *)
5204         test "$with_gnu_ld" != yes && break
5205         ;;
5206       esac
5207     fi
5208   done
5209   IFS="$lt_save_ifs"
5210 else
5211   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5212 fi
5213 fi
5214
5215 LD="$lt_cv_path_LD"
5216 if test -n "$LD"; then
5217   { echo "$as_me:$LINENO: result: $LD" >&5
5218 echo "${ECHO_T}$LD" >&6; }
5219 else
5220   { echo "$as_me:$LINENO: result: no" >&5
5221 echo "${ECHO_T}no" >&6; }
5222 fi
5223 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5224 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5225    { (exit 1); exit 1; }; }
5226 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5227 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5228 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5229   echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5232 case `$LD -v 2>&1 </dev/null` in
5233 *GNU* | *'with BFD'*)
5234   lt_cv_prog_gnu_ld=yes
5235   ;;
5236 *)
5237   lt_cv_prog_gnu_ld=no
5238   ;;
5239 esac
5240 fi
5241 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5242 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5243 with_gnu_ld=$lt_cv_prog_gnu_ld
5244
5245
5246 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5247 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5248 if test "${lt_cv_ld_reload_flag+set}" = set; then
5249   echo $ECHO_N "(cached) $ECHO_C" >&6
5250 else
5251   lt_cv_ld_reload_flag='-r'
5252 fi
5253 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5254 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5255 reload_flag=$lt_cv_ld_reload_flag
5256 case $reload_flag in
5257 "" | " "*) ;;
5258 *) reload_flag=" $reload_flag" ;;
5259 esac
5260 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5261 case $host_os in
5262   darwin*)
5263     if test "$GCC" = yes; then
5264       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5265     else
5266       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5267     fi
5268     ;;
5269 esac
5270
5271 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5272 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5273 if test "${lt_cv_path_NM+set}" = set; then
5274   echo $ECHO_N "(cached) $ECHO_C" >&6
5275 else
5276   if test -n "$NM"; then
5277   # Let the user override the test.
5278   lt_cv_path_NM="$NM"
5279 else
5280   lt_nm_to_check="${ac_tool_prefix}nm"
5281   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5282     lt_nm_to_check="$lt_nm_to_check nm"
5283   fi
5284   for lt_tmp_nm in $lt_nm_to_check; do
5285     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5286     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5287       IFS="$lt_save_ifs"
5288       test -z "$ac_dir" && ac_dir=.
5289       tmp_nm="$ac_dir/$lt_tmp_nm"
5290       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5291         # Check to see if the nm accepts a BSD-compat flag.
5292         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5293         #   nm: unknown option "B" ignored
5294         # Tru64's nm complains that /dev/null is an invalid object file
5295         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5296         */dev/null* | *'Invalid file or object type'*)
5297           lt_cv_path_NM="$tmp_nm -B"
5298           break
5299           ;;
5300         *)
5301           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5302           */dev/null*)
5303             lt_cv_path_NM="$tmp_nm -p"
5304             break
5305             ;;
5306           *)
5307             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5308             continue # so that we can try to find one that supports BSD flags
5309             ;;
5310           esac
5311           ;;
5312         esac
5313       fi
5314     done
5315     IFS="$lt_save_ifs"
5316   done
5317   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5318 fi
5319 fi
5320 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5321 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5322 NM="$lt_cv_path_NM"
5323
5324 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5325 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5326 LN_S=$as_ln_s
5327 if test "$LN_S" = "ln -s"; then
5328   { echo "$as_me:$LINENO: result: yes" >&5
5329 echo "${ECHO_T}yes" >&6; }
5330 else
5331   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5332 echo "${ECHO_T}no, using $LN_S" >&6; }
5333 fi
5334
5335 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5336 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5337 if test "${lt_cv_deplibs_check_method+set}" = set; then
5338   echo $ECHO_N "(cached) $ECHO_C" >&6
5339 else
5340   lt_cv_file_magic_cmd='$MAGIC_CMD'
5341 lt_cv_file_magic_test_file=
5342 lt_cv_deplibs_check_method='unknown'
5343 # Need to set the preceding variable on all platforms that support
5344 # interlibrary dependencies.
5345 # 'none' -- dependencies not supported.
5346 # `unknown' -- same as none, but documents that we really don't know.
5347 # 'pass_all' -- all dependencies passed with no checks.
5348 # 'test_compile' -- check by making test program.
5349 # 'file_magic [[regex]]' -- check by looking for files in library path
5350 # which responds to the $file_magic_cmd with a given extended regex.
5351 # If you have `file' or equivalent on your system and you're not sure
5352 # whether `pass_all' will *always* work, you probably want this one.
5353
5354 case $host_os in
5355 aix[4-9]*)
5356   lt_cv_deplibs_check_method=pass_all
5357   ;;
5358
5359 beos*)
5360   lt_cv_deplibs_check_method=pass_all
5361   ;;
5362
5363 bsdi[45]*)
5364   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5365   lt_cv_file_magic_cmd='/usr/bin/file -L'
5366   lt_cv_file_magic_test_file=/shlib/libc.so
5367   ;;
5368
5369 cygwin*)
5370   # func_win32_libid is a shell function defined in ltmain.sh
5371   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5372   lt_cv_file_magic_cmd='func_win32_libid'
5373   ;;
5374
5375 mingw* | pw32*)
5376   # Base MSYS/MinGW do not provide the 'file' command needed by
5377   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5378   # unless we find 'file', for example because we are cross-compiling.
5379   if ( file / ) >/dev/null 2>&1; then
5380     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5381     lt_cv_file_magic_cmd='func_win32_libid'
5382   else
5383     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5384     lt_cv_file_magic_cmd='$OBJDUMP -f'
5385   fi
5386   ;;
5387
5388 darwin* | rhapsody*)
5389   lt_cv_deplibs_check_method=pass_all
5390   ;;
5391
5392 freebsd* | dragonfly*)
5393   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5394     case $host_cpu in
5395     i*86 )
5396       # Not sure whether the presence of OpenBSD here was a mistake.
5397       # Let's accept both of them until this is cleared up.
5398       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5399       lt_cv_file_magic_cmd=/usr/bin/file
5400       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5401       ;;
5402     esac
5403   else
5404     lt_cv_deplibs_check_method=pass_all
5405   fi
5406   ;;
5407
5408 gnu*)
5409   lt_cv_deplibs_check_method=pass_all
5410   ;;
5411
5412 hpux10.20* | hpux11*)
5413   lt_cv_file_magic_cmd=/usr/bin/file
5414   case $host_cpu in
5415   ia64*)
5416     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5417     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5418     ;;
5419   hppa*64*)
5420     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]'
5421     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5422     ;;
5423   *)
5424     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5425     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5426     ;;
5427   esac
5428   ;;
5429
5430 interix[3-9]*)
5431   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5432   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5433   ;;
5434
5435 irix5* | irix6* | nonstopux*)
5436   case $LD in
5437   *-32|*"-32 ") libmagic=32-bit;;
5438   *-n32|*"-n32 ") libmagic=N32;;
5439   *-64|*"-64 ") libmagic=64-bit;;
5440   *) libmagic=never-match;;
5441   esac
5442   lt_cv_deplibs_check_method=pass_all
5443   ;;
5444
5445 # This must be Linux ELF.
5446 linux* | k*bsd*-gnu)
5447   lt_cv_deplibs_check_method=pass_all
5448   ;;
5449
5450 netbsd* | netbsdelf*-gnu)
5451   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5452     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5453   else
5454     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5455   fi
5456   ;;
5457
5458 newos6*)
5459   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5460   lt_cv_file_magic_cmd=/usr/bin/file
5461   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5462   ;;
5463
5464 nto-qnx*)
5465   lt_cv_deplibs_check_method=unknown
5466   ;;
5467
5468 openbsd*)
5469   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5470     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5471   else
5472     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5473   fi
5474   ;;
5475
5476 osf3* | osf4* | osf5*)
5477   lt_cv_deplibs_check_method=pass_all
5478   ;;
5479
5480 rdos*)
5481   lt_cv_deplibs_check_method=pass_all
5482   ;;
5483
5484 solaris*)
5485   lt_cv_deplibs_check_method=pass_all
5486   ;;
5487
5488 sysv4 | sysv4.3*)
5489   case $host_vendor in
5490   motorola)
5491     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]'
5492     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5493     ;;
5494   ncr)
5495     lt_cv_deplibs_check_method=pass_all
5496     ;;
5497   sequent)
5498     lt_cv_file_magic_cmd='/bin/file'
5499     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5500     ;;
5501   sni)
5502     lt_cv_file_magic_cmd='/bin/file'
5503     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5504     lt_cv_file_magic_test_file=/lib/libc.so
5505     ;;
5506   siemens)
5507     lt_cv_deplibs_check_method=pass_all
5508     ;;
5509   pc)
5510     lt_cv_deplibs_check_method=pass_all
5511     ;;
5512   esac
5513   ;;
5514
5515 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5516   lt_cv_deplibs_check_method=pass_all
5517   ;;
5518 esac
5519
5520 fi
5521 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5522 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5523 file_magic_cmd=$lt_cv_file_magic_cmd
5524 deplibs_check_method=$lt_cv_deplibs_check_method
5525 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5526
5527
5528
5529
5530 # If no C compiler was specified, use CC.
5531 LTCC=${LTCC-"$CC"}
5532
5533 # If no C compiler flags were specified, use CFLAGS.
5534 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5535
5536 # Allow CC to be a program name with arguments.
5537 compiler=$CC
5538
5539 # Check whether --enable-libtool-lock was given.
5540 if test "${enable_libtool_lock+set}" = set; then
5541   enableval=$enable_libtool_lock;
5542 fi
5543
5544 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5545
5546 # Some flags need to be propagated to the compiler or linker for good
5547 # libtool support.
5548 case $host in
5549 ia64-*-hpux*)
5550   # Find out which ABI we are using.
5551   echo 'int i;' > conftest.$ac_ext
5552   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5553   (eval $ac_compile) 2>&5
5554   ac_status=$?
5555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556   (exit $ac_status); }; then
5557     case `/usr/bin/file conftest.$ac_objext` in
5558     *ELF-32*)
5559       HPUX_IA64_MODE="32"
5560       ;;
5561     *ELF-64*)
5562       HPUX_IA64_MODE="64"
5563       ;;
5564     esac
5565   fi
5566   rm -rf conftest*
5567   ;;
5568 *-*-irix6*)
5569   # Find out which ABI we are using.
5570   echo '#line 5570 "configure"' > conftest.$ac_ext
5571   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5572   (eval $ac_compile) 2>&5
5573   ac_status=$?
5574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575   (exit $ac_status); }; then
5576    if test "$lt_cv_prog_gnu_ld" = yes; then
5577     case `/usr/bin/file conftest.$ac_objext` in
5578     *32-bit*)
5579       LD="${LD-ld} -melf32bsmip"
5580       ;;
5581     *N32*)
5582       LD="${LD-ld} -melf32bmipn32"
5583       ;;
5584     *64-bit*)
5585       LD="${LD-ld} -melf64bmip"
5586       ;;
5587     esac
5588    else
5589     case `/usr/bin/file conftest.$ac_objext` in
5590     *32-bit*)
5591       LD="${LD-ld} -32"
5592       ;;
5593     *N32*)
5594       LD="${LD-ld} -n32"
5595       ;;
5596     *64-bit*)
5597       LD="${LD-ld} -64"
5598       ;;
5599     esac
5600    fi
5601   fi
5602   rm -rf conftest*
5603   ;;
5604
5605 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5606 s390*-*linux*|sparc*-*linux*)
5607   # Find out which ABI we are using.
5608   echo 'int i;' > conftest.$ac_ext
5609   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5610   (eval $ac_compile) 2>&5
5611   ac_status=$?
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); }; then
5614     case `/usr/bin/file conftest.o` in
5615     *32-bit*)
5616       case $host in
5617         x86_64-*kfreebsd*-gnu)
5618           LD="${LD-ld} -m elf_i386_fbsd"
5619           ;;
5620         x86_64-*linux*)
5621           LD="${LD-ld} -m elf_i386"
5622           ;;
5623         ppc64-*linux*|powerpc64-*linux*)
5624           LD="${LD-ld} -m elf32ppclinux"
5625           ;;
5626         s390x-*linux*)
5627           LD="${LD-ld} -m elf_s390"
5628           ;;
5629         sparc64-*linux*)
5630           LD="${LD-ld} -m elf32_sparc"
5631           ;;
5632       esac
5633       ;;
5634     *64-bit*)
5635       case $host in
5636         x86_64-*kfreebsd*-gnu)
5637           LD="${LD-ld} -m elf_x86_64_fbsd"
5638           ;;
5639         x86_64-*linux*)
5640           LD="${LD-ld} -m elf_x86_64"
5641           ;;
5642         ppc*-*linux*|powerpc*-*linux*)
5643           LD="${LD-ld} -m elf64ppc"
5644           ;;
5645         s390*-*linux*)
5646           LD="${LD-ld} -m elf64_s390"
5647           ;;
5648         sparc*-*linux*)
5649           LD="${LD-ld} -m elf64_sparc"
5650           ;;
5651       esac
5652       ;;
5653     esac
5654   fi
5655   rm -rf conftest*
5656   ;;
5657
5658 *-*-sco3.2v5*)
5659   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5660   SAVE_CFLAGS="$CFLAGS"
5661   CFLAGS="$CFLAGS -belf"
5662   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5663 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5664 if test "${lt_cv_cc_needs_belf+set}" = set; then
5665   echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667   ac_ext=c
5668 ac_cpp='$CPP $CPPFLAGS'
5669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5672
5673      cat >conftest.$ac_ext <<_ACEOF
5674 /* confdefs.h.  */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h.  */
5679
5680 int
5681 main ()
5682 {
5683
5684   ;
5685   return 0;
5686 }
5687 _ACEOF
5688 rm -f conftest.$ac_objext conftest$ac_exeext
5689 if { (ac_try="$ac_link"
5690 case "(($ac_try" in
5691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692   *) ac_try_echo=$ac_try;;
5693 esac
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695   (eval "$ac_link") 2>conftest.er1
5696   ac_status=$?
5697   grep -v '^ *+' conftest.er1 >conftest.err
5698   rm -f conftest.er1
5699   cat conftest.err >&5
5700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701   (exit $ac_status); } && {
5702          test -z "$ac_c_werror_flag" ||
5703          test ! -s conftest.err
5704        } && test -s conftest$ac_exeext &&
5705        $as_test_x conftest$ac_exeext; then
5706   lt_cv_cc_needs_belf=yes
5707 else
5708   echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5710
5711         lt_cv_cc_needs_belf=no
5712 fi
5713
5714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5715       conftest$ac_exeext conftest.$ac_ext
5716      ac_ext=c
5717 ac_cpp='$CPP $CPPFLAGS'
5718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5721
5722 fi
5723 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5724 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5725   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5726     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5727     CFLAGS="$SAVE_CFLAGS"
5728   fi
5729   ;;
5730 sparc*-*solaris*)
5731   # Find out which ABI we are using.
5732   echo 'int i;' > conftest.$ac_ext
5733   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5734   (eval $ac_compile) 2>&5
5735   ac_status=$?
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); }; then
5738     case `/usr/bin/file conftest.o` in
5739     *64-bit*)
5740       case $lt_cv_prog_gnu_ld in
5741       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5742       *)
5743         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5744           LD="${LD-ld} -64"
5745         fi
5746         ;;
5747       esac
5748       ;;
5749     esac
5750   fi
5751   rm -rf conftest*
5752   ;;
5753
5754
5755 esac
5756
5757 need_locks="$enable_libtool_lock"
5758
5759
5760
5761 for ac_header in dlfcn.h
5762 do
5763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5765   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5768   echo $ECHO_N "(cached) $ECHO_C" >&6
5769 fi
5770 ac_res=`eval echo '${'$as_ac_Header'}'`
5771                { echo "$as_me:$LINENO: result: $ac_res" >&5
5772 echo "${ECHO_T}$ac_res" >&6; }
5773 else
5774   # Is the header compilable?
5775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5777 cat >conftest.$ac_ext <<_ACEOF
5778 /* confdefs.h.  */
5779 _ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h.  */
5783 $ac_includes_default
5784 #include <$ac_header>
5785 _ACEOF
5786 rm -f conftest.$ac_objext
5787 if { (ac_try="$ac_compile"
5788 case "(($ac_try" in
5789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790   *) ac_try_echo=$ac_try;;
5791 esac
5792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793   (eval "$ac_compile") 2>conftest.er1
5794   ac_status=$?
5795   grep -v '^ *+' conftest.er1 >conftest.err
5796   rm -f conftest.er1
5797   cat conftest.err >&5
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); } && {
5800          test -z "$ac_c_werror_flag" ||
5801          test ! -s conftest.err
5802        } && test -s conftest.$ac_objext; then
5803   ac_header_compiler=yes
5804 else
5805   echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5807
5808         ac_header_compiler=no
5809 fi
5810
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5813 echo "${ECHO_T}$ac_header_compiler" >&6; }
5814
5815 # Is the header present?
5816 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5818 cat >conftest.$ac_ext <<_ACEOF
5819 /* confdefs.h.  */
5820 _ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h.  */
5824 #include <$ac_header>
5825 _ACEOF
5826 if { (ac_try="$ac_cpp conftest.$ac_ext"
5827 case "(($ac_try" in
5828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829   *) ac_try_echo=$ac_try;;
5830 esac
5831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5833   ac_status=$?
5834   grep -v '^ *+' conftest.er1 >conftest.err
5835   rm -f conftest.er1
5836   cat conftest.err >&5
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); } >/dev/null && {
5839          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5840          test ! -s conftest.err
5841        }; then
5842   ac_header_preproc=yes
5843 else
5844   echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5846
5847   ac_header_preproc=no
5848 fi
5849
5850 rm -f conftest.err conftest.$ac_ext
5851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5852 echo "${ECHO_T}$ac_header_preproc" >&6; }
5853
5854 # So?  What about this header?
5855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5856   yes:no: )
5857     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5861     ac_header_preproc=yes
5862     ;;
5863   no:yes:* )
5864     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5866     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5867 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5868     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5870     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5871 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5872     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5874     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5876
5877     ;;
5878 esac
5879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5882   echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884   eval "$as_ac_Header=\$ac_header_preproc"
5885 fi
5886 ac_res=`eval echo '${'$as_ac_Header'}'`
5887                { echo "$as_me:$LINENO: result: $ac_res" >&5
5888 echo "${ECHO_T}$ac_res" >&6; }
5889
5890 fi
5891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5892   cat >>confdefs.h <<_ACEOF
5893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5894 _ACEOF
5895
5896 fi
5897
5898 done
5899
5900
5901
5902 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5903     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5904     (test "X$CXX" != "Xg++"))) ; then
5905   ac_ext=cpp
5906 ac_cpp='$CXXCPP $CPPFLAGS'
5907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5910 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5911 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5912 if test -z "$CXXCPP"; then
5913   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5914   echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916       # Double quotes because CXXCPP needs to be expanded
5917     for CXXCPP in "$CXX -E" "/lib/cpp"
5918     do
5919       ac_preproc_ok=false
5920 for ac_cxx_preproc_warn_flag in '' yes
5921 do
5922   # Use a header file that comes with gcc, so configuring glibc
5923   # with a fresh cross-compiler works.
5924   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5925   # <limits.h> exists even on freestanding compilers.
5926   # On the NeXT, cc -E runs the code through the compiler's parser,
5927   # not just through cpp. "Syntax error" is here to catch this case.
5928   cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h.  */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h.  */
5934 #ifdef __STDC__
5935 # include <limits.h>
5936 #else
5937 # include <assert.h>
5938 #endif
5939                      Syntax error
5940 _ACEOF
5941 if { (ac_try="$ac_cpp conftest.$ac_ext"
5942 case "(($ac_try" in
5943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944   *) ac_try_echo=$ac_try;;
5945 esac
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5948   ac_status=$?
5949   grep -v '^ *+' conftest.er1 >conftest.err
5950   rm -f conftest.er1
5951   cat conftest.err >&5
5952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953   (exit $ac_status); } >/dev/null && {
5954          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5955          test ! -s conftest.err
5956        }; then
5957   :
5958 else
5959   echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5961
5962   # Broken: fails on valid input.
5963 continue
5964 fi
5965
5966 rm -f conftest.err conftest.$ac_ext
5967
5968   # OK, works on sane cases.  Now check whether nonexistent headers
5969   # can be detected and how.
5970   cat >conftest.$ac_ext <<_ACEOF
5971 /* confdefs.h.  */
5972 _ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h.  */
5976 #include <ac_nonexistent.h>
5977 _ACEOF
5978 if { (ac_try="$ac_cpp conftest.$ac_ext"
5979 case "(($ac_try" in
5980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981   *) ac_try_echo=$ac_try;;
5982 esac
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5985   ac_status=$?
5986   grep -v '^ *+' conftest.er1 >conftest.err
5987   rm -f conftest.er1
5988   cat conftest.err >&5
5989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990   (exit $ac_status); } >/dev/null && {
5991          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5992          test ! -s conftest.err
5993        }; then
5994   # Broken: success on invalid input.
5995 continue
5996 else
5997   echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
5999
6000   # Passes both tests.
6001 ac_preproc_ok=:
6002 break
6003 fi
6004
6005 rm -f conftest.err conftest.$ac_ext
6006
6007 done
6008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6009 rm -f conftest.err conftest.$ac_ext
6010 if $ac_preproc_ok; then
6011   break
6012 fi
6013
6014     done
6015     ac_cv_prog_CXXCPP=$CXXCPP
6016
6017 fi
6018   CXXCPP=$ac_cv_prog_CXXCPP
6019 else
6020   ac_cv_prog_CXXCPP=$CXXCPP
6021 fi
6022 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6023 echo "${ECHO_T}$CXXCPP" >&6; }
6024 ac_preproc_ok=false
6025 for ac_cxx_preproc_warn_flag in '' yes
6026 do
6027   # Use a header file that comes with gcc, so configuring glibc
6028   # with a fresh cross-compiler works.
6029   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6030   # <limits.h> exists even on freestanding compilers.
6031   # On the NeXT, cc -E runs the code through the compiler's parser,
6032   # not just through cpp. "Syntax error" is here to catch this case.
6033   cat >conftest.$ac_ext <<_ACEOF
6034 /* confdefs.h.  */
6035 _ACEOF
6036 cat confdefs.h >>conftest.$ac_ext
6037 cat >>conftest.$ac_ext <<_ACEOF
6038 /* end confdefs.h.  */
6039 #ifdef __STDC__
6040 # include <limits.h>
6041 #else
6042 # include <assert.h>
6043 #endif
6044                      Syntax error
6045 _ACEOF
6046 if { (ac_try="$ac_cpp conftest.$ac_ext"
6047 case "(($ac_try" in
6048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049   *) ac_try_echo=$ac_try;;
6050 esac
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6053   ac_status=$?
6054   grep -v '^ *+' conftest.er1 >conftest.err
6055   rm -f conftest.er1
6056   cat conftest.err >&5
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); } >/dev/null && {
6059          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6060          test ! -s conftest.err
6061        }; then
6062   :
6063 else
6064   echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6066
6067   # Broken: fails on valid input.
6068 continue
6069 fi
6070
6071 rm -f conftest.err conftest.$ac_ext
6072
6073   # OK, works on sane cases.  Now check whether nonexistent headers
6074   # can be detected and how.
6075   cat >conftest.$ac_ext <<_ACEOF
6076 /* confdefs.h.  */
6077 _ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h.  */
6081 #include <ac_nonexistent.h>
6082 _ACEOF
6083 if { (ac_try="$ac_cpp conftest.$ac_ext"
6084 case "(($ac_try" in
6085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086   *) ac_try_echo=$ac_try;;
6087 esac
6088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6090   ac_status=$?
6091   grep -v '^ *+' conftest.er1 >conftest.err
6092   rm -f conftest.er1
6093   cat conftest.err >&5
6094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095   (exit $ac_status); } >/dev/null && {
6096          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6097          test ! -s conftest.err
6098        }; then
6099   # Broken: success on invalid input.
6100 continue
6101 else
6102   echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6104
6105   # Passes both tests.
6106 ac_preproc_ok=:
6107 break
6108 fi
6109
6110 rm -f conftest.err conftest.$ac_ext
6111
6112 done
6113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6114 rm -f conftest.err conftest.$ac_ext
6115 if $ac_preproc_ok; then
6116   :
6117 else
6118   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6119 See \`config.log' for more details." >&5
6120 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6121 See \`config.log' for more details." >&2;}
6122    { (exit 1); exit 1; }; }
6123 fi
6124
6125 ac_ext=cpp
6126 ac_cpp='$CXXCPP $CPPFLAGS'
6127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6130
6131 fi
6132
6133
6134 ac_ext=f
6135 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6136 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6137 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6138 if test -n "$ac_tool_prefix"; then
6139   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
6140   do
6141     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6142 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6145 if test "${ac_cv_prog_F77+set}" = set; then
6146   echo $ECHO_N "(cached) $ECHO_C" >&6
6147 else
6148   if test -n "$F77"; then
6149   ac_cv_prog_F77="$F77" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154   IFS=$as_save_IFS
6155   test -z "$as_dir" && as_dir=.
6156   for ac_exec_ext in '' $ac_executable_extensions; do
6157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160     break 2
6161   fi
6162 done
6163 done
6164 IFS=$as_save_IFS
6165
6166 fi
6167 fi
6168 F77=$ac_cv_prog_F77
6169 if test -n "$F77"; then
6170   { echo "$as_me:$LINENO: result: $F77" >&5
6171 echo "${ECHO_T}$F77" >&6; }
6172 else
6173   { echo "$as_me:$LINENO: result: no" >&5
6174 echo "${ECHO_T}no" >&6; }
6175 fi
6176
6177
6178     test -n "$F77" && break
6179   done
6180 fi
6181 if test -z "$F77"; then
6182   ac_ct_F77=$F77
6183   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
6184 do
6185   # Extract the first word of "$ac_prog", so it can be a program name with args.
6186 set dummy $ac_prog; ac_word=$2
6187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6189 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6190   echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192   if test -n "$ac_ct_F77"; then
6193   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6194 else
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 for as_dir in $PATH
6197 do
6198   IFS=$as_save_IFS
6199   test -z "$as_dir" && as_dir=.
6200   for ac_exec_ext in '' $ac_executable_extensions; do
6201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6202     ac_cv_prog_ac_ct_F77="$ac_prog"
6203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6204     break 2
6205   fi
6206 done
6207 done
6208 IFS=$as_save_IFS
6209
6210 fi
6211 fi
6212 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6213 if test -n "$ac_ct_F77"; then
6214   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6215 echo "${ECHO_T}$ac_ct_F77" >&6; }
6216 else
6217   { echo "$as_me:$LINENO: result: no" >&5
6218 echo "${ECHO_T}no" >&6; }
6219 fi
6220
6221
6222   test -n "$ac_ct_F77" && break
6223 done
6224
6225   if test "x$ac_ct_F77" = x; then
6226     F77=""
6227   else
6228     case $cross_compiling:$ac_tool_warned in
6229 yes:)
6230 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6231 whose name does not start with the host triplet.  If you think this
6232 configuration is useful to you, please write to autoconf@gnu.org." >&5
6233 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6234 whose name does not start with the host triplet.  If you think this
6235 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6236 ac_tool_warned=yes ;;
6237 esac
6238     F77=$ac_ct_F77
6239   fi
6240 fi
6241
6242
6243 # Provide some information about the compiler.
6244 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6245 ac_compiler=`set X $ac_compile; echo $2`
6246 { (ac_try="$ac_compiler --version >&5"
6247 case "(($ac_try" in
6248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6249   *) ac_try_echo=$ac_try;;
6250 esac
6251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6252   (eval "$ac_compiler --version >&5") 2>&5
6253   ac_status=$?
6254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255   (exit $ac_status); }
6256 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
6263   ac_status=$?
6264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265   (exit $ac_status); }
6266 { (ac_try="$ac_compiler -V >&5"
6267 case "(($ac_try" in
6268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269   *) ac_try_echo=$ac_try;;
6270 esac
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272   (eval "$ac_compiler -V >&5") 2>&5
6273   ac_status=$?
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); }
6276 rm -f a.out
6277
6278 # If we don't use `.F' as extension, the preprocessor is not run on the
6279 # input file.  (Note that this only needs to work for GNU compilers.)
6280 ac_save_ext=$ac_ext
6281 ac_ext=F
6282 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6283 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6284 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6285   echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287   cat >conftest.$ac_ext <<_ACEOF
6288       program main
6289 #ifndef __GNUC__
6290        choke me
6291 #endif
6292
6293       end
6294 _ACEOF
6295 rm -f conftest.$ac_objext
6296 if { (ac_try="$ac_compile"
6297 case "(($ac_try" in
6298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299   *) ac_try_echo=$ac_try;;
6300 esac
6301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6302   (eval "$ac_compile") 2>conftest.er1
6303   ac_status=$?
6304   grep -v '^ *+' conftest.er1 >conftest.err
6305   rm -f conftest.er1
6306   cat conftest.err >&5
6307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308   (exit $ac_status); } && {
6309          test -z "$ac_f77_werror_flag" ||
6310          test ! -s conftest.err
6311        } && test -s conftest.$ac_objext; then
6312   ac_compiler_gnu=yes
6313 else
6314   echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6316
6317         ac_compiler_gnu=no
6318 fi
6319
6320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6322
6323 fi
6324 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6325 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6326 ac_ext=$ac_save_ext
6327 ac_test_FFLAGS=${FFLAGS+set}
6328 ac_save_FFLAGS=$FFLAGS
6329 FFLAGS=
6330 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6331 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6332 if test "${ac_cv_prog_f77_g+set}" = set; then
6333   echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335   FFLAGS=-g
6336 cat >conftest.$ac_ext <<_ACEOF
6337       program main
6338
6339       end
6340 _ACEOF
6341 rm -f conftest.$ac_objext
6342 if { (ac_try="$ac_compile"
6343 case "(($ac_try" in
6344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345   *) ac_try_echo=$ac_try;;
6346 esac
6347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348   (eval "$ac_compile") 2>conftest.er1
6349   ac_status=$?
6350   grep -v '^ *+' conftest.er1 >conftest.err
6351   rm -f conftest.er1
6352   cat conftest.err >&5
6353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); } && {
6355          test -z "$ac_f77_werror_flag" ||
6356          test ! -s conftest.err
6357        } && test -s conftest.$ac_objext; then
6358   ac_cv_prog_f77_g=yes
6359 else
6360   echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6362
6363         ac_cv_prog_f77_g=no
6364 fi
6365
6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367
6368 fi
6369 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6370 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6371 if test "$ac_test_FFLAGS" = set; then
6372   FFLAGS=$ac_save_FFLAGS
6373 elif test $ac_cv_prog_f77_g = yes; then
6374   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6375     FFLAGS="-g -O2"
6376   else
6377     FFLAGS="-g"
6378   fi
6379 else
6380   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6381     FFLAGS="-O2"
6382   else
6383     FFLAGS=
6384   fi
6385 fi
6386
6387 G77=`test $ac_compiler_gnu = yes && echo yes`
6388 ac_ext=c
6389 ac_cpp='$CPP $CPPFLAGS'
6390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6393
6394
6395
6396 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6397 # find the maximum length of command line arguments
6398 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6399 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6400 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6401   echo $ECHO_N "(cached) $ECHO_C" >&6
6402 else
6403     i=0
6404   teststring="ABCD"
6405
6406   case $build_os in
6407   msdosdjgpp*)
6408     # On DJGPP, this test can blow up pretty badly due to problems in libc
6409     # (any single argument exceeding 2000 bytes causes a buffer overrun
6410     # during glob expansion).  Even if it were fixed, the result of this
6411     # check would be larger than it should be.
6412     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6413     ;;
6414
6415   gnu*)
6416     # Under GNU Hurd, this test is not required because there is
6417     # no limit to the length of command line arguments.
6418     # Libtool will interpret -1 as no limit whatsoever
6419     lt_cv_sys_max_cmd_len=-1;
6420     ;;
6421
6422   cygwin* | mingw*)
6423     # On Win9x/ME, this test blows up -- it succeeds, but takes
6424     # about 5 minutes as the teststring grows exponentially.
6425     # Worse, since 9x/ME are not pre-emptively multitasking,
6426     # you end up with a "frozen" computer, even though with patience
6427     # the test eventually succeeds (with a max line length of 256k).
6428     # Instead, let's just punt: use the minimum linelength reported by
6429     # all of the supported platforms: 8192 (on NT/2K/XP).
6430     lt_cv_sys_max_cmd_len=8192;
6431     ;;
6432
6433   amigaos*)
6434     # On AmigaOS with pdksh, this test takes hours, literally.
6435     # So we just punt and use a minimum line length of 8192.
6436     lt_cv_sys_max_cmd_len=8192;
6437     ;;
6438
6439   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6440     # This has been around since 386BSD, at least.  Likely further.
6441     if test -x /sbin/sysctl; then
6442       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6443     elif test -x /usr/sbin/sysctl; then
6444       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6445     else
6446       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6447     fi
6448     # And add a safety zone
6449     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6450     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6451     ;;
6452
6453   interix*)
6454     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6455     lt_cv_sys_max_cmd_len=196608
6456     ;;
6457
6458   osf*)
6459     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6460     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6461     # nice to cause kernel panics so lets avoid the loop below.
6462     # First set a reasonable default.
6463     lt_cv_sys_max_cmd_len=16384
6464     #
6465     if test -x /sbin/sysconfig; then
6466       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6467         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6468       esac
6469     fi
6470     ;;
6471   sco3.2v5*)
6472     lt_cv_sys_max_cmd_len=102400
6473     ;;
6474   sysv5* | sco5v6* | sysv4.2uw2*)
6475     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6476     if test -n "$kargmax"; then
6477       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6478     else
6479       lt_cv_sys_max_cmd_len=32768
6480     fi
6481     ;;
6482   *)
6483     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6484     if test -n "$lt_cv_sys_max_cmd_len"; then
6485       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6486       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6487     else
6488       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6489       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6490                = "XX$teststring") >/dev/null 2>&1 &&
6491               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6492               lt_cv_sys_max_cmd_len=$new_result &&
6493               test $i != 17 # 1/2 MB should be enough
6494       do
6495         i=`expr $i + 1`
6496         teststring=$teststring$teststring
6497       done
6498       teststring=
6499       # Add a significant safety factor because C++ compilers can tack on massive
6500       # amounts of additional arguments before passing them to the linker.
6501       # It appears as though 1/2 is a usable value.
6502       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6503     fi
6504     ;;
6505   esac
6506
6507 fi
6508
6509 if test -n $lt_cv_sys_max_cmd_len ; then
6510   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6511 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6512 else
6513   { echo "$as_me:$LINENO: result: none" >&5
6514 echo "${ECHO_T}none" >&6; }
6515 fi
6516
6517
6518
6519
6520
6521 # Check for command to grab the raw symbol name followed by C symbol from nm.
6522 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6523 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6524 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6525   echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527
6528 # These are sane defaults that work on at least a few old systems.
6529 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6530
6531 # Character class describing NM global symbol codes.
6532 symcode='[BCDEGRST]'
6533
6534 # Regexp to match symbols that can be accessed directly from C.
6535 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6536
6537 # Transform an extracted symbol line into a proper C declaration
6538 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6539
6540 # Transform an extracted symbol line into symbol name and symbol address
6541 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'"
6542
6543 # Define system-specific variables.
6544 case $host_os in
6545 aix*)
6546   symcode='[BCDT]'
6547   ;;
6548 cygwin* | mingw* | pw32*)
6549   symcode='[ABCDGISTW]'
6550   ;;
6551 hpux*) # Its linker distinguishes data from code symbols
6552   if test "$host_cpu" = ia64; then
6553     symcode='[ABCDEGRST]'
6554   fi
6555   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6556   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'"
6557   ;;
6558 linux* | k*bsd*-gnu)
6559   if test "$host_cpu" = ia64; then
6560     symcode='[ABCDGIRSTW]'
6561     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6562     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'"
6563   fi
6564   ;;
6565 irix* | nonstopux*)
6566   symcode='[BCDEGRST]'
6567   ;;
6568 osf*)
6569   symcode='[BCDEGQRST]'
6570   ;;
6571 solaris*)
6572   symcode='[BDRT]'
6573   ;;
6574 sco3.2v5*)
6575   symcode='[DT]'
6576   ;;
6577 sysv4.2uw2*)
6578   symcode='[DT]'
6579   ;;
6580 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6581   symcode='[ABDT]'
6582   ;;
6583 sysv4)
6584   symcode='[DFNSTU]'
6585   ;;
6586 esac
6587
6588 # Handle CRLF in mingw tool chain
6589 opt_cr=
6590 case $build_os in
6591 mingw*)
6592   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6593   ;;
6594 esac
6595
6596 # If we're using GNU nm, then use its standard symbol codes.
6597 case `$NM -V 2>&1` in
6598 *GNU* | *'with BFD'*)
6599   symcode='[ABCDGIRSTW]' ;;
6600 esac
6601
6602 # Try without a prefix undercore, then with it.
6603 for ac_symprfx in "" "_"; do
6604
6605   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6606   symxfrm="\\1 $ac_symprfx\\2 \\2"
6607
6608   # Write the raw and C identifiers.
6609   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6610
6611   # Check to see that the pipe works correctly.
6612   pipe_works=no
6613
6614   rm -f conftest*
6615   cat > conftest.$ac_ext <<EOF
6616 #ifdef __cplusplus
6617 extern "C" {
6618 #endif
6619 char nm_test_var;
6620 void nm_test_func(){}
6621 #ifdef __cplusplus
6622 }
6623 #endif
6624 int main(){nm_test_var='a';nm_test_func();return(0);}
6625 EOF
6626
6627   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6628   (eval $ac_compile) 2>&5
6629   ac_status=$?
6630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631   (exit $ac_status); }; then
6632     # Now try to grab the symbols.
6633     nlist=conftest.nm
6634     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6635   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6636   ac_status=$?
6637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638   (exit $ac_status); } && test -s "$nlist"; then
6639       # Try sorting and uniquifying the output.
6640       if sort "$nlist" | uniq > "$nlist"T; then
6641         mv -f "$nlist"T "$nlist"
6642       else
6643         rm -f "$nlist"T
6644       fi
6645
6646       # Make sure that we snagged all the symbols we need.
6647       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6648         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6649           cat <<EOF > conftest.$ac_ext
6650 #ifdef __cplusplus
6651 extern "C" {
6652 #endif
6653
6654 EOF
6655           # Now generate the symbol file.
6656           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6657
6658           cat <<EOF >> conftest.$ac_ext
6659 #if defined (__STDC__) && __STDC__
6660 # define lt_ptr_t void *
6661 #else
6662 # define lt_ptr_t char *
6663 # define const
6664 #endif
6665
6666 /* The mapping between symbol names and symbols. */
6667 const struct {
6668   const char *name;
6669   lt_ptr_t address;
6670 }
6671 lt_preloaded_symbols[] =
6672 {
6673 EOF
6674           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6675           cat <<\EOF >> conftest.$ac_ext
6676   {0, (lt_ptr_t) 0}
6677 };
6678
6679 #ifdef __cplusplus
6680 }
6681 #endif
6682 EOF
6683           # Now try linking the two files.
6684           mv conftest.$ac_objext conftstm.$ac_objext
6685           lt_save_LIBS="$LIBS"
6686           lt_save_CFLAGS="$CFLAGS"
6687           LIBS="conftstm.$ac_objext"
6688           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6689           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6690   (eval $ac_link) 2>&5
6691   ac_status=$?
6692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6694             pipe_works=yes
6695           fi
6696           LIBS="$lt_save_LIBS"
6697           CFLAGS="$lt_save_CFLAGS"
6698         else
6699           echo "cannot find nm_test_func in $nlist" >&5
6700         fi
6701       else
6702         echo "cannot find nm_test_var in $nlist" >&5
6703       fi
6704     else
6705       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6706     fi
6707   else
6708     echo "$progname: failed program was:" >&5
6709     cat conftest.$ac_ext >&5
6710   fi
6711   rm -rf conftest* conftst*
6712
6713   # Do not use the global_symbol_pipe unless it works.
6714   if test "$pipe_works" = yes; then
6715     break
6716   else
6717     lt_cv_sys_global_symbol_pipe=
6718   fi
6719 done
6720
6721 fi
6722
6723 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6724   lt_cv_sys_global_symbol_to_cdecl=
6725 fi
6726 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6727   { echo "$as_me:$LINENO: result: failed" >&5
6728 echo "${ECHO_T}failed" >&6; }
6729 else
6730   { echo "$as_me:$LINENO: result: ok" >&5
6731 echo "${ECHO_T}ok" >&6; }
6732 fi
6733
6734 { echo "$as_me:$LINENO: checking for objdir" >&5
6735 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6736 if test "${lt_cv_objdir+set}" = set; then
6737   echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739   rm -f .libs 2>/dev/null
6740 mkdir .libs 2>/dev/null
6741 if test -d .libs; then
6742   lt_cv_objdir=.libs
6743 else
6744   # MS-DOS does not allow filenames that begin with a dot.
6745   lt_cv_objdir=_libs
6746 fi
6747 rmdir .libs 2>/dev/null
6748 fi
6749 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6750 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6751 objdir=$lt_cv_objdir
6752
6753
6754
6755
6756
6757 case $host_os in
6758 aix3*)
6759   # AIX sometimes has problems with the GCC collect2 program.  For some
6760   # reason, if we set the COLLECT_NAMES environment variable, the problems
6761   # vanish in a puff of smoke.
6762   if test "X${COLLECT_NAMES+set}" != Xset; then
6763     COLLECT_NAMES=
6764     export COLLECT_NAMES
6765   fi
6766   ;;
6767 esac
6768
6769 # Sed substitution that helps us do robust quoting.  It backslashifies
6770 # metacharacters that are still active within double-quoted strings.
6771 Xsed='sed -e 1s/^X//'
6772 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6773
6774 # Same as above, but do not quote variable references.
6775 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6776
6777 # Sed substitution to delay expansion of an escaped shell variable in a
6778 # double_quote_subst'ed string.
6779 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6780
6781 # Sed substitution to avoid accidental globbing in evaled expressions
6782 no_glob_subst='s/\*/\\\*/g'
6783
6784 # Constants:
6785 rm="rm -f"
6786
6787 # Global variables:
6788 default_ofile=libtool
6789 can_build_shared=yes
6790
6791 # All known linkers require a `.a' archive for static linking (except MSVC,
6792 # which needs '.lib').
6793 libext=a
6794 ltmain="$ac_aux_dir/ltmain.sh"
6795 ofile="$default_ofile"
6796 with_gnu_ld="$lt_cv_prog_gnu_ld"
6797
6798 if test -n "$ac_tool_prefix"; then
6799   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6800 set dummy ${ac_tool_prefix}ar; ac_word=$2
6801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6803 if test "${ac_cv_prog_AR+set}" = set; then
6804   echo $ECHO_N "(cached) $ECHO_C" >&6
6805 else
6806   if test -n "$AR"; then
6807   ac_cv_prog_AR="$AR" # Let the user override the test.
6808 else
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 for as_dir in $PATH
6811 do
6812   IFS=$as_save_IFS
6813   test -z "$as_dir" && as_dir=.
6814   for ac_exec_ext in '' $ac_executable_extensions; do
6815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6816     ac_cv_prog_AR="${ac_tool_prefix}ar"
6817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818     break 2
6819   fi
6820 done
6821 done
6822 IFS=$as_save_IFS
6823
6824 fi
6825 fi
6826 AR=$ac_cv_prog_AR
6827 if test -n "$AR"; then
6828   { echo "$as_me:$LINENO: result: $AR" >&5
6829 echo "${ECHO_T}$AR" >&6; }
6830 else
6831   { echo "$as_me:$LINENO: result: no" >&5
6832 echo "${ECHO_T}no" >&6; }
6833 fi
6834
6835
6836 fi
6837 if test -z "$ac_cv_prog_AR"; then
6838   ac_ct_AR=$AR
6839   # Extract the first word of "ar", so it can be a program name with args.
6840 set dummy ar; ac_word=$2
6841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6844   echo $ECHO_N "(cached) $ECHO_C" >&6
6845 else
6846   if test -n "$ac_ct_AR"; then
6847   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6848 else
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6851 do
6852   IFS=$as_save_IFS
6853   test -z "$as_dir" && as_dir=.
6854   for ac_exec_ext in '' $ac_executable_extensions; do
6855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6856     ac_cv_prog_ac_ct_AR="ar"
6857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6858     break 2
6859   fi
6860 done
6861 done
6862 IFS=$as_save_IFS
6863
6864 fi
6865 fi
6866 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6867 if test -n "$ac_ct_AR"; then
6868   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6869 echo "${ECHO_T}$ac_ct_AR" >&6; }
6870 else
6871   { echo "$as_me:$LINENO: result: no" >&5
6872 echo "${ECHO_T}no" >&6; }
6873 fi
6874
6875   if test "x$ac_ct_AR" = x; then
6876     AR="false"
6877   else
6878     case $cross_compiling:$ac_tool_warned in
6879 yes:)
6880 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6881 whose name does not start with the host triplet.  If you think this
6882 configuration is useful to you, please write to autoconf@gnu.org." >&5
6883 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6884 whose name does not start with the host triplet.  If you think this
6885 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6886 ac_tool_warned=yes ;;
6887 esac
6888     AR=$ac_ct_AR
6889   fi
6890 else
6891   AR="$ac_cv_prog_AR"
6892 fi
6893
6894 if test -n "$ac_tool_prefix"; then
6895   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6896 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6899 if test "${ac_cv_prog_RANLIB+set}" = set; then
6900   echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902   if test -n "$RANLIB"; then
6903   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6904 else
6905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 for as_dir in $PATH
6907 do
6908   IFS=$as_save_IFS
6909   test -z "$as_dir" && as_dir=.
6910   for ac_exec_ext in '' $ac_executable_extensions; do
6911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6912     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6914     break 2
6915   fi
6916 done
6917 done
6918 IFS=$as_save_IFS
6919
6920 fi
6921 fi
6922 RANLIB=$ac_cv_prog_RANLIB
6923 if test -n "$RANLIB"; then
6924   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6925 echo "${ECHO_T}$RANLIB" >&6; }
6926 else
6927   { echo "$as_me:$LINENO: result: no" >&5
6928 echo "${ECHO_T}no" >&6; }
6929 fi
6930
6931
6932 fi
6933 if test -z "$ac_cv_prog_RANLIB"; then
6934   ac_ct_RANLIB=$RANLIB
6935   # Extract the first word of "ranlib", so it can be a program name with args.
6936 set dummy ranlib; ac_word=$2
6937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6939 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6940   echo $ECHO_N "(cached) $ECHO_C" >&6
6941 else
6942   if test -n "$ac_ct_RANLIB"; then
6943   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6944 else
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6947 do
6948   IFS=$as_save_IFS
6949   test -z "$as_dir" && as_dir=.
6950   for ac_exec_ext in '' $ac_executable_extensions; do
6951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6952     ac_cv_prog_ac_ct_RANLIB="ranlib"
6953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954     break 2
6955   fi
6956 done
6957 done
6958 IFS=$as_save_IFS
6959
6960 fi
6961 fi
6962 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6963 if test -n "$ac_ct_RANLIB"; then
6964   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6965 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6966 else
6967   { echo "$as_me:$LINENO: result: no" >&5
6968 echo "${ECHO_T}no" >&6; }
6969 fi
6970
6971   if test "x$ac_ct_RANLIB" = x; then
6972     RANLIB=":"
6973   else
6974     case $cross_compiling:$ac_tool_warned in
6975 yes:)
6976 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6977 whose name does not start with the host triplet.  If you think this
6978 configuration is useful to you, please write to autoconf@gnu.org." >&5
6979 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6980 whose name does not start with the host triplet.  If you think this
6981 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6982 ac_tool_warned=yes ;;
6983 esac
6984     RANLIB=$ac_ct_RANLIB
6985   fi
6986 else
6987   RANLIB="$ac_cv_prog_RANLIB"
6988 fi
6989
6990 if test -n "$ac_tool_prefix"; then
6991   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6992 set dummy ${ac_tool_prefix}strip; ac_word=$2
6993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6995 if test "${ac_cv_prog_STRIP+set}" = set; then
6996   echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998   if test -n "$STRIP"; then
6999   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7000 else
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7003 do
7004   IFS=$as_save_IFS
7005   test -z "$as_dir" && as_dir=.
7006   for ac_exec_ext in '' $ac_executable_extensions; do
7007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7008     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010     break 2
7011   fi
7012 done
7013 done
7014 IFS=$as_save_IFS
7015
7016 fi
7017 fi
7018 STRIP=$ac_cv_prog_STRIP
7019 if test -n "$STRIP"; then
7020   { echo "$as_me:$LINENO: result: $STRIP" >&5
7021 echo "${ECHO_T}$STRIP" >&6; }
7022 else
7023   { echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6; }
7025 fi
7026
7027
7028 fi
7029 if test -z "$ac_cv_prog_STRIP"; then
7030   ac_ct_STRIP=$STRIP
7031   # Extract the first word of "strip", so it can be a program name with args.
7032 set dummy strip; ac_word=$2
7033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7035 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7036   echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038   if test -n "$ac_ct_STRIP"; then
7039   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7040 else
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7043 do
7044   IFS=$as_save_IFS
7045   test -z "$as_dir" && as_dir=.
7046   for ac_exec_ext in '' $ac_executable_extensions; do
7047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048     ac_cv_prog_ac_ct_STRIP="strip"
7049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7050     break 2
7051   fi
7052 done
7053 done
7054 IFS=$as_save_IFS
7055
7056 fi
7057 fi
7058 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7059 if test -n "$ac_ct_STRIP"; then
7060   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7061 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7062 else
7063   { echo "$as_me:$LINENO: result: no" >&5
7064 echo "${ECHO_T}no" >&6; }
7065 fi
7066
7067   if test "x$ac_ct_STRIP" = x; then
7068     STRIP=":"
7069   else
7070     case $cross_compiling:$ac_tool_warned in
7071 yes:)
7072 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7073 whose name does not start with the host triplet.  If you think this
7074 configuration is useful to you, please write to autoconf@gnu.org." >&5
7075 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7076 whose name does not start with the host triplet.  If you think this
7077 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7078 ac_tool_warned=yes ;;
7079 esac
7080     STRIP=$ac_ct_STRIP
7081   fi
7082 else
7083   STRIP="$ac_cv_prog_STRIP"
7084 fi
7085
7086
7087 old_CC="$CC"
7088 old_CFLAGS="$CFLAGS"
7089
7090 # Set sane defaults for various variables
7091 test -z "$AR" && AR=ar
7092 test -z "$AR_FLAGS" && AR_FLAGS=cru
7093 test -z "$AS" && AS=as
7094 test -z "$CC" && CC=cc
7095 test -z "$LTCC" && LTCC=$CC
7096 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7097 test -z "$DLLTOOL" && DLLTOOL=dlltool
7098 test -z "$LD" && LD=ld
7099 test -z "$LN_S" && LN_S="ln -s"
7100 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7101 test -z "$NM" && NM=nm
7102 test -z "$SED" && SED=sed
7103 test -z "$OBJDUMP" && OBJDUMP=objdump
7104 test -z "$RANLIB" && RANLIB=:
7105 test -z "$STRIP" && STRIP=:
7106 test -z "$ac_objext" && ac_objext=o
7107
7108 # Determine commands to create old-style static archives.
7109 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7110 old_postinstall_cmds='chmod 644 $oldlib'
7111 old_postuninstall_cmds=
7112
7113 if test -n "$RANLIB"; then
7114   case $host_os in
7115   openbsd*)
7116     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7117     ;;
7118   *)
7119     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7120     ;;
7121   esac
7122   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7123 fi
7124
7125 for cc_temp in $compiler""; do
7126   case $cc_temp in
7127     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7128     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7129     \-*) ;;
7130     *) break;;
7131   esac
7132 done
7133 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7134
7135
7136 # Only perform the check for file, if the check method requires it
7137 case $deplibs_check_method in
7138 file_magic*)
7139   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7140     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7141 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7142 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7143   echo $ECHO_N "(cached) $ECHO_C" >&6
7144 else
7145   case $MAGIC_CMD in
7146 [\\/*] |  ?:[\\/]*)
7147   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7148   ;;
7149 *)
7150   lt_save_MAGIC_CMD="$MAGIC_CMD"
7151   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7152   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7153   for ac_dir in $ac_dummy; do
7154     IFS="$lt_save_ifs"
7155     test -z "$ac_dir" && ac_dir=.
7156     if test -f $ac_dir/${ac_tool_prefix}file; then
7157       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7158       if test -n "$file_magic_test_file"; then
7159         case $deplibs_check_method in
7160         "file_magic "*)
7161           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7162           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7163           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7164             $EGREP "$file_magic_regex" > /dev/null; then
7165             :
7166           else
7167             cat <<EOF 1>&2
7168
7169 *** Warning: the command libtool uses to detect shared libraries,
7170 *** $file_magic_cmd, produces output that libtool cannot recognize.
7171 *** The result is that libtool may fail to recognize shared libraries
7172 *** as such.  This will affect the creation of libtool libraries that
7173 *** depend on shared libraries, but programs linked with such libtool
7174 *** libraries will work regardless of this problem.  Nevertheless, you
7175 *** may want to report the problem to your system manager and/or to
7176 *** bug-libtool@gnu.org
7177
7178 EOF
7179           fi ;;
7180         esac
7181       fi
7182       break
7183     fi
7184   done
7185   IFS="$lt_save_ifs"
7186   MAGIC_CMD="$lt_save_MAGIC_CMD"
7187   ;;
7188 esac
7189 fi
7190
7191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7192 if test -n "$MAGIC_CMD"; then
7193   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7194 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7195 else
7196   { echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6; }
7198 fi
7199
7200 if test -z "$lt_cv_path_MAGIC_CMD"; then
7201   if test -n "$ac_tool_prefix"; then
7202     { echo "$as_me:$LINENO: checking for file" >&5
7203 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7204 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7205   echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207   case $MAGIC_CMD in
7208 [\\/*] |  ?:[\\/]*)
7209   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7210   ;;
7211 *)
7212   lt_save_MAGIC_CMD="$MAGIC_CMD"
7213   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7214   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7215   for ac_dir in $ac_dummy; do
7216     IFS="$lt_save_ifs"
7217     test -z "$ac_dir" && ac_dir=.
7218     if test -f $ac_dir/file; then
7219       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7220       if test -n "$file_magic_test_file"; then
7221         case $deplibs_check_method in
7222         "file_magic "*)
7223           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7224           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7225           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7226             $EGREP "$file_magic_regex" > /dev/null; then
7227             :
7228           else
7229             cat <<EOF 1>&2
7230
7231 *** Warning: the command libtool uses to detect shared libraries,
7232 *** $file_magic_cmd, produces output that libtool cannot recognize.
7233 *** The result is that libtool may fail to recognize shared libraries
7234 *** as such.  This will affect the creation of libtool libraries that
7235 *** depend on shared libraries, but programs linked with such libtool
7236 *** libraries will work regardless of this problem.  Nevertheless, you
7237 *** may want to report the problem to your system manager and/or to
7238 *** bug-libtool@gnu.org
7239
7240 EOF
7241           fi ;;
7242         esac
7243       fi
7244       break
7245     fi
7246   done
7247   IFS="$lt_save_ifs"
7248   MAGIC_CMD="$lt_save_MAGIC_CMD"
7249   ;;
7250 esac
7251 fi
7252
7253 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7254 if test -n "$MAGIC_CMD"; then
7255   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7256 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7257 else
7258   { echo "$as_me:$LINENO: result: no" >&5
7259 echo "${ECHO_T}no" >&6; }
7260 fi
7261
7262   else
7263     MAGIC_CMD=:
7264   fi
7265 fi
7266
7267   fi
7268   ;;
7269 esac
7270
7271
7272   case $host_os in
7273     rhapsody* | darwin*)
7274     if test -n "$ac_tool_prefix"; then
7275   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7276 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7279 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7280   echo $ECHO_N "(cached) $ECHO_C" >&6
7281 else
7282   if test -n "$DSYMUTIL"; then
7283   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7284 else
7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 for as_dir in $PATH
7287 do
7288   IFS=$as_save_IFS
7289   test -z "$as_dir" && as_dir=.
7290   for ac_exec_ext in '' $ac_executable_extensions; do
7291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7292     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7294     break 2
7295   fi
7296 done
7297 done
7298 IFS=$as_save_IFS
7299
7300 fi
7301 fi
7302 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7303 if test -n "$DSYMUTIL"; then
7304   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7305 echo "${ECHO_T}$DSYMUTIL" >&6; }
7306 else
7307   { echo "$as_me:$LINENO: result: no" >&5
7308 echo "${ECHO_T}no" >&6; }
7309 fi
7310
7311
7312 fi
7313 if test -z "$ac_cv_prog_DSYMUTIL"; then
7314   ac_ct_DSYMUTIL=$DSYMUTIL
7315   # Extract the first word of "dsymutil", so it can be a program name with args.
7316 set dummy dsymutil; ac_word=$2
7317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7319 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7320   echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322   if test -n "$ac_ct_DSYMUTIL"; then
7323   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7324 else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328   IFS=$as_save_IFS
7329   test -z "$as_dir" && as_dir=.
7330   for ac_exec_ext in '' $ac_executable_extensions; do
7331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7332     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334     break 2
7335   fi
7336 done
7337 done
7338 IFS=$as_save_IFS
7339
7340 fi
7341 fi
7342 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7343 if test -n "$ac_ct_DSYMUTIL"; then
7344   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7345 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7346 else
7347   { echo "$as_me:$LINENO: result: no" >&5
7348 echo "${ECHO_T}no" >&6; }
7349 fi
7350
7351   if test "x$ac_ct_DSYMUTIL" = x; then
7352     DSYMUTIL=":"
7353   else
7354     case $cross_compiling:$ac_tool_warned in
7355 yes:)
7356 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7357 whose name does not start with the host triplet.  If you think this
7358 configuration is useful to you, please write to autoconf@gnu.org." >&5
7359 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7360 whose name does not start with the host triplet.  If you think this
7361 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7362 ac_tool_warned=yes ;;
7363 esac
7364     DSYMUTIL=$ac_ct_DSYMUTIL
7365   fi
7366 else
7367   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7368 fi
7369
7370     if test -n "$ac_tool_prefix"; then
7371   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7372 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7375 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7376   echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378   if test -n "$NMEDIT"; then
7379   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7380 else
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 for as_dir in $PATH
7383 do
7384   IFS=$as_save_IFS
7385   test -z "$as_dir" && as_dir=.
7386   for ac_exec_ext in '' $ac_executable_extensions; do
7387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7388     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7390     break 2
7391   fi
7392 done
7393 done
7394 IFS=$as_save_IFS
7395
7396 fi
7397 fi
7398 NMEDIT=$ac_cv_prog_NMEDIT
7399 if test -n "$NMEDIT"; then
7400   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7401 echo "${ECHO_T}$NMEDIT" >&6; }
7402 else
7403   { echo "$as_me:$LINENO: result: no" >&5
7404 echo "${ECHO_T}no" >&6; }
7405 fi
7406
7407
7408 fi
7409 if test -z "$ac_cv_prog_NMEDIT"; then
7410   ac_ct_NMEDIT=$NMEDIT
7411   # Extract the first word of "nmedit", so it can be a program name with args.
7412 set dummy nmedit; ac_word=$2
7413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7415 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7416   echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418   if test -n "$ac_ct_NMEDIT"; then
7419   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7420 else
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7423 do
7424   IFS=$as_save_IFS
7425   test -z "$as_dir" && as_dir=.
7426   for ac_exec_ext in '' $ac_executable_extensions; do
7427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7428     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7430     break 2
7431   fi
7432 done
7433 done
7434 IFS=$as_save_IFS
7435
7436 fi
7437 fi
7438 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7439 if test -n "$ac_ct_NMEDIT"; then
7440   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7441 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7442 else
7443   { echo "$as_me:$LINENO: result: no" >&5
7444 echo "${ECHO_T}no" >&6; }
7445 fi
7446
7447   if test "x$ac_ct_NMEDIT" = x; then
7448     NMEDIT=":"
7449   else
7450     case $cross_compiling:$ac_tool_warned in
7451 yes:)
7452 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7453 whose name does not start with the host triplet.  If you think this
7454 configuration is useful to you, please write to autoconf@gnu.org." >&5
7455 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7456 whose name does not start with the host triplet.  If you think this
7457 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7458 ac_tool_warned=yes ;;
7459 esac
7460     NMEDIT=$ac_ct_NMEDIT
7461   fi
7462 else
7463   NMEDIT="$ac_cv_prog_NMEDIT"
7464 fi
7465
7466
7467     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7468 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7469 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7470   echo $ECHO_N "(cached) $ECHO_C" >&6
7471 else
7472   lt_cv_apple_cc_single_mod=no
7473       if test -z "${LT_MULTI_MODULE}"; then
7474    # By default we will add the -single_module flag. You can override
7475    # by either setting the environment variable LT_MULTI_MODULE
7476    # non-empty at configure time, or by adding -multi_module to the
7477    # link flags.
7478    echo "int foo(void){return 1;}" > conftest.c
7479    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7480      -dynamiclib ${wl}-single_module conftest.c
7481    if test -f libconftest.dylib; then
7482      lt_cv_apple_cc_single_mod=yes
7483      rm -rf libconftest.dylib*
7484    fi
7485    rm conftest.c
7486       fi
7487 fi
7488 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7489 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7490     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7491 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7492 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7493   echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495   lt_cv_ld_exported_symbols_list=no
7496       save_LDFLAGS=$LDFLAGS
7497       echo "_main" > conftest.sym
7498       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7499       cat >conftest.$ac_ext <<_ACEOF
7500 /* confdefs.h.  */
7501 _ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h.  */
7505
7506 int
7507 main ()
7508 {
7509
7510   ;
7511   return 0;
7512 }
7513 _ACEOF
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (ac_try="$ac_link"
7516 case "(($ac_try" in
7517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518   *) ac_try_echo=$ac_try;;
7519 esac
7520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7521   (eval "$ac_link") 2>conftest.er1
7522   ac_status=$?
7523   grep -v '^ *+' conftest.er1 >conftest.err
7524   rm -f conftest.er1
7525   cat conftest.err >&5
7526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527   (exit $ac_status); } && {
7528          test -z "$ac_c_werror_flag" ||
7529          test ! -s conftest.err
7530        } && test -s conftest$ac_exeext &&
7531        $as_test_x conftest$ac_exeext; then
7532   lt_cv_ld_exported_symbols_list=yes
7533 else
7534   echo "$as_me: failed program was:" >&5
7535 sed 's/^/| /' conftest.$ac_ext >&5
7536
7537         lt_cv_ld_exported_symbols_list=no
7538 fi
7539
7540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7541       conftest$ac_exeext conftest.$ac_ext
7542    LDFLAGS="$save_LDFLAGS"
7543
7544 fi
7545 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7546 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7547     case $host_os in
7548     rhapsody* | darwin1.[0123])
7549       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7550     darwin1.*)
7551      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7552     darwin*)
7553       # if running on 10.5 or later, the deployment target defaults
7554       # to the OS version, if on x86, and 10.4, the deployment
7555       # target defaults to 10.4. Don't you love it?
7556       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7557    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7558      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7559    10.[012]*)
7560      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7561    10.*)
7562      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7563       esac
7564     ;;
7565   esac
7566     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7567       _lt_dar_single_mod='$single_module'
7568     fi
7569     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7570       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7571     else
7572       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7573     fi
7574     if test "$DSYMUTIL" != ":"; then
7575       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7576     else
7577       _lt_dsymutil=
7578     fi
7579     ;;
7580   esac
7581
7582
7583 enable_dlopen=yes
7584 enable_win32_dll=no
7585
7586 # Check whether --enable-libtool-lock was given.
7587 if test "${enable_libtool_lock+set}" = set; then
7588   enableval=$enable_libtool_lock;
7589 fi
7590
7591 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7592
7593
7594 # Check whether --with-pic was given.
7595 if test "${with_pic+set}" = set; then
7596   withval=$with_pic; pic_mode="$withval"
7597 else
7598   pic_mode=default
7599 fi
7600
7601 test -z "$pic_mode" && pic_mode=default
7602
7603 # Use C for the default configuration in the libtool script
7604 tagname=
7605 lt_save_CC="$CC"
7606 ac_ext=c
7607 ac_cpp='$CPP $CPPFLAGS'
7608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7611
7612
7613 # Source file extension for C test sources.
7614 ac_ext=c
7615
7616 # Object file extension for compiled C test sources.
7617 objext=o
7618 objext=$objext
7619
7620 # Code to be used in simple compile tests
7621 lt_simple_compile_test_code="int some_variable = 0;"
7622
7623 # Code to be used in simple link tests
7624 lt_simple_link_test_code='int main(){return(0);}'
7625
7626
7627 # If no C compiler was specified, use CC.
7628 LTCC=${LTCC-"$CC"}
7629
7630 # If no C compiler flags were specified, use CFLAGS.
7631 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7632
7633 # Allow CC to be a program name with arguments.
7634 compiler=$CC
7635
7636
7637 # save warnings/boilerplate of simple test code
7638 ac_outfile=conftest.$ac_objext
7639 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7640 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7641 _lt_compiler_boilerplate=`cat conftest.err`
7642 $rm conftest*
7643
7644 ac_outfile=conftest.$ac_objext
7645 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7646 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7647 _lt_linker_boilerplate=`cat conftest.err`
7648 $rm -r conftest*
7649
7650
7651
7652 lt_prog_compiler_no_builtin_flag=
7653
7654 if test "$GCC" = yes; then
7655   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7656
7657
7658 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7659 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7660 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7661   echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663   lt_cv_prog_compiler_rtti_exceptions=no
7664   ac_outfile=conftest.$ac_objext
7665    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7666    lt_compiler_flag="-fno-rtti -fno-exceptions"
7667    # Insert the option either (1) after the last *FLAGS variable, or
7668    # (2) before a word containing "conftest.", or (3) at the end.
7669    # Note that $ac_compile itself does not contain backslashes and begins
7670    # with a dollar sign (not a hyphen), so the echo should work correctly.
7671    # The option is referenced via a variable to avoid confusing sed.
7672    lt_compile=`echo "$ac_compile" | $SED \
7673    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7674    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7675    -e 's:$: $lt_compiler_flag:'`
7676    (eval echo "\"\$as_me:7676: $lt_compile\"" >&5)
7677    (eval "$lt_compile" 2>conftest.err)
7678    ac_status=$?
7679    cat conftest.err >&5
7680    echo "$as_me:7680: \$? = $ac_status" >&5
7681    if (exit $ac_status) && test -s "$ac_outfile"; then
7682      # The compiler can only warn and ignore the option if not recognized
7683      # So say no if there are warnings other than the usual output.
7684      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7685      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7686      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7687        lt_cv_prog_compiler_rtti_exceptions=yes
7688      fi
7689    fi
7690    $rm conftest*
7691
7692 fi
7693 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7694 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7695
7696 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7697     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7698 else
7699     :
7700 fi
7701
7702 fi
7703
7704 lt_prog_compiler_wl=
7705 lt_prog_compiler_pic=
7706 lt_prog_compiler_static=
7707
7708 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7709 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7710
7711   if test "$GCC" = yes; then
7712     lt_prog_compiler_wl='-Wl,'
7713     lt_prog_compiler_static='-static'
7714
7715     case $host_os in
7716       aix*)
7717       # All AIX code is PIC.
7718       if test "$host_cpu" = ia64; then
7719         # AIX 5 now supports IA64 processor
7720         lt_prog_compiler_static='-Bstatic'
7721       fi
7722       ;;
7723
7724     amigaos*)
7725       # FIXME: we need at least 68020 code to build shared libraries, but
7726       # adding the `-m68020' flag to GCC prevents building anything better,
7727       # like `-m68040'.
7728       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7729       ;;
7730
7731     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7732       # PIC is the default for these OSes.
7733       ;;
7734
7735     mingw* | cygwin* | pw32* | os2*)
7736       # This hack is so that the source file can tell whether it is being
7737       # built for inclusion in a dll (and should export symbols for example).
7738       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7739       # (--disable-auto-import) libraries
7740       lt_prog_compiler_pic='-DDLL_EXPORT'
7741       ;;
7742
7743     darwin* | rhapsody*)
7744       # PIC is the default on this platform
7745       # Common symbols not allowed in MH_DYLIB files
7746       lt_prog_compiler_pic='-fno-common'
7747       ;;
7748
7749     interix[3-9]*)
7750       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7751       # Instead, we relocate shared libraries at runtime.
7752       ;;
7753
7754     msdosdjgpp*)
7755       # Just because we use GCC doesn't mean we suddenly get shared libraries
7756       # on systems that don't support them.
7757       lt_prog_compiler_can_build_shared=no
7758       enable_shared=no
7759       ;;
7760
7761     sysv4*MP*)
7762       if test -d /usr/nec; then
7763         lt_prog_compiler_pic=-Kconform_pic
7764       fi
7765       ;;
7766
7767     hpux*)
7768       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7769       # not for PA HP-UX.
7770       case $host_cpu in
7771       hppa*64*|ia64*)
7772         # +Z the default
7773         ;;
7774       *)
7775         lt_prog_compiler_pic='-fPIC'
7776         ;;
7777       esac
7778       ;;
7779
7780     *)
7781       lt_prog_compiler_pic='-fPIC'
7782       ;;
7783     esac
7784   else
7785     # PORTME Check for flag to pass linker flags through the system compiler.
7786     case $host_os in
7787     aix*)
7788       lt_prog_compiler_wl='-Wl,'
7789       if test "$host_cpu" = ia64; then
7790         # AIX 5 now supports IA64 processor
7791         lt_prog_compiler_static='-Bstatic'
7792       else
7793         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7794       fi
7795       ;;
7796       darwin*)
7797         # PIC is the default on this platform
7798         # Common symbols not allowed in MH_DYLIB files
7799        case $cc_basename in
7800          xlc*)
7801          lt_prog_compiler_pic='-qnocommon'
7802          lt_prog_compiler_wl='-Wl,'
7803          ;;
7804        esac
7805        ;;
7806
7807     mingw* | cygwin* | pw32* | os2*)
7808       # This hack is so that the source file can tell whether it is being
7809       # built for inclusion in a dll (and should export symbols for example).
7810       lt_prog_compiler_pic='-DDLL_EXPORT'
7811       ;;
7812
7813     hpux9* | hpux10* | hpux11*)
7814       lt_prog_compiler_wl='-Wl,'
7815       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7816       # not for PA HP-UX.
7817       case $host_cpu in
7818       hppa*64*|ia64*)
7819         # +Z the default
7820         ;;
7821       *)
7822         lt_prog_compiler_pic='+Z'
7823         ;;
7824       esac
7825       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7826       lt_prog_compiler_static='${wl}-a ${wl}archive'
7827       ;;
7828
7829     irix5* | irix6* | nonstopux*)
7830       lt_prog_compiler_wl='-Wl,'
7831       # PIC (with -KPIC) is the default.
7832       lt_prog_compiler_static='-non_shared'
7833       ;;
7834
7835     newsos6)
7836       lt_prog_compiler_pic='-KPIC'
7837       lt_prog_compiler_static='-Bstatic'
7838       ;;
7839
7840     linux* | k*bsd*-gnu)
7841       case $cc_basename in
7842       icc* | ecc*)
7843         lt_prog_compiler_wl='-Wl,'
7844         lt_prog_compiler_pic='-KPIC'
7845         lt_prog_compiler_static='-static'
7846         ;;
7847       pgcc* | pgf77* | pgf90* | pgf95*)
7848         # Portland Group compilers (*not* the Pentium gcc compiler,
7849         # which looks to be a dead project)
7850         lt_prog_compiler_wl='-Wl,'
7851         lt_prog_compiler_pic='-fpic'
7852         lt_prog_compiler_static='-Bstatic'
7853         ;;
7854       ccc*)
7855         lt_prog_compiler_wl='-Wl,'
7856         # All Alpha code is PIC.
7857         lt_prog_compiler_static='-non_shared'
7858         ;;
7859       *)
7860         case `$CC -V 2>&1 | sed 5q` in
7861         *Sun\ C*)
7862           # Sun C 5.9
7863           lt_prog_compiler_pic='-KPIC'
7864           lt_prog_compiler_static='-Bstatic'
7865           lt_prog_compiler_wl='-Wl,'
7866           ;;
7867         *Sun\ F*)
7868           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7869           lt_prog_compiler_pic='-KPIC'
7870           lt_prog_compiler_static='-Bstatic'
7871           lt_prog_compiler_wl=''
7872           ;;
7873         esac
7874         ;;
7875       esac
7876       ;;
7877
7878     osf3* | osf4* | osf5*)
7879       lt_prog_compiler_wl='-Wl,'
7880       # All OSF/1 code is PIC.
7881       lt_prog_compiler_static='-non_shared'
7882       ;;
7883
7884     rdos*)
7885       lt_prog_compiler_static='-non_shared'
7886       ;;
7887
7888     solaris*)
7889       lt_prog_compiler_pic='-KPIC'
7890       lt_prog_compiler_static='-Bstatic'
7891       case $cc_basename in
7892       f77* | f90* | f95*)
7893         lt_prog_compiler_wl='-Qoption ld ';;
7894       *)
7895         lt_prog_compiler_wl='-Wl,';;
7896       esac
7897       ;;
7898
7899     sunos4*)
7900       lt_prog_compiler_wl='-Qoption ld '
7901       lt_prog_compiler_pic='-PIC'
7902       lt_prog_compiler_static='-Bstatic'
7903       ;;
7904
7905     sysv4 | sysv4.2uw2* | sysv4.3*)
7906       lt_prog_compiler_wl='-Wl,'
7907       lt_prog_compiler_pic='-KPIC'
7908       lt_prog_compiler_static='-Bstatic'
7909       ;;
7910
7911     sysv4*MP*)
7912       if test -d /usr/nec ;then
7913         lt_prog_compiler_pic='-Kconform_pic'
7914         lt_prog_compiler_static='-Bstatic'
7915       fi
7916       ;;
7917
7918     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7919       lt_prog_compiler_wl='-Wl,'
7920       lt_prog_compiler_pic='-KPIC'
7921       lt_prog_compiler_static='-Bstatic'
7922       ;;
7923
7924     unicos*)
7925       lt_prog_compiler_wl='-Wl,'
7926       lt_prog_compiler_can_build_shared=no
7927       ;;
7928
7929     uts4*)
7930       lt_prog_compiler_pic='-pic'
7931       lt_prog_compiler_static='-Bstatic'
7932       ;;
7933
7934     *)
7935       lt_prog_compiler_can_build_shared=no
7936       ;;
7937     esac
7938   fi
7939
7940 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7941 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7942
7943 #
7944 # Check to make sure the PIC flag actually works.
7945 #
7946 if test -n "$lt_prog_compiler_pic"; then
7947
7948 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7949 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7950 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7951   echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7953   lt_cv_prog_compiler_pic_works=no
7954   ac_outfile=conftest.$ac_objext
7955    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7956    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7957    # Insert the option either (1) after the last *FLAGS variable, or
7958    # (2) before a word containing "conftest.", or (3) at the end.
7959    # Note that $ac_compile itself does not contain backslashes and begins
7960    # with a dollar sign (not a hyphen), so the echo should work correctly.
7961    # The option is referenced via a variable to avoid confusing sed.
7962    lt_compile=`echo "$ac_compile" | $SED \
7963    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7964    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7965    -e 's:$: $lt_compiler_flag:'`
7966    (eval echo "\"\$as_me:7966: $lt_compile\"" >&5)
7967    (eval "$lt_compile" 2>conftest.err)
7968    ac_status=$?
7969    cat conftest.err >&5
7970    echo "$as_me:7970: \$? = $ac_status" >&5
7971    if (exit $ac_status) && test -s "$ac_outfile"; then
7972      # The compiler can only warn and ignore the option if not recognized
7973      # So say no if there are warnings other than the usual output.
7974      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7975      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7976      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7977        lt_cv_prog_compiler_pic_works=yes
7978      fi
7979    fi
7980    $rm conftest*
7981
7982 fi
7983 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7984 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7985
7986 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7987     case $lt_prog_compiler_pic in
7988      "" | " "*) ;;
7989      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7990      esac
7991 else
7992     lt_prog_compiler_pic=
7993      lt_prog_compiler_can_build_shared=no
7994 fi
7995
7996 fi
7997 case $host_os in
7998   # For platforms which do not support PIC, -DPIC is meaningless:
7999   *djgpp*)
8000     lt_prog_compiler_pic=
8001     ;;
8002   *)
8003     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8004     ;;
8005 esac
8006
8007 #
8008 # Check to make sure the static flag actually works.
8009 #
8010 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8011 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8012 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8013 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8014   echo $ECHO_N "(cached) $ECHO_C" >&6
8015 else
8016   lt_cv_prog_compiler_static_works=no
8017    save_LDFLAGS="$LDFLAGS"
8018    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8019    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8020    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8021      # The linker can only warn and ignore the option if not recognized
8022      # So say no if there are warnings
8023      if test -s conftest.err; then
8024        # Append any errors to the config.log.
8025        cat conftest.err 1>&5
8026        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8027        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8028        if diff conftest.exp conftest.er2 >/dev/null; then
8029          lt_cv_prog_compiler_static_works=yes
8030        fi
8031      else
8032        lt_cv_prog_compiler_static_works=yes
8033      fi
8034    fi
8035    $rm -r conftest*
8036    LDFLAGS="$save_LDFLAGS"
8037
8038 fi
8039 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8040 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8041
8042 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8043     :
8044 else
8045     lt_prog_compiler_static=
8046 fi
8047
8048
8049 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8050 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8051 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8052   echo $ECHO_N "(cached) $ECHO_C" >&6
8053 else
8054   lt_cv_prog_compiler_c_o=no
8055    $rm -r conftest 2>/dev/null
8056    mkdir conftest
8057    cd conftest
8058    mkdir out
8059    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8060
8061    lt_compiler_flag="-o out/conftest2.$ac_objext"
8062    # Insert the option either (1) after the last *FLAGS variable, or
8063    # (2) before a word containing "conftest.", or (3) at the end.
8064    # Note that $ac_compile itself does not contain backslashes and begins
8065    # with a dollar sign (not a hyphen), so the echo should work correctly.
8066    lt_compile=`echo "$ac_compile" | $SED \
8067    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8068    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8069    -e 's:$: $lt_compiler_flag:'`
8070    (eval echo "\"\$as_me:8070: $lt_compile\"" >&5)
8071    (eval "$lt_compile" 2>out/conftest.err)
8072    ac_status=$?
8073    cat out/conftest.err >&5
8074    echo "$as_me:8074: \$? = $ac_status" >&5
8075    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8076    then
8077      # The compiler can only warn and ignore the option if not recognized
8078      # So say no if there are warnings
8079      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8080      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8081      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8082        lt_cv_prog_compiler_c_o=yes
8083      fi
8084    fi
8085    chmod u+w . 2>&5
8086    $rm conftest*
8087    # SGI C++ compiler will create directory out/ii_files/ for
8088    # template instantiation
8089    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8090    $rm out/* && rmdir out
8091    cd ..
8092    rmdir conftest
8093    $rm conftest*
8094
8095 fi
8096 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8097 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8098
8099
8100 hard_links="nottested"
8101 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8102   # do not overwrite the value of need_locks provided by the user
8103   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8104 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8105   hard_links=yes
8106   $rm conftest*
8107   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8108   touch conftest.a
8109   ln conftest.a conftest.b 2>&5 || hard_links=no
8110   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8111   { echo "$as_me:$LINENO: result: $hard_links" >&5
8112 echo "${ECHO_T}$hard_links" >&6; }
8113   if test "$hard_links" = no; then
8114     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8115 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8116     need_locks=warn
8117   fi
8118 else
8119   need_locks=no
8120 fi
8121
8122 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8123 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8124
8125   runpath_var=
8126   allow_undefined_flag=
8127   enable_shared_with_static_runtimes=no
8128   archive_cmds=
8129   archive_expsym_cmds=
8130   old_archive_From_new_cmds=
8131   old_archive_from_expsyms_cmds=
8132   export_dynamic_flag_spec=
8133   whole_archive_flag_spec=
8134   thread_safe_flag_spec=
8135   hardcode_libdir_flag_spec=
8136   hardcode_libdir_flag_spec_ld=
8137   hardcode_libdir_separator=
8138   hardcode_direct=no
8139   hardcode_minus_L=no
8140   hardcode_shlibpath_var=unsupported
8141   link_all_deplibs=unknown
8142   hardcode_automatic=no
8143   module_cmds=
8144   module_expsym_cmds=
8145   always_export_symbols=no
8146   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8147   # include_expsyms should be a list of space-separated symbols to be *always*
8148   # included in the symbol list
8149   include_expsyms=
8150   # exclude_expsyms can be an extended regexp of symbols to exclude
8151   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8152   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8153   # as well as any symbol that contains `d'.
8154   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8155   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8156   # platforms (ab)use it in PIC code, but their linkers get confused if
8157   # the symbol is explicitly referenced.  Since portable code cannot
8158   # rely on this symbol name, it's probably fine to never include it in
8159   # preloaded symbol tables.
8160   # Exclude shared library initialization/finalization symbols.
8161   extract_expsyms_cmds=
8162   # Just being paranoid about ensuring that cc_basename is set.
8163   for cc_temp in $compiler""; do
8164   case $cc_temp in
8165     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8166     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8167     \-*) ;;
8168     *) break;;
8169   esac
8170 done
8171 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8172
8173   case $host_os in
8174   cygwin* | mingw* | pw32*)
8175     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8176     # When not using gcc, we currently assume that we are using
8177     # Microsoft Visual C++.
8178     if test "$GCC" != yes; then
8179       with_gnu_ld=no
8180     fi
8181     ;;
8182   interix*)
8183     # we just hope/assume this is gcc and not c89 (= MSVC++)
8184     with_gnu_ld=yes
8185     ;;
8186   openbsd*)
8187     with_gnu_ld=no
8188     ;;
8189   esac
8190
8191   ld_shlibs=yes
8192   if test "$with_gnu_ld" = yes; then
8193     # If archive_cmds runs LD, not CC, wlarc should be empty
8194     wlarc='${wl}'
8195
8196     # Set some defaults for GNU ld with shared library support. These
8197     # are reset later if shared libraries are not supported. Putting them
8198     # here allows them to be overridden if necessary.
8199     runpath_var=LD_RUN_PATH
8200     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8201     export_dynamic_flag_spec='${wl}--export-dynamic'
8202     # ancient GNU ld didn't support --whole-archive et. al.
8203     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8204         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8205       else
8206         whole_archive_flag_spec=
8207     fi
8208     supports_anon_versioning=no
8209     case `$LD -v 2>/dev/null` in
8210       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8211       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8212       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8213       *\ 2.11.*) ;; # other 2.11 versions
8214       *) supports_anon_versioning=yes ;;
8215     esac
8216
8217     # See if GNU ld supports shared libraries.
8218     case $host_os in
8219     aix[3-9]*)
8220       # On AIX/PPC, the GNU linker is very broken
8221       if test "$host_cpu" != ia64; then
8222         ld_shlibs=no
8223         cat <<EOF 1>&2
8224
8225 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8226 *** to be unable to reliably create shared libraries on AIX.
8227 *** Therefore, libtool is disabling shared libraries support.  If you
8228 *** really care for shared libraries, you may want to modify your PATH
8229 *** so that a non-GNU linker is found, and then restart.
8230
8231 EOF
8232       fi
8233       ;;
8234
8235     amigaos*)
8236       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)'
8237       hardcode_libdir_flag_spec='-L$libdir'
8238       hardcode_minus_L=yes
8239
8240       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8241       # that the semantics of dynamic libraries on AmigaOS, at least up
8242       # to version 4, is to share data among multiple programs linked
8243       # with the same dynamic library.  Since this doesn't match the
8244       # behavior of shared libraries on other platforms, we can't use
8245       # them.
8246       ld_shlibs=no
8247       ;;
8248
8249     beos*)
8250       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8251         allow_undefined_flag=unsupported
8252         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8253         # support --undefined.  This deserves some investigation.  FIXME
8254         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8255       else
8256         ld_shlibs=no
8257       fi
8258       ;;
8259
8260     cygwin* | mingw* | pw32*)
8261       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8262       # as there is no search path for DLLs.
8263       hardcode_libdir_flag_spec='-L$libdir'
8264       allow_undefined_flag=unsupported
8265       always_export_symbols=no
8266       enable_shared_with_static_runtimes=yes
8267       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8268
8269       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8270         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8271         # If the export-symbols file already is a .def file (1st line
8272         # is EXPORTS), use it as is; otherwise, prepend...
8273         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8274           cp $export_symbols $output_objdir/$soname.def;
8275         else
8276           echo EXPORTS > $output_objdir/$soname.def;
8277           cat $export_symbols >> $output_objdir/$soname.def;
8278         fi~
8279         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8280       else
8281         ld_shlibs=no
8282       fi
8283       ;;
8284
8285     interix[3-9]*)
8286       hardcode_direct=no
8287       hardcode_shlibpath_var=no
8288       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8289       export_dynamic_flag_spec='${wl}-E'
8290       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8291       # Instead, shared libraries are loaded at an image base (0x10000000 by
8292       # default) and relocated if they conflict, which is a slow very memory
8293       # consuming and fragmenting process.  To avoid this, we pick a random,
8294       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8295       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8296       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8297       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'
8298       ;;
8299
8300     gnu* | linux* | k*bsd*-gnu)
8301       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8302         tmp_addflag=
8303         case $cc_basename,$host_cpu in
8304         pgcc*)                          # Portland Group C compiler
8305           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'
8306           tmp_addflag=' $pic_flag'
8307           ;;
8308         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8309           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'
8310           tmp_addflag=' $pic_flag -Mnomain' ;;
8311         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8312           tmp_addflag=' -i_dynamic' ;;
8313         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8314           tmp_addflag=' -i_dynamic -nofor_main' ;;
8315         ifc* | ifort*)                  # Intel Fortran compiler
8316           tmp_addflag=' -nofor_main' ;;
8317         esac
8318         case `$CC -V 2>&1 | sed 5q` in
8319         *Sun\ C*)                       # Sun C 5.9
8320           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8321           tmp_sharedflag='-G' ;;
8322         *Sun\ F*)                       # Sun Fortran 8.3
8323           tmp_sharedflag='-G' ;;
8324         *)
8325           tmp_sharedflag='-shared' ;;
8326         esac
8327         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8328
8329         if test $supports_anon_versioning = yes; then
8330           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8331   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8332   $echo "local: *; };" >> $output_objdir/$libname.ver~
8333           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8334         fi
8335         link_all_deplibs=no
8336       else
8337         ld_shlibs=no
8338       fi
8339       ;;
8340
8341     netbsd* | netbsdelf*-gnu)
8342       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8343         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8344         wlarc=
8345       else
8346         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8347         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8348       fi
8349       ;;
8350
8351     solaris*)
8352       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8353         ld_shlibs=no
8354         cat <<EOF 1>&2
8355
8356 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8357 *** create shared libraries on Solaris systems.  Therefore, libtool
8358 *** is disabling shared libraries support.  We urge you to upgrade GNU
8359 *** binutils to release 2.9.1 or newer.  Another option is to modify
8360 *** your PATH or compiler configuration so that the native linker is
8361 *** used, and then restart.
8362
8363 EOF
8364       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8365         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8366         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8367       else
8368         ld_shlibs=no
8369       fi
8370       ;;
8371
8372     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8373       case `$LD -v 2>&1` in
8374         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8375         ld_shlibs=no
8376         cat <<_LT_EOF 1>&2
8377
8378 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8379 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8380 *** is disabling shared libraries support.  We urge you to upgrade GNU
8381 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8382 *** your PATH or compiler configuration so that the native linker is
8383 *** used, and then restart.
8384
8385 _LT_EOF
8386         ;;
8387         *)
8388           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8389             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8390             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8391             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8392           else
8393             ld_shlibs=no
8394           fi
8395         ;;
8396       esac
8397       ;;
8398
8399     sunos4*)
8400       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8401       wlarc=
8402       hardcode_direct=yes
8403       hardcode_shlibpath_var=no
8404       ;;
8405
8406     *)
8407       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8408         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8409         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8410       else
8411         ld_shlibs=no
8412       fi
8413       ;;
8414     esac
8415
8416     if test "$ld_shlibs" = no; then
8417       runpath_var=
8418       hardcode_libdir_flag_spec=
8419       export_dynamic_flag_spec=
8420       whole_archive_flag_spec=
8421     fi
8422   else
8423     # PORTME fill in a description of your system's linker (not GNU ld)
8424     case $host_os in
8425     aix3*)
8426       allow_undefined_flag=unsupported
8427       always_export_symbols=yes
8428       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'
8429       # Note: this linker hardcodes the directories in LIBPATH if there
8430       # are no directories specified by -L.
8431       hardcode_minus_L=yes
8432       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8433         # Neither direct hardcoding nor static linking is supported with a
8434         # broken collect2.
8435         hardcode_direct=unsupported
8436       fi
8437       ;;
8438
8439     aix[4-9]*)
8440       if test "$host_cpu" = ia64; then
8441         # On IA64, the linker does run time linking by default, so we don't
8442         # have to do anything special.
8443         aix_use_runtimelinking=no
8444         exp_sym_flag='-Bexport'
8445         no_entry_flag=""
8446       else
8447         # If we're using GNU nm, then we don't want the "-C" option.
8448         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8449         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8450           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'
8451         else
8452           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'
8453         fi
8454         aix_use_runtimelinking=no
8455
8456         # Test if we are trying to use run time linking or normal
8457         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8458         # need to do runtime linking.
8459         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8460           for ld_flag in $LDFLAGS; do
8461           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8462             aix_use_runtimelinking=yes
8463             break
8464           fi
8465           done
8466           ;;
8467         esac
8468
8469         exp_sym_flag='-bexport'
8470         no_entry_flag='-bnoentry'
8471       fi
8472
8473       # When large executables or shared objects are built, AIX ld can
8474       # have problems creating the table of contents.  If linking a library
8475       # or program results in "error TOC overflow" add -mminimal-toc to
8476       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8477       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8478
8479       archive_cmds=''
8480       hardcode_direct=yes
8481       hardcode_libdir_separator=':'
8482       link_all_deplibs=yes
8483
8484       if test "$GCC" = yes; then
8485         case $host_os in aix4.[012]|aix4.[012].*)
8486         # We only want to do this on AIX 4.2 and lower, the check
8487         # below for broken collect2 doesn't work under 4.3+
8488           collect2name=`${CC} -print-prog-name=collect2`
8489           if test -f "$collect2name" && \
8490            strings "$collect2name" | grep resolve_lib_name >/dev/null
8491           then
8492           # We have reworked collect2
8493           :
8494           else
8495           # We have old collect2
8496           hardcode_direct=unsupported
8497           # It fails to find uninstalled libraries when the uninstalled
8498           # path is not listed in the libpath.  Setting hardcode_minus_L
8499           # to unsupported forces relinking
8500           hardcode_minus_L=yes
8501           hardcode_libdir_flag_spec='-L$libdir'
8502           hardcode_libdir_separator=
8503           fi
8504           ;;
8505         esac
8506         shared_flag='-shared'
8507         if test "$aix_use_runtimelinking" = yes; then
8508           shared_flag="$shared_flag "'${wl}-G'
8509         fi
8510       else
8511         # not using gcc
8512         if test "$host_cpu" = ia64; then
8513         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8514         # chokes on -Wl,-G. The following line is correct:
8515           shared_flag='-G'
8516         else
8517           if test "$aix_use_runtimelinking" = yes; then
8518             shared_flag='${wl}-G'
8519           else
8520             shared_flag='${wl}-bM:SRE'
8521           fi
8522         fi
8523       fi
8524
8525       # It seems that -bexpall does not export symbols beginning with
8526       # underscore (_), so it is better to generate a list of symbols to export.
8527       always_export_symbols=yes
8528       if test "$aix_use_runtimelinking" = yes; then
8529         # Warning - without using the other runtime loading flags (-brtl),
8530         # -berok will link without error, but may produce a broken library.
8531         allow_undefined_flag='-berok'
8532        # Determine the default libpath from the value encoded in an empty executable.
8533        cat >conftest.$ac_ext <<_ACEOF
8534 /* confdefs.h.  */
8535 _ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h.  */
8539
8540 int
8541 main ()
8542 {
8543
8544   ;
8545   return 0;
8546 }
8547 _ACEOF
8548 rm -f conftest.$ac_objext conftest$ac_exeext
8549 if { (ac_try="$ac_link"
8550 case "(($ac_try" in
8551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552   *) ac_try_echo=$ac_try;;
8553 esac
8554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555   (eval "$ac_link") 2>conftest.er1
8556   ac_status=$?
8557   grep -v '^ *+' conftest.er1 >conftest.err
8558   rm -f conftest.er1
8559   cat conftest.err >&5
8560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561   (exit $ac_status); } && {
8562          test -z "$ac_c_werror_flag" ||
8563          test ! -s conftest.err
8564        } && test -s conftest$ac_exeext &&
8565        $as_test_x conftest$ac_exeext; then
8566
8567 lt_aix_libpath_sed='
8568     /Import File Strings/,/^$/ {
8569         /^0/ {
8570             s/^0  *\(.*\)$/\1/
8571             p
8572         }
8573     }'
8574 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8575 # Check for a 64-bit object if we didn't find anything.
8576 if test -z "$aix_libpath"; then
8577   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8578 fi
8579 else
8580   echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8582
8583
8584 fi
8585
8586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8587       conftest$ac_exeext conftest.$ac_ext
8588 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8589
8590        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8591         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"
8592        else
8593         if test "$host_cpu" = ia64; then
8594           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8595           allow_undefined_flag="-z nodefs"
8596           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"
8597         else
8598          # Determine the default libpath from the value encoded in an empty executable.
8599          cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h.  */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h.  */
8605
8606 int
8607 main ()
8608 {
8609
8610   ;
8611   return 0;
8612 }
8613 _ACEOF
8614 rm -f conftest.$ac_objext conftest$ac_exeext
8615 if { (ac_try="$ac_link"
8616 case "(($ac_try" in
8617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618   *) ac_try_echo=$ac_try;;
8619 esac
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621   (eval "$ac_link") 2>conftest.er1
8622   ac_status=$?
8623   grep -v '^ *+' conftest.er1 >conftest.err
8624   rm -f conftest.er1
8625   cat conftest.err >&5
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); } && {
8628          test -z "$ac_c_werror_flag" ||
8629          test ! -s conftest.err
8630        } && test -s conftest$ac_exeext &&
8631        $as_test_x conftest$ac_exeext; then
8632
8633 lt_aix_libpath_sed='
8634     /Import File Strings/,/^$/ {
8635         /^0/ {
8636             s/^0  *\(.*\)$/\1/
8637             p
8638         }
8639     }'
8640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8641 # Check for a 64-bit object if we didn't find anything.
8642 if test -z "$aix_libpath"; then
8643   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8644 fi
8645 else
8646   echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8648
8649
8650 fi
8651
8652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8653       conftest$ac_exeext conftest.$ac_ext
8654 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8655
8656          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8657           # Warning - without using the other run time loading flags,
8658           # -berok will link without error, but may produce a broken library.
8659           no_undefined_flag=' ${wl}-bernotok'
8660           allow_undefined_flag=' ${wl}-berok'
8661           # Exported symbols can be pulled into shared objects from archives
8662           whole_archive_flag_spec='$convenience'
8663           archive_cmds_need_lc=yes
8664           # This is similar to how AIX traditionally builds its shared libraries.
8665           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'
8666         fi
8667       fi
8668       ;;
8669
8670     amigaos*)
8671       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)'
8672       hardcode_libdir_flag_spec='-L$libdir'
8673       hardcode_minus_L=yes
8674       # see comment about different semantics on the GNU ld section
8675       ld_shlibs=no
8676       ;;
8677
8678     bsdi[45]*)
8679       export_dynamic_flag_spec=-rdynamic
8680       ;;
8681
8682     cygwin* | mingw* | pw32*)
8683       # When not using gcc, we currently assume that we are using
8684       # Microsoft Visual C++.
8685       # hardcode_libdir_flag_spec is actually meaningless, as there is
8686       # no search path for DLLs.
8687       hardcode_libdir_flag_spec=' '
8688       allow_undefined_flag=unsupported
8689       # Tell ltmain to make .lib files, not .a files.
8690       libext=lib
8691       # Tell ltmain to make .dll files, not .so files.
8692       shrext_cmds=".dll"
8693       # FIXME: Setting linknames here is a bad hack.
8694       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8695       # The linker will automatically build a .lib file if we build a DLL.
8696       old_archive_From_new_cmds='true'
8697       # FIXME: Should let the user specify the lib program.
8698       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8699       fix_srcfile_path='`cygpath -w "$srcfile"`'
8700       enable_shared_with_static_runtimes=yes
8701       ;;
8702
8703     darwin* | rhapsody*)
8704       case $host_os in
8705         rhapsody* | darwin1.[012])
8706          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8707          ;;
8708        *) # Darwin 1.3 on
8709          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8710            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8711          else
8712            case ${MACOSX_DEPLOYMENT_TARGET} in
8713              10.[012])
8714                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8715                ;;
8716              10.*)
8717                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8718                ;;
8719            esac
8720          fi
8721          ;;
8722       esac
8723       archive_cmds_need_lc=no
8724       hardcode_direct=no
8725       hardcode_automatic=yes
8726       hardcode_shlibpath_var=unsupported
8727       whole_archive_flag_spec=''
8728       link_all_deplibs=yes
8729     if test "$GCC" = yes ; then
8730         output_verbose_link_cmd='echo'
8731         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8732         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8733         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8734         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8735     else
8736       case $cc_basename in
8737         xlc*)
8738          output_verbose_link_cmd='echo'
8739          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8740          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8741           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8742          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8743           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}'
8744           ;;
8745        *)
8746          ld_shlibs=no
8747           ;;
8748       esac
8749     fi
8750       ;;
8751
8752     dgux*)
8753       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8754       hardcode_libdir_flag_spec='-L$libdir'
8755       hardcode_shlibpath_var=no
8756       ;;
8757
8758     freebsd1*)
8759       ld_shlibs=no
8760       ;;
8761
8762     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8763     # support.  Future versions do this automatically, but an explicit c++rt0.o
8764     # does not break anything, and helps significantly (at the cost of a little
8765     # extra space).
8766     freebsd2.2*)
8767       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8768       hardcode_libdir_flag_spec='-R$libdir'
8769       hardcode_direct=yes
8770       hardcode_shlibpath_var=no
8771       ;;
8772
8773     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8774     freebsd2*)
8775       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8776       hardcode_direct=yes
8777       hardcode_minus_L=yes
8778       hardcode_shlibpath_var=no
8779       ;;
8780
8781     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8782     freebsd* | dragonfly*)
8783       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8784       hardcode_libdir_flag_spec='-R$libdir'
8785       hardcode_direct=yes
8786       hardcode_shlibpath_var=no
8787       ;;
8788
8789     hpux9*)
8790       if test "$GCC" = yes; then
8791         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'
8792       else
8793         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'
8794       fi
8795       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8796       hardcode_libdir_separator=:
8797       hardcode_direct=yes
8798
8799       # hardcode_minus_L: Not really in the search PATH,
8800       # but as the default location of the library.
8801       hardcode_minus_L=yes
8802       export_dynamic_flag_spec='${wl}-E'
8803       ;;
8804
8805     hpux10*)
8806       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8807         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8808       else
8809         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8810       fi
8811       if test "$with_gnu_ld" = no; then
8812         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8813         hardcode_libdir_separator=:
8814
8815         hardcode_direct=yes
8816         export_dynamic_flag_spec='${wl}-E'
8817
8818         # hardcode_minus_L: Not really in the search PATH,
8819         # but as the default location of the library.
8820         hardcode_minus_L=yes
8821       fi
8822       ;;
8823
8824     hpux11*)
8825       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8826         case $host_cpu in
8827         hppa*64*)
8828           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8829           ;;
8830         ia64*)
8831           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8832           ;;
8833         *)
8834           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8835           ;;
8836         esac
8837       else
8838         case $host_cpu in
8839         hppa*64*)
8840           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8841           ;;
8842         ia64*)
8843           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8844           ;;
8845         *)
8846           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8847           ;;
8848         esac
8849       fi
8850       if test "$with_gnu_ld" = no; then
8851         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8852         hardcode_libdir_separator=:
8853
8854         case $host_cpu in
8855         hppa*64*|ia64*)
8856           hardcode_libdir_flag_spec_ld='+b $libdir'
8857           hardcode_direct=no
8858           hardcode_shlibpath_var=no
8859           ;;
8860         *)
8861           hardcode_direct=yes
8862           export_dynamic_flag_spec='${wl}-E'
8863
8864           # hardcode_minus_L: Not really in the search PATH,
8865           # but as the default location of the library.
8866           hardcode_minus_L=yes
8867           ;;
8868         esac
8869       fi
8870       ;;
8871
8872     irix5* | irix6* | nonstopux*)
8873       if test "$GCC" = yes; then
8874         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'
8875       else
8876         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'
8877         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8878       fi
8879       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8880       hardcode_libdir_separator=:
8881       link_all_deplibs=yes
8882       ;;
8883
8884     netbsd* | netbsdelf*-gnu)
8885       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8886         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8887       else
8888         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8889       fi
8890       hardcode_libdir_flag_spec='-R$libdir'
8891       hardcode_direct=yes
8892       hardcode_shlibpath_var=no
8893       ;;
8894
8895     newsos6)
8896       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8897       hardcode_direct=yes
8898       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8899       hardcode_libdir_separator=:
8900       hardcode_shlibpath_var=no
8901       ;;
8902
8903     openbsd*)
8904       if test -f /usr/libexec/ld.so; then
8905         hardcode_direct=yes
8906         hardcode_shlibpath_var=no
8907         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8908           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8909           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8910           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8911           export_dynamic_flag_spec='${wl}-E'
8912         else
8913           case $host_os in
8914            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8915              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8916              hardcode_libdir_flag_spec='-R$libdir'
8917              ;;
8918            *)
8919              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8920              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8921              ;;
8922           esac
8923         fi
8924       else
8925         ld_shlibs=no
8926       fi
8927       ;;
8928
8929     os2*)
8930       hardcode_libdir_flag_spec='-L$libdir'
8931       hardcode_minus_L=yes
8932       allow_undefined_flag=unsupported
8933       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'
8934       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8935       ;;
8936
8937     osf3*)
8938       if test "$GCC" = yes; then
8939         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8940         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'
8941       else
8942         allow_undefined_flag=' -expect_unresolved \*'
8943         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'
8944       fi
8945       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8946       hardcode_libdir_separator=:
8947       ;;
8948
8949     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8950       if test "$GCC" = yes; then
8951         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8952         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'
8953         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8954       else
8955         allow_undefined_flag=' -expect_unresolved \*'
8956         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'
8957         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8958         $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'
8959
8960         # Both c and cxx compiler support -rpath directly
8961         hardcode_libdir_flag_spec='-rpath $libdir'
8962       fi
8963       hardcode_libdir_separator=:
8964       ;;
8965
8966     solaris*)
8967       no_undefined_flag=' -z text'
8968       if test "$GCC" = yes; then
8969         wlarc='${wl}'
8970         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8971         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8972           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8973       else
8974         wlarc=''
8975         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8976         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8977         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8978       fi
8979       hardcode_libdir_flag_spec='-R$libdir'
8980       hardcode_shlibpath_var=no
8981       case $host_os in
8982       solaris2.[0-5] | solaris2.[0-5].*) ;;
8983       *)
8984         # The compiler driver will combine and reorder linker options,
8985         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8986         # but is careful enough not to reorder.
8987         # Supported since Solaris 2.6 (maybe 2.5.1?)
8988         if test "$GCC" = yes; then
8989           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8990         else
8991           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8992         fi
8993         ;;
8994       esac
8995       link_all_deplibs=yes
8996       ;;
8997
8998     sunos4*)
8999       if test "x$host_vendor" = xsequent; then
9000         # Use $CC to link under sequent, because it throws in some extra .o
9001         # files that make .init and .fini sections work.
9002         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9003       else
9004         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9005       fi
9006       hardcode_libdir_flag_spec='-L$libdir'
9007       hardcode_direct=yes
9008       hardcode_minus_L=yes
9009       hardcode_shlibpath_var=no
9010       ;;
9011
9012     sysv4)
9013       case $host_vendor in
9014         sni)
9015           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9016           hardcode_direct=yes # is this really true???
9017         ;;
9018         siemens)
9019           ## LD is ld it makes a PLAMLIB
9020           ## CC just makes a GrossModule.
9021           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9022           reload_cmds='$CC -r -o $output$reload_objs'
9023           hardcode_direct=no
9024         ;;
9025         motorola)
9026           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9027           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9028         ;;
9029       esac
9030       runpath_var='LD_RUN_PATH'
9031       hardcode_shlibpath_var=no
9032       ;;
9033
9034     sysv4.3*)
9035       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9036       hardcode_shlibpath_var=no
9037       export_dynamic_flag_spec='-Bexport'
9038       ;;
9039
9040     sysv4*MP*)
9041       if test -d /usr/nec; then
9042         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9043         hardcode_shlibpath_var=no
9044         runpath_var=LD_RUN_PATH
9045         hardcode_runpath_var=yes
9046         ld_shlibs=yes
9047       fi
9048       ;;
9049
9050     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9051       no_undefined_flag='${wl}-z,text'
9052       archive_cmds_need_lc=no
9053       hardcode_shlibpath_var=no
9054       runpath_var='LD_RUN_PATH'
9055
9056       if test "$GCC" = yes; then
9057         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9058         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9059       else
9060         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9061         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9062       fi
9063       ;;
9064
9065     sysv5* | sco3.2v5* | sco5v6*)
9066       # Note: We can NOT use -z defs as we might desire, because we do not
9067       # link with -lc, and that would cause any symbols used from libc to
9068       # always be unresolved, which means just about no library would
9069       # ever link correctly.  If we're not using GNU ld we use -z text
9070       # though, which does catch some bad symbols but isn't as heavy-handed
9071       # as -z defs.
9072       no_undefined_flag='${wl}-z,text'
9073       allow_undefined_flag='${wl}-z,nodefs'
9074       archive_cmds_need_lc=no
9075       hardcode_shlibpath_var=no
9076       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9077       hardcode_libdir_separator=':'
9078       link_all_deplibs=yes
9079       export_dynamic_flag_spec='${wl}-Bexport'
9080       runpath_var='LD_RUN_PATH'
9081
9082       if test "$GCC" = yes; then
9083         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9084         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9085       else
9086         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9087         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9088       fi
9089       ;;
9090
9091     uts4*)
9092       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9093       hardcode_libdir_flag_spec='-L$libdir'
9094       hardcode_shlibpath_var=no
9095       ;;
9096
9097     *)
9098       ld_shlibs=no
9099       ;;
9100     esac
9101   fi
9102
9103 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9104 echo "${ECHO_T}$ld_shlibs" >&6; }
9105 test "$ld_shlibs" = no && can_build_shared=no
9106
9107 #
9108 # Do we need to explicitly link libc?
9109 #
9110 case "x$archive_cmds_need_lc" in
9111 x|xyes)
9112   # Assume -lc should be added
9113   archive_cmds_need_lc=yes
9114
9115   if test "$enable_shared" = yes && test "$GCC" = yes; then
9116     case $archive_cmds in
9117     *'~'*)
9118       # FIXME: we may have to deal with multi-command sequences.
9119       ;;
9120     '$CC '*)
9121       # Test whether the compiler implicitly links with -lc since on some
9122       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9123       # to ld, don't add -lc before -lgcc.
9124       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9125 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9126       $rm conftest*
9127       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9128
9129       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9130   (eval $ac_compile) 2>&5
9131   ac_status=$?
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); } 2>conftest.err; then
9134         soname=conftest
9135         lib=conftest
9136         libobjs=conftest.$ac_objext
9137         deplibs=
9138         wl=$lt_prog_compiler_wl
9139         pic_flag=$lt_prog_compiler_pic
9140         compiler_flags=-v
9141         linker_flags=-v
9142         verstring=
9143         output_objdir=.
9144         libname=conftest
9145         lt_save_allow_undefined_flag=$allow_undefined_flag
9146         allow_undefined_flag=
9147         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9148   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9149   ac_status=$?
9150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151   (exit $ac_status); }
9152         then
9153           archive_cmds_need_lc=no
9154         else
9155           archive_cmds_need_lc=yes
9156         fi
9157         allow_undefined_flag=$lt_save_allow_undefined_flag
9158       else
9159         cat conftest.err 1>&5
9160       fi
9161       $rm conftest*
9162       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9163 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9164       ;;
9165     esac
9166   fi
9167   ;;
9168 esac
9169
9170 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9171 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9172 library_names_spec=
9173 libname_spec='lib$name'
9174 soname_spec=
9175 shrext_cmds=".so"
9176 postinstall_cmds=
9177 postuninstall_cmds=
9178 finish_cmds=
9179 finish_eval=
9180 shlibpath_var=
9181 shlibpath_overrides_runpath=unknown
9182 version_type=none
9183 dynamic_linker="$host_os ld.so"
9184 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9185
9186 if test "$GCC" = yes; then
9187   case $host_os in
9188     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9189     *) lt_awk_arg="/^libraries:/" ;;
9190   esac
9191   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9192   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9193     # if the path contains ";" then we assume it to be the separator
9194     # otherwise default to the standard path separator (i.e. ":") - it is
9195     # assumed that no part of a normal pathname contains ";" but that should
9196     # okay in the real world where ";" in dirpaths is itself problematic.
9197     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9198   else
9199     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9200   fi
9201   # Ok, now we have the path, separated by spaces, we can step through it
9202   # and add multilib dir if necessary.
9203   lt_tmp_lt_search_path_spec=
9204   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9205   for lt_sys_path in $lt_search_path_spec; do
9206     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9207       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9208     else
9209       test -d "$lt_sys_path" && \
9210         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9211     fi
9212   done
9213   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9214 BEGIN {RS=" "; FS="/|\n";} {
9215   lt_foo="";
9216   lt_count=0;
9217   for (lt_i = NF; lt_i > 0; lt_i--) {
9218     if ($lt_i != "" && $lt_i != ".") {
9219       if ($lt_i == "..") {
9220         lt_count++;
9221       } else {
9222         if (lt_count == 0) {
9223           lt_foo="/" $lt_i lt_foo;
9224         } else {
9225           lt_count--;
9226         }
9227       }
9228     }
9229   }
9230   if (lt_foo != "") { lt_freq[lt_foo]++; }
9231   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9232 }'`
9233   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9234 else
9235   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9236 fi
9237 need_lib_prefix=unknown
9238 hardcode_into_libs=no
9239
9240 # when you set need_version to no, make sure it does not cause -set_version
9241 # flags to be left without arguments
9242 need_version=unknown
9243
9244 case $host_os in
9245 aix3*)
9246   version_type=linux
9247   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9248   shlibpath_var=LIBPATH
9249
9250   # AIX 3 has no versioning support, so we append a major version to the name.
9251   soname_spec='${libname}${release}${shared_ext}$major'
9252   ;;
9253
9254 aix[4-9]*)
9255   version_type=linux
9256   need_lib_prefix=no
9257   need_version=no
9258   hardcode_into_libs=yes
9259   if test "$host_cpu" = ia64; then
9260     # AIX 5 supports IA64
9261     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9262     shlibpath_var=LD_LIBRARY_PATH
9263   else
9264     # With GCC up to 2.95.x, collect2 would create an import file
9265     # for dependence libraries.  The import file would start with
9266     # the line `#! .'.  This would cause the generated library to
9267     # depend on `.', always an invalid library.  This was fixed in
9268     # development snapshots of GCC prior to 3.0.
9269     case $host_os in
9270       aix4 | aix4.[01] | aix4.[01].*)
9271       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9272            echo ' yes '
9273            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9274         :
9275       else
9276         can_build_shared=no
9277       fi
9278       ;;
9279     esac
9280     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9281     # soname into executable. Probably we can add versioning support to
9282     # collect2, so additional links can be useful in future.
9283     if test "$aix_use_runtimelinking" = yes; then
9284       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9285       # instead of lib<name>.a to let people know that these are not
9286       # typical AIX shared libraries.
9287       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9288     else
9289       # We preserve .a as extension for shared libraries through AIX4.2
9290       # and later when we are not doing run time linking.
9291       library_names_spec='${libname}${release}.a $libname.a'
9292       soname_spec='${libname}${release}${shared_ext}$major'
9293     fi
9294     shlibpath_var=LIBPATH
9295   fi
9296   ;;
9297
9298 amigaos*)
9299   library_names_spec='$libname.ixlibrary $libname.a'
9300   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9301   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'
9302   ;;
9303
9304 beos*)
9305   library_names_spec='${libname}${shared_ext}'
9306   dynamic_linker="$host_os ld.so"
9307   shlibpath_var=LIBRARY_PATH
9308   ;;
9309
9310 bsdi[45]*)
9311   version_type=linux
9312   need_version=no
9313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314   soname_spec='${libname}${release}${shared_ext}$major'
9315   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9316   shlibpath_var=LD_LIBRARY_PATH
9317   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9318   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9319   # the default ld.so.conf also contains /usr/contrib/lib and
9320   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9321   # libtool to hard-code these into programs
9322   ;;
9323
9324 cygwin* | mingw* | pw32*)
9325   version_type=windows
9326   shrext_cmds=".dll"
9327   need_version=no
9328   need_lib_prefix=no
9329
9330   case $GCC,$host_os in
9331   yes,cygwin* | yes,mingw* | yes,pw32*)
9332     library_names_spec='$libname.dll.a'
9333     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9334     postinstall_cmds='base_file=`basename \${file}`~
9335       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9336       dldir=$destdir/`dirname \$dlpath`~
9337       test -d \$dldir || mkdir -p \$dldir~
9338       $install_prog $dir/$dlname \$dldir/$dlname~
9339       chmod a+x \$dldir/$dlname'
9340     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9341       dlpath=$dir/\$dldll~
9342        $rm \$dlpath'
9343     shlibpath_overrides_runpath=yes
9344
9345     case $host_os in
9346     cygwin*)
9347       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9348       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9349       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9350       ;;
9351     mingw*)
9352       # MinGW DLLs use traditional 'lib' prefix
9353       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9354       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9355       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9356         # It is most probably a Windows format PATH printed by
9357         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9358         # path with ; separators, and with drive letters. We can handle the
9359         # drive letters (cygwin fileutils understands them), so leave them,
9360         # especially as we might pass files found there to a mingw objdump,
9361         # which wouldn't understand a cygwinified path. Ahh.
9362         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9363       else
9364         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9365       fi
9366       ;;
9367     pw32*)
9368       # pw32 DLLs use 'pw' prefix rather than 'lib'
9369       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9370       ;;
9371     esac
9372     ;;
9373
9374   *)
9375     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9376     ;;
9377   esac
9378   dynamic_linker='Win32 ld.exe'
9379   # FIXME: first we should search . and the directory the executable is in
9380   shlibpath_var=PATH
9381   ;;
9382
9383 darwin* | rhapsody*)
9384   dynamic_linker="$host_os dyld"
9385   version_type=darwin
9386   need_lib_prefix=no
9387   need_version=no
9388   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9389   soname_spec='${libname}${release}${major}$shared_ext'
9390   shlibpath_overrides_runpath=yes
9391   shlibpath_var=DYLD_LIBRARY_PATH
9392   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9393
9394   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9395   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9396   ;;
9397
9398 dgux*)
9399   version_type=linux
9400   need_lib_prefix=no
9401   need_version=no
9402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9403   soname_spec='${libname}${release}${shared_ext}$major'
9404   shlibpath_var=LD_LIBRARY_PATH
9405   ;;
9406
9407 freebsd1*)
9408   dynamic_linker=no
9409   ;;
9410
9411 freebsd* | dragonfly*)
9412   # DragonFly does not have aout.  When/if they implement a new
9413   # versioning mechanism, adjust this.
9414   if test -x /usr/bin/objformat; then
9415     objformat=`/usr/bin/objformat`
9416   else
9417     case $host_os in
9418     freebsd[123]*) objformat=aout ;;
9419     *) objformat=elf ;;
9420     esac
9421   fi
9422   version_type=freebsd-$objformat
9423   case $version_type in
9424     freebsd-elf*)
9425       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9426       need_version=no
9427       need_lib_prefix=no
9428       ;;
9429     freebsd-*)
9430       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9431       need_version=yes
9432       ;;
9433   esac
9434   shlibpath_var=LD_LIBRARY_PATH
9435   case $host_os in
9436   freebsd2*)
9437     shlibpath_overrides_runpath=yes
9438     ;;
9439   freebsd3.[01]* | freebsdelf3.[01]*)
9440     shlibpath_overrides_runpath=yes
9441     hardcode_into_libs=yes
9442     ;;
9443   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9444   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9445     shlibpath_overrides_runpath=no
9446     hardcode_into_libs=yes
9447     ;;
9448   *) # from 4.6 on, and DragonFly
9449     shlibpath_overrides_runpath=yes
9450     hardcode_into_libs=yes
9451     ;;
9452   esac
9453   ;;
9454
9455 gnu*)
9456   version_type=linux
9457   need_lib_prefix=no
9458   need_version=no
9459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9460   soname_spec='${libname}${release}${shared_ext}$major'
9461   shlibpath_var=LD_LIBRARY_PATH
9462   hardcode_into_libs=yes
9463   ;;
9464
9465 hpux9* | hpux10* | hpux11*)
9466   # Give a soname corresponding to the major version so that dld.sl refuses to
9467   # link against other versions.
9468   version_type=sunos
9469   need_lib_prefix=no
9470   need_version=no
9471   case $host_cpu in
9472   ia64*)
9473     shrext_cmds='.so'
9474     hardcode_into_libs=yes
9475     dynamic_linker="$host_os dld.so"
9476     shlibpath_var=LD_LIBRARY_PATH
9477     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9478     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9479     soname_spec='${libname}${release}${shared_ext}$major'
9480     if test "X$HPUX_IA64_MODE" = X32; then
9481       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9482     else
9483       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9484     fi
9485     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9486     ;;
9487    hppa*64*)
9488      shrext_cmds='.sl'
9489      hardcode_into_libs=yes
9490      dynamic_linker="$host_os dld.sl"
9491      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9492      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9493      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494      soname_spec='${libname}${release}${shared_ext}$major'
9495      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9496      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9497      ;;
9498    *)
9499     shrext_cmds='.sl'
9500     dynamic_linker="$host_os dld.sl"
9501     shlibpath_var=SHLIB_PATH
9502     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9503     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504     soname_spec='${libname}${release}${shared_ext}$major'
9505     ;;
9506   esac
9507   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9508   postinstall_cmds='chmod 555 $lib'
9509   ;;
9510
9511 interix[3-9]*)
9512   version_type=linux
9513   need_lib_prefix=no
9514   need_version=no
9515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9516   soname_spec='${libname}${release}${shared_ext}$major'
9517   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9518   shlibpath_var=LD_LIBRARY_PATH
9519   shlibpath_overrides_runpath=no
9520   hardcode_into_libs=yes
9521   ;;
9522
9523 irix5* | irix6* | nonstopux*)
9524   case $host_os in
9525     nonstopux*) version_type=nonstopux ;;
9526     *)
9527         if test "$lt_cv_prog_gnu_ld" = yes; then
9528                 version_type=linux
9529         else
9530                 version_type=irix
9531         fi ;;
9532   esac
9533   need_lib_prefix=no
9534   need_version=no
9535   soname_spec='${libname}${release}${shared_ext}$major'
9536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9537   case $host_os in
9538   irix5* | nonstopux*)
9539     libsuff= shlibsuff=
9540     ;;
9541   *)
9542     case $LD in # libtool.m4 will add one of these switches to LD
9543     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9544       libsuff= shlibsuff= libmagic=32-bit;;
9545     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9546       libsuff=32 shlibsuff=N32 libmagic=N32;;
9547     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9548       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9549     *) libsuff= shlibsuff= libmagic=never-match;;
9550     esac
9551     ;;
9552   esac
9553   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9554   shlibpath_overrides_runpath=no
9555   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9556   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9557   hardcode_into_libs=yes
9558   ;;
9559
9560 # No shared lib support for Linux oldld, aout, or coff.
9561 linux*oldld* | linux*aout* | linux*coff*)
9562   dynamic_linker=no
9563   ;;
9564
9565 # This must be Linux ELF.
9566 linux* | k*bsd*-gnu)
9567   version_type=linux
9568   need_lib_prefix=no
9569   need_version=no
9570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571   soname_spec='${libname}${release}${shared_ext}$major'
9572   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9573   shlibpath_var=LD_LIBRARY_PATH
9574   shlibpath_overrides_runpath=no
9575   # This implies no fast_install, which is unacceptable.
9576   # Some rework will be needed to allow for fast_install
9577   # before this can be enabled.
9578   hardcode_into_libs=yes
9579
9580   # Append ld.so.conf contents to the search path
9581   if test -f /etc/ld.so.conf; then
9582     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9583     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9584   fi
9585
9586   # We used to test for /lib/ld.so.1 and disable shared libraries on
9587   # powerpc, because MkLinux only supported shared libraries with the
9588   # GNU dynamic linker.  Since this was broken with cross compilers,
9589   # most powerpc-linux boxes support dynamic linking these days and
9590   # people can always --disable-shared, the test was removed, and we
9591   # assume the GNU/Linux dynamic linker is in use.
9592   dynamic_linker='GNU/Linux ld.so'
9593   ;;
9594
9595 netbsdelf*-gnu)
9596   version_type=linux
9597   need_lib_prefix=no
9598   need_version=no
9599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9600   soname_spec='${libname}${release}${shared_ext}$major'
9601   shlibpath_var=LD_LIBRARY_PATH
9602   shlibpath_overrides_runpath=no
9603   hardcode_into_libs=yes
9604   dynamic_linker='NetBSD ld.elf_so'
9605   ;;
9606
9607 netbsd*)
9608   version_type=sunos
9609   need_lib_prefix=no
9610   need_version=no
9611   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9612     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9613     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9614     dynamic_linker='NetBSD (a.out) ld.so'
9615   else
9616     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9617     soname_spec='${libname}${release}${shared_ext}$major'
9618     dynamic_linker='NetBSD ld.elf_so'
9619   fi
9620   shlibpath_var=LD_LIBRARY_PATH
9621   shlibpath_overrides_runpath=yes
9622   hardcode_into_libs=yes
9623   ;;
9624
9625 newsos6)
9626   version_type=linux
9627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9628   shlibpath_var=LD_LIBRARY_PATH
9629   shlibpath_overrides_runpath=yes
9630   ;;
9631
9632 nto-qnx*)
9633   version_type=linux
9634   need_lib_prefix=no
9635   need_version=no
9636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9637   soname_spec='${libname}${release}${shared_ext}$major'
9638   shlibpath_var=LD_LIBRARY_PATH
9639   shlibpath_overrides_runpath=yes
9640   ;;
9641
9642 openbsd*)
9643   version_type=sunos
9644   sys_lib_dlsearch_path_spec="/usr/lib"
9645   need_lib_prefix=no
9646   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9647   case $host_os in
9648     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9649     *)                         need_version=no  ;;
9650   esac
9651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9652   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9653   shlibpath_var=LD_LIBRARY_PATH
9654   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9655     case $host_os in
9656       openbsd2.[89] | openbsd2.[89].*)
9657         shlibpath_overrides_runpath=no
9658         ;;
9659       *)
9660         shlibpath_overrides_runpath=yes
9661         ;;
9662       esac
9663   else
9664     shlibpath_overrides_runpath=yes
9665   fi
9666   ;;
9667
9668 os2*)
9669   libname_spec='$name'
9670   shrext_cmds=".dll"
9671   need_lib_prefix=no
9672   library_names_spec='$libname${shared_ext} $libname.a'
9673   dynamic_linker='OS/2 ld.exe'
9674   shlibpath_var=LIBPATH
9675   ;;
9676
9677 osf3* | osf4* | osf5*)
9678   version_type=osf
9679   need_lib_prefix=no
9680   need_version=no
9681   soname_spec='${libname}${release}${shared_ext}$major'
9682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683   shlibpath_var=LD_LIBRARY_PATH
9684   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9685   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9686   ;;
9687
9688 rdos*)
9689   dynamic_linker=no
9690   ;;
9691
9692 solaris*)
9693   version_type=linux
9694   need_lib_prefix=no
9695   need_version=no
9696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9697   soname_spec='${libname}${release}${shared_ext}$major'
9698   shlibpath_var=LD_LIBRARY_PATH
9699   shlibpath_overrides_runpath=yes
9700   hardcode_into_libs=yes
9701   # ldd complains unless libraries are executable
9702   postinstall_cmds='chmod +x $lib'
9703   ;;
9704
9705 sunos4*)
9706   version_type=sunos
9707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9708   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9709   shlibpath_var=LD_LIBRARY_PATH
9710   shlibpath_overrides_runpath=yes
9711   if test "$with_gnu_ld" = yes; then
9712     need_lib_prefix=no
9713   fi
9714   need_version=yes
9715   ;;
9716
9717 sysv4 | sysv4.3*)
9718   version_type=linux
9719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9720   soname_spec='${libname}${release}${shared_ext}$major'
9721   shlibpath_var=LD_LIBRARY_PATH
9722   case $host_vendor in
9723     sni)
9724       shlibpath_overrides_runpath=no
9725       need_lib_prefix=no
9726       export_dynamic_flag_spec='${wl}-Blargedynsym'
9727       runpath_var=LD_RUN_PATH
9728       ;;
9729     siemens)
9730       need_lib_prefix=no
9731       ;;
9732     motorola)
9733       need_lib_prefix=no
9734       need_version=no
9735       shlibpath_overrides_runpath=no
9736       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9737       ;;
9738   esac
9739   ;;
9740
9741 sysv4*MP*)
9742   if test -d /usr/nec ;then
9743     version_type=linux
9744     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9745     soname_spec='$libname${shared_ext}.$major'
9746     shlibpath_var=LD_LIBRARY_PATH
9747   fi
9748   ;;
9749
9750 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9751   version_type=freebsd-elf
9752   need_lib_prefix=no
9753   need_version=no
9754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9755   soname_spec='${libname}${release}${shared_ext}$major'
9756   shlibpath_var=LD_LIBRARY_PATH
9757   hardcode_into_libs=yes
9758   if test "$with_gnu_ld" = yes; then
9759     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9760     shlibpath_overrides_runpath=no
9761   else
9762     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9763     shlibpath_overrides_runpath=yes
9764     case $host_os in
9765       sco3.2v5*)
9766         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9767         ;;
9768     esac
9769   fi
9770   sys_lib_dlsearch_path_spec='/usr/lib'
9771   ;;
9772
9773 uts4*)
9774   version_type=linux
9775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9776   soname_spec='${libname}${release}${shared_ext}$major'
9777   shlibpath_var=LD_LIBRARY_PATH
9778   ;;
9779
9780 *)
9781   dynamic_linker=no
9782   ;;
9783 esac
9784 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9785 echo "${ECHO_T}$dynamic_linker" >&6; }
9786 test "$dynamic_linker" = no && can_build_shared=no
9787
9788 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9789   echo $ECHO_N "(cached) $ECHO_C" >&6
9790 else
9791   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9792 fi
9793
9794 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9795 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9796   echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9799 fi
9800
9801 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9802
9803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9804 if test "$GCC" = yes; then
9805   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9806 fi
9807
9808 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9809 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9810 hardcode_action=
9811 if test -n "$hardcode_libdir_flag_spec" || \
9812    test -n "$runpath_var" || \
9813    test "X$hardcode_automatic" = "Xyes" ; then
9814
9815   # We can hardcode non-existant directories.
9816   if test "$hardcode_direct" != no &&
9817      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9818      # have to relink, otherwise we might link with an installed library
9819      # when we should be linking with a yet-to-be-installed one
9820      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9821      test "$hardcode_minus_L" != no; then
9822     # Linking always hardcodes the temporary library directory.
9823     hardcode_action=relink
9824   else
9825     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9826     hardcode_action=immediate
9827   fi
9828 else
9829   # We cannot hardcode anything, or else we can only hardcode existing
9830   # directories.
9831   hardcode_action=unsupported
9832 fi
9833 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9834 echo "${ECHO_T}$hardcode_action" >&6; }
9835
9836 if test "$hardcode_action" = relink; then
9837   # Fast installation is not supported
9838   enable_fast_install=no
9839 elif test "$shlibpath_overrides_runpath" = yes ||
9840      test "$enable_shared" = no; then
9841   # Fast installation is not necessary
9842   enable_fast_install=needless
9843 fi
9844
9845 striplib=
9846 old_striplib=
9847 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9848 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9849 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9850   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9851   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9852   { echo "$as_me:$LINENO: result: yes" >&5
9853 echo "${ECHO_T}yes" >&6; }
9854 else
9855 # FIXME - insert some real tests, host_os isn't really good enough
9856   case $host_os in
9857    darwin*)
9858        if test -n "$STRIP" ; then
9859          striplib="$STRIP -x"
9860          old_striplib="$STRIP -S"
9861          { echo "$as_me:$LINENO: result: yes" >&5
9862 echo "${ECHO_T}yes" >&6; }
9863        else
9864   { echo "$as_me:$LINENO: result: no" >&5
9865 echo "${ECHO_T}no" >&6; }
9866 fi
9867        ;;
9868    *)
9869   { echo "$as_me:$LINENO: result: no" >&5
9870 echo "${ECHO_T}no" >&6; }
9871     ;;
9872   esac
9873 fi
9874
9875 if test "x$enable_dlopen" != xyes; then
9876   enable_dlopen=unknown
9877   enable_dlopen_self=unknown
9878   enable_dlopen_self_static=unknown
9879 else
9880   lt_cv_dlopen=no
9881   lt_cv_dlopen_libs=
9882
9883   case $host_os in
9884   beos*)
9885     lt_cv_dlopen="load_add_on"
9886     lt_cv_dlopen_libs=
9887     lt_cv_dlopen_self=yes
9888     ;;
9889
9890   mingw* | pw32*)
9891     lt_cv_dlopen="LoadLibrary"
9892     lt_cv_dlopen_libs=
9893    ;;
9894
9895   cygwin*)
9896     lt_cv_dlopen="dlopen"
9897     lt_cv_dlopen_libs=
9898    ;;
9899
9900   darwin*)
9901   # if libdl is installed we need to link against it
9902     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9903 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9904 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9905   echo $ECHO_N "(cached) $ECHO_C" >&6
9906 else
9907   ac_check_lib_save_LIBS=$LIBS
9908 LIBS="-ldl  $LIBS"
9909 cat >conftest.$ac_ext <<_ACEOF
9910 /* confdefs.h.  */
9911 _ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h.  */
9915
9916 /* Override any GCC internal prototype to avoid an error.
9917    Use char because int might match the return type of a GCC
9918    builtin and then its argument prototype would still apply.  */
9919 #ifdef __cplusplus
9920 extern "C"
9921 #endif
9922 char dlopen ();
9923 int
9924 main ()
9925 {
9926 return dlopen ();
9927   ;
9928   return 0;
9929 }
9930 _ACEOF
9931 rm -f conftest.$ac_objext conftest$ac_exeext
9932 if { (ac_try="$ac_link"
9933 case "(($ac_try" in
9934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935   *) ac_try_echo=$ac_try;;
9936 esac
9937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938   (eval "$ac_link") 2>conftest.er1
9939   ac_status=$?
9940   grep -v '^ *+' conftest.er1 >conftest.err
9941   rm -f conftest.er1
9942   cat conftest.err >&5
9943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944   (exit $ac_status); } && {
9945          test -z "$ac_c_werror_flag" ||
9946          test ! -s conftest.err
9947        } && test -s conftest$ac_exeext &&
9948        $as_test_x conftest$ac_exeext; then
9949   ac_cv_lib_dl_dlopen=yes
9950 else
9951   echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9953
9954         ac_cv_lib_dl_dlopen=no
9955 fi
9956
9957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9958       conftest$ac_exeext conftest.$ac_ext
9959 LIBS=$ac_check_lib_save_LIBS
9960 fi
9961 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9962 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9963 if test $ac_cv_lib_dl_dlopen = yes; then
9964   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9965 else
9966
9967     lt_cv_dlopen="dyld"
9968     lt_cv_dlopen_libs=
9969     lt_cv_dlopen_self=yes
9970
9971 fi
9972
9973    ;;
9974
9975   *)
9976     { echo "$as_me:$LINENO: checking for shl_load" >&5
9977 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9978 if test "${ac_cv_func_shl_load+set}" = set; then
9979   echo $ECHO_N "(cached) $ECHO_C" >&6
9980 else
9981   cat >conftest.$ac_ext <<_ACEOF
9982 /* confdefs.h.  */
9983 _ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h.  */
9987 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9988    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9989 #define shl_load innocuous_shl_load
9990
9991 /* System header to define __stub macros and hopefully few prototypes,
9992     which can conflict with char shl_load (); below.
9993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9994     <limits.h> exists even on freestanding compilers.  */
9995
9996 #ifdef __STDC__
9997 # include <limits.h>
9998 #else
9999 # include <assert.h>
10000 #endif
10001
10002 #undef shl_load
10003
10004 /* Override any GCC internal prototype to avoid an error.
10005    Use char because int might match the return type of a GCC
10006    builtin and then its argument prototype would still apply.  */
10007 #ifdef __cplusplus
10008 extern "C"
10009 #endif
10010 char shl_load ();
10011 /* The GNU C library defines this for functions which it implements
10012     to always fail with ENOSYS.  Some functions are actually named
10013     something starting with __ and the normal name is an alias.  */
10014 #if defined __stub_shl_load || defined __stub___shl_load
10015 choke me
10016 #endif
10017
10018 int
10019 main ()
10020 {
10021 return shl_load ();
10022   ;
10023   return 0;
10024 }
10025 _ACEOF
10026 rm -f conftest.$ac_objext conftest$ac_exeext
10027 if { (ac_try="$ac_link"
10028 case "(($ac_try" in
10029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030   *) ac_try_echo=$ac_try;;
10031 esac
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033   (eval "$ac_link") 2>conftest.er1
10034   ac_status=$?
10035   grep -v '^ *+' conftest.er1 >conftest.err
10036   rm -f conftest.er1
10037   cat conftest.err >&5
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); } && {
10040          test -z "$ac_c_werror_flag" ||
10041          test ! -s conftest.err
10042        } && test -s conftest$ac_exeext &&
10043        $as_test_x conftest$ac_exeext; then
10044   ac_cv_func_shl_load=yes
10045 else
10046   echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10048
10049         ac_cv_func_shl_load=no
10050 fi
10051
10052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10053       conftest$ac_exeext conftest.$ac_ext
10054 fi
10055 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10056 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10057 if test $ac_cv_func_shl_load = yes; then
10058   lt_cv_dlopen="shl_load"
10059 else
10060   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10061 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10062 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10063   echo $ECHO_N "(cached) $ECHO_C" >&6
10064 else
10065   ac_check_lib_save_LIBS=$LIBS
10066 LIBS="-ldld  $LIBS"
10067 cat >conftest.$ac_ext <<_ACEOF
10068 /* confdefs.h.  */
10069 _ACEOF
10070 cat confdefs.h >>conftest.$ac_ext
10071 cat >>conftest.$ac_ext <<_ACEOF
10072 /* end confdefs.h.  */
10073
10074 /* Override any GCC internal prototype to avoid an error.
10075    Use char because int might match the return type of a GCC
10076    builtin and then its argument prototype would still apply.  */
10077 #ifdef __cplusplus
10078 extern "C"
10079 #endif
10080 char shl_load ();
10081 int
10082 main ()
10083 {
10084 return shl_load ();
10085   ;
10086   return 0;
10087 }
10088 _ACEOF
10089 rm -f conftest.$ac_objext conftest$ac_exeext
10090 if { (ac_try="$ac_link"
10091 case "(($ac_try" in
10092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093   *) ac_try_echo=$ac_try;;
10094 esac
10095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10096   (eval "$ac_link") 2>conftest.er1
10097   ac_status=$?
10098   grep -v '^ *+' conftest.er1 >conftest.err
10099   rm -f conftest.er1
10100   cat conftest.err >&5
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); } && {
10103          test -z "$ac_c_werror_flag" ||
10104          test ! -s conftest.err
10105        } && test -s conftest$ac_exeext &&
10106        $as_test_x conftest$ac_exeext; then
10107   ac_cv_lib_dld_shl_load=yes
10108 else
10109   echo "$as_me: failed program was:" >&5
10110 sed 's/^/| /' conftest.$ac_ext >&5
10111
10112         ac_cv_lib_dld_shl_load=no
10113 fi
10114
10115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10116       conftest$ac_exeext conftest.$ac_ext
10117 LIBS=$ac_check_lib_save_LIBS
10118 fi
10119 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10120 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10121 if test $ac_cv_lib_dld_shl_load = yes; then
10122   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10123 else
10124   { echo "$as_me:$LINENO: checking for dlopen" >&5
10125 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10126 if test "${ac_cv_func_dlopen+set}" = set; then
10127   echo $ECHO_N "(cached) $ECHO_C" >&6
10128 else
10129   cat >conftest.$ac_ext <<_ACEOF
10130 /* confdefs.h.  */
10131 _ACEOF
10132 cat confdefs.h >>conftest.$ac_ext
10133 cat >>conftest.$ac_ext <<_ACEOF
10134 /* end confdefs.h.  */
10135 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10136    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10137 #define dlopen innocuous_dlopen
10138
10139 /* System header to define __stub macros and hopefully few prototypes,
10140     which can conflict with char dlopen (); below.
10141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10142     <limits.h> exists even on freestanding compilers.  */
10143
10144 #ifdef __STDC__
10145 # include <limits.h>
10146 #else
10147 # include <assert.h>
10148 #endif
10149
10150 #undef dlopen
10151
10152 /* Override any GCC internal prototype to avoid an error.
10153    Use char because int might match the return type of a GCC
10154    builtin and then its argument prototype would still apply.  */
10155 #ifdef __cplusplus
10156 extern "C"
10157 #endif
10158 char dlopen ();
10159 /* The GNU C library defines this for functions which it implements
10160     to always fail with ENOSYS.  Some functions are actually named
10161     something starting with __ and the normal name is an alias.  */
10162 #if defined __stub_dlopen || defined __stub___dlopen
10163 choke me
10164 #endif
10165
10166 int
10167 main ()
10168 {
10169 return dlopen ();
10170   ;
10171   return 0;
10172 }
10173 _ACEOF
10174 rm -f conftest.$ac_objext conftest$ac_exeext
10175 if { (ac_try="$ac_link"
10176 case "(($ac_try" in
10177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10178   *) ac_try_echo=$ac_try;;
10179 esac
10180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10181   (eval "$ac_link") 2>conftest.er1
10182   ac_status=$?
10183   grep -v '^ *+' conftest.er1 >conftest.err
10184   rm -f conftest.er1
10185   cat conftest.err >&5
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); } && {
10188          test -z "$ac_c_werror_flag" ||
10189          test ! -s conftest.err
10190        } && test -s conftest$ac_exeext &&
10191        $as_test_x conftest$ac_exeext; then
10192   ac_cv_func_dlopen=yes
10193 else
10194   echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10196
10197         ac_cv_func_dlopen=no
10198 fi
10199
10200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10201       conftest$ac_exeext conftest.$ac_ext
10202 fi
10203 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10204 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10205 if test $ac_cv_func_dlopen = yes; then
10206   lt_cv_dlopen="dlopen"
10207 else
10208   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10209 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10210 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10211   echo $ECHO_N "(cached) $ECHO_C" >&6
10212 else
10213   ac_check_lib_save_LIBS=$LIBS
10214 LIBS="-ldl  $LIBS"
10215 cat >conftest.$ac_ext <<_ACEOF
10216 /* confdefs.h.  */
10217 _ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h.  */
10221
10222 /* Override any GCC internal prototype to avoid an error.
10223    Use char because int might match the return type of a GCC
10224    builtin and then its argument prototype would still apply.  */
10225 #ifdef __cplusplus
10226 extern "C"
10227 #endif
10228 char dlopen ();
10229 int
10230 main ()
10231 {
10232 return dlopen ();
10233   ;
10234   return 0;
10235 }
10236 _ACEOF
10237 rm -f conftest.$ac_objext conftest$ac_exeext
10238 if { (ac_try="$ac_link"
10239 case "(($ac_try" in
10240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241   *) ac_try_echo=$ac_try;;
10242 esac
10243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10244   (eval "$ac_link") 2>conftest.er1
10245   ac_status=$?
10246   grep -v '^ *+' conftest.er1 >conftest.err
10247   rm -f conftest.er1
10248   cat conftest.err >&5
10249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250   (exit $ac_status); } && {
10251          test -z "$ac_c_werror_flag" ||
10252          test ! -s conftest.err
10253        } && test -s conftest$ac_exeext &&
10254        $as_test_x conftest$ac_exeext; then
10255   ac_cv_lib_dl_dlopen=yes
10256 else
10257   echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10259
10260         ac_cv_lib_dl_dlopen=no
10261 fi
10262
10263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10264       conftest$ac_exeext conftest.$ac_ext
10265 LIBS=$ac_check_lib_save_LIBS
10266 fi
10267 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10268 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10269 if test $ac_cv_lib_dl_dlopen = yes; then
10270   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10271 else
10272   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10273 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10274 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10275   echo $ECHO_N "(cached) $ECHO_C" >&6
10276 else
10277   ac_check_lib_save_LIBS=$LIBS
10278 LIBS="-lsvld  $LIBS"
10279 cat >conftest.$ac_ext <<_ACEOF
10280 /* confdefs.h.  */
10281 _ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h.  */
10285
10286 /* Override any GCC internal prototype to avoid an error.
10287    Use char because int might match the return type of a GCC
10288    builtin and then its argument prototype would still apply.  */
10289 #ifdef __cplusplus
10290 extern "C"
10291 #endif
10292 char dlopen ();
10293 int
10294 main ()
10295 {
10296 return dlopen ();
10297   ;
10298   return 0;
10299 }
10300 _ACEOF
10301 rm -f conftest.$ac_objext conftest$ac_exeext
10302 if { (ac_try="$ac_link"
10303 case "(($ac_try" in
10304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305   *) ac_try_echo=$ac_try;;
10306 esac
10307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308   (eval "$ac_link") 2>conftest.er1
10309   ac_status=$?
10310   grep -v '^ *+' conftest.er1 >conftest.err
10311   rm -f conftest.er1
10312   cat conftest.err >&5
10313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314   (exit $ac_status); } && {
10315          test -z "$ac_c_werror_flag" ||
10316          test ! -s conftest.err
10317        } && test -s conftest$ac_exeext &&
10318        $as_test_x conftest$ac_exeext; then
10319   ac_cv_lib_svld_dlopen=yes
10320 else
10321   echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10323
10324         ac_cv_lib_svld_dlopen=no
10325 fi
10326
10327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10328       conftest$ac_exeext conftest.$ac_ext
10329 LIBS=$ac_check_lib_save_LIBS
10330 fi
10331 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10332 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10333 if test $ac_cv_lib_svld_dlopen = yes; then
10334   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10335 else
10336   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10337 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10338 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10339   echo $ECHO_N "(cached) $ECHO_C" >&6
10340 else
10341   ac_check_lib_save_LIBS=$LIBS
10342 LIBS="-ldld  $LIBS"
10343 cat >conftest.$ac_ext <<_ACEOF
10344 /* confdefs.h.  */
10345 _ACEOF
10346 cat confdefs.h >>conftest.$ac_ext
10347 cat >>conftest.$ac_ext <<_ACEOF
10348 /* end confdefs.h.  */
10349
10350 /* Override any GCC internal prototype to avoid an error.
10351    Use char because int might match the return type of a GCC
10352    builtin and then its argument prototype would still apply.  */
10353 #ifdef __cplusplus
10354 extern "C"
10355 #endif
10356 char dld_link ();
10357 int
10358 main ()
10359 {
10360 return dld_link ();
10361   ;
10362   return 0;
10363 }
10364 _ACEOF
10365 rm -f conftest.$ac_objext conftest$ac_exeext
10366 if { (ac_try="$ac_link"
10367 case "(($ac_try" in
10368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10369   *) ac_try_echo=$ac_try;;
10370 esac
10371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10372   (eval "$ac_link") 2>conftest.er1
10373   ac_status=$?
10374   grep -v '^ *+' conftest.er1 >conftest.err
10375   rm -f conftest.er1
10376   cat conftest.err >&5
10377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378   (exit $ac_status); } && {
10379          test -z "$ac_c_werror_flag" ||
10380          test ! -s conftest.err
10381        } && test -s conftest$ac_exeext &&
10382        $as_test_x conftest$ac_exeext; then
10383   ac_cv_lib_dld_dld_link=yes
10384 else
10385   echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10387
10388         ac_cv_lib_dld_dld_link=no
10389 fi
10390
10391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10392       conftest$ac_exeext conftest.$ac_ext
10393 LIBS=$ac_check_lib_save_LIBS
10394 fi
10395 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10396 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10397 if test $ac_cv_lib_dld_dld_link = yes; then
10398   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10399 fi
10400
10401
10402 fi
10403
10404
10405 fi
10406
10407
10408 fi
10409
10410
10411 fi
10412
10413
10414 fi
10415
10416     ;;
10417   esac
10418
10419   if test "x$lt_cv_dlopen" != xno; then
10420     enable_dlopen=yes
10421   else
10422     enable_dlopen=no
10423   fi
10424
10425   case $lt_cv_dlopen in
10426   dlopen)
10427     save_CPPFLAGS="$CPPFLAGS"
10428     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10429
10430     save_LDFLAGS="$LDFLAGS"
10431     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10432
10433     save_LIBS="$LIBS"
10434     LIBS="$lt_cv_dlopen_libs $LIBS"
10435
10436     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10437 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10438 if test "${lt_cv_dlopen_self+set}" = set; then
10439   echo $ECHO_N "(cached) $ECHO_C" >&6
10440 else
10441           if test "$cross_compiling" = yes; then :
10442   lt_cv_dlopen_self=cross
10443 else
10444   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10445   lt_status=$lt_dlunknown
10446   cat > conftest.$ac_ext <<EOF
10447 #line 10447 "configure"
10448 #include "confdefs.h"
10449
10450 #if HAVE_DLFCN_H
10451 #include <dlfcn.h>
10452 #endif
10453
10454 #include <stdio.h>
10455
10456 #ifdef RTLD_GLOBAL
10457 #  define LT_DLGLOBAL           RTLD_GLOBAL
10458 #else
10459 #  ifdef DL_GLOBAL
10460 #    define LT_DLGLOBAL         DL_GLOBAL
10461 #  else
10462 #    define LT_DLGLOBAL         0
10463 #  endif
10464 #endif
10465
10466 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10467    find out it does not work in some platform. */
10468 #ifndef LT_DLLAZY_OR_NOW
10469 #  ifdef RTLD_LAZY
10470 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10471 #  else
10472 #    ifdef DL_LAZY
10473 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10474 #    else
10475 #      ifdef RTLD_NOW
10476 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10477 #      else
10478 #        ifdef DL_NOW
10479 #          define LT_DLLAZY_OR_NOW      DL_NOW
10480 #        else
10481 #          define LT_DLLAZY_OR_NOW      0
10482 #        endif
10483 #      endif
10484 #    endif
10485 #  endif
10486 #endif
10487
10488 #ifdef __cplusplus
10489 extern "C" void exit (int);
10490 #endif
10491
10492 void fnord() { int i=42;}
10493 int main ()
10494 {
10495   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10496   int status = $lt_dlunknown;
10497
10498   if (self)
10499     {
10500       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10501       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10502       /* dlclose (self); */
10503     }
10504   else
10505     puts (dlerror ());
10506
10507     exit (status);
10508 }
10509 EOF
10510   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10511   (eval $ac_link) 2>&5
10512   ac_status=$?
10513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10515     (./conftest; exit; ) >&5 2>/dev/null
10516     lt_status=$?
10517     case x$lt_status in
10518       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10519       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10520       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10521     esac
10522   else :
10523     # compilation failed
10524     lt_cv_dlopen_self=no
10525   fi
10526 fi
10527 rm -fr conftest*
10528
10529
10530 fi
10531 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10532 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10533
10534     if test "x$lt_cv_dlopen_self" = xyes; then
10535       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10536       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10537 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10538 if test "${lt_cv_dlopen_self_static+set}" = set; then
10539   echo $ECHO_N "(cached) $ECHO_C" >&6
10540 else
10541           if test "$cross_compiling" = yes; then :
10542   lt_cv_dlopen_self_static=cross
10543 else
10544   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10545   lt_status=$lt_dlunknown
10546   cat > conftest.$ac_ext <<EOF
10547 #line 10547 "configure"
10548 #include "confdefs.h"
10549
10550 #if HAVE_DLFCN_H
10551 #include <dlfcn.h>
10552 #endif
10553
10554 #include <stdio.h>
10555
10556 #ifdef RTLD_GLOBAL
10557 #  define LT_DLGLOBAL           RTLD_GLOBAL
10558 #else
10559 #  ifdef DL_GLOBAL
10560 #    define LT_DLGLOBAL         DL_GLOBAL
10561 #  else
10562 #    define LT_DLGLOBAL         0
10563 #  endif
10564 #endif
10565
10566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10567    find out it does not work in some platform. */
10568 #ifndef LT_DLLAZY_OR_NOW
10569 #  ifdef RTLD_LAZY
10570 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10571 #  else
10572 #    ifdef DL_LAZY
10573 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10574 #    else
10575 #      ifdef RTLD_NOW
10576 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10577 #      else
10578 #        ifdef DL_NOW
10579 #          define LT_DLLAZY_OR_NOW      DL_NOW
10580 #        else
10581 #          define LT_DLLAZY_OR_NOW      0
10582 #        endif
10583 #      endif
10584 #    endif
10585 #  endif
10586 #endif
10587
10588 #ifdef __cplusplus
10589 extern "C" void exit (int);
10590 #endif
10591
10592 void fnord() { int i=42;}
10593 int main ()
10594 {
10595   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10596   int status = $lt_dlunknown;
10597
10598   if (self)
10599     {
10600       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10601       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10602       /* dlclose (self); */
10603     }
10604   else
10605     puts (dlerror ());
10606
10607     exit (status);
10608 }
10609 EOF
10610   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10611   (eval $ac_link) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10615     (./conftest; exit; ) >&5 2>/dev/null
10616     lt_status=$?
10617     case x$lt_status in
10618       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10619       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10620       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10621     esac
10622   else :
10623     # compilation failed
10624     lt_cv_dlopen_self_static=no
10625   fi
10626 fi
10627 rm -fr conftest*
10628
10629
10630 fi
10631 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10632 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10633     fi
10634
10635     CPPFLAGS="$save_CPPFLAGS"
10636     LDFLAGS="$save_LDFLAGS"
10637     LIBS="$save_LIBS"
10638     ;;
10639   esac
10640
10641   case $lt_cv_dlopen_self in
10642   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10643   *) enable_dlopen_self=unknown ;;
10644   esac
10645
10646   case $lt_cv_dlopen_self_static in
10647   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10648   *) enable_dlopen_self_static=unknown ;;
10649   esac
10650 fi
10651
10652
10653 # Report which library types will actually be built
10654 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10655 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10656 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10657 echo "${ECHO_T}$can_build_shared" >&6; }
10658
10659 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10660 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10661 test "$can_build_shared" = "no" && enable_shared=no
10662
10663 # On AIX, shared libraries and static libraries use the same namespace, and
10664 # are all built from PIC.
10665 case $host_os in
10666 aix3*)
10667   test "$enable_shared" = yes && enable_static=no
10668   if test -n "$RANLIB"; then
10669     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10670     postinstall_cmds='$RANLIB $lib'
10671   fi
10672   ;;
10673
10674 aix[4-9]*)
10675   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10676     test "$enable_shared" = yes && enable_static=no
10677   fi
10678     ;;
10679 esac
10680 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10681 echo "${ECHO_T}$enable_shared" >&6; }
10682
10683 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10684 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10685 # Make sure either enable_shared or enable_static is yes.
10686 test "$enable_shared" = yes || enable_static=yes
10687 { echo "$as_me:$LINENO: result: $enable_static" >&5
10688 echo "${ECHO_T}$enable_static" >&6; }
10689
10690 # The else clause should only fire when bootstrapping the
10691 # libtool distribution, otherwise you forgot to ship ltmain.sh
10692 # with your package, and you will get complaints that there are
10693 # no rules to generate ltmain.sh.
10694 if test -f "$ltmain"; then
10695   # See if we are running on zsh, and set the options which allow our commands through
10696   # without removal of \ escapes.
10697   if test -n "${ZSH_VERSION+set}" ; then
10698     setopt NO_GLOB_SUBST
10699   fi
10700   # Now quote all the things that may contain metacharacters while being
10701   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10702   # variables and quote the copies for generation of the libtool script.
10703   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10704     SED SHELL STRIP \
10705     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10706     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10707     deplibs_check_method reload_flag reload_cmds need_locks \
10708     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10709     lt_cv_sys_global_symbol_to_c_name_address \
10710     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10711     old_postinstall_cmds old_postuninstall_cmds \
10712     compiler \
10713     CC \
10714     LD \
10715     lt_prog_compiler_wl \
10716     lt_prog_compiler_pic \
10717     lt_prog_compiler_static \
10718     lt_prog_compiler_no_builtin_flag \
10719     export_dynamic_flag_spec \
10720     thread_safe_flag_spec \
10721     whole_archive_flag_spec \
10722     enable_shared_with_static_runtimes \
10723     old_archive_cmds \
10724     old_archive_from_new_cmds \
10725     predep_objects \
10726     postdep_objects \
10727     predeps \
10728     postdeps \
10729     compiler_lib_search_path \
10730     compiler_lib_search_dirs \
10731     archive_cmds \
10732     archive_expsym_cmds \
10733     postinstall_cmds \
10734     postuninstall_cmds \
10735     old_archive_from_expsyms_cmds \
10736     allow_undefined_flag \
10737     no_undefined_flag \
10738     export_symbols_cmds \
10739     hardcode_libdir_flag_spec \
10740     hardcode_libdir_flag_spec_ld \
10741     hardcode_libdir_separator \
10742     hardcode_automatic \
10743     module_cmds \
10744     module_expsym_cmds \
10745     lt_cv_prog_compiler_c_o \
10746     fix_srcfile_path \
10747     exclude_expsyms \
10748     include_expsyms; do
10749
10750     case $var in
10751     old_archive_cmds | \
10752     old_archive_from_new_cmds | \
10753     archive_cmds | \
10754     archive_expsym_cmds | \
10755     module_cmds | \
10756     module_expsym_cmds | \
10757     old_archive_from_expsyms_cmds | \
10758     export_symbols_cmds | \
10759     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10760     postinstall_cmds | postuninstall_cmds | \
10761     old_postinstall_cmds | old_postuninstall_cmds | \
10762     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10763       # Double-quote double-evaled strings.
10764       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10765       ;;
10766     *)
10767       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10768       ;;
10769     esac
10770   done
10771
10772   case $lt_echo in
10773   *'\$0 --fallback-echo"')
10774     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10775     ;;
10776   esac
10777
10778 cfgfile="${ofile}T"
10779   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10780   $rm -f "$cfgfile"
10781   { echo "$as_me:$LINENO: creating $ofile" >&5
10782 echo "$as_me: creating $ofile" >&6;}
10783
10784   cat <<__EOF__ >> "$cfgfile"
10785 #! $SHELL
10786
10787 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10788 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10789 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10790 #
10791 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10792 # Free Software Foundation, Inc.
10793 #
10794 # This file is part of GNU Libtool:
10795 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10796 #
10797 # This program is free software; you can redistribute it and/or modify
10798 # it under the terms of the GNU General Public License as published by
10799 # the Free Software Foundation; either version 2 of the License, or
10800 # (at your option) any later version.
10801 #
10802 # This program is distributed in the hope that it will be useful, but
10803 # WITHOUT ANY WARRANTY; without even the implied warranty of
10804 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10805 # General Public License for more details.
10806 #
10807 # You should have received a copy of the GNU General Public License
10808 # along with this program; if not, write to the Free Software
10809 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10810 #
10811 # As a special exception to the GNU General Public License, if you
10812 # distribute this file as part of a program that contains a
10813 # configuration script generated by Autoconf, you may include it under
10814 # the same distribution terms that you use for the rest of that program.
10815
10816 # A sed program that does not truncate output.
10817 SED=$lt_SED
10818
10819 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10820 Xsed="$SED -e 1s/^X//"
10821
10822 # The HP-UX ksh and POSIX shell print the target directory to stdout
10823 # if CDPATH is set.
10824 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10825
10826 # The names of the tagged configurations supported by this script.
10827 available_tags=
10828
10829 # ### BEGIN LIBTOOL CONFIG
10830
10831 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10832
10833 # Shell to use when invoking shell scripts.
10834 SHELL=$lt_SHELL
10835
10836 # Whether or not to build shared libraries.
10837 build_libtool_libs=$enable_shared
10838
10839 # Whether or not to build static libraries.
10840 build_old_libs=$enable_static
10841
10842 # Whether or not to add -lc for building shared libraries.
10843 build_libtool_need_lc=$archive_cmds_need_lc
10844
10845 # Whether or not to disallow shared libs when runtime libs are static
10846 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10847
10848 # Whether or not to optimize for fast installation.
10849 fast_install=$enable_fast_install
10850
10851 # The host system.
10852 host_alias=$host_alias
10853 host=$host
10854 host_os=$host_os
10855
10856 # The build system.
10857 build_alias=$build_alias
10858 build=$build
10859 build_os=$build_os
10860
10861 # An echo program that does not interpret backslashes.
10862 echo=$lt_echo
10863
10864 # The archiver.
10865 AR=$lt_AR
10866 AR_FLAGS=$lt_AR_FLAGS
10867
10868 # A C compiler.
10869 LTCC=$lt_LTCC
10870
10871 # LTCC compiler flags.
10872 LTCFLAGS=$lt_LTCFLAGS
10873
10874 # A language-specific compiler.
10875 CC=$lt_compiler
10876
10877 # Is the compiler the GNU C compiler?
10878 with_gcc=$GCC
10879
10880 # An ERE matcher.
10881 EGREP=$lt_EGREP
10882
10883 # The linker used to build libraries.
10884 LD=$lt_LD
10885
10886 # Whether we need hard or soft links.
10887 LN_S=$lt_LN_S
10888
10889 # A BSD-compatible nm program.
10890 NM=$lt_NM
10891
10892 # A symbol stripping program
10893 STRIP=$lt_STRIP
10894
10895 # Used to examine libraries when file_magic_cmd begins "file"
10896 MAGIC_CMD=$MAGIC_CMD
10897
10898 # Used on cygwin: DLL creation program.
10899 DLLTOOL="$DLLTOOL"
10900
10901 # Used on cygwin: object dumper.
10902 OBJDUMP="$OBJDUMP"
10903
10904 # Used on cygwin: assembler.
10905 AS="$AS"
10906
10907 # The name of the directory that contains temporary libtool files.
10908 objdir=$objdir
10909
10910 # How to create reloadable object files.
10911 reload_flag=$lt_reload_flag
10912 reload_cmds=$lt_reload_cmds
10913
10914 # How to pass a linker flag through the compiler.
10915 wl=$lt_lt_prog_compiler_wl
10916
10917 # Object file suffix (normally "o").
10918 objext="$ac_objext"
10919
10920 # Old archive suffix (normally "a").
10921 libext="$libext"
10922
10923 # Shared library suffix (normally ".so").
10924 shrext_cmds='$shrext_cmds'
10925
10926 # Executable file suffix (normally "").
10927 exeext="$exeext"
10928
10929 # Additional compiler flags for building library objects.
10930 pic_flag=$lt_lt_prog_compiler_pic
10931 pic_mode=$pic_mode
10932
10933 # What is the maximum length of a command?
10934 max_cmd_len=$lt_cv_sys_max_cmd_len
10935
10936 # Does compiler simultaneously support -c and -o options?
10937 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10938
10939 # Must we lock files when doing compilation?
10940 need_locks=$lt_need_locks
10941
10942 # Do we need the lib prefix for modules?
10943 need_lib_prefix=$need_lib_prefix
10944
10945 # Do we need a version for libraries?
10946 need_version=$need_version
10947
10948 # Whether dlopen is supported.
10949 dlopen_support=$enable_dlopen
10950
10951 # Whether dlopen of programs is supported.
10952 dlopen_self=$enable_dlopen_self
10953
10954 # Whether dlopen of statically linked programs is supported.
10955 dlopen_self_static=$enable_dlopen_self_static
10956
10957 # Compiler flag to prevent dynamic linking.
10958 link_static_flag=$lt_lt_prog_compiler_static
10959
10960 # Compiler flag to turn off builtin functions.
10961 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10962
10963 # Compiler flag to allow reflexive dlopens.
10964 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10965
10966 # Compiler flag to generate shared objects directly from archives.
10967 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10968
10969 # Compiler flag to generate thread-safe objects.
10970 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10971
10972 # Library versioning type.
10973 version_type=$version_type
10974
10975 # Format of library name prefix.
10976 libname_spec=$lt_libname_spec
10977
10978 # List of archive names.  First name is the real one, the rest are links.
10979 # The last name is the one that the linker finds with -lNAME.
10980 library_names_spec=$lt_library_names_spec
10981
10982 # The coded name of the library, if different from the real name.
10983 soname_spec=$lt_soname_spec
10984
10985 # Commands used to build and install an old-style archive.
10986 RANLIB=$lt_RANLIB
10987 old_archive_cmds=$lt_old_archive_cmds
10988 old_postinstall_cmds=$lt_old_postinstall_cmds
10989 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10990
10991 # Create an old-style archive from a shared archive.
10992 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10993
10994 # Create a temporary old-style archive to link instead of a shared archive.
10995 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10996
10997 # Commands used to build and install a shared archive.
10998 archive_cmds=$lt_archive_cmds
10999 archive_expsym_cmds=$lt_archive_expsym_cmds
11000 postinstall_cmds=$lt_postinstall_cmds
11001 postuninstall_cmds=$lt_postuninstall_cmds
11002
11003 # Commands used to build a loadable module (assumed same as above if empty)
11004 module_cmds=$lt_module_cmds
11005 module_expsym_cmds=$lt_module_expsym_cmds
11006
11007 # Commands to strip libraries.
11008 old_striplib=$lt_old_striplib
11009 striplib=$lt_striplib
11010
11011 # Dependencies to place before the objects being linked to create a
11012 # shared library.
11013 predep_objects=$lt_predep_objects
11014
11015 # Dependencies to place after the objects being linked to create a
11016 # shared library.
11017 postdep_objects=$lt_postdep_objects
11018
11019 # Dependencies to place before the objects being linked to create a
11020 # shared library.
11021 predeps=$lt_predeps
11022
11023 # Dependencies to place after the objects being linked to create a
11024 # shared library.
11025 postdeps=$lt_postdeps
11026
11027 # The directories searched by this compiler when creating a shared
11028 # library
11029 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11030
11031 # The library search path used internally by the compiler when linking
11032 # a shared library.
11033 compiler_lib_search_path=$lt_compiler_lib_search_path
11034
11035 # Method to check whether dependent libraries are shared objects.
11036 deplibs_check_method=$lt_deplibs_check_method
11037
11038 # Command to use when deplibs_check_method == file_magic.
11039 file_magic_cmd=$lt_file_magic_cmd
11040
11041 # Flag that allows shared libraries with undefined symbols to be built.
11042 allow_undefined_flag=$lt_allow_undefined_flag
11043
11044 # Flag that forces no undefined symbols.
11045 no_undefined_flag=$lt_no_undefined_flag
11046
11047 # Commands used to finish a libtool library installation in a directory.
11048 finish_cmds=$lt_finish_cmds
11049
11050 # Same as above, but a single script fragment to be evaled but not shown.
11051 finish_eval=$lt_finish_eval
11052
11053 # Take the output of nm and produce a listing of raw symbols and C names.
11054 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11055
11056 # Transform the output of nm in a proper C declaration
11057 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11058
11059 # Transform the output of nm in a C name address pair
11060 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11061
11062 # This is the shared library runtime path variable.
11063 runpath_var=$runpath_var
11064
11065 # This is the shared library path variable.
11066 shlibpath_var=$shlibpath_var
11067
11068 # Is shlibpath searched before the hard-coded library search path?
11069 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11070
11071 # How to hardcode a shared library path into an executable.
11072 hardcode_action=$hardcode_action
11073
11074 # Whether we should hardcode library paths into libraries.
11075 hardcode_into_libs=$hardcode_into_libs
11076
11077 # Flag to hardcode \$libdir into a binary during linking.
11078 # This must work even if \$libdir does not exist.
11079 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11080
11081 # If ld is used when linking, flag to hardcode \$libdir into
11082 # a binary during linking. This must work even if \$libdir does
11083 # not exist.
11084 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11085
11086 # Whether we need a single -rpath flag with a separated argument.
11087 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11088
11089 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11090 # resulting binary.
11091 hardcode_direct=$hardcode_direct
11092
11093 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11094 # resulting binary.
11095 hardcode_minus_L=$hardcode_minus_L
11096
11097 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11098 # the resulting binary.
11099 hardcode_shlibpath_var=$hardcode_shlibpath_var
11100
11101 # Set to yes if building a shared library automatically hardcodes DIR into the library
11102 # and all subsequent libraries and executables linked against it.
11103 hardcode_automatic=$hardcode_automatic
11104
11105 # Variables whose values should be saved in libtool wrapper scripts and
11106 # restored at relink time.
11107 variables_saved_for_relink="$variables_saved_for_relink"
11108
11109 # Whether libtool must link a program against all its dependency libraries.
11110 link_all_deplibs=$link_all_deplibs
11111
11112 # Compile-time system search path for libraries
11113 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11114
11115 # Run-time system search path for libraries
11116 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11117
11118 # Fix the shell variable \$srcfile for the compiler.
11119 fix_srcfile_path=$lt_fix_srcfile_path
11120
11121 # Set to yes if exported symbols are required.
11122 always_export_symbols=$always_export_symbols
11123
11124 # The commands to list exported symbols.
11125 export_symbols_cmds=$lt_export_symbols_cmds
11126
11127 # The commands to extract the exported symbol list from a shared archive.
11128 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11129
11130 # Symbols that should not be listed in the preloaded symbols.
11131 exclude_expsyms=$lt_exclude_expsyms
11132
11133 # Symbols that must always be exported.
11134 include_expsyms=$lt_include_expsyms
11135
11136 # ### END LIBTOOL CONFIG
11137
11138 __EOF__
11139
11140
11141   case $host_os in
11142   aix3*)
11143     cat <<\EOF >> "$cfgfile"
11144
11145 # AIX sometimes has problems with the GCC collect2 program.  For some
11146 # reason, if we set the COLLECT_NAMES environment variable, the problems
11147 # vanish in a puff of smoke.
11148 if test "X${COLLECT_NAMES+set}" != Xset; then
11149   COLLECT_NAMES=
11150   export COLLECT_NAMES
11151 fi
11152 EOF
11153     ;;
11154   esac
11155
11156   # We use sed instead of cat because bash on DJGPP gets confused if
11157   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11158   # text mode, it properly converts lines to CR/LF.  This bash problem
11159   # is reportedly fixed, but why not run on old versions too?
11160   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11161
11162   mv -f "$cfgfile" "$ofile" || \
11163     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11164   chmod +x "$ofile"
11165
11166 else
11167   # If there is no Makefile yet, we rely on a make rule to execute
11168   # `config.status --recheck' to rerun these tests and create the
11169   # libtool script then.
11170   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11171   if test -f "$ltmain_in"; then
11172     test -f Makefile && make "$ltmain"
11173   fi
11174 fi
11175
11176
11177 ac_ext=c
11178 ac_cpp='$CPP $CPPFLAGS'
11179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11182
11183 CC="$lt_save_CC"
11184
11185
11186 # Check whether --with-tags was given.
11187 if test "${with_tags+set}" = set; then
11188   withval=$with_tags; tagnames="$withval"
11189 fi
11190
11191
11192 if test -f "$ltmain" && test -n "$tagnames"; then
11193   if test ! -f "${ofile}"; then
11194     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11195 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11196   fi
11197
11198   if test -z "$LTCC"; then
11199     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11200     if test -z "$LTCC"; then
11201       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11202 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11203     else
11204       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11205 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11206     fi
11207   fi
11208   if test -z "$LTCFLAGS"; then
11209     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11210   fi
11211
11212   # Extract list of available tagged configurations in $ofile.
11213   # Note that this assumes the entire list is on one line.
11214   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11215
11216   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11217   for tagname in $tagnames; do
11218     IFS="$lt_save_ifs"
11219     # Check whether tagname contains only valid characters
11220     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11221     "") ;;
11222     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11223 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11224    { (exit 1); exit 1; }; }
11225         ;;
11226     esac
11227
11228     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11229     then
11230       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11231 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11232    { (exit 1); exit 1; }; }
11233     fi
11234
11235     # Update the list of available tags.
11236     if test -n "$tagname"; then
11237       echo appending configuration tag \"$tagname\" to $ofile
11238
11239       case $tagname in
11240       CXX)
11241         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11242             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11243             (test "X$CXX" != "Xg++"))) ; then
11244           ac_ext=cpp
11245 ac_cpp='$CXXCPP $CPPFLAGS'
11246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11249
11250
11251
11252
11253 archive_cmds_need_lc_CXX=no
11254 allow_undefined_flag_CXX=
11255 always_export_symbols_CXX=no
11256 archive_expsym_cmds_CXX=
11257 export_dynamic_flag_spec_CXX=
11258 hardcode_direct_CXX=no
11259 hardcode_libdir_flag_spec_CXX=
11260 hardcode_libdir_flag_spec_ld_CXX=
11261 hardcode_libdir_separator_CXX=
11262 hardcode_minus_L_CXX=no
11263 hardcode_shlibpath_var_CXX=unsupported
11264 hardcode_automatic_CXX=no
11265 module_cmds_CXX=
11266 module_expsym_cmds_CXX=
11267 link_all_deplibs_CXX=unknown
11268 old_archive_cmds_CXX=$old_archive_cmds
11269 no_undefined_flag_CXX=
11270 whole_archive_flag_spec_CXX=
11271 enable_shared_with_static_runtimes_CXX=no
11272
11273 # Dependencies to place before and after the object being linked:
11274 predep_objects_CXX=
11275 postdep_objects_CXX=
11276 predeps_CXX=
11277 postdeps_CXX=
11278 compiler_lib_search_path_CXX=
11279 compiler_lib_search_dirs_CXX=
11280
11281 # Source file extension for C++ test sources.
11282 ac_ext=cpp
11283
11284 # Object file extension for compiled C++ test sources.
11285 objext=o
11286 objext_CXX=$objext
11287
11288 # Code to be used in simple compile tests
11289 lt_simple_compile_test_code="int some_variable = 0;"
11290
11291 # Code to be used in simple link tests
11292 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11293
11294 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11295
11296 # If no C compiler was specified, use CC.
11297 LTCC=${LTCC-"$CC"}
11298
11299 # If no C compiler flags were specified, use CFLAGS.
11300 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11301
11302 # Allow CC to be a program name with arguments.
11303 compiler=$CC
11304
11305
11306 # save warnings/boilerplate of simple test code
11307 ac_outfile=conftest.$ac_objext
11308 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11309 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11310 _lt_compiler_boilerplate=`cat conftest.err`
11311 $rm conftest*
11312
11313 ac_outfile=conftest.$ac_objext
11314 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11315 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11316 _lt_linker_boilerplate=`cat conftest.err`
11317 $rm -r conftest*
11318
11319
11320 # Allow CC to be a program name with arguments.
11321 lt_save_CC=$CC
11322 lt_save_LD=$LD
11323 lt_save_GCC=$GCC
11324 GCC=$GXX
11325 lt_save_with_gnu_ld=$with_gnu_ld
11326 lt_save_path_LD=$lt_cv_path_LD
11327 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11328   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11329 else
11330   $as_unset lt_cv_prog_gnu_ld
11331 fi
11332 if test -n "${lt_cv_path_LDCXX+set}"; then
11333   lt_cv_path_LD=$lt_cv_path_LDCXX
11334 else
11335   $as_unset lt_cv_path_LD
11336 fi
11337 test -z "${LDCXX+set}" || LD=$LDCXX
11338 CC=${CXX-"c++"}
11339 compiler=$CC
11340 compiler_CXX=$CC
11341 for cc_temp in $compiler""; do
11342   case $cc_temp in
11343     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11344     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11345     \-*) ;;
11346     *) break;;
11347   esac
11348 done
11349 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11350
11351
11352 # We don't want -fno-exception wen compiling C++ code, so set the
11353 # no_builtin_flag separately
11354 if test "$GXX" = yes; then
11355   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11356 else
11357   lt_prog_compiler_no_builtin_flag_CXX=
11358 fi
11359
11360 if test "$GXX" = yes; then
11361   # Set up default GNU C++ configuration
11362
11363
11364 # Check whether --with-gnu-ld was given.
11365 if test "${with_gnu_ld+set}" = set; then
11366   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11367 else
11368   with_gnu_ld=no
11369 fi
11370
11371 ac_prog=ld
11372 if test "$GCC" = yes; then
11373   # Check if gcc -print-prog-name=ld gives a path.
11374   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11375 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11376   case $host in
11377   *-*-mingw*)
11378     # gcc leaves a trailing carriage return which upsets mingw
11379     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11380   *)
11381     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11382   esac
11383   case $ac_prog in
11384     # Accept absolute paths.
11385     [\\/]* | ?:[\\/]*)
11386       re_direlt='/[^/][^/]*/\.\./'
11387       # Canonicalize the pathname of ld
11388       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11389       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11390         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11391       done
11392       test -z "$LD" && LD="$ac_prog"
11393       ;;
11394   "")
11395     # If it fails, then pretend we aren't using GCC.
11396     ac_prog=ld
11397     ;;
11398   *)
11399     # If it is relative, then search for the first ld in PATH.
11400     with_gnu_ld=unknown
11401     ;;
11402   esac
11403 elif test "$with_gnu_ld" = yes; then
11404   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11405 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11406 else
11407   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11408 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11409 fi
11410 if test "${lt_cv_path_LD+set}" = set; then
11411   echo $ECHO_N "(cached) $ECHO_C" >&6
11412 else
11413   if test -z "$LD"; then
11414   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11415   for ac_dir in $PATH; do
11416     IFS="$lt_save_ifs"
11417     test -z "$ac_dir" && ac_dir=.
11418     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11419       lt_cv_path_LD="$ac_dir/$ac_prog"
11420       # Check to see if the program is GNU ld.  I'd rather use --version,
11421       # but apparently some variants of GNU ld only accept -v.
11422       # Break only if it was the GNU/non-GNU ld that we prefer.
11423       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11424       *GNU* | *'with BFD'*)
11425         test "$with_gnu_ld" != no && break
11426         ;;
11427       *)
11428         test "$with_gnu_ld" != yes && break
11429         ;;
11430       esac
11431     fi
11432   done
11433   IFS="$lt_save_ifs"
11434 else
11435   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11436 fi
11437 fi
11438
11439 LD="$lt_cv_path_LD"
11440 if test -n "$LD"; then
11441   { echo "$as_me:$LINENO: result: $LD" >&5
11442 echo "${ECHO_T}$LD" >&6; }
11443 else
11444   { echo "$as_me:$LINENO: result: no" >&5
11445 echo "${ECHO_T}no" >&6; }
11446 fi
11447 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11448 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11449    { (exit 1); exit 1; }; }
11450 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11451 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11452 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11453   echo $ECHO_N "(cached) $ECHO_C" >&6
11454 else
11455   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11456 case `$LD -v 2>&1 </dev/null` in
11457 *GNU* | *'with BFD'*)
11458   lt_cv_prog_gnu_ld=yes
11459   ;;
11460 *)
11461   lt_cv_prog_gnu_ld=no
11462   ;;
11463 esac
11464 fi
11465 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11466 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11467 with_gnu_ld=$lt_cv_prog_gnu_ld
11468
11469
11470
11471   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11472   # archiving commands below assume that GNU ld is being used.
11473   if test "$with_gnu_ld" = yes; then
11474     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11475     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'
11476
11477     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11478     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11479
11480     # If archive_cmds runs LD, not CC, wlarc should be empty
11481     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11482     #     investigate it a little bit more. (MM)
11483     wlarc='${wl}'
11484
11485     # ancient GNU ld didn't support --whole-archive et. al.
11486     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11487         grep 'no-whole-archive' > /dev/null; then
11488       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11489     else
11490       whole_archive_flag_spec_CXX=
11491     fi
11492   else
11493     with_gnu_ld=no
11494     wlarc=
11495
11496     # A generic and very simple default shared library creation
11497     # command for GNU C++ for the case where it uses the native
11498     # linker, instead of GNU ld.  If possible, this setting should
11499     # overridden to take advantage of the native linker features on
11500     # the platform it is being used on.
11501     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11502   fi
11503
11504   # Commands to make compiler produce verbose output that lists
11505   # what "hidden" libraries, object files and flags are used when
11506   # linking a shared library.
11507   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11508
11509 else
11510   GXX=no
11511   with_gnu_ld=no
11512   wlarc=
11513 fi
11514
11515 # PORTME: fill in a description of your system's C++ link characteristics
11516 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11517 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11518 ld_shlibs_CXX=yes
11519 case $host_os in
11520   aix3*)
11521     # FIXME: insert proper C++ library support
11522     ld_shlibs_CXX=no
11523     ;;
11524   aix[4-9]*)
11525     if test "$host_cpu" = ia64; then
11526       # On IA64, the linker does run time linking by default, so we don't
11527       # have to do anything special.
11528       aix_use_runtimelinking=no
11529       exp_sym_flag='-Bexport'
11530       no_entry_flag=""
11531     else
11532       aix_use_runtimelinking=no
11533
11534       # Test if we are trying to use run time linking or normal
11535       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11536       # need to do runtime linking.
11537       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11538         for ld_flag in $LDFLAGS; do
11539           case $ld_flag in
11540           *-brtl*)
11541             aix_use_runtimelinking=yes
11542             break
11543             ;;
11544           esac
11545         done
11546         ;;
11547       esac
11548
11549       exp_sym_flag='-bexport'
11550       no_entry_flag='-bnoentry'
11551     fi
11552
11553     # When large executables or shared objects are built, AIX ld can
11554     # have problems creating the table of contents.  If linking a library
11555     # or program results in "error TOC overflow" add -mminimal-toc to
11556     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11557     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11558
11559     archive_cmds_CXX=''
11560     hardcode_direct_CXX=yes
11561     hardcode_libdir_separator_CXX=':'
11562     link_all_deplibs_CXX=yes
11563
11564     if test "$GXX" = yes; then
11565       case $host_os in aix4.[012]|aix4.[012].*)
11566       # We only want to do this on AIX 4.2 and lower, the check
11567       # below for broken collect2 doesn't work under 4.3+
11568         collect2name=`${CC} -print-prog-name=collect2`
11569         if test -f "$collect2name" && \
11570            strings "$collect2name" | grep resolve_lib_name >/dev/null
11571         then
11572           # We have reworked collect2
11573           :
11574         else
11575           # We have old collect2
11576           hardcode_direct_CXX=unsupported
11577           # It fails to find uninstalled libraries when the uninstalled
11578           # path is not listed in the libpath.  Setting hardcode_minus_L
11579           # to unsupported forces relinking
11580           hardcode_minus_L_CXX=yes
11581           hardcode_libdir_flag_spec_CXX='-L$libdir'
11582           hardcode_libdir_separator_CXX=
11583         fi
11584         ;;
11585       esac
11586       shared_flag='-shared'
11587       if test "$aix_use_runtimelinking" = yes; then
11588         shared_flag="$shared_flag "'${wl}-G'
11589       fi
11590     else
11591       # not using gcc
11592       if test "$host_cpu" = ia64; then
11593         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11594         # chokes on -Wl,-G. The following line is correct:
11595         shared_flag='-G'
11596       else
11597         if test "$aix_use_runtimelinking" = yes; then
11598           shared_flag='${wl}-G'
11599         else
11600           shared_flag='${wl}-bM:SRE'
11601         fi
11602       fi
11603     fi
11604
11605     # It seems that -bexpall does not export symbols beginning with
11606     # underscore (_), so it is better to generate a list of symbols to export.
11607     always_export_symbols_CXX=yes
11608     if test "$aix_use_runtimelinking" = yes; then
11609       # Warning - without using the other runtime loading flags (-brtl),
11610       # -berok will link without error, but may produce a broken library.
11611       allow_undefined_flag_CXX='-berok'
11612       # Determine the default libpath from the value encoded in an empty executable.
11613       cat >conftest.$ac_ext <<_ACEOF
11614 /* confdefs.h.  */
11615 _ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h.  */
11619
11620 int
11621 main ()
11622 {
11623
11624   ;
11625   return 0;
11626 }
11627 _ACEOF
11628 rm -f conftest.$ac_objext conftest$ac_exeext
11629 if { (ac_try="$ac_link"
11630 case "(($ac_try" in
11631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632   *) ac_try_echo=$ac_try;;
11633 esac
11634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11635   (eval "$ac_link") 2>conftest.er1
11636   ac_status=$?
11637   grep -v '^ *+' conftest.er1 >conftest.err
11638   rm -f conftest.er1
11639   cat conftest.err >&5
11640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641   (exit $ac_status); } && {
11642          test -z "$ac_cxx_werror_flag" ||
11643          test ! -s conftest.err
11644        } && test -s conftest$ac_exeext &&
11645        $as_test_x conftest$ac_exeext; then
11646
11647 lt_aix_libpath_sed='
11648     /Import File Strings/,/^$/ {
11649         /^0/ {
11650             s/^0  *\(.*\)$/\1/
11651             p
11652         }
11653     }'
11654 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11655 # Check for a 64-bit object if we didn't find anything.
11656 if test -z "$aix_libpath"; then
11657   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11658 fi
11659 else
11660   echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11662
11663
11664 fi
11665
11666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11667       conftest$ac_exeext conftest.$ac_ext
11668 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11669
11670       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11671
11672       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"
11673      else
11674       if test "$host_cpu" = ia64; then
11675         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11676         allow_undefined_flag_CXX="-z nodefs"
11677         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"
11678       else
11679         # Determine the default libpath from the value encoded in an empty executable.
11680         cat >conftest.$ac_ext <<_ACEOF
11681 /* confdefs.h.  */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h.  */
11686
11687 int
11688 main ()
11689 {
11690
11691   ;
11692   return 0;
11693 }
11694 _ACEOF
11695 rm -f conftest.$ac_objext conftest$ac_exeext
11696 if { (ac_try="$ac_link"
11697 case "(($ac_try" in
11698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11699   *) ac_try_echo=$ac_try;;
11700 esac
11701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11702   (eval "$ac_link") 2>conftest.er1
11703   ac_status=$?
11704   grep -v '^ *+' conftest.er1 >conftest.err
11705   rm -f conftest.er1
11706   cat conftest.err >&5
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); } && {
11709          test -z "$ac_cxx_werror_flag" ||
11710          test ! -s conftest.err
11711        } && test -s conftest$ac_exeext &&
11712        $as_test_x conftest$ac_exeext; then
11713
11714 lt_aix_libpath_sed='
11715     /Import File Strings/,/^$/ {
11716         /^0/ {
11717             s/^0  *\(.*\)$/\1/
11718             p
11719         }
11720     }'
11721 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11722 # Check for a 64-bit object if we didn't find anything.
11723 if test -z "$aix_libpath"; then
11724   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11725 fi
11726 else
11727   echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11729
11730
11731 fi
11732
11733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11734       conftest$ac_exeext conftest.$ac_ext
11735 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11736
11737         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11738         # Warning - without using the other run time loading flags,
11739         # -berok will link without error, but may produce a broken library.
11740         no_undefined_flag_CXX=' ${wl}-bernotok'
11741         allow_undefined_flag_CXX=' ${wl}-berok'
11742         # Exported symbols can be pulled into shared objects from archives
11743         whole_archive_flag_spec_CXX='$convenience'
11744         archive_cmds_need_lc_CXX=yes
11745         # This is similar to how AIX traditionally builds its shared libraries.
11746         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'
11747       fi
11748     fi
11749     ;;
11750
11751   beos*)
11752     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11753       allow_undefined_flag_CXX=unsupported
11754       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11755       # support --undefined.  This deserves some investigation.  FIXME
11756       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11757     else
11758       ld_shlibs_CXX=no
11759     fi
11760     ;;
11761
11762   chorus*)
11763     case $cc_basename in
11764       *)
11765         # FIXME: insert proper C++ library support
11766         ld_shlibs_CXX=no
11767         ;;
11768     esac
11769     ;;
11770
11771   cygwin* | mingw* | pw32*)
11772     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11773     # as there is no search path for DLLs.
11774     hardcode_libdir_flag_spec_CXX='-L$libdir'
11775     allow_undefined_flag_CXX=unsupported
11776     always_export_symbols_CXX=no
11777     enable_shared_with_static_runtimes_CXX=yes
11778
11779     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11780       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'
11781       # If the export-symbols file already is a .def file (1st line
11782       # is EXPORTS), use it as is; otherwise, prepend...
11783       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11784         cp $export_symbols $output_objdir/$soname.def;
11785       else
11786         echo EXPORTS > $output_objdir/$soname.def;
11787         cat $export_symbols >> $output_objdir/$soname.def;
11788       fi~
11789       $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'
11790     else
11791       ld_shlibs_CXX=no
11792     fi
11793   ;;
11794       darwin* | rhapsody*)
11795       archive_cmds_need_lc_CXX=no
11796       hardcode_direct_CXX=no
11797       hardcode_automatic_CXX=yes
11798       hardcode_shlibpath_var_CXX=unsupported
11799       whole_archive_flag_spec_CXX=''
11800       link_all_deplibs_CXX=yes
11801       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11802       if test "$GXX" = yes ; then
11803       output_verbose_link_cmd='echo'
11804       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11805       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11806       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11807       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11808       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11809         archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11810         archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11811       fi
11812       else
11813       case $cc_basename in
11814         xlc*)
11815          output_verbose_link_cmd='echo'
11816           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11817           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11818           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11819           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11820           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}'
11821           ;;
11822        *)
11823          ld_shlibs_CXX=no
11824           ;;
11825       esac
11826       fi
11827         ;;
11828
11829   dgux*)
11830     case $cc_basename in
11831       ec++*)
11832         # FIXME: insert proper C++ library support
11833         ld_shlibs_CXX=no
11834         ;;
11835       ghcx*)
11836         # Green Hills C++ Compiler
11837         # FIXME: insert proper C++ library support
11838         ld_shlibs_CXX=no
11839         ;;
11840       *)
11841         # FIXME: insert proper C++ library support
11842         ld_shlibs_CXX=no
11843         ;;
11844     esac
11845     ;;
11846   freebsd[12]*)
11847     # C++ shared libraries reported to be fairly broken before switch to ELF
11848     ld_shlibs_CXX=no
11849     ;;
11850   freebsd-elf*)
11851     archive_cmds_need_lc_CXX=no
11852     ;;
11853   freebsd* | dragonfly*)
11854     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11855     # conventions
11856     ld_shlibs_CXX=yes
11857     ;;
11858   gnu*)
11859     ;;
11860   hpux9*)
11861     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11862     hardcode_libdir_separator_CXX=:
11863     export_dynamic_flag_spec_CXX='${wl}-E'
11864     hardcode_direct_CXX=yes
11865     hardcode_minus_L_CXX=yes # Not in the search PATH,
11866                                 # but as the default
11867                                 # location of the library.
11868
11869     case $cc_basename in
11870     CC*)
11871       # FIXME: insert proper C++ library support
11872       ld_shlibs_CXX=no
11873       ;;
11874     aCC*)
11875       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'
11876       # Commands to make compiler produce verbose output that lists
11877       # what "hidden" libraries, object files and flags are used when
11878       # linking a shared library.
11879       #
11880       # There doesn't appear to be a way to prevent this compiler from
11881       # explicitly linking system object files so we need to strip them
11882       # from the output so that they don't get included in the library
11883       # dependencies.
11884       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'
11885       ;;
11886     *)
11887       if test "$GXX" = yes; then
11888         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'
11889       else
11890         # FIXME: insert proper C++ library support
11891         ld_shlibs_CXX=no
11892       fi
11893       ;;
11894     esac
11895     ;;
11896   hpux10*|hpux11*)
11897     if test $with_gnu_ld = no; then
11898       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11899       hardcode_libdir_separator_CXX=:
11900
11901       case $host_cpu in
11902       hppa*64*|ia64*) ;;
11903       *)
11904         export_dynamic_flag_spec_CXX='${wl}-E'
11905         ;;
11906       esac
11907     fi
11908     case $host_cpu in
11909     hppa*64*|ia64*)
11910       hardcode_direct_CXX=no
11911       hardcode_shlibpath_var_CXX=no
11912       ;;
11913     *)
11914       hardcode_direct_CXX=yes
11915       hardcode_minus_L_CXX=yes # Not in the search PATH,
11916                                               # but as the default
11917                                               # location of the library.
11918       ;;
11919     esac
11920
11921     case $cc_basename in
11922       CC*)
11923         # FIXME: insert proper C++ library support
11924         ld_shlibs_CXX=no
11925         ;;
11926       aCC*)
11927         case $host_cpu in
11928         hppa*64*)
11929           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11930           ;;
11931         ia64*)
11932           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11933           ;;
11934         *)
11935           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11936           ;;
11937         esac
11938         # Commands to make compiler produce verbose output that lists
11939         # what "hidden" libraries, object files and flags are used when
11940         # linking a shared library.
11941         #
11942         # There doesn't appear to be a way to prevent this compiler from
11943         # explicitly linking system object files so we need to strip them
11944         # from the output so that they don't get included in the library
11945         # dependencies.
11946         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'
11947         ;;
11948       *)
11949         if test "$GXX" = yes; then
11950           if test $with_gnu_ld = no; then
11951             case $host_cpu in
11952             hppa*64*)
11953               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11954               ;;
11955             ia64*)
11956               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11957               ;;
11958             *)
11959               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'
11960               ;;
11961             esac
11962           fi
11963         else
11964           # FIXME: insert proper C++ library support
11965           ld_shlibs_CXX=no
11966         fi
11967         ;;
11968     esac
11969     ;;
11970   interix[3-9]*)
11971     hardcode_direct_CXX=no
11972     hardcode_shlibpath_var_CXX=no
11973     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11974     export_dynamic_flag_spec_CXX='${wl}-E'
11975     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11976     # Instead, shared libraries are loaded at an image base (0x10000000 by
11977     # default) and relocated if they conflict, which is a slow very memory
11978     # consuming and fragmenting process.  To avoid this, we pick a random,
11979     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11980     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11981     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'
11982     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'
11983     ;;
11984   irix5* | irix6*)
11985     case $cc_basename in
11986       CC*)
11987         # SGI C++
11988         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'
11989
11990         # Archives containing C++ object files must be created using
11991         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11992         # necessary to make sure instantiated templates are included
11993         # in the archive.
11994         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11995         ;;
11996       *)
11997         if test "$GXX" = yes; then
11998           if test "$with_gnu_ld" = no; then
11999             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'
12000           else
12001             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'
12002           fi
12003         fi
12004         link_all_deplibs_CXX=yes
12005         ;;
12006     esac
12007     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12008     hardcode_libdir_separator_CXX=:
12009     ;;
12010   linux* | k*bsd*-gnu)
12011     case $cc_basename in
12012       KCC*)
12013         # Kuck and Associates, Inc. (KAI) C++ Compiler
12014
12015         # KCC will only create a shared library if the output file
12016         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12017         # to its proper name (with version) after linking.
12018         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'
12019         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'
12020         # Commands to make compiler produce verbose output that lists
12021         # what "hidden" libraries, object files and flags are used when
12022         # linking a shared library.
12023         #
12024         # There doesn't appear to be a way to prevent this compiler from
12025         # explicitly linking system object files so we need to strip them
12026         # from the output so that they don't get included in the library
12027         # dependencies.
12028         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'
12029
12030         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12031         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12032
12033         # Archives containing C++ object files must be created using
12034         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12035         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12036         ;;
12037       icpc*)
12038         # Intel C++
12039         with_gnu_ld=yes
12040         # version 8.0 and above of icpc choke on multiply defined symbols
12041         # if we add $predep_objects and $postdep_objects, however 7.1 and
12042         # earlier do not add the objects themselves.
12043         case `$CC -V 2>&1` in
12044         *"Version 7."*)
12045           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12046           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'
12047           ;;
12048         *)  # Version 8.0 or newer
12049           tmp_idyn=
12050           case $host_cpu in
12051             ia64*) tmp_idyn=' -i_dynamic';;
12052           esac
12053           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12054           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'
12055           ;;
12056         esac
12057         archive_cmds_need_lc_CXX=no
12058         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12059         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12060         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12061         ;;
12062       pgCC* | pgcpp*)
12063         # Portland Group C++ compiler
12064         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12065         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'
12066
12067         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12068         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12069         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'
12070         ;;
12071       cxx*)
12072         # Compaq C++
12073         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12074         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'
12075
12076         runpath_var=LD_RUN_PATH
12077         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12078         hardcode_libdir_separator_CXX=:
12079
12080         # Commands to make compiler produce verbose output that lists
12081         # what "hidden" libraries, object files and flags are used when
12082         # linking a shared library.
12083         #
12084         # There doesn't appear to be a way to prevent this compiler from
12085         # explicitly linking system object files so we need to strip them
12086         # from the output so that they don't get included in the library
12087         # dependencies.
12088         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'
12089         ;;
12090       *)
12091         case `$CC -V 2>&1 | sed 5q` in
12092         *Sun\ C*)
12093           # Sun C++ 5.9
12094           no_undefined_flag_CXX=' -zdefs'
12095           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12096           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12097           hardcode_libdir_flag_spec_CXX='-R$libdir'
12098           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12099
12100           # Not sure whether something based on
12101           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12102           # would be better.
12103           output_verbose_link_cmd='echo'
12104
12105           # Archives containing C++ object files must be created using
12106           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12107           # necessary to make sure instantiated templates are included
12108           # in the archive.
12109           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12110           ;;
12111         esac
12112         ;;
12113     esac
12114     ;;
12115   lynxos*)
12116     # FIXME: insert proper C++ library support
12117     ld_shlibs_CXX=no
12118     ;;
12119   m88k*)
12120     # FIXME: insert proper C++ library support
12121     ld_shlibs_CXX=no
12122     ;;
12123   mvs*)
12124     case $cc_basename in
12125       cxx*)
12126         # FIXME: insert proper C++ library support
12127         ld_shlibs_CXX=no
12128         ;;
12129       *)
12130         # FIXME: insert proper C++ library support
12131         ld_shlibs_CXX=no
12132         ;;
12133     esac
12134     ;;
12135   netbsd* | netbsdelf*-gnu)
12136     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12137       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12138       wlarc=
12139       hardcode_libdir_flag_spec_CXX='-R$libdir'
12140       hardcode_direct_CXX=yes
12141       hardcode_shlibpath_var_CXX=no
12142     fi
12143     # Workaround some broken pre-1.5 toolchains
12144     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12145     ;;
12146   openbsd2*)
12147     # C++ shared libraries are fairly broken
12148     ld_shlibs_CXX=no
12149     ;;
12150   openbsd*)
12151     if test -f /usr/libexec/ld.so; then
12152       hardcode_direct_CXX=yes
12153       hardcode_shlibpath_var_CXX=no
12154       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12155       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12156       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12157         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12158         export_dynamic_flag_spec_CXX='${wl}-E'
12159         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12160       fi
12161       output_verbose_link_cmd='echo'
12162     else
12163       ld_shlibs_CXX=no
12164     fi
12165     ;;
12166   osf3*)
12167     case $cc_basename in
12168       KCC*)
12169         # Kuck and Associates, Inc. (KAI) C++ Compiler
12170
12171         # KCC will only create a shared library if the output file
12172         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12173         # to its proper name (with version) after linking.
12174         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'
12175
12176         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12177         hardcode_libdir_separator_CXX=:
12178
12179         # Archives containing C++ object files must be created using
12180         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12181         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12182
12183         ;;
12184       RCC*)
12185         # Rational C++ 2.4.1
12186         # FIXME: insert proper C++ library support
12187         ld_shlibs_CXX=no
12188         ;;
12189       cxx*)
12190         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12191         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'
12192
12193         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12194         hardcode_libdir_separator_CXX=:
12195
12196         # Commands to make compiler produce verbose output that lists
12197         # what "hidden" libraries, object files and flags are used when
12198         # linking a shared library.
12199         #
12200         # There doesn't appear to be a way to prevent this compiler from
12201         # explicitly linking system object files so we need to strip them
12202         # from the output so that they don't get included in the library
12203         # dependencies.
12204         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'
12205         ;;
12206       *)
12207         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12208           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12209           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'
12210
12211           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12212           hardcode_libdir_separator_CXX=:
12213
12214           # Commands to make compiler produce verbose output that lists
12215           # what "hidden" libraries, object files and flags are used when
12216           # linking a shared library.
12217           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12218
12219         else
12220           # FIXME: insert proper C++ library support
12221           ld_shlibs_CXX=no
12222         fi
12223         ;;
12224     esac
12225     ;;
12226   osf4* | osf5*)
12227     case $cc_basename in
12228       KCC*)
12229         # Kuck and Associates, Inc. (KAI) C++ Compiler
12230
12231         # KCC will only create a shared library if the output file
12232         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12233         # to its proper name (with version) after linking.
12234         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'
12235
12236         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12237         hardcode_libdir_separator_CXX=:
12238
12239         # Archives containing C++ object files must be created using
12240         # the KAI C++ compiler.
12241         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12242         ;;
12243       RCC*)
12244         # Rational C++ 2.4.1
12245         # FIXME: insert proper C++ library support
12246         ld_shlibs_CXX=no
12247         ;;
12248       cxx*)
12249         allow_undefined_flag_CXX=' -expect_unresolved \*'
12250         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'
12251         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12252           echo "-hidden">> $lib.exp~
12253           $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~
12254           $rm $lib.exp'
12255
12256         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12257         hardcode_libdir_separator_CXX=:
12258
12259         # Commands to make compiler produce verbose output that lists
12260         # what "hidden" libraries, object files and flags are used when
12261         # linking a shared library.
12262         #
12263         # There doesn't appear to be a way to prevent this compiler from
12264         # explicitly linking system object files so we need to strip them
12265         # from the output so that they don't get included in the library
12266         # dependencies.
12267         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'
12268         ;;
12269       *)
12270         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12271           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12272          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'
12273
12274           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12275           hardcode_libdir_separator_CXX=:
12276
12277           # Commands to make compiler produce verbose output that lists
12278           # what "hidden" libraries, object files and flags are used when
12279           # linking a shared library.
12280           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12281
12282         else
12283           # FIXME: insert proper C++ library support
12284           ld_shlibs_CXX=no
12285         fi
12286         ;;
12287     esac
12288     ;;
12289   psos*)
12290     # FIXME: insert proper C++ library support
12291     ld_shlibs_CXX=no
12292     ;;
12293   sunos4*)
12294     case $cc_basename in
12295       CC*)
12296         # Sun C++ 4.x
12297         # FIXME: insert proper C++ library support
12298         ld_shlibs_CXX=no
12299         ;;
12300       lcc*)
12301         # Lucid
12302         # FIXME: insert proper C++ library support
12303         ld_shlibs_CXX=no
12304         ;;
12305       *)
12306         # FIXME: insert proper C++ library support
12307         ld_shlibs_CXX=no
12308         ;;
12309     esac
12310     ;;
12311   solaris*)
12312     case $cc_basename in
12313       CC*)
12314         # Sun C++ 4.2, 5.x and Centerline C++
12315         archive_cmds_need_lc_CXX=yes
12316         no_undefined_flag_CXX=' -zdefs'
12317         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12318         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12319         $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'
12320
12321         hardcode_libdir_flag_spec_CXX='-R$libdir'
12322         hardcode_shlibpath_var_CXX=no
12323         case $host_os in
12324           solaris2.[0-5] | solaris2.[0-5].*) ;;
12325           *)
12326             # The compiler driver will combine and reorder linker options,
12327             # but understands `-z linker_flag'.
12328             # Supported since Solaris 2.6 (maybe 2.5.1?)
12329             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12330             ;;
12331         esac
12332         link_all_deplibs_CXX=yes
12333
12334         output_verbose_link_cmd='echo'
12335
12336         # Archives containing C++ object files must be created using
12337         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12338         # necessary to make sure instantiated templates are included
12339         # in the archive.
12340         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12341         ;;
12342       gcx*)
12343         # Green Hills C++ Compiler
12344         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12345
12346         # The C++ compiler must be used to create the archive.
12347         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12348         ;;
12349       *)
12350         # GNU C++ compiler with Solaris linker
12351         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12352           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12353           if $CC --version | grep -v '^2\.7' > /dev/null; then
12354             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12355             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12356                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12357
12358             # Commands to make compiler produce verbose output that lists
12359             # what "hidden" libraries, object files and flags are used when
12360             # linking a shared library.
12361             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12362           else
12363             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12364             # platform.
12365             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12366             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12367                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12368
12369             # Commands to make compiler produce verbose output that lists
12370             # what "hidden" libraries, object files and flags are used when
12371             # linking a shared library.
12372             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12373           fi
12374
12375           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12376           case $host_os in
12377           solaris2.[0-5] | solaris2.[0-5].*) ;;
12378           *)
12379             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12380             ;;
12381           esac
12382         fi
12383         ;;
12384     esac
12385     ;;
12386   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12387     no_undefined_flag_CXX='${wl}-z,text'
12388     archive_cmds_need_lc_CXX=no
12389     hardcode_shlibpath_var_CXX=no
12390     runpath_var='LD_RUN_PATH'
12391
12392     case $cc_basename in
12393       CC*)
12394         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12395         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12396         ;;
12397       *)
12398         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12399         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12400         ;;
12401     esac
12402     ;;
12403   sysv5* | sco3.2v5* | sco5v6*)
12404     # Note: We can NOT use -z defs as we might desire, because we do not
12405     # link with -lc, and that would cause any symbols used from libc to
12406     # always be unresolved, which means just about no library would
12407     # ever link correctly.  If we're not using GNU ld we use -z text
12408     # though, which does catch some bad symbols but isn't as heavy-handed
12409     # as -z defs.
12410     # For security reasons, it is highly recommended that you always
12411     # use absolute paths for naming shared libraries, and exclude the
12412     # DT_RUNPATH tag from executables and libraries.  But doing so
12413     # requires that you compile everything twice, which is a pain.
12414     # So that behaviour is only enabled if SCOABSPATH is set to a
12415     # non-empty value in the environment.  Most likely only useful for
12416     # creating official distributions of packages.
12417     # This is a hack until libtool officially supports absolute path
12418     # names for shared libraries.
12419     no_undefined_flag_CXX='${wl}-z,text'
12420     allow_undefined_flag_CXX='${wl}-z,nodefs'
12421     archive_cmds_need_lc_CXX=no
12422     hardcode_shlibpath_var_CXX=no
12423     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12424     hardcode_libdir_separator_CXX=':'
12425     link_all_deplibs_CXX=yes
12426     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12427     runpath_var='LD_RUN_PATH'
12428
12429     case $cc_basename in
12430       CC*)
12431         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12432         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12433         ;;
12434       *)
12435         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12436         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12437         ;;
12438     esac
12439     ;;
12440   tandem*)
12441     case $cc_basename in
12442       NCC*)
12443         # NonStop-UX NCC 3.20
12444         # FIXME: insert proper C++ library support
12445         ld_shlibs_CXX=no
12446         ;;
12447       *)
12448         # FIXME: insert proper C++ library support
12449         ld_shlibs_CXX=no
12450         ;;
12451     esac
12452     ;;
12453   vxworks*)
12454     # FIXME: insert proper C++ library support
12455     ld_shlibs_CXX=no
12456     ;;
12457   *)
12458     # FIXME: insert proper C++ library support
12459     ld_shlibs_CXX=no
12460     ;;
12461 esac
12462 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12463 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12464 test "$ld_shlibs_CXX" = no && can_build_shared=no
12465
12466 GCC_CXX="$GXX"
12467 LD_CXX="$LD"
12468
12469 cat > conftest.$ac_ext <<EOF
12470 class Foo
12471 {
12472 public:
12473   Foo (void) { a = 0; }
12474 private:
12475   int a;
12476 };
12477 EOF
12478
12479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12480   (eval $ac_compile) 2>&5
12481   ac_status=$?
12482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483   (exit $ac_status); }; then
12484   # Parse the compiler output and extract the necessary
12485   # objects, libraries and library flags.
12486
12487   # Sentinel used to keep track of whether or not we are before
12488   # the conftest object file.
12489   pre_test_object_deps_done=no
12490
12491   # The `*' in the case matches for architectures that use `case' in
12492   # $output_verbose_cmd can trigger glob expansion during the loop
12493   # eval without this substitution.
12494   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12495
12496   for p in `eval $output_verbose_link_cmd`; do
12497     case $p in
12498
12499     -L* | -R* | -l*)
12500        # Some compilers place space between "-{L,R}" and the path.
12501        # Remove the space.
12502        if test $p = "-L" \
12503           || test $p = "-R"; then
12504          prev=$p
12505          continue
12506        else
12507          prev=
12508        fi
12509
12510        if test "$pre_test_object_deps_done" = no; then
12511          case $p in
12512          -L* | -R*)
12513            # Internal compiler library paths should come after those
12514            # provided the user.  The postdeps already come after the
12515            # user supplied libs so there is no need to process them.
12516            if test -z "$compiler_lib_search_path_CXX"; then
12517              compiler_lib_search_path_CXX="${prev}${p}"
12518            else
12519              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12520            fi
12521            ;;
12522          # The "-l" case would never come before the object being
12523          # linked, so don't bother handling this case.
12524          esac
12525        else
12526          if test -z "$postdeps_CXX"; then
12527            postdeps_CXX="${prev}${p}"
12528          else
12529            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12530          fi
12531        fi
12532        ;;
12533
12534     *.$objext)
12535        # This assumes that the test object file only shows up
12536        # once in the compiler output.
12537        if test "$p" = "conftest.$objext"; then
12538          pre_test_object_deps_done=yes
12539          continue
12540        fi
12541
12542        if test "$pre_test_object_deps_done" = no; then
12543          if test -z "$predep_objects_CXX"; then
12544            predep_objects_CXX="$p"
12545          else
12546            predep_objects_CXX="$predep_objects_CXX $p"
12547          fi
12548        else
12549          if test -z "$postdep_objects_CXX"; then
12550            postdep_objects_CXX="$p"
12551          else
12552            postdep_objects_CXX="$postdep_objects_CXX $p"
12553          fi
12554        fi
12555        ;;
12556
12557     *) ;; # Ignore the rest.
12558
12559     esac
12560   done
12561
12562   # Clean up.
12563   rm -f a.out a.exe
12564 else
12565   echo "libtool.m4: error: problem compiling CXX test program"
12566 fi
12567
12568 $rm -f confest.$objext
12569
12570 compiler_lib_search_dirs_CXX=
12571 if test -n "$compiler_lib_search_path_CXX"; then
12572   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12573 fi
12574
12575 # PORTME: override above test on systems where it is broken
12576 case $host_os in
12577 interix[3-9]*)
12578   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12579   # hack all around it, let's just trust "g++" to DTRT.
12580   predep_objects_CXX=
12581   postdep_objects_CXX=
12582   postdeps_CXX=
12583   ;;
12584
12585 linux*)
12586   case `$CC -V 2>&1 | sed 5q` in
12587   *Sun\ C*)
12588     # Sun C++ 5.9
12589     #
12590     # The more standards-conforming stlport4 library is
12591     # incompatible with the Cstd library. Avoid specifying
12592     # it if it's in CXXFLAGS. Ignore libCrun as
12593     # -library=stlport4 depends on it.
12594     case " $CXX $CXXFLAGS " in
12595     *" -library=stlport4 "*)
12596       solaris_use_stlport4=yes
12597       ;;
12598     esac
12599     if test "$solaris_use_stlport4" != yes; then
12600       postdeps_CXX='-library=Cstd -library=Crun'
12601     fi
12602     ;;
12603   esac
12604   ;;
12605
12606 solaris*)
12607   case $cc_basename in
12608   CC*)
12609     # The more standards-conforming stlport4 library is
12610     # incompatible with the Cstd library. Avoid specifying
12611     # it if it's in CXXFLAGS. Ignore libCrun as
12612     # -library=stlport4 depends on it.
12613     case " $CXX $CXXFLAGS " in
12614     *" -library=stlport4 "*)
12615       solaris_use_stlport4=yes
12616       ;;
12617     esac
12618
12619     # Adding this requires a known-good setup of shared libraries for
12620     # Sun compiler versions before 5.6, else PIC objects from an old
12621     # archive will be linked into the output, leading to subtle bugs.
12622     if test "$solaris_use_stlport4" != yes; then
12623       postdeps_CXX='-library=Cstd -library=Crun'
12624     fi
12625     ;;
12626   esac
12627   ;;
12628 esac
12629
12630 case " $postdeps_CXX " in
12631 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12632 esac
12633
12634 lt_prog_compiler_wl_CXX=
12635 lt_prog_compiler_pic_CXX=
12636 lt_prog_compiler_static_CXX=
12637
12638 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12639 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12640
12641   # C++ specific cases for pic, static, wl, etc.
12642   if test "$GXX" = yes; then
12643     lt_prog_compiler_wl_CXX='-Wl,'
12644     lt_prog_compiler_static_CXX='-static'
12645
12646     case $host_os in
12647     aix*)
12648       # All AIX code is PIC.
12649       if test "$host_cpu" = ia64; then
12650         # AIX 5 now supports IA64 processor
12651         lt_prog_compiler_static_CXX='-Bstatic'
12652       fi
12653       ;;
12654     amigaos*)
12655       # FIXME: we need at least 68020 code to build shared libraries, but
12656       # adding the `-m68020' flag to GCC prevents building anything better,
12657       # like `-m68040'.
12658       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12659       ;;
12660     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12661       # PIC is the default for these OSes.
12662       ;;
12663     mingw* | cygwin* | os2* | pw32*)
12664       # This hack is so that the source file can tell whether it is being
12665       # built for inclusion in a dll (and should export symbols for example).
12666       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12667       # (--disable-auto-import) libraries
12668       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12669       ;;
12670     darwin* | rhapsody*)
12671       # PIC is the default on this platform
12672       # Common symbols not allowed in MH_DYLIB files
12673       lt_prog_compiler_pic_CXX='-fno-common'
12674       ;;
12675     *djgpp*)
12676       # DJGPP does not support shared libraries at all
12677       lt_prog_compiler_pic_CXX=
12678       ;;
12679     interix[3-9]*)
12680       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12681       # Instead, we relocate shared libraries at runtime.
12682       ;;
12683     sysv4*MP*)
12684       if test -d /usr/nec; then
12685         lt_prog_compiler_pic_CXX=-Kconform_pic
12686       fi
12687       ;;
12688     hpux*)
12689       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12690       # not for PA HP-UX.
12691       case $host_cpu in
12692       hppa*64*|ia64*)
12693         ;;
12694       *)
12695         lt_prog_compiler_pic_CXX='-fPIC'
12696         ;;
12697       esac
12698       ;;
12699     *)
12700       lt_prog_compiler_pic_CXX='-fPIC'
12701       ;;
12702     esac
12703   else
12704     case $host_os in
12705       aix[4-9]*)
12706         # All AIX code is PIC.
12707         if test "$host_cpu" = ia64; then
12708           # AIX 5 now supports IA64 processor
12709           lt_prog_compiler_static_CXX='-Bstatic'
12710         else
12711           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12712         fi
12713         ;;
12714       chorus*)
12715         case $cc_basename in
12716         cxch68*)
12717           # Green Hills C++ Compiler
12718           # _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"
12719           ;;
12720         esac
12721         ;;
12722        darwin*)
12723          # PIC is the default on this platform
12724          # Common symbols not allowed in MH_DYLIB files
12725          case $cc_basename in
12726            xlc*)
12727            lt_prog_compiler_pic_CXX='-qnocommon'
12728            lt_prog_compiler_wl_CXX='-Wl,'
12729            ;;
12730          esac
12731        ;;
12732       dgux*)
12733         case $cc_basename in
12734           ec++*)
12735             lt_prog_compiler_pic_CXX='-KPIC'
12736             ;;
12737           ghcx*)
12738             # Green Hills C++ Compiler
12739             lt_prog_compiler_pic_CXX='-pic'
12740             ;;
12741           *)
12742             ;;
12743         esac
12744         ;;
12745       freebsd* | dragonfly*)
12746         # FreeBSD uses GNU C++
12747         ;;
12748       hpux9* | hpux10* | hpux11*)
12749         case $cc_basename in
12750           CC*)
12751             lt_prog_compiler_wl_CXX='-Wl,'
12752             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12753             if test "$host_cpu" != ia64; then
12754               lt_prog_compiler_pic_CXX='+Z'
12755             fi
12756             ;;
12757           aCC*)
12758             lt_prog_compiler_wl_CXX='-Wl,'
12759             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12760             case $host_cpu in
12761             hppa*64*|ia64*)
12762               # +Z the default
12763               ;;
12764             *)
12765               lt_prog_compiler_pic_CXX='+Z'
12766               ;;
12767             esac
12768             ;;
12769           *)
12770             ;;
12771         esac
12772         ;;
12773       interix*)
12774         # This is c89, which is MS Visual C++ (no shared libs)
12775         # Anyone wants to do a port?
12776         ;;
12777       irix5* | irix6* | nonstopux*)
12778         case $cc_basename in
12779           CC*)
12780             lt_prog_compiler_wl_CXX='-Wl,'
12781             lt_prog_compiler_static_CXX='-non_shared'
12782             # CC pic flag -KPIC is the default.
12783             ;;
12784           *)
12785             ;;
12786         esac
12787         ;;
12788       linux* | k*bsd*-gnu)
12789         case $cc_basename in
12790           KCC*)
12791             # KAI C++ Compiler
12792             lt_prog_compiler_wl_CXX='--backend -Wl,'
12793             lt_prog_compiler_pic_CXX='-fPIC'
12794             ;;
12795           icpc* | ecpc*)
12796             # Intel C++
12797             lt_prog_compiler_wl_CXX='-Wl,'
12798             lt_prog_compiler_pic_CXX='-KPIC'
12799             lt_prog_compiler_static_CXX='-static'
12800             ;;
12801           pgCC* | pgcpp*)
12802             # Portland Group C++ compiler.
12803             lt_prog_compiler_wl_CXX='-Wl,'
12804             lt_prog_compiler_pic_CXX='-fpic'
12805             lt_prog_compiler_static_CXX='-Bstatic'
12806             ;;
12807           cxx*)
12808             # Compaq C++
12809             # Make sure the PIC flag is empty.  It appears that all Alpha
12810             # Linux and Compaq Tru64 Unix objects are PIC.
12811             lt_prog_compiler_pic_CXX=
12812             lt_prog_compiler_static_CXX='-non_shared'
12813             ;;
12814           *)
12815             case `$CC -V 2>&1 | sed 5q` in
12816             *Sun\ C*)
12817               # Sun C++ 5.9
12818               lt_prog_compiler_pic_CXX='-KPIC'
12819               lt_prog_compiler_static_CXX='-Bstatic'
12820               lt_prog_compiler_wl_CXX='-Qoption ld '
12821               ;;
12822             esac
12823             ;;
12824         esac
12825         ;;
12826       lynxos*)
12827         ;;
12828       m88k*)
12829         ;;
12830       mvs*)
12831         case $cc_basename in
12832           cxx*)
12833             lt_prog_compiler_pic_CXX='-W c,exportall'
12834             ;;
12835           *)
12836             ;;
12837         esac
12838         ;;
12839       netbsd* | netbsdelf*-gnu)
12840         ;;
12841       osf3* | osf4* | osf5*)
12842         case $cc_basename in
12843           KCC*)
12844             lt_prog_compiler_wl_CXX='--backend -Wl,'
12845             ;;
12846           RCC*)
12847             # Rational C++ 2.4.1
12848             lt_prog_compiler_pic_CXX='-pic'
12849             ;;
12850           cxx*)
12851             # Digital/Compaq C++
12852             lt_prog_compiler_wl_CXX='-Wl,'
12853             # Make sure the PIC flag is empty.  It appears that all Alpha
12854             # Linux and Compaq Tru64 Unix objects are PIC.
12855             lt_prog_compiler_pic_CXX=
12856             lt_prog_compiler_static_CXX='-non_shared'
12857             ;;
12858           *)
12859             ;;
12860         esac
12861         ;;
12862       psos*)
12863         ;;
12864       solaris*)
12865         case $cc_basename in
12866           CC*)
12867             # Sun C++ 4.2, 5.x and Centerline C++
12868             lt_prog_compiler_pic_CXX='-KPIC'
12869             lt_prog_compiler_static_CXX='-Bstatic'
12870             lt_prog_compiler_wl_CXX='-Qoption ld '
12871             ;;
12872           gcx*)
12873             # Green Hills C++ Compiler
12874             lt_prog_compiler_pic_CXX='-PIC'
12875             ;;
12876           *)
12877             ;;
12878         esac
12879         ;;
12880       sunos4*)
12881         case $cc_basename in
12882           CC*)
12883             # Sun C++ 4.x
12884             lt_prog_compiler_pic_CXX='-pic'
12885             lt_prog_compiler_static_CXX='-Bstatic'
12886             ;;
12887           lcc*)
12888             # Lucid
12889             lt_prog_compiler_pic_CXX='-pic'
12890             ;;
12891           *)
12892             ;;
12893         esac
12894         ;;
12895       tandem*)
12896         case $cc_basename in
12897           NCC*)
12898             # NonStop-UX NCC 3.20
12899             lt_prog_compiler_pic_CXX='-KPIC'
12900             ;;
12901           *)
12902             ;;
12903         esac
12904         ;;
12905       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12906         case $cc_basename in
12907           CC*)
12908             lt_prog_compiler_wl_CXX='-Wl,'
12909             lt_prog_compiler_pic_CXX='-KPIC'
12910             lt_prog_compiler_static_CXX='-Bstatic'
12911             ;;
12912         esac
12913         ;;
12914       vxworks*)
12915         ;;
12916       *)
12917         lt_prog_compiler_can_build_shared_CXX=no
12918         ;;
12919     esac
12920   fi
12921
12922 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12923 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12924
12925 #
12926 # Check to make sure the PIC flag actually works.
12927 #
12928 if test -n "$lt_prog_compiler_pic_CXX"; then
12929
12930 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12931 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12932 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12933   echo $ECHO_N "(cached) $ECHO_C" >&6
12934 else
12935   lt_cv_prog_compiler_pic_works_CXX=no
12936   ac_outfile=conftest.$ac_objext
12937    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12938    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12939    # Insert the option either (1) after the last *FLAGS variable, or
12940    # (2) before a word containing "conftest.", or (3) at the end.
12941    # Note that $ac_compile itself does not contain backslashes and begins
12942    # with a dollar sign (not a hyphen), so the echo should work correctly.
12943    # The option is referenced via a variable to avoid confusing sed.
12944    lt_compile=`echo "$ac_compile" | $SED \
12945    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12946    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12947    -e 's:$: $lt_compiler_flag:'`
12948    (eval echo "\"\$as_me:12948: $lt_compile\"" >&5)
12949    (eval "$lt_compile" 2>conftest.err)
12950    ac_status=$?
12951    cat conftest.err >&5
12952    echo "$as_me:12952: \$? = $ac_status" >&5
12953    if (exit $ac_status) && test -s "$ac_outfile"; then
12954      # The compiler can only warn and ignore the option if not recognized
12955      # So say no if there are warnings other than the usual output.
12956      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12957      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12958      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12959        lt_cv_prog_compiler_pic_works_CXX=yes
12960      fi
12961    fi
12962    $rm conftest*
12963
12964 fi
12965 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12966 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12967
12968 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12969     case $lt_prog_compiler_pic_CXX in
12970      "" | " "*) ;;
12971      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12972      esac
12973 else
12974     lt_prog_compiler_pic_CXX=
12975      lt_prog_compiler_can_build_shared_CXX=no
12976 fi
12977
12978 fi
12979 case $host_os in
12980   # For platforms which do not support PIC, -DPIC is meaningless:
12981   *djgpp*)
12982     lt_prog_compiler_pic_CXX=
12983     ;;
12984   *)
12985     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12986     ;;
12987 esac
12988
12989 #
12990 # Check to make sure the static flag actually works.
12991 #
12992 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12993 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12994 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12995 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12996   echo $ECHO_N "(cached) $ECHO_C" >&6
12997 else
12998   lt_cv_prog_compiler_static_works_CXX=no
12999    save_LDFLAGS="$LDFLAGS"
13000    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13001    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13002    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13003      # The linker can only warn and ignore the option if not recognized
13004      # So say no if there are warnings
13005      if test -s conftest.err; then
13006        # Append any errors to the config.log.
13007        cat conftest.err 1>&5
13008        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13009        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13010        if diff conftest.exp conftest.er2 >/dev/null; then
13011          lt_cv_prog_compiler_static_works_CXX=yes
13012        fi
13013      else
13014        lt_cv_prog_compiler_static_works_CXX=yes
13015      fi
13016    fi
13017    $rm -r conftest*
13018    LDFLAGS="$save_LDFLAGS"
13019
13020 fi
13021 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13022 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13023
13024 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13025     :
13026 else
13027     lt_prog_compiler_static_CXX=
13028 fi
13029
13030
13031 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13032 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13033 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13034   echo $ECHO_N "(cached) $ECHO_C" >&6
13035 else
13036   lt_cv_prog_compiler_c_o_CXX=no
13037    $rm -r conftest 2>/dev/null
13038    mkdir conftest
13039    cd conftest
13040    mkdir out
13041    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13042
13043    lt_compiler_flag="-o out/conftest2.$ac_objext"
13044    # Insert the option either (1) after the last *FLAGS variable, or
13045    # (2) before a word containing "conftest.", or (3) at the end.
13046    # Note that $ac_compile itself does not contain backslashes and begins
13047    # with a dollar sign (not a hyphen), so the echo should work correctly.
13048    lt_compile=`echo "$ac_compile" | $SED \
13049    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13050    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13051    -e 's:$: $lt_compiler_flag:'`
13052    (eval echo "\"\$as_me:13052: $lt_compile\"" >&5)
13053    (eval "$lt_compile" 2>out/conftest.err)
13054    ac_status=$?
13055    cat out/conftest.err >&5
13056    echo "$as_me:13056: \$? = $ac_status" >&5
13057    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13058    then
13059      # The compiler can only warn and ignore the option if not recognized
13060      # So say no if there are warnings
13061      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13062      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13063      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13064        lt_cv_prog_compiler_c_o_CXX=yes
13065      fi
13066    fi
13067    chmod u+w . 2>&5
13068    $rm conftest*
13069    # SGI C++ compiler will create directory out/ii_files/ for
13070    # template instantiation
13071    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13072    $rm out/* && rmdir out
13073    cd ..
13074    rmdir conftest
13075    $rm conftest*
13076
13077 fi
13078 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13079 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13080
13081
13082 hard_links="nottested"
13083 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13084   # do not overwrite the value of need_locks provided by the user
13085   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13086 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13087   hard_links=yes
13088   $rm conftest*
13089   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13090   touch conftest.a
13091   ln conftest.a conftest.b 2>&5 || hard_links=no
13092   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13093   { echo "$as_me:$LINENO: result: $hard_links" >&5
13094 echo "${ECHO_T}$hard_links" >&6; }
13095   if test "$hard_links" = no; then
13096     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13097 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13098     need_locks=warn
13099   fi
13100 else
13101   need_locks=no
13102 fi
13103
13104 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13105 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13106
13107   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13108   case $host_os in
13109   aix[4-9]*)
13110     # If we're using GNU nm, then we don't want the "-C" option.
13111     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13112     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13113       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'
13114     else
13115       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'
13116     fi
13117     ;;
13118   pw32*)
13119     export_symbols_cmds_CXX="$ltdll_cmds"
13120   ;;
13121   cygwin* | mingw*)
13122     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'
13123   ;;
13124   linux* | k*bsd*-gnu)
13125     link_all_deplibs_CXX=no
13126   ;;
13127   *)
13128     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13129   ;;
13130   esac
13131   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13132
13133 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13134 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13135 test "$ld_shlibs_CXX" = no && can_build_shared=no
13136
13137 #
13138 # Do we need to explicitly link libc?
13139 #
13140 case "x$archive_cmds_need_lc_CXX" in
13141 x|xyes)
13142   # Assume -lc should be added
13143   archive_cmds_need_lc_CXX=yes
13144
13145   if test "$enable_shared" = yes && test "$GCC" = yes; then
13146     case $archive_cmds_CXX in
13147     *'~'*)
13148       # FIXME: we may have to deal with multi-command sequences.
13149       ;;
13150     '$CC '*)
13151       # Test whether the compiler implicitly links with -lc since on some
13152       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13153       # to ld, don't add -lc before -lgcc.
13154       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13155 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13156       $rm conftest*
13157       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13158
13159       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13160   (eval $ac_compile) 2>&5
13161   ac_status=$?
13162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163   (exit $ac_status); } 2>conftest.err; then
13164         soname=conftest
13165         lib=conftest
13166         libobjs=conftest.$ac_objext
13167         deplibs=
13168         wl=$lt_prog_compiler_wl_CXX
13169         pic_flag=$lt_prog_compiler_pic_CXX
13170         compiler_flags=-v
13171         linker_flags=-v
13172         verstring=
13173         output_objdir=.
13174         libname=conftest
13175         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13176         allow_undefined_flag_CXX=
13177         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13178   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13179   ac_status=$?
13180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181   (exit $ac_status); }
13182         then
13183           archive_cmds_need_lc_CXX=no
13184         else
13185           archive_cmds_need_lc_CXX=yes
13186         fi
13187         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13188       else
13189         cat conftest.err 1>&5
13190       fi
13191       $rm conftest*
13192       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13193 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13194       ;;
13195     esac
13196   fi
13197   ;;
13198 esac
13199
13200 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13201 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13202 library_names_spec=
13203 libname_spec='lib$name'
13204 soname_spec=
13205 shrext_cmds=".so"
13206 postinstall_cmds=
13207 postuninstall_cmds=
13208 finish_cmds=
13209 finish_eval=
13210 shlibpath_var=
13211 shlibpath_overrides_runpath=unknown
13212 version_type=none
13213 dynamic_linker="$host_os ld.so"
13214 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13215
13216 need_lib_prefix=unknown
13217 hardcode_into_libs=no
13218
13219 # when you set need_version to no, make sure it does not cause -set_version
13220 # flags to be left without arguments
13221 need_version=unknown
13222
13223 case $host_os in
13224 aix3*)
13225   version_type=linux
13226   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13227   shlibpath_var=LIBPATH
13228
13229   # AIX 3 has no versioning support, so we append a major version to the name.
13230   soname_spec='${libname}${release}${shared_ext}$major'
13231   ;;
13232
13233 aix[4-9]*)
13234   version_type=linux
13235   need_lib_prefix=no
13236   need_version=no
13237   hardcode_into_libs=yes
13238   if test "$host_cpu" = ia64; then
13239     # AIX 5 supports IA64
13240     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13241     shlibpath_var=LD_LIBRARY_PATH
13242   else
13243     # With GCC up to 2.95.x, collect2 would create an import file
13244     # for dependence libraries.  The import file would start with
13245     # the line `#! .'.  This would cause the generated library to
13246     # depend on `.', always an invalid library.  This was fixed in
13247     # development snapshots of GCC prior to 3.0.
13248     case $host_os in
13249       aix4 | aix4.[01] | aix4.[01].*)
13250       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13251            echo ' yes '
13252            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13253         :
13254       else
13255         can_build_shared=no
13256       fi
13257       ;;
13258     esac
13259     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13260     # soname into executable. Probably we can add versioning support to
13261     # collect2, so additional links can be useful in future.
13262     if test "$aix_use_runtimelinking" = yes; then
13263       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13264       # instead of lib<name>.a to let people know that these are not
13265       # typical AIX shared libraries.
13266       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13267     else
13268       # We preserve .a as extension for shared libraries through AIX4.2
13269       # and later when we are not doing run time linking.
13270       library_names_spec='${libname}${release}.a $libname.a'
13271       soname_spec='${libname}${release}${shared_ext}$major'
13272     fi
13273     shlibpath_var=LIBPATH
13274   fi
13275   ;;
13276
13277 amigaos*)
13278   library_names_spec='$libname.ixlibrary $libname.a'
13279   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13280   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'
13281   ;;
13282
13283 beos*)
13284   library_names_spec='${libname}${shared_ext}'
13285   dynamic_linker="$host_os ld.so"
13286   shlibpath_var=LIBRARY_PATH
13287   ;;
13288
13289 bsdi[45]*)
13290   version_type=linux
13291   need_version=no
13292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13293   soname_spec='${libname}${release}${shared_ext}$major'
13294   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13295   shlibpath_var=LD_LIBRARY_PATH
13296   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13297   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13298   # the default ld.so.conf also contains /usr/contrib/lib and
13299   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13300   # libtool to hard-code these into programs
13301   ;;
13302
13303 cygwin* | mingw* | pw32*)
13304   version_type=windows
13305   shrext_cmds=".dll"
13306   need_version=no
13307   need_lib_prefix=no
13308
13309   case $GCC,$host_os in
13310   yes,cygwin* | yes,mingw* | yes,pw32*)
13311     library_names_spec='$libname.dll.a'
13312     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13313     postinstall_cmds='base_file=`basename \${file}`~
13314       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13315       dldir=$destdir/`dirname \$dlpath`~
13316       test -d \$dldir || mkdir -p \$dldir~
13317       $install_prog $dir/$dlname \$dldir/$dlname~
13318       chmod a+x \$dldir/$dlname'
13319     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13320       dlpath=$dir/\$dldll~
13321        $rm \$dlpath'
13322     shlibpath_overrides_runpath=yes
13323
13324     case $host_os in
13325     cygwin*)
13326       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13327       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13328       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13329       ;;
13330     mingw*)
13331       # MinGW DLLs use traditional 'lib' prefix
13332       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13333       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13334       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13335         # It is most probably a Windows format PATH printed by
13336         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13337         # path with ; separators, and with drive letters. We can handle the
13338         # drive letters (cygwin fileutils understands them), so leave them,
13339         # especially as we might pass files found there to a mingw objdump,
13340         # which wouldn't understand a cygwinified path. Ahh.
13341         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13342       else
13343         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13344       fi
13345       ;;
13346     pw32*)
13347       # pw32 DLLs use 'pw' prefix rather than 'lib'
13348       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13349       ;;
13350     esac
13351     ;;
13352
13353   *)
13354     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13355     ;;
13356   esac
13357   dynamic_linker='Win32 ld.exe'
13358   # FIXME: first we should search . and the directory the executable is in
13359   shlibpath_var=PATH
13360   ;;
13361
13362 darwin* | rhapsody*)
13363   dynamic_linker="$host_os dyld"
13364   version_type=darwin
13365   need_lib_prefix=no
13366   need_version=no
13367   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13368   soname_spec='${libname}${release}${major}$shared_ext'
13369   shlibpath_overrides_runpath=yes
13370   shlibpath_var=DYLD_LIBRARY_PATH
13371   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13372
13373   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13374   ;;
13375
13376 dgux*)
13377   version_type=linux
13378   need_lib_prefix=no
13379   need_version=no
13380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13381   soname_spec='${libname}${release}${shared_ext}$major'
13382   shlibpath_var=LD_LIBRARY_PATH
13383   ;;
13384
13385 freebsd1*)
13386   dynamic_linker=no
13387   ;;
13388
13389 freebsd* | dragonfly*)
13390   # DragonFly does not have aout.  When/if they implement a new
13391   # versioning mechanism, adjust this.
13392   if test -x /usr/bin/objformat; then
13393     objformat=`/usr/bin/objformat`
13394   else
13395     case $host_os in
13396     freebsd[123]*) objformat=aout ;;
13397     *) objformat=elf ;;
13398     esac
13399   fi
13400   version_type=freebsd-$objformat
13401   case $version_type in
13402     freebsd-elf*)
13403       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13404       need_version=no
13405       need_lib_prefix=no
13406       ;;
13407     freebsd-*)
13408       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13409       need_version=yes
13410       ;;
13411   esac
13412   shlibpath_var=LD_LIBRARY_PATH
13413   case $host_os in
13414   freebsd2*)
13415     shlibpath_overrides_runpath=yes
13416     ;;
13417   freebsd3.[01]* | freebsdelf3.[01]*)
13418     shlibpath_overrides_runpath=yes
13419     hardcode_into_libs=yes
13420     ;;
13421   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13422   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13423     shlibpath_overrides_runpath=no
13424     hardcode_into_libs=yes
13425     ;;
13426   *) # from 4.6 on, and DragonFly
13427     shlibpath_overrides_runpath=yes
13428     hardcode_into_libs=yes
13429     ;;
13430   esac
13431   ;;
13432
13433 gnu*)
13434   version_type=linux
13435   need_lib_prefix=no
13436   need_version=no
13437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13438   soname_spec='${libname}${release}${shared_ext}$major'
13439   shlibpath_var=LD_LIBRARY_PATH
13440   hardcode_into_libs=yes
13441   ;;
13442
13443 hpux9* | hpux10* | hpux11*)
13444   # Give a soname corresponding to the major version so that dld.sl refuses to
13445   # link against other versions.
13446   version_type=sunos
13447   need_lib_prefix=no
13448   need_version=no
13449   case $host_cpu in
13450   ia64*)
13451     shrext_cmds='.so'
13452     hardcode_into_libs=yes
13453     dynamic_linker="$host_os dld.so"
13454     shlibpath_var=LD_LIBRARY_PATH
13455     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13456     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13457     soname_spec='${libname}${release}${shared_ext}$major'
13458     if test "X$HPUX_IA64_MODE" = X32; then
13459       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13460     else
13461       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13462     fi
13463     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13464     ;;
13465    hppa*64*)
13466      shrext_cmds='.sl'
13467      hardcode_into_libs=yes
13468      dynamic_linker="$host_os dld.sl"
13469      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13470      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13471      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13472      soname_spec='${libname}${release}${shared_ext}$major'
13473      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13474      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13475      ;;
13476    *)
13477     shrext_cmds='.sl'
13478     dynamic_linker="$host_os dld.sl"
13479     shlibpath_var=SHLIB_PATH
13480     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13481     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13482     soname_spec='${libname}${release}${shared_ext}$major'
13483     ;;
13484   esac
13485   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13486   postinstall_cmds='chmod 555 $lib'
13487   ;;
13488
13489 interix[3-9]*)
13490   version_type=linux
13491   need_lib_prefix=no
13492   need_version=no
13493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13494   soname_spec='${libname}${release}${shared_ext}$major'
13495   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13496   shlibpath_var=LD_LIBRARY_PATH
13497   shlibpath_overrides_runpath=no
13498   hardcode_into_libs=yes
13499   ;;
13500
13501 irix5* | irix6* | nonstopux*)
13502   case $host_os in
13503     nonstopux*) version_type=nonstopux ;;
13504     *)
13505         if test "$lt_cv_prog_gnu_ld" = yes; then
13506                 version_type=linux
13507         else
13508                 version_type=irix
13509         fi ;;
13510   esac
13511   need_lib_prefix=no
13512   need_version=no
13513   soname_spec='${libname}${release}${shared_ext}$major'
13514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13515   case $host_os in
13516   irix5* | nonstopux*)
13517     libsuff= shlibsuff=
13518     ;;
13519   *)
13520     case $LD in # libtool.m4 will add one of these switches to LD
13521     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13522       libsuff= shlibsuff= libmagic=32-bit;;
13523     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13524       libsuff=32 shlibsuff=N32 libmagic=N32;;
13525     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13526       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13527     *) libsuff= shlibsuff= libmagic=never-match;;
13528     esac
13529     ;;
13530   esac
13531   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13532   shlibpath_overrides_runpath=no
13533   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13534   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13535   hardcode_into_libs=yes
13536   ;;
13537
13538 # No shared lib support for Linux oldld, aout, or coff.
13539 linux*oldld* | linux*aout* | linux*coff*)
13540   dynamic_linker=no
13541   ;;
13542
13543 # This must be Linux ELF.
13544 linux* | k*bsd*-gnu)
13545   version_type=linux
13546   need_lib_prefix=no
13547   need_version=no
13548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13549   soname_spec='${libname}${release}${shared_ext}$major'
13550   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13551   shlibpath_var=LD_LIBRARY_PATH
13552   shlibpath_overrides_runpath=no
13553   # This implies no fast_install, which is unacceptable.
13554   # Some rework will be needed to allow for fast_install
13555   # before this can be enabled.
13556   hardcode_into_libs=yes
13557
13558   # Append ld.so.conf contents to the search path
13559   if test -f /etc/ld.so.conf; then
13560     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13561     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13562   fi
13563
13564   # We used to test for /lib/ld.so.1 and disable shared libraries on
13565   # powerpc, because MkLinux only supported shared libraries with the
13566   # GNU dynamic linker.  Since this was broken with cross compilers,
13567   # most powerpc-linux boxes support dynamic linking these days and
13568   # people can always --disable-shared, the test was removed, and we
13569   # assume the GNU/Linux dynamic linker is in use.
13570   dynamic_linker='GNU/Linux ld.so'
13571   ;;
13572
13573 netbsdelf*-gnu)
13574   version_type=linux
13575   need_lib_prefix=no
13576   need_version=no
13577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13578   soname_spec='${libname}${release}${shared_ext}$major'
13579   shlibpath_var=LD_LIBRARY_PATH
13580   shlibpath_overrides_runpath=no
13581   hardcode_into_libs=yes
13582   dynamic_linker='NetBSD ld.elf_so'
13583   ;;
13584
13585 netbsd*)
13586   version_type=sunos
13587   need_lib_prefix=no
13588   need_version=no
13589   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13590     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13591     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13592     dynamic_linker='NetBSD (a.out) ld.so'
13593   else
13594     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13595     soname_spec='${libname}${release}${shared_ext}$major'
13596     dynamic_linker='NetBSD ld.elf_so'
13597   fi
13598   shlibpath_var=LD_LIBRARY_PATH
13599   shlibpath_overrides_runpath=yes
13600   hardcode_into_libs=yes
13601   ;;
13602
13603 newsos6)
13604   version_type=linux
13605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13606   shlibpath_var=LD_LIBRARY_PATH
13607   shlibpath_overrides_runpath=yes
13608   ;;
13609
13610 nto-qnx*)
13611   version_type=linux
13612   need_lib_prefix=no
13613   need_version=no
13614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13615   soname_spec='${libname}${release}${shared_ext}$major'
13616   shlibpath_var=LD_LIBRARY_PATH
13617   shlibpath_overrides_runpath=yes
13618   ;;
13619
13620 openbsd*)
13621   version_type=sunos
13622   sys_lib_dlsearch_path_spec="/usr/lib"
13623   need_lib_prefix=no
13624   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13625   case $host_os in
13626     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13627     *)                         need_version=no  ;;
13628   esac
13629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13630   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13631   shlibpath_var=LD_LIBRARY_PATH
13632   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13633     case $host_os in
13634       openbsd2.[89] | openbsd2.[89].*)
13635         shlibpath_overrides_runpath=no
13636         ;;
13637       *)
13638         shlibpath_overrides_runpath=yes
13639         ;;
13640       esac
13641   else
13642     shlibpath_overrides_runpath=yes
13643   fi
13644   ;;
13645
13646 os2*)
13647   libname_spec='$name'
13648   shrext_cmds=".dll"
13649   need_lib_prefix=no
13650   library_names_spec='$libname${shared_ext} $libname.a'
13651   dynamic_linker='OS/2 ld.exe'
13652   shlibpath_var=LIBPATH
13653   ;;
13654
13655 osf3* | osf4* | osf5*)
13656   version_type=osf
13657   need_lib_prefix=no
13658   need_version=no
13659   soname_spec='${libname}${release}${shared_ext}$major'
13660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13661   shlibpath_var=LD_LIBRARY_PATH
13662   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13663   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13664   ;;
13665
13666 rdos*)
13667   dynamic_linker=no
13668   ;;
13669
13670 solaris*)
13671   version_type=linux
13672   need_lib_prefix=no
13673   need_version=no
13674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13675   soname_spec='${libname}${release}${shared_ext}$major'
13676   shlibpath_var=LD_LIBRARY_PATH
13677   shlibpath_overrides_runpath=yes
13678   hardcode_into_libs=yes
13679   # ldd complains unless libraries are executable
13680   postinstall_cmds='chmod +x $lib'
13681   ;;
13682
13683 sunos4*)
13684   version_type=sunos
13685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13686   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13687   shlibpath_var=LD_LIBRARY_PATH
13688   shlibpath_overrides_runpath=yes
13689   if test "$with_gnu_ld" = yes; then
13690     need_lib_prefix=no
13691   fi
13692   need_version=yes
13693   ;;
13694
13695 sysv4 | sysv4.3*)
13696   version_type=linux
13697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13698   soname_spec='${libname}${release}${shared_ext}$major'
13699   shlibpath_var=LD_LIBRARY_PATH
13700   case $host_vendor in
13701     sni)
13702       shlibpath_overrides_runpath=no
13703       need_lib_prefix=no
13704       export_dynamic_flag_spec='${wl}-Blargedynsym'
13705       runpath_var=LD_RUN_PATH
13706       ;;
13707     siemens)
13708       need_lib_prefix=no
13709       ;;
13710     motorola)
13711       need_lib_prefix=no
13712       need_version=no
13713       shlibpath_overrides_runpath=no
13714       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13715       ;;
13716   esac
13717   ;;
13718
13719 sysv4*MP*)
13720   if test -d /usr/nec ;then
13721     version_type=linux
13722     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13723     soname_spec='$libname${shared_ext}.$major'
13724     shlibpath_var=LD_LIBRARY_PATH
13725   fi
13726   ;;
13727
13728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13729   version_type=freebsd-elf
13730   need_lib_prefix=no
13731   need_version=no
13732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13733   soname_spec='${libname}${release}${shared_ext}$major'
13734   shlibpath_var=LD_LIBRARY_PATH
13735   hardcode_into_libs=yes
13736   if test "$with_gnu_ld" = yes; then
13737     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13738     shlibpath_overrides_runpath=no
13739   else
13740     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13741     shlibpath_overrides_runpath=yes
13742     case $host_os in
13743       sco3.2v5*)
13744         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13745         ;;
13746     esac
13747   fi
13748   sys_lib_dlsearch_path_spec='/usr/lib'
13749   ;;
13750
13751 uts4*)
13752   version_type=linux
13753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13754   soname_spec='${libname}${release}${shared_ext}$major'
13755   shlibpath_var=LD_LIBRARY_PATH
13756   ;;
13757
13758 *)
13759   dynamic_linker=no
13760   ;;
13761 esac
13762 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13763 echo "${ECHO_T}$dynamic_linker" >&6; }
13764 test "$dynamic_linker" = no && can_build_shared=no
13765
13766 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13767   echo $ECHO_N "(cached) $ECHO_C" >&6
13768 else
13769   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13770 fi
13771
13772 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13773 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13774   echo $ECHO_N "(cached) $ECHO_C" >&6
13775 else
13776   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13777 fi
13778
13779 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13780
13781 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13782 if test "$GCC" = yes; then
13783   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13784 fi
13785
13786 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13787 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13788 hardcode_action_CXX=
13789 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13790    test -n "$runpath_var_CXX" || \
13791    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13792
13793   # We can hardcode non-existant directories.
13794   if test "$hardcode_direct_CXX" != no &&
13795      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13796      # have to relink, otherwise we might link with an installed library
13797      # when we should be linking with a yet-to-be-installed one
13798      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13799      test "$hardcode_minus_L_CXX" != no; then
13800     # Linking always hardcodes the temporary library directory.
13801     hardcode_action_CXX=relink
13802   else
13803     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13804     hardcode_action_CXX=immediate
13805   fi
13806 else
13807   # We cannot hardcode anything, or else we can only hardcode existing
13808   # directories.
13809   hardcode_action_CXX=unsupported
13810 fi
13811 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13812 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13813
13814 if test "$hardcode_action_CXX" = relink; then
13815   # Fast installation is not supported
13816   enable_fast_install=no
13817 elif test "$shlibpath_overrides_runpath" = yes ||
13818      test "$enable_shared" = no; then
13819   # Fast installation is not necessary
13820   enable_fast_install=needless
13821 fi
13822
13823
13824 # The else clause should only fire when bootstrapping the
13825 # libtool distribution, otherwise you forgot to ship ltmain.sh
13826 # with your package, and you will get complaints that there are
13827 # no rules to generate ltmain.sh.
13828 if test -f "$ltmain"; then
13829   # See if we are running on zsh, and set the options which allow our commands through
13830   # without removal of \ escapes.
13831   if test -n "${ZSH_VERSION+set}" ; then
13832     setopt NO_GLOB_SUBST
13833   fi
13834   # Now quote all the things that may contain metacharacters while being
13835   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13836   # variables and quote the copies for generation of the libtool script.
13837   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13838     SED SHELL STRIP \
13839     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13840     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13841     deplibs_check_method reload_flag reload_cmds need_locks \
13842     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13843     lt_cv_sys_global_symbol_to_c_name_address \
13844     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13845     old_postinstall_cmds old_postuninstall_cmds \
13846     compiler_CXX \
13847     CC_CXX \
13848     LD_CXX \
13849     lt_prog_compiler_wl_CXX \
13850     lt_prog_compiler_pic_CXX \
13851     lt_prog_compiler_static_CXX \
13852     lt_prog_compiler_no_builtin_flag_CXX \
13853     export_dynamic_flag_spec_CXX \
13854     thread_safe_flag_spec_CXX \
13855     whole_archive_flag_spec_CXX \
13856     enable_shared_with_static_runtimes_CXX \
13857     old_archive_cmds_CXX \
13858     old_archive_from_new_cmds_CXX \
13859     predep_objects_CXX \
13860     postdep_objects_CXX \
13861     predeps_CXX \
13862     postdeps_CXX \
13863     compiler_lib_search_path_CXX \
13864     compiler_lib_search_dirs_CXX \
13865     archive_cmds_CXX \
13866     archive_expsym_cmds_CXX \
13867     postinstall_cmds_CXX \
13868     postuninstall_cmds_CXX \
13869     old_archive_from_expsyms_cmds_CXX \
13870     allow_undefined_flag_CXX \
13871     no_undefined_flag_CXX \
13872     export_symbols_cmds_CXX \
13873     hardcode_libdir_flag_spec_CXX \
13874     hardcode_libdir_flag_spec_ld_CXX \
13875     hardcode_libdir_separator_CXX \
13876     hardcode_automatic_CXX \
13877     module_cmds_CXX \
13878     module_expsym_cmds_CXX \
13879     lt_cv_prog_compiler_c_o_CXX \
13880     fix_srcfile_path_CXX \
13881     exclude_expsyms_CXX \
13882     include_expsyms_CXX; do
13883
13884     case $var in
13885     old_archive_cmds_CXX | \
13886     old_archive_from_new_cmds_CXX | \
13887     archive_cmds_CXX | \
13888     archive_expsym_cmds_CXX | \
13889     module_cmds_CXX | \
13890     module_expsym_cmds_CXX | \
13891     old_archive_from_expsyms_cmds_CXX | \
13892     export_symbols_cmds_CXX | \
13893     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13894     postinstall_cmds | postuninstall_cmds | \
13895     old_postinstall_cmds | old_postuninstall_cmds | \
13896     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13897       # Double-quote double-evaled strings.
13898       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13899       ;;
13900     *)
13901       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13902       ;;
13903     esac
13904   done
13905
13906   case $lt_echo in
13907   *'\$0 --fallback-echo"')
13908     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13909     ;;
13910   esac
13911
13912 cfgfile="$ofile"
13913
13914   cat <<__EOF__ >> "$cfgfile"
13915 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13916
13917 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13918
13919 # Shell to use when invoking shell scripts.
13920 SHELL=$lt_SHELL
13921
13922 # Whether or not to build shared libraries.
13923 build_libtool_libs=$enable_shared
13924
13925 # Whether or not to build static libraries.
13926 build_old_libs=$enable_static
13927
13928 # Whether or not to add -lc for building shared libraries.
13929 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13930
13931 # Whether or not to disallow shared libs when runtime libs are static
13932 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13933
13934 # Whether or not to optimize for fast installation.
13935 fast_install=$enable_fast_install
13936
13937 # The host system.
13938 host_alias=$host_alias
13939 host=$host
13940 host_os=$host_os
13941
13942 # The build system.
13943 build_alias=$build_alias
13944 build=$build
13945 build_os=$build_os
13946
13947 # An echo program that does not interpret backslashes.
13948 echo=$lt_echo
13949
13950 # The archiver.
13951 AR=$lt_AR
13952 AR_FLAGS=$lt_AR_FLAGS
13953
13954 # A C compiler.
13955 LTCC=$lt_LTCC
13956
13957 # LTCC compiler flags.
13958 LTCFLAGS=$lt_LTCFLAGS
13959
13960 # A language-specific compiler.
13961 CC=$lt_compiler_CXX
13962
13963 # Is the compiler the GNU C compiler?
13964 with_gcc=$GCC_CXX
13965
13966 # An ERE matcher.
13967 EGREP=$lt_EGREP
13968
13969 # The linker used to build libraries.
13970 LD=$lt_LD_CXX
13971
13972 # Whether we need hard or soft links.
13973 LN_S=$lt_LN_S
13974
13975 # A BSD-compatible nm program.
13976 NM=$lt_NM
13977
13978 # A symbol stripping program
13979 STRIP=$lt_STRIP
13980
13981 # Used to examine libraries when file_magic_cmd begins "file"
13982 MAGIC_CMD=$MAGIC_CMD
13983
13984 # Used on cygwin: DLL creation program.
13985 DLLTOOL="$DLLTOOL"
13986
13987 # Used on cygwin: object dumper.
13988 OBJDUMP="$OBJDUMP"
13989
13990 # Used on cygwin: assembler.
13991 AS="$AS"
13992
13993 # The name of the directory that contains temporary libtool files.
13994 objdir=$objdir
13995
13996 # How to create reloadable object files.
13997 reload_flag=$lt_reload_flag
13998 reload_cmds=$lt_reload_cmds
13999
14000 # How to pass a linker flag through the compiler.
14001 wl=$lt_lt_prog_compiler_wl_CXX
14002
14003 # Object file suffix (normally "o").
14004 objext="$ac_objext"
14005
14006 # Old archive suffix (normally "a").
14007 libext="$libext"
14008
14009 # Shared library suffix (normally ".so").
14010 shrext_cmds='$shrext_cmds'
14011
14012 # Executable file suffix (normally "").
14013 exeext="$exeext"
14014
14015 # Additional compiler flags for building library objects.
14016 pic_flag=$lt_lt_prog_compiler_pic_CXX
14017 pic_mode=$pic_mode
14018
14019 # What is the maximum length of a command?
14020 max_cmd_len=$lt_cv_sys_max_cmd_len
14021
14022 # Does compiler simultaneously support -c and -o options?
14023 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14024
14025 # Must we lock files when doing compilation?
14026 need_locks=$lt_need_locks
14027
14028 # Do we need the lib prefix for modules?
14029 need_lib_prefix=$need_lib_prefix
14030
14031 # Do we need a version for libraries?
14032 need_version=$need_version
14033
14034 # Whether dlopen is supported.
14035 dlopen_support=$enable_dlopen
14036
14037 # Whether dlopen of programs is supported.
14038 dlopen_self=$enable_dlopen_self
14039
14040 # Whether dlopen of statically linked programs is supported.
14041 dlopen_self_static=$enable_dlopen_self_static
14042
14043 # Compiler flag to prevent dynamic linking.
14044 link_static_flag=$lt_lt_prog_compiler_static_CXX
14045
14046 # Compiler flag to turn off builtin functions.
14047 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14048
14049 # Compiler flag to allow reflexive dlopens.
14050 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14051
14052 # Compiler flag to generate shared objects directly from archives.
14053 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14054
14055 # Compiler flag to generate thread-safe objects.
14056 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14057
14058 # Library versioning type.
14059 version_type=$version_type
14060
14061 # Format of library name prefix.
14062 libname_spec=$lt_libname_spec
14063
14064 # List of archive names.  First name is the real one, the rest are links.
14065 # The last name is the one that the linker finds with -lNAME.
14066 library_names_spec=$lt_library_names_spec
14067
14068 # The coded name of the library, if different from the real name.
14069 soname_spec=$lt_soname_spec
14070
14071 # Commands used to build and install an old-style archive.
14072 RANLIB=$lt_RANLIB
14073 old_archive_cmds=$lt_old_archive_cmds_CXX
14074 old_postinstall_cmds=$lt_old_postinstall_cmds
14075 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14076
14077 # Create an old-style archive from a shared archive.
14078 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14079
14080 # Create a temporary old-style archive to link instead of a shared archive.
14081 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14082
14083 # Commands used to build and install a shared archive.
14084 archive_cmds=$lt_archive_cmds_CXX
14085 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14086 postinstall_cmds=$lt_postinstall_cmds
14087 postuninstall_cmds=$lt_postuninstall_cmds
14088
14089 # Commands used to build a loadable module (assumed same as above if empty)
14090 module_cmds=$lt_module_cmds_CXX
14091 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14092
14093 # Commands to strip libraries.
14094 old_striplib=$lt_old_striplib
14095 striplib=$lt_striplib
14096
14097 # Dependencies to place before the objects being linked to create a
14098 # shared library.
14099 predep_objects=$lt_predep_objects_CXX
14100
14101 # Dependencies to place after the objects being linked to create a
14102 # shared library.
14103 postdep_objects=$lt_postdep_objects_CXX
14104
14105 # Dependencies to place before the objects being linked to create a
14106 # shared library.
14107 predeps=$lt_predeps_CXX
14108
14109 # Dependencies to place after the objects being linked to create a
14110 # shared library.
14111 postdeps=$lt_postdeps_CXX
14112
14113 # The directories searched by this compiler when creating a shared
14114 # library
14115 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14116
14117 # The library search path used internally by the compiler when linking
14118 # a shared library.
14119 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14120
14121 # Method to check whether dependent libraries are shared objects.
14122 deplibs_check_method=$lt_deplibs_check_method
14123
14124 # Command to use when deplibs_check_method == file_magic.
14125 file_magic_cmd=$lt_file_magic_cmd
14126
14127 # Flag that allows shared libraries with undefined symbols to be built.
14128 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14129
14130 # Flag that forces no undefined symbols.
14131 no_undefined_flag=$lt_no_undefined_flag_CXX
14132
14133 # Commands used to finish a libtool library installation in a directory.
14134 finish_cmds=$lt_finish_cmds
14135
14136 # Same as above, but a single script fragment to be evaled but not shown.
14137 finish_eval=$lt_finish_eval
14138
14139 # Take the output of nm and produce a listing of raw symbols and C names.
14140 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14141
14142 # Transform the output of nm in a proper C declaration
14143 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14144
14145 # Transform the output of nm in a C name address pair
14146 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14147
14148 # This is the shared library runtime path variable.
14149 runpath_var=$runpath_var
14150
14151 # This is the shared library path variable.
14152 shlibpath_var=$shlibpath_var
14153
14154 # Is shlibpath searched before the hard-coded library search path?
14155 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14156
14157 # How to hardcode a shared library path into an executable.
14158 hardcode_action=$hardcode_action_CXX
14159
14160 # Whether we should hardcode library paths into libraries.
14161 hardcode_into_libs=$hardcode_into_libs
14162
14163 # Flag to hardcode \$libdir into a binary during linking.
14164 # This must work even if \$libdir does not exist.
14165 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14166
14167 # If ld is used when linking, flag to hardcode \$libdir into
14168 # a binary during linking. This must work even if \$libdir does
14169 # not exist.
14170 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14171
14172 # Whether we need a single -rpath flag with a separated argument.
14173 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14174
14175 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14176 # resulting binary.
14177 hardcode_direct=$hardcode_direct_CXX
14178
14179 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14180 # resulting binary.
14181 hardcode_minus_L=$hardcode_minus_L_CXX
14182
14183 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14184 # the resulting binary.
14185 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14186
14187 # Set to yes if building a shared library automatically hardcodes DIR into the library
14188 # and all subsequent libraries and executables linked against it.
14189 hardcode_automatic=$hardcode_automatic_CXX
14190
14191 # Variables whose values should be saved in libtool wrapper scripts and
14192 # restored at relink time.
14193 variables_saved_for_relink="$variables_saved_for_relink"
14194
14195 # Whether libtool must link a program against all its dependency libraries.
14196 link_all_deplibs=$link_all_deplibs_CXX
14197
14198 # Compile-time system search path for libraries
14199 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14200
14201 # Run-time system search path for libraries
14202 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14203
14204 # Fix the shell variable \$srcfile for the compiler.
14205 fix_srcfile_path=$lt_fix_srcfile_path
14206
14207 # Set to yes if exported symbols are required.
14208 always_export_symbols=$always_export_symbols_CXX
14209
14210 # The commands to list exported symbols.
14211 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14212
14213 # The commands to extract the exported symbol list from a shared archive.
14214 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14215
14216 # Symbols that should not be listed in the preloaded symbols.
14217 exclude_expsyms=$lt_exclude_expsyms_CXX
14218
14219 # Symbols that must always be exported.
14220 include_expsyms=$lt_include_expsyms_CXX
14221
14222 # ### END LIBTOOL TAG CONFIG: $tagname
14223
14224 __EOF__
14225
14226
14227 else
14228   # If there is no Makefile yet, we rely on a make rule to execute
14229   # `config.status --recheck' to rerun these tests and create the
14230   # libtool script then.
14231   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14232   if test -f "$ltmain_in"; then
14233     test -f Makefile && make "$ltmain"
14234   fi
14235 fi
14236
14237
14238 ac_ext=c
14239 ac_cpp='$CPP $CPPFLAGS'
14240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14243
14244 CC=$lt_save_CC
14245 LDCXX=$LD
14246 LD=$lt_save_LD
14247 GCC=$lt_save_GCC
14248 with_gnu_ldcxx=$with_gnu_ld
14249 with_gnu_ld=$lt_save_with_gnu_ld
14250 lt_cv_path_LDCXX=$lt_cv_path_LD
14251 lt_cv_path_LD=$lt_save_path_LD
14252 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14253 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14254
14255         else
14256           tagname=""
14257         fi
14258         ;;
14259
14260       F77)
14261         if test -n "$F77" && test "X$F77" != "Xno"; then
14262
14263 ac_ext=f
14264 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14265 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14266 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14267
14268
14269 archive_cmds_need_lc_F77=no
14270 allow_undefined_flag_F77=
14271 always_export_symbols_F77=no
14272 archive_expsym_cmds_F77=
14273 export_dynamic_flag_spec_F77=
14274 hardcode_direct_F77=no
14275 hardcode_libdir_flag_spec_F77=
14276 hardcode_libdir_flag_spec_ld_F77=
14277 hardcode_libdir_separator_F77=
14278 hardcode_minus_L_F77=no
14279 hardcode_automatic_F77=no
14280 module_cmds_F77=
14281 module_expsym_cmds_F77=
14282 link_all_deplibs_F77=unknown
14283 old_archive_cmds_F77=$old_archive_cmds
14284 no_undefined_flag_F77=
14285 whole_archive_flag_spec_F77=
14286 enable_shared_with_static_runtimes_F77=no
14287
14288 # Source file extension for f77 test sources.
14289 ac_ext=f
14290
14291 # Object file extension for compiled f77 test sources.
14292 objext=o
14293 objext_F77=$objext
14294
14295 # Code to be used in simple compile tests
14296 lt_simple_compile_test_code="\
14297       subroutine t
14298       return
14299       end
14300 "
14301
14302 # Code to be used in simple link tests
14303 lt_simple_link_test_code="\
14304       program t
14305       end
14306 "
14307
14308 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14309
14310 # If no C compiler was specified, use CC.
14311 LTCC=${LTCC-"$CC"}
14312
14313 # If no C compiler flags were specified, use CFLAGS.
14314 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14315
14316 # Allow CC to be a program name with arguments.
14317 compiler=$CC
14318
14319
14320 # save warnings/boilerplate of simple test code
14321 ac_outfile=conftest.$ac_objext
14322 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14323 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14324 _lt_compiler_boilerplate=`cat conftest.err`
14325 $rm conftest*
14326
14327 ac_outfile=conftest.$ac_objext
14328 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14329 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14330 _lt_linker_boilerplate=`cat conftest.err`
14331 $rm -r conftest*
14332
14333
14334 # Allow CC to be a program name with arguments.
14335 lt_save_CC="$CC"
14336 CC=${F77-"f77"}
14337 compiler=$CC
14338 compiler_F77=$CC
14339 for cc_temp in $compiler""; do
14340   case $cc_temp in
14341     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14342     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14343     \-*) ;;
14344     *) break;;
14345   esac
14346 done
14347 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14348
14349
14350 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14351 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14352 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14353 echo "${ECHO_T}$can_build_shared" >&6; }
14354
14355 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14356 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14357 test "$can_build_shared" = "no" && enable_shared=no
14358
14359 # On AIX, shared libraries and static libraries use the same namespace, and
14360 # are all built from PIC.
14361 case $host_os in
14362 aix3*)
14363   test "$enable_shared" = yes && enable_static=no
14364   if test -n "$RANLIB"; then
14365     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14366     postinstall_cmds='$RANLIB $lib'
14367   fi
14368   ;;
14369 aix[4-9]*)
14370   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14371     test "$enable_shared" = yes && enable_static=no
14372   fi
14373   ;;
14374 esac
14375 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14376 echo "${ECHO_T}$enable_shared" >&6; }
14377
14378 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14379 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14380 # Make sure either enable_shared or enable_static is yes.
14381 test "$enable_shared" = yes || enable_static=yes
14382 { echo "$as_me:$LINENO: result: $enable_static" >&5
14383 echo "${ECHO_T}$enable_static" >&6; }
14384
14385 GCC_F77="$G77"
14386 LD_F77="$LD"
14387
14388 lt_prog_compiler_wl_F77=
14389 lt_prog_compiler_pic_F77=
14390 lt_prog_compiler_static_F77=
14391
14392 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14393 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14394
14395   if test "$GCC" = yes; then
14396     lt_prog_compiler_wl_F77='-Wl,'
14397     lt_prog_compiler_static_F77='-static'
14398
14399     case $host_os in
14400       aix*)
14401       # All AIX code is PIC.
14402       if test "$host_cpu" = ia64; then
14403         # AIX 5 now supports IA64 processor
14404         lt_prog_compiler_static_F77='-Bstatic'
14405       fi
14406       ;;
14407
14408     amigaos*)
14409       # FIXME: we need at least 68020 code to build shared libraries, but
14410       # adding the `-m68020' flag to GCC prevents building anything better,
14411       # like `-m68040'.
14412       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14413       ;;
14414
14415     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14416       # PIC is the default for these OSes.
14417       ;;
14418
14419     mingw* | cygwin* | pw32* | os2*)
14420       # This hack is so that the source file can tell whether it is being
14421       # built for inclusion in a dll (and should export symbols for example).
14422       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14423       # (--disable-auto-import) libraries
14424       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14425       ;;
14426
14427     darwin* | rhapsody*)
14428       # PIC is the default on this platform
14429       # Common symbols not allowed in MH_DYLIB files
14430       lt_prog_compiler_pic_F77='-fno-common'
14431       ;;
14432
14433     interix[3-9]*)
14434       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14435       # Instead, we relocate shared libraries at runtime.
14436       ;;
14437
14438     msdosdjgpp*)
14439       # Just because we use GCC doesn't mean we suddenly get shared libraries
14440       # on systems that don't support them.
14441       lt_prog_compiler_can_build_shared_F77=no
14442       enable_shared=no
14443       ;;
14444
14445     sysv4*MP*)
14446       if test -d /usr/nec; then
14447         lt_prog_compiler_pic_F77=-Kconform_pic
14448       fi
14449       ;;
14450
14451     hpux*)
14452       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14453       # not for PA HP-UX.
14454       case $host_cpu in
14455       hppa*64*|ia64*)
14456         # +Z the default
14457         ;;
14458       *)
14459         lt_prog_compiler_pic_F77='-fPIC'
14460         ;;
14461       esac
14462       ;;
14463
14464     *)
14465       lt_prog_compiler_pic_F77='-fPIC'
14466       ;;
14467     esac
14468   else
14469     # PORTME Check for flag to pass linker flags through the system compiler.
14470     case $host_os in
14471     aix*)
14472       lt_prog_compiler_wl_F77='-Wl,'
14473       if test "$host_cpu" = ia64; then
14474         # AIX 5 now supports IA64 processor
14475         lt_prog_compiler_static_F77='-Bstatic'
14476       else
14477         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14478       fi
14479       ;;
14480       darwin*)
14481         # PIC is the default on this platform
14482         # Common symbols not allowed in MH_DYLIB files
14483        case $cc_basename in
14484          xlc*)
14485          lt_prog_compiler_pic_F77='-qnocommon'
14486          lt_prog_compiler_wl_F77='-Wl,'
14487          ;;
14488        esac
14489        ;;
14490
14491     mingw* | cygwin* | pw32* | os2*)
14492       # This hack is so that the source file can tell whether it is being
14493       # built for inclusion in a dll (and should export symbols for example).
14494       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14495       ;;
14496
14497     hpux9* | hpux10* | hpux11*)
14498       lt_prog_compiler_wl_F77='-Wl,'
14499       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14500       # not for PA HP-UX.
14501       case $host_cpu in
14502       hppa*64*|ia64*)
14503         # +Z the default
14504         ;;
14505       *)
14506         lt_prog_compiler_pic_F77='+Z'
14507         ;;
14508       esac
14509       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14510       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14511       ;;
14512
14513     irix5* | irix6* | nonstopux*)
14514       lt_prog_compiler_wl_F77='-Wl,'
14515       # PIC (with -KPIC) is the default.
14516       lt_prog_compiler_static_F77='-non_shared'
14517       ;;
14518
14519     newsos6)
14520       lt_prog_compiler_pic_F77='-KPIC'
14521       lt_prog_compiler_static_F77='-Bstatic'
14522       ;;
14523
14524     linux* | k*bsd*-gnu)
14525       case $cc_basename in
14526       icc* | ecc*)
14527         lt_prog_compiler_wl_F77='-Wl,'
14528         lt_prog_compiler_pic_F77='-KPIC'
14529         lt_prog_compiler_static_F77='-static'
14530         ;;
14531       pgcc* | pgf77* | pgf90* | pgf95*)
14532         # Portland Group compilers (*not* the Pentium gcc compiler,
14533         # which looks to be a dead project)
14534         lt_prog_compiler_wl_F77='-Wl,'
14535         lt_prog_compiler_pic_F77='-fpic'
14536         lt_prog_compiler_static_F77='-Bstatic'
14537         ;;
14538       ccc*)
14539         lt_prog_compiler_wl_F77='-Wl,'
14540         # All Alpha code is PIC.
14541         lt_prog_compiler_static_F77='-non_shared'
14542         ;;
14543       *)
14544         case `$CC -V 2>&1 | sed 5q` in
14545         *Sun\ C*)
14546           # Sun C 5.9
14547           lt_prog_compiler_pic_F77='-KPIC'
14548           lt_prog_compiler_static_F77='-Bstatic'
14549           lt_prog_compiler_wl_F77='-Wl,'
14550           ;;
14551         *Sun\ F*)
14552           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14553           lt_prog_compiler_pic_F77='-KPIC'
14554           lt_prog_compiler_static_F77='-Bstatic'
14555           lt_prog_compiler_wl_F77=''
14556           ;;
14557         esac
14558         ;;
14559       esac
14560       ;;
14561
14562     osf3* | osf4* | osf5*)
14563       lt_prog_compiler_wl_F77='-Wl,'
14564       # All OSF/1 code is PIC.
14565       lt_prog_compiler_static_F77='-non_shared'
14566       ;;
14567
14568     rdos*)
14569       lt_prog_compiler_static_F77='-non_shared'
14570       ;;
14571
14572     solaris*)
14573       lt_prog_compiler_pic_F77='-KPIC'
14574       lt_prog_compiler_static_F77='-Bstatic'
14575       case $cc_basename in
14576       f77* | f90* | f95*)
14577         lt_prog_compiler_wl_F77='-Qoption ld ';;
14578       *)
14579         lt_prog_compiler_wl_F77='-Wl,';;
14580       esac
14581       ;;
14582
14583     sunos4*)
14584       lt_prog_compiler_wl_F77='-Qoption ld '
14585       lt_prog_compiler_pic_F77='-PIC'
14586       lt_prog_compiler_static_F77='-Bstatic'
14587       ;;
14588
14589     sysv4 | sysv4.2uw2* | sysv4.3*)
14590       lt_prog_compiler_wl_F77='-Wl,'
14591       lt_prog_compiler_pic_F77='-KPIC'
14592       lt_prog_compiler_static_F77='-Bstatic'
14593       ;;
14594
14595     sysv4*MP*)
14596       if test -d /usr/nec ;then
14597         lt_prog_compiler_pic_F77='-Kconform_pic'
14598         lt_prog_compiler_static_F77='-Bstatic'
14599       fi
14600       ;;
14601
14602     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14603       lt_prog_compiler_wl_F77='-Wl,'
14604       lt_prog_compiler_pic_F77='-KPIC'
14605       lt_prog_compiler_static_F77='-Bstatic'
14606       ;;
14607
14608     unicos*)
14609       lt_prog_compiler_wl_F77='-Wl,'
14610       lt_prog_compiler_can_build_shared_F77=no
14611       ;;
14612
14613     uts4*)
14614       lt_prog_compiler_pic_F77='-pic'
14615       lt_prog_compiler_static_F77='-Bstatic'
14616       ;;
14617
14618     *)
14619       lt_prog_compiler_can_build_shared_F77=no
14620       ;;
14621     esac
14622   fi
14623
14624 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14625 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14626
14627 #
14628 # Check to make sure the PIC flag actually works.
14629 #
14630 if test -n "$lt_prog_compiler_pic_F77"; then
14631
14632 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14633 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14634 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14635   echo $ECHO_N "(cached) $ECHO_C" >&6
14636 else
14637   lt_cv_prog_compiler_pic_works_F77=no
14638   ac_outfile=conftest.$ac_objext
14639    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14640    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14641    # Insert the option either (1) after the last *FLAGS variable, or
14642    # (2) before a word containing "conftest.", or (3) at the end.
14643    # Note that $ac_compile itself does not contain backslashes and begins
14644    # with a dollar sign (not a hyphen), so the echo should work correctly.
14645    # The option is referenced via a variable to avoid confusing sed.
14646    lt_compile=`echo "$ac_compile" | $SED \
14647    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14648    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14649    -e 's:$: $lt_compiler_flag:'`
14650    (eval echo "\"\$as_me:14650: $lt_compile\"" >&5)
14651    (eval "$lt_compile" 2>conftest.err)
14652    ac_status=$?
14653    cat conftest.err >&5
14654    echo "$as_me:14654: \$? = $ac_status" >&5
14655    if (exit $ac_status) && test -s "$ac_outfile"; then
14656      # The compiler can only warn and ignore the option if not recognized
14657      # So say no if there are warnings other than the usual output.
14658      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14659      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14660      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14661        lt_cv_prog_compiler_pic_works_F77=yes
14662      fi
14663    fi
14664    $rm conftest*
14665
14666 fi
14667 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14668 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14669
14670 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14671     case $lt_prog_compiler_pic_F77 in
14672      "" | " "*) ;;
14673      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14674      esac
14675 else
14676     lt_prog_compiler_pic_F77=
14677      lt_prog_compiler_can_build_shared_F77=no
14678 fi
14679
14680 fi
14681 case $host_os in
14682   # For platforms which do not support PIC, -DPIC is meaningless:
14683   *djgpp*)
14684     lt_prog_compiler_pic_F77=
14685     ;;
14686   *)
14687     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14688     ;;
14689 esac
14690
14691 #
14692 # Check to make sure the static flag actually works.
14693 #
14694 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14695 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14696 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14697 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14698   echo $ECHO_N "(cached) $ECHO_C" >&6
14699 else
14700   lt_cv_prog_compiler_static_works_F77=no
14701    save_LDFLAGS="$LDFLAGS"
14702    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14703    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14704    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14705      # The linker can only warn and ignore the option if not recognized
14706      # So say no if there are warnings
14707      if test -s conftest.err; then
14708        # Append any errors to the config.log.
14709        cat conftest.err 1>&5
14710        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14711        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14712        if diff conftest.exp conftest.er2 >/dev/null; then
14713          lt_cv_prog_compiler_static_works_F77=yes
14714        fi
14715      else
14716        lt_cv_prog_compiler_static_works_F77=yes
14717      fi
14718    fi
14719    $rm -r conftest*
14720    LDFLAGS="$save_LDFLAGS"
14721
14722 fi
14723 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14724 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14725
14726 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14727     :
14728 else
14729     lt_prog_compiler_static_F77=
14730 fi
14731
14732
14733 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14734 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14735 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14736   echo $ECHO_N "(cached) $ECHO_C" >&6
14737 else
14738   lt_cv_prog_compiler_c_o_F77=no
14739    $rm -r conftest 2>/dev/null
14740    mkdir conftest
14741    cd conftest
14742    mkdir out
14743    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14744
14745    lt_compiler_flag="-o out/conftest2.$ac_objext"
14746    # Insert the option either (1) after the last *FLAGS variable, or
14747    # (2) before a word containing "conftest.", or (3) at the end.
14748    # Note that $ac_compile itself does not contain backslashes and begins
14749    # with a dollar sign (not a hyphen), so the echo should work correctly.
14750    lt_compile=`echo "$ac_compile" | $SED \
14751    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14752    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14753    -e 's:$: $lt_compiler_flag:'`
14754    (eval echo "\"\$as_me:14754: $lt_compile\"" >&5)
14755    (eval "$lt_compile" 2>out/conftest.err)
14756    ac_status=$?
14757    cat out/conftest.err >&5
14758    echo "$as_me:14758: \$? = $ac_status" >&5
14759    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14760    then
14761      # The compiler can only warn and ignore the option if not recognized
14762      # So say no if there are warnings
14763      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14764      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14765      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14766        lt_cv_prog_compiler_c_o_F77=yes
14767      fi
14768    fi
14769    chmod u+w . 2>&5
14770    $rm conftest*
14771    # SGI C++ compiler will create directory out/ii_files/ for
14772    # template instantiation
14773    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14774    $rm out/* && rmdir out
14775    cd ..
14776    rmdir conftest
14777    $rm conftest*
14778
14779 fi
14780 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14781 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14782
14783
14784 hard_links="nottested"
14785 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14786   # do not overwrite the value of need_locks provided by the user
14787   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14788 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14789   hard_links=yes
14790   $rm conftest*
14791   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14792   touch conftest.a
14793   ln conftest.a conftest.b 2>&5 || hard_links=no
14794   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14795   { echo "$as_me:$LINENO: result: $hard_links" >&5
14796 echo "${ECHO_T}$hard_links" >&6; }
14797   if test "$hard_links" = no; then
14798     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14799 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14800     need_locks=warn
14801   fi
14802 else
14803   need_locks=no
14804 fi
14805
14806 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14807 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14808
14809   runpath_var=
14810   allow_undefined_flag_F77=
14811   enable_shared_with_static_runtimes_F77=no
14812   archive_cmds_F77=
14813   archive_expsym_cmds_F77=
14814   old_archive_From_new_cmds_F77=
14815   old_archive_from_expsyms_cmds_F77=
14816   export_dynamic_flag_spec_F77=
14817   whole_archive_flag_spec_F77=
14818   thread_safe_flag_spec_F77=
14819   hardcode_libdir_flag_spec_F77=
14820   hardcode_libdir_flag_spec_ld_F77=
14821   hardcode_libdir_separator_F77=
14822   hardcode_direct_F77=no
14823   hardcode_minus_L_F77=no
14824   hardcode_shlibpath_var_F77=unsupported
14825   link_all_deplibs_F77=unknown
14826   hardcode_automatic_F77=no
14827   module_cmds_F77=
14828   module_expsym_cmds_F77=
14829   always_export_symbols_F77=no
14830   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14831   # include_expsyms should be a list of space-separated symbols to be *always*
14832   # included in the symbol list
14833   include_expsyms_F77=
14834   # exclude_expsyms can be an extended regexp of symbols to exclude
14835   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14836   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14837   # as well as any symbol that contains `d'.
14838   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14839   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14840   # platforms (ab)use it in PIC code, but their linkers get confused if
14841   # the symbol is explicitly referenced.  Since portable code cannot
14842   # rely on this symbol name, it's probably fine to never include it in
14843   # preloaded symbol tables.
14844   # Exclude shared library initialization/finalization symbols.
14845   extract_expsyms_cmds=
14846   # Just being paranoid about ensuring that cc_basename is set.
14847   for cc_temp in $compiler""; do
14848   case $cc_temp in
14849     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14850     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14851     \-*) ;;
14852     *) break;;
14853   esac
14854 done
14855 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14856
14857   case $host_os in
14858   cygwin* | mingw* | pw32*)
14859     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14860     # When not using gcc, we currently assume that we are using
14861     # Microsoft Visual C++.
14862     if test "$GCC" != yes; then
14863       with_gnu_ld=no
14864     fi
14865     ;;
14866   interix*)
14867     # we just hope/assume this is gcc and not c89 (= MSVC++)
14868     with_gnu_ld=yes
14869     ;;
14870   openbsd*)
14871     with_gnu_ld=no
14872     ;;
14873   esac
14874
14875   ld_shlibs_F77=yes
14876   if test "$with_gnu_ld" = yes; then
14877     # If archive_cmds runs LD, not CC, wlarc should be empty
14878     wlarc='${wl}'
14879
14880     # Set some defaults for GNU ld with shared library support. These
14881     # are reset later if shared libraries are not supported. Putting them
14882     # here allows them to be overridden if necessary.
14883     runpath_var=LD_RUN_PATH
14884     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14885     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14886     # ancient GNU ld didn't support --whole-archive et. al.
14887     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14888         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14889       else
14890         whole_archive_flag_spec_F77=
14891     fi
14892     supports_anon_versioning=no
14893     case `$LD -v 2>/dev/null` in
14894       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14895       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14896       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14897       *\ 2.11.*) ;; # other 2.11 versions
14898       *) supports_anon_versioning=yes ;;
14899     esac
14900
14901     # See if GNU ld supports shared libraries.
14902     case $host_os in
14903     aix[3-9]*)
14904       # On AIX/PPC, the GNU linker is very broken
14905       if test "$host_cpu" != ia64; then
14906         ld_shlibs_F77=no
14907         cat <<EOF 1>&2
14908
14909 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14910 *** to be unable to reliably create shared libraries on AIX.
14911 *** Therefore, libtool is disabling shared libraries support.  If you
14912 *** really care for shared libraries, you may want to modify your PATH
14913 *** so that a non-GNU linker is found, and then restart.
14914
14915 EOF
14916       fi
14917       ;;
14918
14919     amigaos*)
14920       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)'
14921       hardcode_libdir_flag_spec_F77='-L$libdir'
14922       hardcode_minus_L_F77=yes
14923
14924       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14925       # that the semantics of dynamic libraries on AmigaOS, at least up
14926       # to version 4, is to share data among multiple programs linked
14927       # with the same dynamic library.  Since this doesn't match the
14928       # behavior of shared libraries on other platforms, we can't use
14929       # them.
14930       ld_shlibs_F77=no
14931       ;;
14932
14933     beos*)
14934       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14935         allow_undefined_flag_F77=unsupported
14936         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14937         # support --undefined.  This deserves some investigation.  FIXME
14938         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14939       else
14940         ld_shlibs_F77=no
14941       fi
14942       ;;
14943
14944     cygwin* | mingw* | pw32*)
14945       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14946       # as there is no search path for DLLs.
14947       hardcode_libdir_flag_spec_F77='-L$libdir'
14948       allow_undefined_flag_F77=unsupported
14949       always_export_symbols_F77=no
14950       enable_shared_with_static_runtimes_F77=yes
14951       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14952
14953       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14954         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14955         # If the export-symbols file already is a .def file (1st line
14956         # is EXPORTS), use it as is; otherwise, prepend...
14957         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14958           cp $export_symbols $output_objdir/$soname.def;
14959         else
14960           echo EXPORTS > $output_objdir/$soname.def;
14961           cat $export_symbols >> $output_objdir/$soname.def;
14962         fi~
14963         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14964       else
14965         ld_shlibs_F77=no
14966       fi
14967       ;;
14968
14969     interix[3-9]*)
14970       hardcode_direct_F77=no
14971       hardcode_shlibpath_var_F77=no
14972       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14973       export_dynamic_flag_spec_F77='${wl}-E'
14974       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14975       # Instead, shared libraries are loaded at an image base (0x10000000 by
14976       # default) and relocated if they conflict, which is a slow very memory
14977       # consuming and fragmenting process.  To avoid this, we pick a random,
14978       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14979       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14980       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'
14981       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'
14982       ;;
14983
14984     gnu* | linux* | k*bsd*-gnu)
14985       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14986         tmp_addflag=
14987         case $cc_basename,$host_cpu in
14988         pgcc*)                          # Portland Group C compiler
14989           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'
14990           tmp_addflag=' $pic_flag'
14991           ;;
14992         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14993           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'
14994           tmp_addflag=' $pic_flag -Mnomain' ;;
14995         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14996           tmp_addflag=' -i_dynamic' ;;
14997         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14998           tmp_addflag=' -i_dynamic -nofor_main' ;;
14999         ifc* | ifort*)                  # Intel Fortran compiler
15000           tmp_addflag=' -nofor_main' ;;
15001         esac
15002         case `$CC -V 2>&1 | sed 5q` in
15003         *Sun\ C*)                       # Sun C 5.9
15004           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15005           tmp_sharedflag='-G' ;;
15006         *Sun\ F*)                       # Sun Fortran 8.3
15007           tmp_sharedflag='-G' ;;
15008         *)
15009           tmp_sharedflag='-shared' ;;
15010         esac
15011         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15012
15013         if test $supports_anon_versioning = yes; then
15014           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15015   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15016   $echo "local: *; };" >> $output_objdir/$libname.ver~
15017           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15018         fi
15019         link_all_deplibs_F77=no
15020       else
15021         ld_shlibs_F77=no
15022       fi
15023       ;;
15024
15025     netbsd* | netbsdelf*-gnu)
15026       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15027         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15028         wlarc=
15029       else
15030         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15031         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15032       fi
15033       ;;
15034
15035     solaris*)
15036       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15037         ld_shlibs_F77=no
15038         cat <<EOF 1>&2
15039
15040 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15041 *** create shared libraries on Solaris systems.  Therefore, libtool
15042 *** is disabling shared libraries support.  We urge you to upgrade GNU
15043 *** binutils to release 2.9.1 or newer.  Another option is to modify
15044 *** your PATH or compiler configuration so that the native linker is
15045 *** used, and then restart.
15046
15047 EOF
15048       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15049         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15050         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15051       else
15052         ld_shlibs_F77=no
15053       fi
15054       ;;
15055
15056     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15057       case `$LD -v 2>&1` in
15058         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15059         ld_shlibs_F77=no
15060         cat <<_LT_EOF 1>&2
15061
15062 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15063 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15064 *** is disabling shared libraries support.  We urge you to upgrade GNU
15065 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15066 *** your PATH or compiler configuration so that the native linker is
15067 *** used, and then restart.
15068
15069 _LT_EOF
15070         ;;
15071         *)
15072           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15073             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15074             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15075             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15076           else
15077             ld_shlibs_F77=no
15078           fi
15079         ;;
15080       esac
15081       ;;
15082
15083     sunos4*)
15084       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15085       wlarc=
15086       hardcode_direct_F77=yes
15087       hardcode_shlibpath_var_F77=no
15088       ;;
15089
15090     *)
15091       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15092         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15093         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15094       else
15095         ld_shlibs_F77=no
15096       fi
15097       ;;
15098     esac
15099
15100     if test "$ld_shlibs_F77" = no; then
15101       runpath_var=
15102       hardcode_libdir_flag_spec_F77=
15103       export_dynamic_flag_spec_F77=
15104       whole_archive_flag_spec_F77=
15105     fi
15106   else
15107     # PORTME fill in a description of your system's linker (not GNU ld)
15108     case $host_os in
15109     aix3*)
15110       allow_undefined_flag_F77=unsupported
15111       always_export_symbols_F77=yes
15112       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'
15113       # Note: this linker hardcodes the directories in LIBPATH if there
15114       # are no directories specified by -L.
15115       hardcode_minus_L_F77=yes
15116       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15117         # Neither direct hardcoding nor static linking is supported with a
15118         # broken collect2.
15119         hardcode_direct_F77=unsupported
15120       fi
15121       ;;
15122
15123     aix[4-9]*)
15124       if test "$host_cpu" = ia64; then
15125         # On IA64, the linker does run time linking by default, so we don't
15126         # have to do anything special.
15127         aix_use_runtimelinking=no
15128         exp_sym_flag='-Bexport'
15129         no_entry_flag=""
15130       else
15131         # If we're using GNU nm, then we don't want the "-C" option.
15132         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15133         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15134           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'
15135         else
15136           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'
15137         fi
15138         aix_use_runtimelinking=no
15139
15140         # Test if we are trying to use run time linking or normal
15141         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15142         # need to do runtime linking.
15143         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15144           for ld_flag in $LDFLAGS; do
15145           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15146             aix_use_runtimelinking=yes
15147             break
15148           fi
15149           done
15150           ;;
15151         esac
15152
15153         exp_sym_flag='-bexport'
15154         no_entry_flag='-bnoentry'
15155       fi
15156
15157       # When large executables or shared objects are built, AIX ld can
15158       # have problems creating the table of contents.  If linking a library
15159       # or program results in "error TOC overflow" add -mminimal-toc to
15160       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15161       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15162
15163       archive_cmds_F77=''
15164       hardcode_direct_F77=yes
15165       hardcode_libdir_separator_F77=':'
15166       link_all_deplibs_F77=yes
15167
15168       if test "$GCC" = yes; then
15169         case $host_os in aix4.[012]|aix4.[012].*)
15170         # We only want to do this on AIX 4.2 and lower, the check
15171         # below for broken collect2 doesn't work under 4.3+
15172           collect2name=`${CC} -print-prog-name=collect2`
15173           if test -f "$collect2name" && \
15174            strings "$collect2name" | grep resolve_lib_name >/dev/null
15175           then
15176           # We have reworked collect2
15177           :
15178           else
15179           # We have old collect2
15180           hardcode_direct_F77=unsupported
15181           # It fails to find uninstalled libraries when the uninstalled
15182           # path is not listed in the libpath.  Setting hardcode_minus_L
15183           # to unsupported forces relinking
15184           hardcode_minus_L_F77=yes
15185           hardcode_libdir_flag_spec_F77='-L$libdir'
15186           hardcode_libdir_separator_F77=
15187           fi
15188           ;;
15189         esac
15190         shared_flag='-shared'
15191         if test "$aix_use_runtimelinking" = yes; then
15192           shared_flag="$shared_flag "'${wl}-G'
15193         fi
15194       else
15195         # not using gcc
15196         if test "$host_cpu" = ia64; then
15197         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15198         # chokes on -Wl,-G. The following line is correct:
15199           shared_flag='-G'
15200         else
15201           if test "$aix_use_runtimelinking" = yes; then
15202             shared_flag='${wl}-G'
15203           else
15204             shared_flag='${wl}-bM:SRE'
15205           fi
15206         fi
15207       fi
15208
15209       # It seems that -bexpall does not export symbols beginning with
15210       # underscore (_), so it is better to generate a list of symbols to export.
15211       always_export_symbols_F77=yes
15212       if test "$aix_use_runtimelinking" = yes; then
15213         # Warning - without using the other runtime loading flags (-brtl),
15214         # -berok will link without error, but may produce a broken library.
15215         allow_undefined_flag_F77='-berok'
15216        # Determine the default libpath from the value encoded in an empty executable.
15217        cat >conftest.$ac_ext <<_ACEOF
15218       program main
15219
15220       end
15221 _ACEOF
15222 rm -f conftest.$ac_objext conftest$ac_exeext
15223 if { (ac_try="$ac_link"
15224 case "(($ac_try" in
15225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15226   *) ac_try_echo=$ac_try;;
15227 esac
15228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15229   (eval "$ac_link") 2>conftest.er1
15230   ac_status=$?
15231   grep -v '^ *+' conftest.er1 >conftest.err
15232   rm -f conftest.er1
15233   cat conftest.err >&5
15234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235   (exit $ac_status); } && {
15236          test -z "$ac_f77_werror_flag" ||
15237          test ! -s conftest.err
15238        } && test -s conftest$ac_exeext &&
15239        $as_test_x conftest$ac_exeext; then
15240
15241 lt_aix_libpath_sed='
15242     /Import File Strings/,/^$/ {
15243         /^0/ {
15244             s/^0  *\(.*\)$/\1/
15245             p
15246         }
15247     }'
15248 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15249 # Check for a 64-bit object if we didn't find anything.
15250 if test -z "$aix_libpath"; then
15251   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15252 fi
15253 else
15254   echo "$as_me: failed program was:" >&5
15255 sed 's/^/| /' conftest.$ac_ext >&5
15256
15257
15258 fi
15259
15260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15261       conftest$ac_exeext conftest.$ac_ext
15262 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15263
15264        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15265         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"
15266        else
15267         if test "$host_cpu" = ia64; then
15268           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15269           allow_undefined_flag_F77="-z nodefs"
15270           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"
15271         else
15272          # Determine the default libpath from the value encoded in an empty executable.
15273          cat >conftest.$ac_ext <<_ACEOF
15274       program main
15275
15276       end
15277 _ACEOF
15278 rm -f conftest.$ac_objext conftest$ac_exeext
15279 if { (ac_try="$ac_link"
15280 case "(($ac_try" in
15281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282   *) ac_try_echo=$ac_try;;
15283 esac
15284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15285   (eval "$ac_link") 2>conftest.er1
15286   ac_status=$?
15287   grep -v '^ *+' conftest.er1 >conftest.err
15288   rm -f conftest.er1
15289   cat conftest.err >&5
15290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291   (exit $ac_status); } && {
15292          test -z "$ac_f77_werror_flag" ||
15293          test ! -s conftest.err
15294        } && test -s conftest$ac_exeext &&
15295        $as_test_x conftest$ac_exeext; then
15296
15297 lt_aix_libpath_sed='
15298     /Import File Strings/,/^$/ {
15299         /^0/ {
15300             s/^0  *\(.*\)$/\1/
15301             p
15302         }
15303     }'
15304 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15305 # Check for a 64-bit object if we didn't find anything.
15306 if test -z "$aix_libpath"; then
15307   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15308 fi
15309 else
15310   echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15312
15313
15314 fi
15315
15316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15317       conftest$ac_exeext conftest.$ac_ext
15318 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15319
15320          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15321           # Warning - without using the other run time loading flags,
15322           # -berok will link without error, but may produce a broken library.
15323           no_undefined_flag_F77=' ${wl}-bernotok'
15324           allow_undefined_flag_F77=' ${wl}-berok'
15325           # Exported symbols can be pulled into shared objects from archives
15326           whole_archive_flag_spec_F77='$convenience'
15327           archive_cmds_need_lc_F77=yes
15328           # This is similar to how AIX traditionally builds its shared libraries.
15329           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'
15330         fi
15331       fi
15332       ;;
15333
15334     amigaos*)
15335       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)'
15336       hardcode_libdir_flag_spec_F77='-L$libdir'
15337       hardcode_minus_L_F77=yes
15338       # see comment about different semantics on the GNU ld section
15339       ld_shlibs_F77=no
15340       ;;
15341
15342     bsdi[45]*)
15343       export_dynamic_flag_spec_F77=-rdynamic
15344       ;;
15345
15346     cygwin* | mingw* | pw32*)
15347       # When not using gcc, we currently assume that we are using
15348       # Microsoft Visual C++.
15349       # hardcode_libdir_flag_spec is actually meaningless, as there is
15350       # no search path for DLLs.
15351       hardcode_libdir_flag_spec_F77=' '
15352       allow_undefined_flag_F77=unsupported
15353       # Tell ltmain to make .lib files, not .a files.
15354       libext=lib
15355       # Tell ltmain to make .dll files, not .so files.
15356       shrext_cmds=".dll"
15357       # FIXME: Setting linknames here is a bad hack.
15358       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15359       # The linker will automatically build a .lib file if we build a DLL.
15360       old_archive_From_new_cmds_F77='true'
15361       # FIXME: Should let the user specify the lib program.
15362       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15363       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15364       enable_shared_with_static_runtimes_F77=yes
15365       ;;
15366
15367     darwin* | rhapsody*)
15368       case $host_os in
15369         rhapsody* | darwin1.[012])
15370          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15371          ;;
15372        *) # Darwin 1.3 on
15373          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15374            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15375          else
15376            case ${MACOSX_DEPLOYMENT_TARGET} in
15377              10.[012])
15378                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15379                ;;
15380              10.*)
15381                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15382                ;;
15383            esac
15384          fi
15385          ;;
15386       esac
15387       archive_cmds_need_lc_F77=no
15388       hardcode_direct_F77=no
15389       hardcode_automatic_F77=yes
15390       hardcode_shlibpath_var_F77=unsupported
15391       whole_archive_flag_spec_F77=''
15392       link_all_deplibs_F77=yes
15393     if test "$GCC" = yes ; then
15394         output_verbose_link_cmd='echo'
15395         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15396         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15397         archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15398         module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15399     else
15400       case $cc_basename in
15401         xlc*)
15402          output_verbose_link_cmd='echo'
15403          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15404          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15405           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15406          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15407           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}'
15408           ;;
15409        *)
15410          ld_shlibs_F77=no
15411           ;;
15412       esac
15413     fi
15414       ;;
15415
15416     dgux*)
15417       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15418       hardcode_libdir_flag_spec_F77='-L$libdir'
15419       hardcode_shlibpath_var_F77=no
15420       ;;
15421
15422     freebsd1*)
15423       ld_shlibs_F77=no
15424       ;;
15425
15426     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15427     # support.  Future versions do this automatically, but an explicit c++rt0.o
15428     # does not break anything, and helps significantly (at the cost of a little
15429     # extra space).
15430     freebsd2.2*)
15431       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15432       hardcode_libdir_flag_spec_F77='-R$libdir'
15433       hardcode_direct_F77=yes
15434       hardcode_shlibpath_var_F77=no
15435       ;;
15436
15437     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15438     freebsd2*)
15439       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15440       hardcode_direct_F77=yes
15441       hardcode_minus_L_F77=yes
15442       hardcode_shlibpath_var_F77=no
15443       ;;
15444
15445     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15446     freebsd* | dragonfly*)
15447       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15448       hardcode_libdir_flag_spec_F77='-R$libdir'
15449       hardcode_direct_F77=yes
15450       hardcode_shlibpath_var_F77=no
15451       ;;
15452
15453     hpux9*)
15454       if test "$GCC" = yes; then
15455         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'
15456       else
15457         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'
15458       fi
15459       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15460       hardcode_libdir_separator_F77=:
15461       hardcode_direct_F77=yes
15462
15463       # hardcode_minus_L: Not really in the search PATH,
15464       # but as the default location of the library.
15465       hardcode_minus_L_F77=yes
15466       export_dynamic_flag_spec_F77='${wl}-E'
15467       ;;
15468
15469     hpux10*)
15470       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15471         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15472       else
15473         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15474       fi
15475       if test "$with_gnu_ld" = no; then
15476         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15477         hardcode_libdir_separator_F77=:
15478
15479         hardcode_direct_F77=yes
15480         export_dynamic_flag_spec_F77='${wl}-E'
15481
15482         # hardcode_minus_L: Not really in the search PATH,
15483         # but as the default location of the library.
15484         hardcode_minus_L_F77=yes
15485       fi
15486       ;;
15487
15488     hpux11*)
15489       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15490         case $host_cpu in
15491         hppa*64*)
15492           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15493           ;;
15494         ia64*)
15495           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15496           ;;
15497         *)
15498           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15499           ;;
15500         esac
15501       else
15502         case $host_cpu in
15503         hppa*64*)
15504           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15505           ;;
15506         ia64*)
15507           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15508           ;;
15509         *)
15510           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15511           ;;
15512         esac
15513       fi
15514       if test "$with_gnu_ld" = no; then
15515         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15516         hardcode_libdir_separator_F77=:
15517
15518         case $host_cpu in
15519         hppa*64*|ia64*)
15520           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15521           hardcode_direct_F77=no
15522           hardcode_shlibpath_var_F77=no
15523           ;;
15524         *)
15525           hardcode_direct_F77=yes
15526           export_dynamic_flag_spec_F77='${wl}-E'
15527
15528           # hardcode_minus_L: Not really in the search PATH,
15529           # but as the default location of the library.
15530           hardcode_minus_L_F77=yes
15531           ;;
15532         esac
15533       fi
15534       ;;
15535
15536     irix5* | irix6* | nonstopux*)
15537       if test "$GCC" = yes; then
15538         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'
15539       else
15540         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'
15541         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15542       fi
15543       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15544       hardcode_libdir_separator_F77=:
15545       link_all_deplibs_F77=yes
15546       ;;
15547
15548     netbsd* | netbsdelf*-gnu)
15549       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15550         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15551       else
15552         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15553       fi
15554       hardcode_libdir_flag_spec_F77='-R$libdir'
15555       hardcode_direct_F77=yes
15556       hardcode_shlibpath_var_F77=no
15557       ;;
15558
15559     newsos6)
15560       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15561       hardcode_direct_F77=yes
15562       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15563       hardcode_libdir_separator_F77=:
15564       hardcode_shlibpath_var_F77=no
15565       ;;
15566
15567     openbsd*)
15568       if test -f /usr/libexec/ld.so; then
15569         hardcode_direct_F77=yes
15570         hardcode_shlibpath_var_F77=no
15571         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15572           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15573           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15574           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15575           export_dynamic_flag_spec_F77='${wl}-E'
15576         else
15577           case $host_os in
15578            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15579              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15580              hardcode_libdir_flag_spec_F77='-R$libdir'
15581              ;;
15582            *)
15583              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15584              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15585              ;;
15586           esac
15587         fi
15588       else
15589         ld_shlibs_F77=no
15590       fi
15591       ;;
15592
15593     os2*)
15594       hardcode_libdir_flag_spec_F77='-L$libdir'
15595       hardcode_minus_L_F77=yes
15596       allow_undefined_flag_F77=unsupported
15597       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'
15598       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15599       ;;
15600
15601     osf3*)
15602       if test "$GCC" = yes; then
15603         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15604         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'
15605       else
15606         allow_undefined_flag_F77=' -expect_unresolved \*'
15607         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'
15608       fi
15609       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15610       hardcode_libdir_separator_F77=:
15611       ;;
15612
15613     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15614       if test "$GCC" = yes; then
15615         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15616         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'
15617         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15618       else
15619         allow_undefined_flag_F77=' -expect_unresolved \*'
15620         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'
15621         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~
15622         $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'
15623
15624         # Both c and cxx compiler support -rpath directly
15625         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15626       fi
15627       hardcode_libdir_separator_F77=:
15628       ;;
15629
15630     solaris*)
15631       no_undefined_flag_F77=' -z text'
15632       if test "$GCC" = yes; then
15633         wlarc='${wl}'
15634         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15635         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15636           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15637       else
15638         wlarc=''
15639         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15640         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15641         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15642       fi
15643       hardcode_libdir_flag_spec_F77='-R$libdir'
15644       hardcode_shlibpath_var_F77=no
15645       case $host_os in
15646       solaris2.[0-5] | solaris2.[0-5].*) ;;
15647       *)
15648         # The compiler driver will combine and reorder linker options,
15649         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15650         # but is careful enough not to reorder.
15651         # Supported since Solaris 2.6 (maybe 2.5.1?)
15652         if test "$GCC" = yes; then
15653           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15654         else
15655           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15656         fi
15657         ;;
15658       esac
15659       link_all_deplibs_F77=yes
15660       ;;
15661
15662     sunos4*)
15663       if test "x$host_vendor" = xsequent; then
15664         # Use $CC to link under sequent, because it throws in some extra .o
15665         # files that make .init and .fini sections work.
15666         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15667       else
15668         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15669       fi
15670       hardcode_libdir_flag_spec_F77='-L$libdir'
15671       hardcode_direct_F77=yes
15672       hardcode_minus_L_F77=yes
15673       hardcode_shlibpath_var_F77=no
15674       ;;
15675
15676     sysv4)
15677       case $host_vendor in
15678         sni)
15679           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15680           hardcode_direct_F77=yes # is this really true???
15681         ;;
15682         siemens)
15683           ## LD is ld it makes a PLAMLIB
15684           ## CC just makes a GrossModule.
15685           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15686           reload_cmds_F77='$CC -r -o $output$reload_objs'
15687           hardcode_direct_F77=no
15688         ;;
15689         motorola)
15690           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15691           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15692         ;;
15693       esac
15694       runpath_var='LD_RUN_PATH'
15695       hardcode_shlibpath_var_F77=no
15696       ;;
15697
15698     sysv4.3*)
15699       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15700       hardcode_shlibpath_var_F77=no
15701       export_dynamic_flag_spec_F77='-Bexport'
15702       ;;
15703
15704     sysv4*MP*)
15705       if test -d /usr/nec; then
15706         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15707         hardcode_shlibpath_var_F77=no
15708         runpath_var=LD_RUN_PATH
15709         hardcode_runpath_var=yes
15710         ld_shlibs_F77=yes
15711       fi
15712       ;;
15713
15714     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15715       no_undefined_flag_F77='${wl}-z,text'
15716       archive_cmds_need_lc_F77=no
15717       hardcode_shlibpath_var_F77=no
15718       runpath_var='LD_RUN_PATH'
15719
15720       if test "$GCC" = yes; then
15721         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15722         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15723       else
15724         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15725         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15726       fi
15727       ;;
15728
15729     sysv5* | sco3.2v5* | sco5v6*)
15730       # Note: We can NOT use -z defs as we might desire, because we do not
15731       # link with -lc, and that would cause any symbols used from libc to
15732       # always be unresolved, which means just about no library would
15733       # ever link correctly.  If we're not using GNU ld we use -z text
15734       # though, which does catch some bad symbols but isn't as heavy-handed
15735       # as -z defs.
15736       no_undefined_flag_F77='${wl}-z,text'
15737       allow_undefined_flag_F77='${wl}-z,nodefs'
15738       archive_cmds_need_lc_F77=no
15739       hardcode_shlibpath_var_F77=no
15740       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15741       hardcode_libdir_separator_F77=':'
15742       link_all_deplibs_F77=yes
15743       export_dynamic_flag_spec_F77='${wl}-Bexport'
15744       runpath_var='LD_RUN_PATH'
15745
15746       if test "$GCC" = yes; then
15747         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15748         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15749       else
15750         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15751         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15752       fi
15753       ;;
15754
15755     uts4*)
15756       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15757       hardcode_libdir_flag_spec_F77='-L$libdir'
15758       hardcode_shlibpath_var_F77=no
15759       ;;
15760
15761     *)
15762       ld_shlibs_F77=no
15763       ;;
15764     esac
15765   fi
15766
15767 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15768 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15769 test "$ld_shlibs_F77" = no && can_build_shared=no
15770
15771 #
15772 # Do we need to explicitly link libc?
15773 #
15774 case "x$archive_cmds_need_lc_F77" in
15775 x|xyes)
15776   # Assume -lc should be added
15777   archive_cmds_need_lc_F77=yes
15778
15779   if test "$enable_shared" = yes && test "$GCC" = yes; then
15780     case $archive_cmds_F77 in
15781     *'~'*)
15782       # FIXME: we may have to deal with multi-command sequences.
15783       ;;
15784     '$CC '*)
15785       # Test whether the compiler implicitly links with -lc since on some
15786       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15787       # to ld, don't add -lc before -lgcc.
15788       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15789 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15790       $rm conftest*
15791       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15792
15793       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15794   (eval $ac_compile) 2>&5
15795   ac_status=$?
15796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797   (exit $ac_status); } 2>conftest.err; then
15798         soname=conftest
15799         lib=conftest
15800         libobjs=conftest.$ac_objext
15801         deplibs=
15802         wl=$lt_prog_compiler_wl_F77
15803         pic_flag=$lt_prog_compiler_pic_F77
15804         compiler_flags=-v
15805         linker_flags=-v
15806         verstring=
15807         output_objdir=.
15808         libname=conftest
15809         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15810         allow_undefined_flag_F77=
15811         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15812   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15813   ac_status=$?
15814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815   (exit $ac_status); }
15816         then
15817           archive_cmds_need_lc_F77=no
15818         else
15819           archive_cmds_need_lc_F77=yes
15820         fi
15821         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15822       else
15823         cat conftest.err 1>&5
15824       fi
15825       $rm conftest*
15826       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15827 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15828       ;;
15829     esac
15830   fi
15831   ;;
15832 esac
15833
15834 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15835 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15836 library_names_spec=
15837 libname_spec='lib$name'
15838 soname_spec=
15839 shrext_cmds=".so"
15840 postinstall_cmds=
15841 postuninstall_cmds=
15842 finish_cmds=
15843 finish_eval=
15844 shlibpath_var=
15845 shlibpath_overrides_runpath=unknown
15846 version_type=none
15847 dynamic_linker="$host_os ld.so"
15848 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15849
15850 need_lib_prefix=unknown
15851 hardcode_into_libs=no
15852
15853 # when you set need_version to no, make sure it does not cause -set_version
15854 # flags to be left without arguments
15855 need_version=unknown
15856
15857 case $host_os in
15858 aix3*)
15859   version_type=linux
15860   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15861   shlibpath_var=LIBPATH
15862
15863   # AIX 3 has no versioning support, so we append a major version to the name.
15864   soname_spec='${libname}${release}${shared_ext}$major'
15865   ;;
15866
15867 aix[4-9]*)
15868   version_type=linux
15869   need_lib_prefix=no
15870   need_version=no
15871   hardcode_into_libs=yes
15872   if test "$host_cpu" = ia64; then
15873     # AIX 5 supports IA64
15874     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15875     shlibpath_var=LD_LIBRARY_PATH
15876   else
15877     # With GCC up to 2.95.x, collect2 would create an import file
15878     # for dependence libraries.  The import file would start with
15879     # the line `#! .'.  This would cause the generated library to
15880     # depend on `.', always an invalid library.  This was fixed in
15881     # development snapshots of GCC prior to 3.0.
15882     case $host_os in
15883       aix4 | aix4.[01] | aix4.[01].*)
15884       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15885            echo ' yes '
15886            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15887         :
15888       else
15889         can_build_shared=no
15890       fi
15891       ;;
15892     esac
15893     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15894     # soname into executable. Probably we can add versioning support to
15895     # collect2, so additional links can be useful in future.
15896     if test "$aix_use_runtimelinking" = yes; then
15897       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15898       # instead of lib<name>.a to let people know that these are not
15899       # typical AIX shared libraries.
15900       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15901     else
15902       # We preserve .a as extension for shared libraries through AIX4.2
15903       # and later when we are not doing run time linking.
15904       library_names_spec='${libname}${release}.a $libname.a'
15905       soname_spec='${libname}${release}${shared_ext}$major'
15906     fi
15907     shlibpath_var=LIBPATH
15908   fi
15909   ;;
15910
15911 amigaos*)
15912   library_names_spec='$libname.ixlibrary $libname.a'
15913   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15914   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'
15915   ;;
15916
15917 beos*)
15918   library_names_spec='${libname}${shared_ext}'
15919   dynamic_linker="$host_os ld.so"
15920   shlibpath_var=LIBRARY_PATH
15921   ;;
15922
15923 bsdi[45]*)
15924   version_type=linux
15925   need_version=no
15926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927   soname_spec='${libname}${release}${shared_ext}$major'
15928   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15929   shlibpath_var=LD_LIBRARY_PATH
15930   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15931   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15932   # the default ld.so.conf also contains /usr/contrib/lib and
15933   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15934   # libtool to hard-code these into programs
15935   ;;
15936
15937 cygwin* | mingw* | pw32*)
15938   version_type=windows
15939   shrext_cmds=".dll"
15940   need_version=no
15941   need_lib_prefix=no
15942
15943   case $GCC,$host_os in
15944   yes,cygwin* | yes,mingw* | yes,pw32*)
15945     library_names_spec='$libname.dll.a'
15946     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15947     postinstall_cmds='base_file=`basename \${file}`~
15948       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15949       dldir=$destdir/`dirname \$dlpath`~
15950       test -d \$dldir || mkdir -p \$dldir~
15951       $install_prog $dir/$dlname \$dldir/$dlname~
15952       chmod a+x \$dldir/$dlname'
15953     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15954       dlpath=$dir/\$dldll~
15955        $rm \$dlpath'
15956     shlibpath_overrides_runpath=yes
15957
15958     case $host_os in
15959     cygwin*)
15960       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15961       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15962       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15963       ;;
15964     mingw*)
15965       # MinGW DLLs use traditional 'lib' prefix
15966       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15967       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15968       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15969         # It is most probably a Windows format PATH printed by
15970         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15971         # path with ; separators, and with drive letters. We can handle the
15972         # drive letters (cygwin fileutils understands them), so leave them,
15973         # especially as we might pass files found there to a mingw objdump,
15974         # which wouldn't understand a cygwinified path. Ahh.
15975         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15976       else
15977         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15978       fi
15979       ;;
15980     pw32*)
15981       # pw32 DLLs use 'pw' prefix rather than 'lib'
15982       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15983       ;;
15984     esac
15985     ;;
15986
15987   *)
15988     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15989     ;;
15990   esac
15991   dynamic_linker='Win32 ld.exe'
15992   # FIXME: first we should search . and the directory the executable is in
15993   shlibpath_var=PATH
15994   ;;
15995
15996 darwin* | rhapsody*)
15997   dynamic_linker="$host_os dyld"
15998   version_type=darwin
15999   need_lib_prefix=no
16000   need_version=no
16001   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16002   soname_spec='${libname}${release}${major}$shared_ext'
16003   shlibpath_overrides_runpath=yes
16004   shlibpath_var=DYLD_LIBRARY_PATH
16005   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16006
16007   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16008   ;;
16009
16010 dgux*)
16011   version_type=linux
16012   need_lib_prefix=no
16013   need_version=no
16014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16015   soname_spec='${libname}${release}${shared_ext}$major'
16016   shlibpath_var=LD_LIBRARY_PATH
16017   ;;
16018
16019 freebsd1*)
16020   dynamic_linker=no
16021   ;;
16022
16023 freebsd* | dragonfly*)
16024   # DragonFly does not have aout.  When/if they implement a new
16025   # versioning mechanism, adjust this.
16026   if test -x /usr/bin/objformat; then
16027     objformat=`/usr/bin/objformat`
16028   else
16029     case $host_os in
16030     freebsd[123]*) objformat=aout ;;
16031     *) objformat=elf ;;
16032     esac
16033   fi
16034   version_type=freebsd-$objformat
16035   case $version_type in
16036     freebsd-elf*)
16037       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16038       need_version=no
16039       need_lib_prefix=no
16040       ;;
16041     freebsd-*)
16042       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16043       need_version=yes
16044       ;;
16045   esac
16046   shlibpath_var=LD_LIBRARY_PATH
16047   case $host_os in
16048   freebsd2*)
16049     shlibpath_overrides_runpath=yes
16050     ;;
16051   freebsd3.[01]* | freebsdelf3.[01]*)
16052     shlibpath_overrides_runpath=yes
16053     hardcode_into_libs=yes
16054     ;;
16055   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16056   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16057     shlibpath_overrides_runpath=no
16058     hardcode_into_libs=yes
16059     ;;
16060   *) # from 4.6 on, and DragonFly
16061     shlibpath_overrides_runpath=yes
16062     hardcode_into_libs=yes
16063     ;;
16064   esac
16065   ;;
16066
16067 gnu*)
16068   version_type=linux
16069   need_lib_prefix=no
16070   need_version=no
16071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16072   soname_spec='${libname}${release}${shared_ext}$major'
16073   shlibpath_var=LD_LIBRARY_PATH
16074   hardcode_into_libs=yes
16075   ;;
16076
16077 hpux9* | hpux10* | hpux11*)
16078   # Give a soname corresponding to the major version so that dld.sl refuses to
16079   # link against other versions.
16080   version_type=sunos
16081   need_lib_prefix=no
16082   need_version=no
16083   case $host_cpu in
16084   ia64*)
16085     shrext_cmds='.so'
16086     hardcode_into_libs=yes
16087     dynamic_linker="$host_os dld.so"
16088     shlibpath_var=LD_LIBRARY_PATH
16089     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16090     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16091     soname_spec='${libname}${release}${shared_ext}$major'
16092     if test "X$HPUX_IA64_MODE" = X32; then
16093       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16094     else
16095       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16096     fi
16097     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16098     ;;
16099    hppa*64*)
16100      shrext_cmds='.sl'
16101      hardcode_into_libs=yes
16102      dynamic_linker="$host_os dld.sl"
16103      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16104      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16105      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16106      soname_spec='${libname}${release}${shared_ext}$major'
16107      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16108      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16109      ;;
16110    *)
16111     shrext_cmds='.sl'
16112     dynamic_linker="$host_os dld.sl"
16113     shlibpath_var=SHLIB_PATH
16114     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16115     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16116     soname_spec='${libname}${release}${shared_ext}$major'
16117     ;;
16118   esac
16119   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16120   postinstall_cmds='chmod 555 $lib'
16121   ;;
16122
16123 interix[3-9]*)
16124   version_type=linux
16125   need_lib_prefix=no
16126   need_version=no
16127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16128   soname_spec='${libname}${release}${shared_ext}$major'
16129   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16130   shlibpath_var=LD_LIBRARY_PATH
16131   shlibpath_overrides_runpath=no
16132   hardcode_into_libs=yes
16133   ;;
16134
16135 irix5* | irix6* | nonstopux*)
16136   case $host_os in
16137     nonstopux*) version_type=nonstopux ;;
16138     *)
16139         if test "$lt_cv_prog_gnu_ld" = yes; then
16140                 version_type=linux
16141         else
16142                 version_type=irix
16143         fi ;;
16144   esac
16145   need_lib_prefix=no
16146   need_version=no
16147   soname_spec='${libname}${release}${shared_ext}$major'
16148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16149   case $host_os in
16150   irix5* | nonstopux*)
16151     libsuff= shlibsuff=
16152     ;;
16153   *)
16154     case $LD in # libtool.m4 will add one of these switches to LD
16155     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16156       libsuff= shlibsuff= libmagic=32-bit;;
16157     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16158       libsuff=32 shlibsuff=N32 libmagic=N32;;
16159     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16160       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16161     *) libsuff= shlibsuff= libmagic=never-match;;
16162     esac
16163     ;;
16164   esac
16165   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16166   shlibpath_overrides_runpath=no
16167   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16168   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16169   hardcode_into_libs=yes
16170   ;;
16171
16172 # No shared lib support for Linux oldld, aout, or coff.
16173 linux*oldld* | linux*aout* | linux*coff*)
16174   dynamic_linker=no
16175   ;;
16176
16177 # This must be Linux ELF.
16178 linux* | k*bsd*-gnu)
16179   version_type=linux
16180   need_lib_prefix=no
16181   need_version=no
16182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16183   soname_spec='${libname}${release}${shared_ext}$major'
16184   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16185   shlibpath_var=LD_LIBRARY_PATH
16186   shlibpath_overrides_runpath=no
16187   # This implies no fast_install, which is unacceptable.
16188   # Some rework will be needed to allow for fast_install
16189   # before this can be enabled.
16190   hardcode_into_libs=yes
16191
16192   # Append ld.so.conf contents to the search path
16193   if test -f /etc/ld.so.conf; then
16194     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16195     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16196   fi
16197
16198   # We used to test for /lib/ld.so.1 and disable shared libraries on
16199   # powerpc, because MkLinux only supported shared libraries with the
16200   # GNU dynamic linker.  Since this was broken with cross compilers,
16201   # most powerpc-linux boxes support dynamic linking these days and
16202   # people can always --disable-shared, the test was removed, and we
16203   # assume the GNU/Linux dynamic linker is in use.
16204   dynamic_linker='GNU/Linux ld.so'
16205   ;;
16206
16207 netbsdelf*-gnu)
16208   version_type=linux
16209   need_lib_prefix=no
16210   need_version=no
16211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16212   soname_spec='${libname}${release}${shared_ext}$major'
16213   shlibpath_var=LD_LIBRARY_PATH
16214   shlibpath_overrides_runpath=no
16215   hardcode_into_libs=yes
16216   dynamic_linker='NetBSD ld.elf_so'
16217   ;;
16218
16219 netbsd*)
16220   version_type=sunos
16221   need_lib_prefix=no
16222   need_version=no
16223   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16224     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16225     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16226     dynamic_linker='NetBSD (a.out) ld.so'
16227   else
16228     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16229     soname_spec='${libname}${release}${shared_ext}$major'
16230     dynamic_linker='NetBSD ld.elf_so'
16231   fi
16232   shlibpath_var=LD_LIBRARY_PATH
16233   shlibpath_overrides_runpath=yes
16234   hardcode_into_libs=yes
16235   ;;
16236
16237 newsos6)
16238   version_type=linux
16239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16240   shlibpath_var=LD_LIBRARY_PATH
16241   shlibpath_overrides_runpath=yes
16242   ;;
16243
16244 nto-qnx*)
16245   version_type=linux
16246   need_lib_prefix=no
16247   need_version=no
16248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249   soname_spec='${libname}${release}${shared_ext}$major'
16250   shlibpath_var=LD_LIBRARY_PATH
16251   shlibpath_overrides_runpath=yes
16252   ;;
16253
16254 openbsd*)
16255   version_type=sunos
16256   sys_lib_dlsearch_path_spec="/usr/lib"
16257   need_lib_prefix=no
16258   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16259   case $host_os in
16260     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16261     *)                         need_version=no  ;;
16262   esac
16263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16264   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16265   shlibpath_var=LD_LIBRARY_PATH
16266   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16267     case $host_os in
16268       openbsd2.[89] | openbsd2.[89].*)
16269         shlibpath_overrides_runpath=no
16270         ;;
16271       *)
16272         shlibpath_overrides_runpath=yes
16273         ;;
16274       esac
16275   else
16276     shlibpath_overrides_runpath=yes
16277   fi
16278   ;;
16279
16280 os2*)
16281   libname_spec='$name'
16282   shrext_cmds=".dll"
16283   need_lib_prefix=no
16284   library_names_spec='$libname${shared_ext} $libname.a'
16285   dynamic_linker='OS/2 ld.exe'
16286   shlibpath_var=LIBPATH
16287   ;;
16288
16289 osf3* | osf4* | osf5*)
16290   version_type=osf
16291   need_lib_prefix=no
16292   need_version=no
16293   soname_spec='${libname}${release}${shared_ext}$major'
16294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16295   shlibpath_var=LD_LIBRARY_PATH
16296   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16297   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16298   ;;
16299
16300 rdos*)
16301   dynamic_linker=no
16302   ;;
16303
16304 solaris*)
16305   version_type=linux
16306   need_lib_prefix=no
16307   need_version=no
16308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16309   soname_spec='${libname}${release}${shared_ext}$major'
16310   shlibpath_var=LD_LIBRARY_PATH
16311   shlibpath_overrides_runpath=yes
16312   hardcode_into_libs=yes
16313   # ldd complains unless libraries are executable
16314   postinstall_cmds='chmod +x $lib'
16315   ;;
16316
16317 sunos4*)
16318   version_type=sunos
16319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16320   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16321   shlibpath_var=LD_LIBRARY_PATH
16322   shlibpath_overrides_runpath=yes
16323   if test "$with_gnu_ld" = yes; then
16324     need_lib_prefix=no
16325   fi
16326   need_version=yes
16327   ;;
16328
16329 sysv4 | sysv4.3*)
16330   version_type=linux
16331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332   soname_spec='${libname}${release}${shared_ext}$major'
16333   shlibpath_var=LD_LIBRARY_PATH
16334   case $host_vendor in
16335     sni)
16336       shlibpath_overrides_runpath=no
16337       need_lib_prefix=no
16338       export_dynamic_flag_spec='${wl}-Blargedynsym'
16339       runpath_var=LD_RUN_PATH
16340       ;;
16341     siemens)
16342       need_lib_prefix=no
16343       ;;
16344     motorola)
16345       need_lib_prefix=no
16346       need_version=no
16347       shlibpath_overrides_runpath=no
16348       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16349       ;;
16350   esac
16351   ;;
16352
16353 sysv4*MP*)
16354   if test -d /usr/nec ;then
16355     version_type=linux
16356     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16357     soname_spec='$libname${shared_ext}.$major'
16358     shlibpath_var=LD_LIBRARY_PATH
16359   fi
16360   ;;
16361
16362 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16363   version_type=freebsd-elf
16364   need_lib_prefix=no
16365   need_version=no
16366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16367   soname_spec='${libname}${release}${shared_ext}$major'
16368   shlibpath_var=LD_LIBRARY_PATH
16369   hardcode_into_libs=yes
16370   if test "$with_gnu_ld" = yes; then
16371     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16372     shlibpath_overrides_runpath=no
16373   else
16374     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16375     shlibpath_overrides_runpath=yes
16376     case $host_os in
16377       sco3.2v5*)
16378         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16379         ;;
16380     esac
16381   fi
16382   sys_lib_dlsearch_path_spec='/usr/lib'
16383   ;;
16384
16385 uts4*)
16386   version_type=linux
16387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388   soname_spec='${libname}${release}${shared_ext}$major'
16389   shlibpath_var=LD_LIBRARY_PATH
16390   ;;
16391
16392 *)
16393   dynamic_linker=no
16394   ;;
16395 esac
16396 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16397 echo "${ECHO_T}$dynamic_linker" >&6; }
16398 test "$dynamic_linker" = no && can_build_shared=no
16399
16400 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16401   echo $ECHO_N "(cached) $ECHO_C" >&6
16402 else
16403   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16404 fi
16405
16406 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16407 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16408   echo $ECHO_N "(cached) $ECHO_C" >&6
16409 else
16410   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16411 fi
16412
16413 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16414
16415 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16416 if test "$GCC" = yes; then
16417   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16418 fi
16419
16420 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16421 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16422 hardcode_action_F77=
16423 if test -n "$hardcode_libdir_flag_spec_F77" || \
16424    test -n "$runpath_var_F77" || \
16425    test "X$hardcode_automatic_F77" = "Xyes" ; then
16426
16427   # We can hardcode non-existant directories.
16428   if test "$hardcode_direct_F77" != no &&
16429      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16430      # have to relink, otherwise we might link with an installed library
16431      # when we should be linking with a yet-to-be-installed one
16432      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16433      test "$hardcode_minus_L_F77" != no; then
16434     # Linking always hardcodes the temporary library directory.
16435     hardcode_action_F77=relink
16436   else
16437     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16438     hardcode_action_F77=immediate
16439   fi
16440 else
16441   # We cannot hardcode anything, or else we can only hardcode existing
16442   # directories.
16443   hardcode_action_F77=unsupported
16444 fi
16445 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16446 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16447
16448 if test "$hardcode_action_F77" = relink; then
16449   # Fast installation is not supported
16450   enable_fast_install=no
16451 elif test "$shlibpath_overrides_runpath" = yes ||
16452      test "$enable_shared" = no; then
16453   # Fast installation is not necessary
16454   enable_fast_install=needless
16455 fi
16456
16457
16458 # The else clause should only fire when bootstrapping the
16459 # libtool distribution, otherwise you forgot to ship ltmain.sh
16460 # with your package, and you will get complaints that there are
16461 # no rules to generate ltmain.sh.
16462 if test -f "$ltmain"; then
16463   # See if we are running on zsh, and set the options which allow our commands through
16464   # without removal of \ escapes.
16465   if test -n "${ZSH_VERSION+set}" ; then
16466     setopt NO_GLOB_SUBST
16467   fi
16468   # Now quote all the things that may contain metacharacters while being
16469   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16470   # variables and quote the copies for generation of the libtool script.
16471   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16472     SED SHELL STRIP \
16473     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16474     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16475     deplibs_check_method reload_flag reload_cmds need_locks \
16476     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16477     lt_cv_sys_global_symbol_to_c_name_address \
16478     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16479     old_postinstall_cmds old_postuninstall_cmds \
16480     compiler_F77 \
16481     CC_F77 \
16482     LD_F77 \
16483     lt_prog_compiler_wl_F77 \
16484     lt_prog_compiler_pic_F77 \
16485     lt_prog_compiler_static_F77 \
16486     lt_prog_compiler_no_builtin_flag_F77 \
16487     export_dynamic_flag_spec_F77 \
16488     thread_safe_flag_spec_F77 \
16489     whole_archive_flag_spec_F77 \
16490     enable_shared_with_static_runtimes_F77 \
16491     old_archive_cmds_F77 \
16492     old_archive_from_new_cmds_F77 \
16493     predep_objects_F77 \
16494     postdep_objects_F77 \
16495     predeps_F77 \
16496     postdeps_F77 \
16497     compiler_lib_search_path_F77 \
16498     compiler_lib_search_dirs_F77 \
16499     archive_cmds_F77 \
16500     archive_expsym_cmds_F77 \
16501     postinstall_cmds_F77 \
16502     postuninstall_cmds_F77 \
16503     old_archive_from_expsyms_cmds_F77 \
16504     allow_undefined_flag_F77 \
16505     no_undefined_flag_F77 \
16506     export_symbols_cmds_F77 \
16507     hardcode_libdir_flag_spec_F77 \
16508     hardcode_libdir_flag_spec_ld_F77 \
16509     hardcode_libdir_separator_F77 \
16510     hardcode_automatic_F77 \
16511     module_cmds_F77 \
16512     module_expsym_cmds_F77 \
16513     lt_cv_prog_compiler_c_o_F77 \
16514     fix_srcfile_path_F77 \
16515     exclude_expsyms_F77 \
16516     include_expsyms_F77; do
16517
16518     case $var in
16519     old_archive_cmds_F77 | \
16520     old_archive_from_new_cmds_F77 | \
16521     archive_cmds_F77 | \
16522     archive_expsym_cmds_F77 | \
16523     module_cmds_F77 | \
16524     module_expsym_cmds_F77 | \
16525     old_archive_from_expsyms_cmds_F77 | \
16526     export_symbols_cmds_F77 | \
16527     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16528     postinstall_cmds | postuninstall_cmds | \
16529     old_postinstall_cmds | old_postuninstall_cmds | \
16530     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16531       # Double-quote double-evaled strings.
16532       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16533       ;;
16534     *)
16535       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16536       ;;
16537     esac
16538   done
16539
16540   case $lt_echo in
16541   *'\$0 --fallback-echo"')
16542     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16543     ;;
16544   esac
16545
16546 cfgfile="$ofile"
16547
16548   cat <<__EOF__ >> "$cfgfile"
16549 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16550
16551 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16552
16553 # Shell to use when invoking shell scripts.
16554 SHELL=$lt_SHELL
16555
16556 # Whether or not to build shared libraries.
16557 build_libtool_libs=$enable_shared
16558
16559 # Whether or not to build static libraries.
16560 build_old_libs=$enable_static
16561
16562 # Whether or not to add -lc for building shared libraries.
16563 build_libtool_need_lc=$archive_cmds_need_lc_F77
16564
16565 # Whether or not to disallow shared libs when runtime libs are static
16566 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16567
16568 # Whether or not to optimize for fast installation.
16569 fast_install=$enable_fast_install
16570
16571 # The host system.
16572 host_alias=$host_alias
16573 host=$host
16574 host_os=$host_os
16575
16576 # The build system.
16577 build_alias=$build_alias
16578 build=$build
16579 build_os=$build_os
16580
16581 # An echo program that does not interpret backslashes.
16582 echo=$lt_echo
16583
16584 # The archiver.
16585 AR=$lt_AR
16586 AR_FLAGS=$lt_AR_FLAGS
16587
16588 # A C compiler.
16589 LTCC=$lt_LTCC
16590
16591 # LTCC compiler flags.
16592 LTCFLAGS=$lt_LTCFLAGS
16593
16594 # A language-specific compiler.
16595 CC=$lt_compiler_F77
16596
16597 # Is the compiler the GNU C compiler?
16598 with_gcc=$GCC_F77
16599
16600 # An ERE matcher.
16601 EGREP=$lt_EGREP
16602
16603 # The linker used to build libraries.
16604 LD=$lt_LD_F77
16605
16606 # Whether we need hard or soft links.
16607 LN_S=$lt_LN_S
16608
16609 # A BSD-compatible nm program.
16610 NM=$lt_NM
16611
16612 # A symbol stripping program
16613 STRIP=$lt_STRIP
16614
16615 # Used to examine libraries when file_magic_cmd begins "file"
16616 MAGIC_CMD=$MAGIC_CMD
16617
16618 # Used on cygwin: DLL creation program.
16619 DLLTOOL="$DLLTOOL"
16620
16621 # Used on cygwin: object dumper.
16622 OBJDUMP="$OBJDUMP"
16623
16624 # Used on cygwin: assembler.
16625 AS="$AS"
16626
16627 # The name of the directory that contains temporary libtool files.
16628 objdir=$objdir
16629
16630 # How to create reloadable object files.
16631 reload_flag=$lt_reload_flag
16632 reload_cmds=$lt_reload_cmds
16633
16634 # How to pass a linker flag through the compiler.
16635 wl=$lt_lt_prog_compiler_wl_F77
16636
16637 # Object file suffix (normally "o").
16638 objext="$ac_objext"
16639
16640 # Old archive suffix (normally "a").
16641 libext="$libext"
16642
16643 # Shared library suffix (normally ".so").
16644 shrext_cmds='$shrext_cmds'
16645
16646 # Executable file suffix (normally "").
16647 exeext="$exeext"
16648
16649 # Additional compiler flags for building library objects.
16650 pic_flag=$lt_lt_prog_compiler_pic_F77
16651 pic_mode=$pic_mode
16652
16653 # What is the maximum length of a command?
16654 max_cmd_len=$lt_cv_sys_max_cmd_len
16655
16656 # Does compiler simultaneously support -c and -o options?
16657 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16658
16659 # Must we lock files when doing compilation?
16660 need_locks=$lt_need_locks
16661
16662 # Do we need the lib prefix for modules?
16663 need_lib_prefix=$need_lib_prefix
16664
16665 # Do we need a version for libraries?
16666 need_version=$need_version
16667
16668 # Whether dlopen is supported.
16669 dlopen_support=$enable_dlopen
16670
16671 # Whether dlopen of programs is supported.
16672 dlopen_self=$enable_dlopen_self
16673
16674 # Whether dlopen of statically linked programs is supported.
16675 dlopen_self_static=$enable_dlopen_self_static
16676
16677 # Compiler flag to prevent dynamic linking.
16678 link_static_flag=$lt_lt_prog_compiler_static_F77
16679
16680 # Compiler flag to turn off builtin functions.
16681 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16682
16683 # Compiler flag to allow reflexive dlopens.
16684 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16685
16686 # Compiler flag to generate shared objects directly from archives.
16687 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16688
16689 # Compiler flag to generate thread-safe objects.
16690 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16691
16692 # Library versioning type.
16693 version_type=$version_type
16694
16695 # Format of library name prefix.
16696 libname_spec=$lt_libname_spec
16697
16698 # List of archive names.  First name is the real one, the rest are links.
16699 # The last name is the one that the linker finds with -lNAME.
16700 library_names_spec=$lt_library_names_spec
16701
16702 # The coded name of the library, if different from the real name.
16703 soname_spec=$lt_soname_spec
16704
16705 # Commands used to build and install an old-style archive.
16706 RANLIB=$lt_RANLIB
16707 old_archive_cmds=$lt_old_archive_cmds_F77
16708 old_postinstall_cmds=$lt_old_postinstall_cmds
16709 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16710
16711 # Create an old-style archive from a shared archive.
16712 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16713
16714 # Create a temporary old-style archive to link instead of a shared archive.
16715 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16716
16717 # Commands used to build and install a shared archive.
16718 archive_cmds=$lt_archive_cmds_F77
16719 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16720 postinstall_cmds=$lt_postinstall_cmds
16721 postuninstall_cmds=$lt_postuninstall_cmds
16722
16723 # Commands used to build a loadable module (assumed same as above if empty)
16724 module_cmds=$lt_module_cmds_F77
16725 module_expsym_cmds=$lt_module_expsym_cmds_F77
16726
16727 # Commands to strip libraries.
16728 old_striplib=$lt_old_striplib
16729 striplib=$lt_striplib
16730
16731 # Dependencies to place before the objects being linked to create a
16732 # shared library.
16733 predep_objects=$lt_predep_objects_F77
16734
16735 # Dependencies to place after the objects being linked to create a
16736 # shared library.
16737 postdep_objects=$lt_postdep_objects_F77
16738
16739 # Dependencies to place before the objects being linked to create a
16740 # shared library.
16741 predeps=$lt_predeps_F77
16742
16743 # Dependencies to place after the objects being linked to create a
16744 # shared library.
16745 postdeps=$lt_postdeps_F77
16746
16747 # The directories searched by this compiler when creating a shared
16748 # library
16749 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16750
16751 # The library search path used internally by the compiler when linking
16752 # a shared library.
16753 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16754
16755 # Method to check whether dependent libraries are shared objects.
16756 deplibs_check_method=$lt_deplibs_check_method
16757
16758 # Command to use when deplibs_check_method == file_magic.
16759 file_magic_cmd=$lt_file_magic_cmd
16760
16761 # Flag that allows shared libraries with undefined symbols to be built.
16762 allow_undefined_flag=$lt_allow_undefined_flag_F77
16763
16764 # Flag that forces no undefined symbols.
16765 no_undefined_flag=$lt_no_undefined_flag_F77
16766
16767 # Commands used to finish a libtool library installation in a directory.
16768 finish_cmds=$lt_finish_cmds
16769
16770 # Same as above, but a single script fragment to be evaled but not shown.
16771 finish_eval=$lt_finish_eval
16772
16773 # Take the output of nm and produce a listing of raw symbols and C names.
16774 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16775
16776 # Transform the output of nm in a proper C declaration
16777 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16778
16779 # Transform the output of nm in a C name address pair
16780 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16781
16782 # This is the shared library runtime path variable.
16783 runpath_var=$runpath_var
16784
16785 # This is the shared library path variable.
16786 shlibpath_var=$shlibpath_var
16787
16788 # Is shlibpath searched before the hard-coded library search path?
16789 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16790
16791 # How to hardcode a shared library path into an executable.
16792 hardcode_action=$hardcode_action_F77
16793
16794 # Whether we should hardcode library paths into libraries.
16795 hardcode_into_libs=$hardcode_into_libs
16796
16797 # Flag to hardcode \$libdir into a binary during linking.
16798 # This must work even if \$libdir does not exist.
16799 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16800
16801 # If ld is used when linking, flag to hardcode \$libdir into
16802 # a binary during linking. This must work even if \$libdir does
16803 # not exist.
16804 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16805
16806 # Whether we need a single -rpath flag with a separated argument.
16807 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16808
16809 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16810 # resulting binary.
16811 hardcode_direct=$hardcode_direct_F77
16812
16813 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16814 # resulting binary.
16815 hardcode_minus_L=$hardcode_minus_L_F77
16816
16817 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16818 # the resulting binary.
16819 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16820
16821 # Set to yes if building a shared library automatically hardcodes DIR into the library
16822 # and all subsequent libraries and executables linked against it.
16823 hardcode_automatic=$hardcode_automatic_F77
16824
16825 # Variables whose values should be saved in libtool wrapper scripts and
16826 # restored at relink time.
16827 variables_saved_for_relink="$variables_saved_for_relink"
16828
16829 # Whether libtool must link a program against all its dependency libraries.
16830 link_all_deplibs=$link_all_deplibs_F77
16831
16832 # Compile-time system search path for libraries
16833 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16834
16835 # Run-time system search path for libraries
16836 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16837
16838 # Fix the shell variable \$srcfile for the compiler.
16839 fix_srcfile_path=$lt_fix_srcfile_path
16840
16841 # Set to yes if exported symbols are required.
16842 always_export_symbols=$always_export_symbols_F77
16843
16844 # The commands to list exported symbols.
16845 export_symbols_cmds=$lt_export_symbols_cmds_F77
16846
16847 # The commands to extract the exported symbol list from a shared archive.
16848 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16849
16850 # Symbols that should not be listed in the preloaded symbols.
16851 exclude_expsyms=$lt_exclude_expsyms_F77
16852
16853 # Symbols that must always be exported.
16854 include_expsyms=$lt_include_expsyms_F77
16855
16856 # ### END LIBTOOL TAG CONFIG: $tagname
16857
16858 __EOF__
16859
16860
16861 else
16862   # If there is no Makefile yet, we rely on a make rule to execute
16863   # `config.status --recheck' to rerun these tests and create the
16864   # libtool script then.
16865   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16866   if test -f "$ltmain_in"; then
16867     test -f Makefile && make "$ltmain"
16868   fi
16869 fi
16870
16871
16872 ac_ext=c
16873 ac_cpp='$CPP $CPPFLAGS'
16874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16877
16878 CC="$lt_save_CC"
16879
16880         else
16881           tagname=""
16882         fi
16883         ;;
16884
16885       GCJ)
16886         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16887
16888
16889 # Source file extension for Java test sources.
16890 ac_ext=java
16891
16892 # Object file extension for compiled Java test sources.
16893 objext=o
16894 objext_GCJ=$objext
16895
16896 # Code to be used in simple compile tests
16897 lt_simple_compile_test_code="class foo {}"
16898
16899 # Code to be used in simple link tests
16900 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16901
16902 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16903
16904 # If no C compiler was specified, use CC.
16905 LTCC=${LTCC-"$CC"}
16906
16907 # If no C compiler flags were specified, use CFLAGS.
16908 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16909
16910 # Allow CC to be a program name with arguments.
16911 compiler=$CC
16912
16913
16914 # save warnings/boilerplate of simple test code
16915 ac_outfile=conftest.$ac_objext
16916 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16917 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16918 _lt_compiler_boilerplate=`cat conftest.err`
16919 $rm conftest*
16920
16921 ac_outfile=conftest.$ac_objext
16922 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16923 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16924 _lt_linker_boilerplate=`cat conftest.err`
16925 $rm -r conftest*
16926
16927
16928 # Allow CC to be a program name with arguments.
16929 lt_save_CC="$CC"
16930 CC=${GCJ-"gcj"}
16931 compiler=$CC
16932 compiler_GCJ=$CC
16933 for cc_temp in $compiler""; do
16934   case $cc_temp in
16935     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16936     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16937     \-*) ;;
16938     *) break;;
16939   esac
16940 done
16941 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16942
16943
16944 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16945 archive_cmds_need_lc_GCJ=no
16946
16947 old_archive_cmds_GCJ=$old_archive_cmds
16948
16949
16950 lt_prog_compiler_no_builtin_flag_GCJ=
16951
16952 if test "$GCC" = yes; then
16953   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16954
16955
16956 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16957 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16958 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16959   echo $ECHO_N "(cached) $ECHO_C" >&6
16960 else
16961   lt_cv_prog_compiler_rtti_exceptions=no
16962   ac_outfile=conftest.$ac_objext
16963    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16964    lt_compiler_flag="-fno-rtti -fno-exceptions"
16965    # Insert the option either (1) after the last *FLAGS variable, or
16966    # (2) before a word containing "conftest.", or (3) at the end.
16967    # Note that $ac_compile itself does not contain backslashes and begins
16968    # with a dollar sign (not a hyphen), so the echo should work correctly.
16969    # The option is referenced via a variable to avoid confusing sed.
16970    lt_compile=`echo "$ac_compile" | $SED \
16971    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16972    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16973    -e 's:$: $lt_compiler_flag:'`
16974    (eval echo "\"\$as_me:16974: $lt_compile\"" >&5)
16975    (eval "$lt_compile" 2>conftest.err)
16976    ac_status=$?
16977    cat conftest.err >&5
16978    echo "$as_me:16978: \$? = $ac_status" >&5
16979    if (exit $ac_status) && test -s "$ac_outfile"; then
16980      # The compiler can only warn and ignore the option if not recognized
16981      # So say no if there are warnings other than the usual output.
16982      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16983      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16984      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16985        lt_cv_prog_compiler_rtti_exceptions=yes
16986      fi
16987    fi
16988    $rm conftest*
16989
16990 fi
16991 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16992 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16993
16994 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16995     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16996 else
16997     :
16998 fi
16999
17000 fi
17001
17002 lt_prog_compiler_wl_GCJ=
17003 lt_prog_compiler_pic_GCJ=
17004 lt_prog_compiler_static_GCJ=
17005
17006 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17007 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17008
17009   if test "$GCC" = yes; then
17010     lt_prog_compiler_wl_GCJ='-Wl,'
17011     lt_prog_compiler_static_GCJ='-static'
17012
17013     case $host_os in
17014       aix*)
17015       # All AIX code is PIC.
17016       if test "$host_cpu" = ia64; then
17017         # AIX 5 now supports IA64 processor
17018         lt_prog_compiler_static_GCJ='-Bstatic'
17019       fi
17020       ;;
17021
17022     amigaos*)
17023       # FIXME: we need at least 68020 code to build shared libraries, but
17024       # adding the `-m68020' flag to GCC prevents building anything better,
17025       # like `-m68040'.
17026       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17027       ;;
17028
17029     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17030       # PIC is the default for these OSes.
17031       ;;
17032
17033     mingw* | cygwin* | pw32* | os2*)
17034       # This hack is so that the source file can tell whether it is being
17035       # built for inclusion in a dll (and should export symbols for example).
17036       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17037       # (--disable-auto-import) libraries
17038
17039       ;;
17040
17041     darwin* | rhapsody*)
17042       # PIC is the default on this platform
17043       # Common symbols not allowed in MH_DYLIB files
17044       lt_prog_compiler_pic_GCJ='-fno-common'
17045       ;;
17046
17047     interix[3-9]*)
17048       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17049       # Instead, we relocate shared libraries at runtime.
17050       ;;
17051
17052     msdosdjgpp*)
17053       # Just because we use GCC doesn't mean we suddenly get shared libraries
17054       # on systems that don't support them.
17055       lt_prog_compiler_can_build_shared_GCJ=no
17056       enable_shared=no
17057       ;;
17058
17059     sysv4*MP*)
17060       if test -d /usr/nec; then
17061         lt_prog_compiler_pic_GCJ=-Kconform_pic
17062       fi
17063       ;;
17064
17065     hpux*)
17066       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17067       # not for PA HP-UX.
17068       case $host_cpu in
17069       hppa*64*|ia64*)
17070         # +Z the default
17071         ;;
17072       *)
17073         lt_prog_compiler_pic_GCJ='-fPIC'
17074         ;;
17075       esac
17076       ;;
17077
17078     *)
17079       lt_prog_compiler_pic_GCJ='-fPIC'
17080       ;;
17081     esac
17082   else
17083     # PORTME Check for flag to pass linker flags through the system compiler.
17084     case $host_os in
17085     aix*)
17086       lt_prog_compiler_wl_GCJ='-Wl,'
17087       if test "$host_cpu" = ia64; then
17088         # AIX 5 now supports IA64 processor
17089         lt_prog_compiler_static_GCJ='-Bstatic'
17090       else
17091         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17092       fi
17093       ;;
17094       darwin*)
17095         # PIC is the default on this platform
17096         # Common symbols not allowed in MH_DYLIB files
17097        case $cc_basename in
17098          xlc*)
17099          lt_prog_compiler_pic_GCJ='-qnocommon'
17100          lt_prog_compiler_wl_GCJ='-Wl,'
17101          ;;
17102        esac
17103        ;;
17104
17105     mingw* | cygwin* | pw32* | os2*)
17106       # This hack is so that the source file can tell whether it is being
17107       # built for inclusion in a dll (and should export symbols for example).
17108
17109       ;;
17110
17111     hpux9* | hpux10* | hpux11*)
17112       lt_prog_compiler_wl_GCJ='-Wl,'
17113       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17114       # not for PA HP-UX.
17115       case $host_cpu in
17116       hppa*64*|ia64*)
17117         # +Z the default
17118         ;;
17119       *)
17120         lt_prog_compiler_pic_GCJ='+Z'
17121         ;;
17122       esac
17123       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17124       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17125       ;;
17126
17127     irix5* | irix6* | nonstopux*)
17128       lt_prog_compiler_wl_GCJ='-Wl,'
17129       # PIC (with -KPIC) is the default.
17130       lt_prog_compiler_static_GCJ='-non_shared'
17131       ;;
17132
17133     newsos6)
17134       lt_prog_compiler_pic_GCJ='-KPIC'
17135       lt_prog_compiler_static_GCJ='-Bstatic'
17136       ;;
17137
17138     linux* | k*bsd*-gnu)
17139       case $cc_basename in
17140       icc* | ecc*)
17141         lt_prog_compiler_wl_GCJ='-Wl,'
17142         lt_prog_compiler_pic_GCJ='-KPIC'
17143         lt_prog_compiler_static_GCJ='-static'
17144         ;;
17145       pgcc* | pgf77* | pgf90* | pgf95*)
17146         # Portland Group compilers (*not* the Pentium gcc compiler,
17147         # which looks to be a dead project)
17148         lt_prog_compiler_wl_GCJ='-Wl,'
17149         lt_prog_compiler_pic_GCJ='-fpic'
17150         lt_prog_compiler_static_GCJ='-Bstatic'
17151         ;;
17152       ccc*)
17153         lt_prog_compiler_wl_GCJ='-Wl,'
17154         # All Alpha code is PIC.
17155         lt_prog_compiler_static_GCJ='-non_shared'
17156         ;;
17157       *)
17158         case `$CC -V 2>&1 | sed 5q` in
17159         *Sun\ C*)
17160           # Sun C 5.9
17161           lt_prog_compiler_pic_GCJ='-KPIC'
17162           lt_prog_compiler_static_GCJ='-Bstatic'
17163           lt_prog_compiler_wl_GCJ='-Wl,'
17164           ;;
17165         *Sun\ F*)
17166           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17167           lt_prog_compiler_pic_GCJ='-KPIC'
17168           lt_prog_compiler_static_GCJ='-Bstatic'
17169           lt_prog_compiler_wl_GCJ=''
17170           ;;
17171         esac
17172         ;;
17173       esac
17174       ;;
17175
17176     osf3* | osf4* | osf5*)
17177       lt_prog_compiler_wl_GCJ='-Wl,'
17178       # All OSF/1 code is PIC.
17179       lt_prog_compiler_static_GCJ='-non_shared'
17180       ;;
17181
17182     rdos*)
17183       lt_prog_compiler_static_GCJ='-non_shared'
17184       ;;
17185
17186     solaris*)
17187       lt_prog_compiler_pic_GCJ='-KPIC'
17188       lt_prog_compiler_static_GCJ='-Bstatic'
17189       case $cc_basename in
17190       f77* | f90* | f95*)
17191         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17192       *)
17193         lt_prog_compiler_wl_GCJ='-Wl,';;
17194       esac
17195       ;;
17196
17197     sunos4*)
17198       lt_prog_compiler_wl_GCJ='-Qoption ld '
17199       lt_prog_compiler_pic_GCJ='-PIC'
17200       lt_prog_compiler_static_GCJ='-Bstatic'
17201       ;;
17202
17203     sysv4 | sysv4.2uw2* | sysv4.3*)
17204       lt_prog_compiler_wl_GCJ='-Wl,'
17205       lt_prog_compiler_pic_GCJ='-KPIC'
17206       lt_prog_compiler_static_GCJ='-Bstatic'
17207       ;;
17208
17209     sysv4*MP*)
17210       if test -d /usr/nec ;then
17211         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17212         lt_prog_compiler_static_GCJ='-Bstatic'
17213       fi
17214       ;;
17215
17216     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17217       lt_prog_compiler_wl_GCJ='-Wl,'
17218       lt_prog_compiler_pic_GCJ='-KPIC'
17219       lt_prog_compiler_static_GCJ='-Bstatic'
17220       ;;
17221
17222     unicos*)
17223       lt_prog_compiler_wl_GCJ='-Wl,'
17224       lt_prog_compiler_can_build_shared_GCJ=no
17225       ;;
17226
17227     uts4*)
17228       lt_prog_compiler_pic_GCJ='-pic'
17229       lt_prog_compiler_static_GCJ='-Bstatic'
17230       ;;
17231
17232     *)
17233       lt_prog_compiler_can_build_shared_GCJ=no
17234       ;;
17235     esac
17236   fi
17237
17238 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17239 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17240
17241 #
17242 # Check to make sure the PIC flag actually works.
17243 #
17244 if test -n "$lt_prog_compiler_pic_GCJ"; then
17245
17246 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17247 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17248 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17249   echo $ECHO_N "(cached) $ECHO_C" >&6
17250 else
17251   lt_cv_prog_compiler_pic_works_GCJ=no
17252   ac_outfile=conftest.$ac_objext
17253    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17254    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17255    # Insert the option either (1) after the last *FLAGS variable, or
17256    # (2) before a word containing "conftest.", or (3) at the end.
17257    # Note that $ac_compile itself does not contain backslashes and begins
17258    # with a dollar sign (not a hyphen), so the echo should work correctly.
17259    # The option is referenced via a variable to avoid confusing sed.
17260    lt_compile=`echo "$ac_compile" | $SED \
17261    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17262    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17263    -e 's:$: $lt_compiler_flag:'`
17264    (eval echo "\"\$as_me:17264: $lt_compile\"" >&5)
17265    (eval "$lt_compile" 2>conftest.err)
17266    ac_status=$?
17267    cat conftest.err >&5
17268    echo "$as_me:17268: \$? = $ac_status" >&5
17269    if (exit $ac_status) && test -s "$ac_outfile"; then
17270      # The compiler can only warn and ignore the option if not recognized
17271      # So say no if there are warnings other than the usual output.
17272      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17273      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17274      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17275        lt_cv_prog_compiler_pic_works_GCJ=yes
17276      fi
17277    fi
17278    $rm conftest*
17279
17280 fi
17281 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17282 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17283
17284 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17285     case $lt_prog_compiler_pic_GCJ in
17286      "" | " "*) ;;
17287      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17288      esac
17289 else
17290     lt_prog_compiler_pic_GCJ=
17291      lt_prog_compiler_can_build_shared_GCJ=no
17292 fi
17293
17294 fi
17295 case $host_os in
17296   # For platforms which do not support PIC, -DPIC is meaningless:
17297   *djgpp*)
17298     lt_prog_compiler_pic_GCJ=
17299     ;;
17300   *)
17301     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17302     ;;
17303 esac
17304
17305 #
17306 # Check to make sure the static flag actually works.
17307 #
17308 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17309 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17310 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17311 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17312   echo $ECHO_N "(cached) $ECHO_C" >&6
17313 else
17314   lt_cv_prog_compiler_static_works_GCJ=no
17315    save_LDFLAGS="$LDFLAGS"
17316    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17317    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17318    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17319      # The linker can only warn and ignore the option if not recognized
17320      # So say no if there are warnings
17321      if test -s conftest.err; then
17322        # Append any errors to the config.log.
17323        cat conftest.err 1>&5
17324        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17325        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17326        if diff conftest.exp conftest.er2 >/dev/null; then
17327          lt_cv_prog_compiler_static_works_GCJ=yes
17328        fi
17329      else
17330        lt_cv_prog_compiler_static_works_GCJ=yes
17331      fi
17332    fi
17333    $rm -r conftest*
17334    LDFLAGS="$save_LDFLAGS"
17335
17336 fi
17337 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17338 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17339
17340 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17341     :
17342 else
17343     lt_prog_compiler_static_GCJ=
17344 fi
17345
17346
17347 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17348 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17349 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17350   echo $ECHO_N "(cached) $ECHO_C" >&6
17351 else
17352   lt_cv_prog_compiler_c_o_GCJ=no
17353    $rm -r conftest 2>/dev/null
17354    mkdir conftest
17355    cd conftest
17356    mkdir out
17357    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17358
17359    lt_compiler_flag="-o out/conftest2.$ac_objext"
17360    # Insert the option either (1) after the last *FLAGS variable, or
17361    # (2) before a word containing "conftest.", or (3) at the end.
17362    # Note that $ac_compile itself does not contain backslashes and begins
17363    # with a dollar sign (not a hyphen), so the echo should work correctly.
17364    lt_compile=`echo "$ac_compile" | $SED \
17365    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17366    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17367    -e 's:$: $lt_compiler_flag:'`
17368    (eval echo "\"\$as_me:17368: $lt_compile\"" >&5)
17369    (eval "$lt_compile" 2>out/conftest.err)
17370    ac_status=$?
17371    cat out/conftest.err >&5
17372    echo "$as_me:17372: \$? = $ac_status" >&5
17373    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17374    then
17375      # The compiler can only warn and ignore the option if not recognized
17376      # So say no if there are warnings
17377      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17378      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17379      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17380        lt_cv_prog_compiler_c_o_GCJ=yes
17381      fi
17382    fi
17383    chmod u+w . 2>&5
17384    $rm conftest*
17385    # SGI C++ compiler will create directory out/ii_files/ for
17386    # template instantiation
17387    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17388    $rm out/* && rmdir out
17389    cd ..
17390    rmdir conftest
17391    $rm conftest*
17392
17393 fi
17394 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17395 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17396
17397
17398 hard_links="nottested"
17399 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17400   # do not overwrite the value of need_locks provided by the user
17401   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17402 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17403   hard_links=yes
17404   $rm conftest*
17405   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17406   touch conftest.a
17407   ln conftest.a conftest.b 2>&5 || hard_links=no
17408   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17409   { echo "$as_me:$LINENO: result: $hard_links" >&5
17410 echo "${ECHO_T}$hard_links" >&6; }
17411   if test "$hard_links" = no; then
17412     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17413 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17414     need_locks=warn
17415   fi
17416 else
17417   need_locks=no
17418 fi
17419
17420 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17421 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17422
17423   runpath_var=
17424   allow_undefined_flag_GCJ=
17425   enable_shared_with_static_runtimes_GCJ=no
17426   archive_cmds_GCJ=
17427   archive_expsym_cmds_GCJ=
17428   old_archive_From_new_cmds_GCJ=
17429   old_archive_from_expsyms_cmds_GCJ=
17430   export_dynamic_flag_spec_GCJ=
17431   whole_archive_flag_spec_GCJ=
17432   thread_safe_flag_spec_GCJ=
17433   hardcode_libdir_flag_spec_GCJ=
17434   hardcode_libdir_flag_spec_ld_GCJ=
17435   hardcode_libdir_separator_GCJ=
17436   hardcode_direct_GCJ=no
17437   hardcode_minus_L_GCJ=no
17438   hardcode_shlibpath_var_GCJ=unsupported
17439   link_all_deplibs_GCJ=unknown
17440   hardcode_automatic_GCJ=no
17441   module_cmds_GCJ=
17442   module_expsym_cmds_GCJ=
17443   always_export_symbols_GCJ=no
17444   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17445   # include_expsyms should be a list of space-separated symbols to be *always*
17446   # included in the symbol list
17447   include_expsyms_GCJ=
17448   # exclude_expsyms can be an extended regexp of symbols to exclude
17449   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17450   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17451   # as well as any symbol that contains `d'.
17452   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17453   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17454   # platforms (ab)use it in PIC code, but their linkers get confused if
17455   # the symbol is explicitly referenced.  Since portable code cannot
17456   # rely on this symbol name, it's probably fine to never include it in
17457   # preloaded symbol tables.
17458   # Exclude shared library initialization/finalization symbols.
17459   extract_expsyms_cmds=
17460   # Just being paranoid about ensuring that cc_basename is set.
17461   for cc_temp in $compiler""; do
17462   case $cc_temp in
17463     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17464     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17465     \-*) ;;
17466     *) break;;
17467   esac
17468 done
17469 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17470
17471   case $host_os in
17472   cygwin* | mingw* | pw32*)
17473     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17474     # When not using gcc, we currently assume that we are using
17475     # Microsoft Visual C++.
17476     if test "$GCC" != yes; then
17477       with_gnu_ld=no
17478     fi
17479     ;;
17480   interix*)
17481     # we just hope/assume this is gcc and not c89 (= MSVC++)
17482     with_gnu_ld=yes
17483     ;;
17484   openbsd*)
17485     with_gnu_ld=no
17486     ;;
17487   esac
17488
17489   ld_shlibs_GCJ=yes
17490   if test "$with_gnu_ld" = yes; then
17491     # If archive_cmds runs LD, not CC, wlarc should be empty
17492     wlarc='${wl}'
17493
17494     # Set some defaults for GNU ld with shared library support. These
17495     # are reset later if shared libraries are not supported. Putting them
17496     # here allows them to be overridden if necessary.
17497     runpath_var=LD_RUN_PATH
17498     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17499     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17500     # ancient GNU ld didn't support --whole-archive et. al.
17501     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17502         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17503       else
17504         whole_archive_flag_spec_GCJ=
17505     fi
17506     supports_anon_versioning=no
17507     case `$LD -v 2>/dev/null` in
17508       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17509       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17510       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17511       *\ 2.11.*) ;; # other 2.11 versions
17512       *) supports_anon_versioning=yes ;;
17513     esac
17514
17515     # See if GNU ld supports shared libraries.
17516     case $host_os in
17517     aix[3-9]*)
17518       # On AIX/PPC, the GNU linker is very broken
17519       if test "$host_cpu" != ia64; then
17520         ld_shlibs_GCJ=no
17521         cat <<EOF 1>&2
17522
17523 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17524 *** to be unable to reliably create shared libraries on AIX.
17525 *** Therefore, libtool is disabling shared libraries support.  If you
17526 *** really care for shared libraries, you may want to modify your PATH
17527 *** so that a non-GNU linker is found, and then restart.
17528
17529 EOF
17530       fi
17531       ;;
17532
17533     amigaos*)
17534       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)'
17535       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17536       hardcode_minus_L_GCJ=yes
17537
17538       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17539       # that the semantics of dynamic libraries on AmigaOS, at least up
17540       # to version 4, is to share data among multiple programs linked
17541       # with the same dynamic library.  Since this doesn't match the
17542       # behavior of shared libraries on other platforms, we can't use
17543       # them.
17544       ld_shlibs_GCJ=no
17545       ;;
17546
17547     beos*)
17548       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17549         allow_undefined_flag_GCJ=unsupported
17550         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17551         # support --undefined.  This deserves some investigation.  FIXME
17552         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17553       else
17554         ld_shlibs_GCJ=no
17555       fi
17556       ;;
17557
17558     cygwin* | mingw* | pw32*)
17559       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17560       # as there is no search path for DLLs.
17561       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17562       allow_undefined_flag_GCJ=unsupported
17563       always_export_symbols_GCJ=no
17564       enable_shared_with_static_runtimes_GCJ=yes
17565       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17566
17567       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17568         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17569         # If the export-symbols file already is a .def file (1st line
17570         # is EXPORTS), use it as is; otherwise, prepend...
17571         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17572           cp $export_symbols $output_objdir/$soname.def;
17573         else
17574           echo EXPORTS > $output_objdir/$soname.def;
17575           cat $export_symbols >> $output_objdir/$soname.def;
17576         fi~
17577         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17578       else
17579         ld_shlibs_GCJ=no
17580       fi
17581       ;;
17582
17583     interix[3-9]*)
17584       hardcode_direct_GCJ=no
17585       hardcode_shlibpath_var_GCJ=no
17586       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17587       export_dynamic_flag_spec_GCJ='${wl}-E'
17588       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17589       # Instead, shared libraries are loaded at an image base (0x10000000 by
17590       # default) and relocated if they conflict, which is a slow very memory
17591       # consuming and fragmenting process.  To avoid this, we pick a random,
17592       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17593       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17594       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'
17595       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'
17596       ;;
17597
17598     gnu* | linux* | k*bsd*-gnu)
17599       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17600         tmp_addflag=
17601         case $cc_basename,$host_cpu in
17602         pgcc*)                          # Portland Group C compiler
17603           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'
17604           tmp_addflag=' $pic_flag'
17605           ;;
17606         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17607           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'
17608           tmp_addflag=' $pic_flag -Mnomain' ;;
17609         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17610           tmp_addflag=' -i_dynamic' ;;
17611         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17612           tmp_addflag=' -i_dynamic -nofor_main' ;;
17613         ifc* | ifort*)                  # Intel Fortran compiler
17614           tmp_addflag=' -nofor_main' ;;
17615         esac
17616         case `$CC -V 2>&1 | sed 5q` in
17617         *Sun\ C*)                       # Sun C 5.9
17618           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17619           tmp_sharedflag='-G' ;;
17620         *Sun\ F*)                       # Sun Fortran 8.3
17621           tmp_sharedflag='-G' ;;
17622         *)
17623           tmp_sharedflag='-shared' ;;
17624         esac
17625         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17626
17627         if test $supports_anon_versioning = yes; then
17628           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17629   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17630   $echo "local: *; };" >> $output_objdir/$libname.ver~
17631           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17632         fi
17633         link_all_deplibs_GCJ=no
17634       else
17635         ld_shlibs_GCJ=no
17636       fi
17637       ;;
17638
17639     netbsd* | netbsdelf*-gnu)
17640       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17641         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17642         wlarc=
17643       else
17644         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17645         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17646       fi
17647       ;;
17648
17649     solaris*)
17650       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17651         ld_shlibs_GCJ=no
17652         cat <<EOF 1>&2
17653
17654 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17655 *** create shared libraries on Solaris systems.  Therefore, libtool
17656 *** is disabling shared libraries support.  We urge you to upgrade GNU
17657 *** binutils to release 2.9.1 or newer.  Another option is to modify
17658 *** your PATH or compiler configuration so that the native linker is
17659 *** used, and then restart.
17660
17661 EOF
17662       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17663         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17664         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17665       else
17666         ld_shlibs_GCJ=no
17667       fi
17668       ;;
17669
17670     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17671       case `$LD -v 2>&1` in
17672         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17673         ld_shlibs_GCJ=no
17674         cat <<_LT_EOF 1>&2
17675
17676 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17677 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17678 *** is disabling shared libraries support.  We urge you to upgrade GNU
17679 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17680 *** your PATH or compiler configuration so that the native linker is
17681 *** used, and then restart.
17682
17683 _LT_EOF
17684         ;;
17685         *)
17686           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17687             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17688             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17689             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17690           else
17691             ld_shlibs_GCJ=no
17692           fi
17693         ;;
17694       esac
17695       ;;
17696
17697     sunos4*)
17698       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17699       wlarc=
17700       hardcode_direct_GCJ=yes
17701       hardcode_shlibpath_var_GCJ=no
17702       ;;
17703
17704     *)
17705       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17706         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17707         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17708       else
17709         ld_shlibs_GCJ=no
17710       fi
17711       ;;
17712     esac
17713
17714     if test "$ld_shlibs_GCJ" = no; then
17715       runpath_var=
17716       hardcode_libdir_flag_spec_GCJ=
17717       export_dynamic_flag_spec_GCJ=
17718       whole_archive_flag_spec_GCJ=
17719     fi
17720   else
17721     # PORTME fill in a description of your system's linker (not GNU ld)
17722     case $host_os in
17723     aix3*)
17724       allow_undefined_flag_GCJ=unsupported
17725       always_export_symbols_GCJ=yes
17726       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'
17727       # Note: this linker hardcodes the directories in LIBPATH if there
17728       # are no directories specified by -L.
17729       hardcode_minus_L_GCJ=yes
17730       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17731         # Neither direct hardcoding nor static linking is supported with a
17732         # broken collect2.
17733         hardcode_direct_GCJ=unsupported
17734       fi
17735       ;;
17736
17737     aix[4-9]*)
17738       if test "$host_cpu" = ia64; then
17739         # On IA64, the linker does run time linking by default, so we don't
17740         # have to do anything special.
17741         aix_use_runtimelinking=no
17742         exp_sym_flag='-Bexport'
17743         no_entry_flag=""
17744       else
17745         # If we're using GNU nm, then we don't want the "-C" option.
17746         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17747         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17748           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'
17749         else
17750           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'
17751         fi
17752         aix_use_runtimelinking=no
17753
17754         # Test if we are trying to use run time linking or normal
17755         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17756         # need to do runtime linking.
17757         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17758           for ld_flag in $LDFLAGS; do
17759           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17760             aix_use_runtimelinking=yes
17761             break
17762           fi
17763           done
17764           ;;
17765         esac
17766
17767         exp_sym_flag='-bexport'
17768         no_entry_flag='-bnoentry'
17769       fi
17770
17771       # When large executables or shared objects are built, AIX ld can
17772       # have problems creating the table of contents.  If linking a library
17773       # or program results in "error TOC overflow" add -mminimal-toc to
17774       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17775       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17776
17777       archive_cmds_GCJ=''
17778       hardcode_direct_GCJ=yes
17779       hardcode_libdir_separator_GCJ=':'
17780       link_all_deplibs_GCJ=yes
17781
17782       if test "$GCC" = yes; then
17783         case $host_os in aix4.[012]|aix4.[012].*)
17784         # We only want to do this on AIX 4.2 and lower, the check
17785         # below for broken collect2 doesn't work under 4.3+
17786           collect2name=`${CC} -print-prog-name=collect2`
17787           if test -f "$collect2name" && \
17788            strings "$collect2name" | grep resolve_lib_name >/dev/null
17789           then
17790           # We have reworked collect2
17791           :
17792           else
17793           # We have old collect2
17794           hardcode_direct_GCJ=unsupported
17795           # It fails to find uninstalled libraries when the uninstalled
17796           # path is not listed in the libpath.  Setting hardcode_minus_L
17797           # to unsupported forces relinking
17798           hardcode_minus_L_GCJ=yes
17799           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17800           hardcode_libdir_separator_GCJ=
17801           fi
17802           ;;
17803         esac
17804         shared_flag='-shared'
17805         if test "$aix_use_runtimelinking" = yes; then
17806           shared_flag="$shared_flag "'${wl}-G'
17807         fi
17808       else
17809         # not using gcc
17810         if test "$host_cpu" = ia64; then
17811         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17812         # chokes on -Wl,-G. The following line is correct:
17813           shared_flag='-G'
17814         else
17815           if test "$aix_use_runtimelinking" = yes; then
17816             shared_flag='${wl}-G'
17817           else
17818             shared_flag='${wl}-bM:SRE'
17819           fi
17820         fi
17821       fi
17822
17823       # It seems that -bexpall does not export symbols beginning with
17824       # underscore (_), so it is better to generate a list of symbols to export.
17825       always_export_symbols_GCJ=yes
17826       if test "$aix_use_runtimelinking" = yes; then
17827         # Warning - without using the other runtime loading flags (-brtl),
17828         # -berok will link without error, but may produce a broken library.
17829         allow_undefined_flag_GCJ='-berok'
17830        # Determine the default libpath from the value encoded in an empty executable.
17831        cat >conftest.$ac_ext <<_ACEOF
17832 /* confdefs.h.  */
17833 _ACEOF
17834 cat confdefs.h >>conftest.$ac_ext
17835 cat >>conftest.$ac_ext <<_ACEOF
17836 /* end confdefs.h.  */
17837
17838 int
17839 main ()
17840 {
17841
17842   ;
17843   return 0;
17844 }
17845 _ACEOF
17846 rm -f conftest.$ac_objext conftest$ac_exeext
17847 if { (ac_try="$ac_link"
17848 case "(($ac_try" in
17849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850   *) ac_try_echo=$ac_try;;
17851 esac
17852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17853   (eval "$ac_link") 2>conftest.er1
17854   ac_status=$?
17855   grep -v '^ *+' conftest.er1 >conftest.err
17856   rm -f conftest.er1
17857   cat conftest.err >&5
17858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859   (exit $ac_status); } && {
17860          test -z "$ac_c_werror_flag" ||
17861          test ! -s conftest.err
17862        } && test -s conftest$ac_exeext &&
17863        $as_test_x conftest$ac_exeext; then
17864
17865 lt_aix_libpath_sed='
17866     /Import File Strings/,/^$/ {
17867         /^0/ {
17868             s/^0  *\(.*\)$/\1/
17869             p
17870         }
17871     }'
17872 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17873 # Check for a 64-bit object if we didn't find anything.
17874 if test -z "$aix_libpath"; then
17875   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17876 fi
17877 else
17878   echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17880
17881
17882 fi
17883
17884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17885       conftest$ac_exeext conftest.$ac_ext
17886 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17887
17888        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17889         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"
17890        else
17891         if test "$host_cpu" = ia64; then
17892           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17893           allow_undefined_flag_GCJ="-z nodefs"
17894           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"
17895         else
17896          # Determine the default libpath from the value encoded in an empty executable.
17897          cat >conftest.$ac_ext <<_ACEOF
17898 /* confdefs.h.  */
17899 _ACEOF
17900 cat confdefs.h >>conftest.$ac_ext
17901 cat >>conftest.$ac_ext <<_ACEOF
17902 /* end confdefs.h.  */
17903
17904 int
17905 main ()
17906 {
17907
17908   ;
17909   return 0;
17910 }
17911 _ACEOF
17912 rm -f conftest.$ac_objext conftest$ac_exeext
17913 if { (ac_try="$ac_link"
17914 case "(($ac_try" in
17915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17916   *) ac_try_echo=$ac_try;;
17917 esac
17918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17919   (eval "$ac_link") 2>conftest.er1
17920   ac_status=$?
17921   grep -v '^ *+' conftest.er1 >conftest.err
17922   rm -f conftest.er1
17923   cat conftest.err >&5
17924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); } && {
17926          test -z "$ac_c_werror_flag" ||
17927          test ! -s conftest.err
17928        } && test -s conftest$ac_exeext &&
17929        $as_test_x conftest$ac_exeext; then
17930
17931 lt_aix_libpath_sed='
17932     /Import File Strings/,/^$/ {
17933         /^0/ {
17934             s/^0  *\(.*\)$/\1/
17935             p
17936         }
17937     }'
17938 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17939 # Check for a 64-bit object if we didn't find anything.
17940 if test -z "$aix_libpath"; then
17941   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17942 fi
17943 else
17944   echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.$ac_ext >&5
17946
17947
17948 fi
17949
17950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17951       conftest$ac_exeext conftest.$ac_ext
17952 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17953
17954          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17955           # Warning - without using the other run time loading flags,
17956           # -berok will link without error, but may produce a broken library.
17957           no_undefined_flag_GCJ=' ${wl}-bernotok'
17958           allow_undefined_flag_GCJ=' ${wl}-berok'
17959           # Exported symbols can be pulled into shared objects from archives
17960           whole_archive_flag_spec_GCJ='$convenience'
17961           archive_cmds_need_lc_GCJ=yes
17962           # This is similar to how AIX traditionally builds its shared libraries.
17963           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'
17964         fi
17965       fi
17966       ;;
17967
17968     amigaos*)
17969       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)'
17970       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17971       hardcode_minus_L_GCJ=yes
17972       # see comment about different semantics on the GNU ld section
17973       ld_shlibs_GCJ=no
17974       ;;
17975
17976     bsdi[45]*)
17977       export_dynamic_flag_spec_GCJ=-rdynamic
17978       ;;
17979
17980     cygwin* | mingw* | pw32*)
17981       # When not using gcc, we currently assume that we are using
17982       # Microsoft Visual C++.
17983       # hardcode_libdir_flag_spec is actually meaningless, as there is
17984       # no search path for DLLs.
17985       hardcode_libdir_flag_spec_GCJ=' '
17986       allow_undefined_flag_GCJ=unsupported
17987       # Tell ltmain to make .lib files, not .a files.
17988       libext=lib
17989       # Tell ltmain to make .dll files, not .so files.
17990       shrext_cmds=".dll"
17991       # FIXME: Setting linknames here is a bad hack.
17992       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17993       # The linker will automatically build a .lib file if we build a DLL.
17994       old_archive_From_new_cmds_GCJ='true'
17995       # FIXME: Should let the user specify the lib program.
17996       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17997       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17998       enable_shared_with_static_runtimes_GCJ=yes
17999       ;;
18000
18001     darwin* | rhapsody*)
18002       case $host_os in
18003         rhapsody* | darwin1.[012])
18004          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18005          ;;
18006        *) # Darwin 1.3 on
18007          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18008            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18009          else
18010            case ${MACOSX_DEPLOYMENT_TARGET} in
18011              10.[012])
18012                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18013                ;;
18014              10.*)
18015                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18016                ;;
18017            esac
18018          fi
18019          ;;
18020       esac
18021       archive_cmds_need_lc_GCJ=no
18022       hardcode_direct_GCJ=no
18023       hardcode_automatic_GCJ=yes
18024       hardcode_shlibpath_var_GCJ=unsupported
18025       whole_archive_flag_spec_GCJ=''
18026       link_all_deplibs_GCJ=yes
18027     if test "$GCC" = yes ; then
18028         output_verbose_link_cmd='echo'
18029         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18030         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18031         archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18032         module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18033     else
18034       case $cc_basename in
18035         xlc*)
18036          output_verbose_link_cmd='echo'
18037          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18038          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18039           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18040          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18041           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}'
18042           ;;
18043        *)
18044          ld_shlibs_GCJ=no
18045           ;;
18046       esac
18047     fi
18048       ;;
18049
18050     dgux*)
18051       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18052       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18053       hardcode_shlibpath_var_GCJ=no
18054       ;;
18055
18056     freebsd1*)
18057       ld_shlibs_GCJ=no
18058       ;;
18059
18060     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18061     # support.  Future versions do this automatically, but an explicit c++rt0.o
18062     # does not break anything, and helps significantly (at the cost of a little
18063     # extra space).
18064     freebsd2.2*)
18065       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18066       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18067       hardcode_direct_GCJ=yes
18068       hardcode_shlibpath_var_GCJ=no
18069       ;;
18070
18071     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18072     freebsd2*)
18073       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18074       hardcode_direct_GCJ=yes
18075       hardcode_minus_L_GCJ=yes
18076       hardcode_shlibpath_var_GCJ=no
18077       ;;
18078
18079     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18080     freebsd* | dragonfly*)
18081       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18082       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18083       hardcode_direct_GCJ=yes
18084       hardcode_shlibpath_var_GCJ=no
18085       ;;
18086
18087     hpux9*)
18088       if test "$GCC" = yes; then
18089         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'
18090       else
18091         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'
18092       fi
18093       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18094       hardcode_libdir_separator_GCJ=:
18095       hardcode_direct_GCJ=yes
18096
18097       # hardcode_minus_L: Not really in the search PATH,
18098       # but as the default location of the library.
18099       hardcode_minus_L_GCJ=yes
18100       export_dynamic_flag_spec_GCJ='${wl}-E'
18101       ;;
18102
18103     hpux10*)
18104       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18105         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18106       else
18107         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18108       fi
18109       if test "$with_gnu_ld" = no; then
18110         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18111         hardcode_libdir_separator_GCJ=:
18112
18113         hardcode_direct_GCJ=yes
18114         export_dynamic_flag_spec_GCJ='${wl}-E'
18115
18116         # hardcode_minus_L: Not really in the search PATH,
18117         # but as the default location of the library.
18118         hardcode_minus_L_GCJ=yes
18119       fi
18120       ;;
18121
18122     hpux11*)
18123       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18124         case $host_cpu in
18125         hppa*64*)
18126           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18127           ;;
18128         ia64*)
18129           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18130           ;;
18131         *)
18132           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18133           ;;
18134         esac
18135       else
18136         case $host_cpu in
18137         hppa*64*)
18138           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18139           ;;
18140         ia64*)
18141           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18142           ;;
18143         *)
18144           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18145           ;;
18146         esac
18147       fi
18148       if test "$with_gnu_ld" = no; then
18149         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18150         hardcode_libdir_separator_GCJ=:
18151
18152         case $host_cpu in
18153         hppa*64*|ia64*)
18154           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18155           hardcode_direct_GCJ=no
18156           hardcode_shlibpath_var_GCJ=no
18157           ;;
18158         *)
18159           hardcode_direct_GCJ=yes
18160           export_dynamic_flag_spec_GCJ='${wl}-E'
18161
18162           # hardcode_minus_L: Not really in the search PATH,
18163           # but as the default location of the library.
18164           hardcode_minus_L_GCJ=yes
18165           ;;
18166         esac
18167       fi
18168       ;;
18169
18170     irix5* | irix6* | nonstopux*)
18171       if test "$GCC" = yes; then
18172         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'
18173       else
18174         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'
18175         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18176       fi
18177       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18178       hardcode_libdir_separator_GCJ=:
18179       link_all_deplibs_GCJ=yes
18180       ;;
18181
18182     netbsd* | netbsdelf*-gnu)
18183       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18184         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18185       else
18186         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18187       fi
18188       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18189       hardcode_direct_GCJ=yes
18190       hardcode_shlibpath_var_GCJ=no
18191       ;;
18192
18193     newsos6)
18194       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18195       hardcode_direct_GCJ=yes
18196       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18197       hardcode_libdir_separator_GCJ=:
18198       hardcode_shlibpath_var_GCJ=no
18199       ;;
18200
18201     openbsd*)
18202       if test -f /usr/libexec/ld.so; then
18203         hardcode_direct_GCJ=yes
18204         hardcode_shlibpath_var_GCJ=no
18205         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18206           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18207           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18208           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18209           export_dynamic_flag_spec_GCJ='${wl}-E'
18210         else
18211           case $host_os in
18212            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18213              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18214              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18215              ;;
18216            *)
18217              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18218              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18219              ;;
18220           esac
18221         fi
18222       else
18223         ld_shlibs_GCJ=no
18224       fi
18225       ;;
18226
18227     os2*)
18228       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18229       hardcode_minus_L_GCJ=yes
18230       allow_undefined_flag_GCJ=unsupported
18231       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'
18232       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18233       ;;
18234
18235     osf3*)
18236       if test "$GCC" = yes; then
18237         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18238         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'
18239       else
18240         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18241         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'
18242       fi
18243       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18244       hardcode_libdir_separator_GCJ=:
18245       ;;
18246
18247     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18248       if test "$GCC" = yes; then
18249         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18250         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'
18251         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18252       else
18253         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18254         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'
18255         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~
18256         $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'
18257
18258         # Both c and cxx compiler support -rpath directly
18259         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18260       fi
18261       hardcode_libdir_separator_GCJ=:
18262       ;;
18263
18264     solaris*)
18265       no_undefined_flag_GCJ=' -z text'
18266       if test "$GCC" = yes; then
18267         wlarc='${wl}'
18268         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18269         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18270           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18271       else
18272         wlarc=''
18273         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18274         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18275         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18276       fi
18277       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18278       hardcode_shlibpath_var_GCJ=no
18279       case $host_os in
18280       solaris2.[0-5] | solaris2.[0-5].*) ;;
18281       *)
18282         # The compiler driver will combine and reorder linker options,
18283         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18284         # but is careful enough not to reorder.
18285         # Supported since Solaris 2.6 (maybe 2.5.1?)
18286         if test "$GCC" = yes; then
18287           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18288         else
18289           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18290         fi
18291         ;;
18292       esac
18293       link_all_deplibs_GCJ=yes
18294       ;;
18295
18296     sunos4*)
18297       if test "x$host_vendor" = xsequent; then
18298         # Use $CC to link under sequent, because it throws in some extra .o
18299         # files that make .init and .fini sections work.
18300         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18301       else
18302         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18303       fi
18304       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18305       hardcode_direct_GCJ=yes
18306       hardcode_minus_L_GCJ=yes
18307       hardcode_shlibpath_var_GCJ=no
18308       ;;
18309
18310     sysv4)
18311       case $host_vendor in
18312         sni)
18313           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18314           hardcode_direct_GCJ=yes # is this really true???
18315         ;;
18316         siemens)
18317           ## LD is ld it makes a PLAMLIB
18318           ## CC just makes a GrossModule.
18319           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18320           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18321           hardcode_direct_GCJ=no
18322         ;;
18323         motorola)
18324           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18325           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18326         ;;
18327       esac
18328       runpath_var='LD_RUN_PATH'
18329       hardcode_shlibpath_var_GCJ=no
18330       ;;
18331
18332     sysv4.3*)
18333       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18334       hardcode_shlibpath_var_GCJ=no
18335       export_dynamic_flag_spec_GCJ='-Bexport'
18336       ;;
18337
18338     sysv4*MP*)
18339       if test -d /usr/nec; then
18340         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18341         hardcode_shlibpath_var_GCJ=no
18342         runpath_var=LD_RUN_PATH
18343         hardcode_runpath_var=yes
18344         ld_shlibs_GCJ=yes
18345       fi
18346       ;;
18347
18348     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18349       no_undefined_flag_GCJ='${wl}-z,text'
18350       archive_cmds_need_lc_GCJ=no
18351       hardcode_shlibpath_var_GCJ=no
18352       runpath_var='LD_RUN_PATH'
18353
18354       if test "$GCC" = yes; then
18355         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18356         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18357       else
18358         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18359         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18360       fi
18361       ;;
18362
18363     sysv5* | sco3.2v5* | sco5v6*)
18364       # Note: We can NOT use -z defs as we might desire, because we do not
18365       # link with -lc, and that would cause any symbols used from libc to
18366       # always be unresolved, which means just about no library would
18367       # ever link correctly.  If we're not using GNU ld we use -z text
18368       # though, which does catch some bad symbols but isn't as heavy-handed
18369       # as -z defs.
18370       no_undefined_flag_GCJ='${wl}-z,text'
18371       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18372       archive_cmds_need_lc_GCJ=no
18373       hardcode_shlibpath_var_GCJ=no
18374       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18375       hardcode_libdir_separator_GCJ=':'
18376       link_all_deplibs_GCJ=yes
18377       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18378       runpath_var='LD_RUN_PATH'
18379
18380       if test "$GCC" = yes; then
18381         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18382         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18383       else
18384         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18385         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18386       fi
18387       ;;
18388
18389     uts4*)
18390       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18391       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18392       hardcode_shlibpath_var_GCJ=no
18393       ;;
18394
18395     *)
18396       ld_shlibs_GCJ=no
18397       ;;
18398     esac
18399   fi
18400
18401 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18402 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18403 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18404
18405 #
18406 # Do we need to explicitly link libc?
18407 #
18408 case "x$archive_cmds_need_lc_GCJ" in
18409 x|xyes)
18410   # Assume -lc should be added
18411   archive_cmds_need_lc_GCJ=yes
18412
18413   if test "$enable_shared" = yes && test "$GCC" = yes; then
18414     case $archive_cmds_GCJ in
18415     *'~'*)
18416       # FIXME: we may have to deal with multi-command sequences.
18417       ;;
18418     '$CC '*)
18419       # Test whether the compiler implicitly links with -lc since on some
18420       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18421       # to ld, don't add -lc before -lgcc.
18422       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18423 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18424       $rm conftest*
18425       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18426
18427       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18428   (eval $ac_compile) 2>&5
18429   ac_status=$?
18430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431   (exit $ac_status); } 2>conftest.err; then
18432         soname=conftest
18433         lib=conftest
18434         libobjs=conftest.$ac_objext
18435         deplibs=
18436         wl=$lt_prog_compiler_wl_GCJ
18437         pic_flag=$lt_prog_compiler_pic_GCJ
18438         compiler_flags=-v
18439         linker_flags=-v
18440         verstring=
18441         output_objdir=.
18442         libname=conftest
18443         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18444         allow_undefined_flag_GCJ=
18445         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18446   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18447   ac_status=$?
18448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449   (exit $ac_status); }
18450         then
18451           archive_cmds_need_lc_GCJ=no
18452         else
18453           archive_cmds_need_lc_GCJ=yes
18454         fi
18455         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18456       else
18457         cat conftest.err 1>&5
18458       fi
18459       $rm conftest*
18460       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18461 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18462       ;;
18463     esac
18464   fi
18465   ;;
18466 esac
18467
18468 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18469 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18470 library_names_spec=
18471 libname_spec='lib$name'
18472 soname_spec=
18473 shrext_cmds=".so"
18474 postinstall_cmds=
18475 postuninstall_cmds=
18476 finish_cmds=
18477 finish_eval=
18478 shlibpath_var=
18479 shlibpath_overrides_runpath=unknown
18480 version_type=none
18481 dynamic_linker="$host_os ld.so"
18482 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18483
18484 need_lib_prefix=unknown
18485 hardcode_into_libs=no
18486
18487 # when you set need_version to no, make sure it does not cause -set_version
18488 # flags to be left without arguments
18489 need_version=unknown
18490
18491 case $host_os in
18492 aix3*)
18493   version_type=linux
18494   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18495   shlibpath_var=LIBPATH
18496
18497   # AIX 3 has no versioning support, so we append a major version to the name.
18498   soname_spec='${libname}${release}${shared_ext}$major'
18499   ;;
18500
18501 aix[4-9]*)
18502   version_type=linux
18503   need_lib_prefix=no
18504   need_version=no
18505   hardcode_into_libs=yes
18506   if test "$host_cpu" = ia64; then
18507     # AIX 5 supports IA64
18508     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18509     shlibpath_var=LD_LIBRARY_PATH
18510   else
18511     # With GCC up to 2.95.x, collect2 would create an import file
18512     # for dependence libraries.  The import file would start with
18513     # the line `#! .'.  This would cause the generated library to
18514     # depend on `.', always an invalid library.  This was fixed in
18515     # development snapshots of GCC prior to 3.0.
18516     case $host_os in
18517       aix4 | aix4.[01] | aix4.[01].*)
18518       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18519            echo ' yes '
18520            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18521         :
18522       else
18523         can_build_shared=no
18524       fi
18525       ;;
18526     esac
18527     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18528     # soname into executable. Probably we can add versioning support to
18529     # collect2, so additional links can be useful in future.
18530     if test "$aix_use_runtimelinking" = yes; then
18531       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18532       # instead of lib<name>.a to let people know that these are not
18533       # typical AIX shared libraries.
18534       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18535     else
18536       # We preserve .a as extension for shared libraries through AIX4.2
18537       # and later when we are not doing run time linking.
18538       library_names_spec='${libname}${release}.a $libname.a'
18539       soname_spec='${libname}${release}${shared_ext}$major'
18540     fi
18541     shlibpath_var=LIBPATH
18542   fi
18543   ;;
18544
18545 amigaos*)
18546   library_names_spec='$libname.ixlibrary $libname.a'
18547   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18548   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'
18549   ;;
18550
18551 beos*)
18552   library_names_spec='${libname}${shared_ext}'
18553   dynamic_linker="$host_os ld.so"
18554   shlibpath_var=LIBRARY_PATH
18555   ;;
18556
18557 bsdi[45]*)
18558   version_type=linux
18559   need_version=no
18560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18561   soname_spec='${libname}${release}${shared_ext}$major'
18562   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18563   shlibpath_var=LD_LIBRARY_PATH
18564   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18565   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18566   # the default ld.so.conf also contains /usr/contrib/lib and
18567   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18568   # libtool to hard-code these into programs
18569   ;;
18570
18571 cygwin* | mingw* | pw32*)
18572   version_type=windows
18573   shrext_cmds=".dll"
18574   need_version=no
18575   need_lib_prefix=no
18576
18577   case $GCC,$host_os in
18578   yes,cygwin* | yes,mingw* | yes,pw32*)
18579     library_names_spec='$libname.dll.a'
18580     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18581     postinstall_cmds='base_file=`basename \${file}`~
18582       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18583       dldir=$destdir/`dirname \$dlpath`~
18584       test -d \$dldir || mkdir -p \$dldir~
18585       $install_prog $dir/$dlname \$dldir/$dlname~
18586       chmod a+x \$dldir/$dlname'
18587     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18588       dlpath=$dir/\$dldll~
18589        $rm \$dlpath'
18590     shlibpath_overrides_runpath=yes
18591
18592     case $host_os in
18593     cygwin*)
18594       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18595       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18596       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18597       ;;
18598     mingw*)
18599       # MinGW DLLs use traditional 'lib' prefix
18600       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18601       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18602       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18603         # It is most probably a Windows format PATH printed by
18604         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18605         # path with ; separators, and with drive letters. We can handle the
18606         # drive letters (cygwin fileutils understands them), so leave them,
18607         # especially as we might pass files found there to a mingw objdump,
18608         # which wouldn't understand a cygwinified path. Ahh.
18609         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18610       else
18611         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18612       fi
18613       ;;
18614     pw32*)
18615       # pw32 DLLs use 'pw' prefix rather than 'lib'
18616       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18617       ;;
18618     esac
18619     ;;
18620
18621   *)
18622     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18623     ;;
18624   esac
18625   dynamic_linker='Win32 ld.exe'
18626   # FIXME: first we should search . and the directory the executable is in
18627   shlibpath_var=PATH
18628   ;;
18629
18630 darwin* | rhapsody*)
18631   dynamic_linker="$host_os dyld"
18632   version_type=darwin
18633   need_lib_prefix=no
18634   need_version=no
18635   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18636   soname_spec='${libname}${release}${major}$shared_ext'
18637   shlibpath_overrides_runpath=yes
18638   shlibpath_var=DYLD_LIBRARY_PATH
18639   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18640
18641   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18642   ;;
18643
18644 dgux*)
18645   version_type=linux
18646   need_lib_prefix=no
18647   need_version=no
18648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18649   soname_spec='${libname}${release}${shared_ext}$major'
18650   shlibpath_var=LD_LIBRARY_PATH
18651   ;;
18652
18653 freebsd1*)
18654   dynamic_linker=no
18655   ;;
18656
18657 freebsd* | dragonfly*)
18658   # DragonFly does not have aout.  When/if they implement a new
18659   # versioning mechanism, adjust this.
18660   if test -x /usr/bin/objformat; then
18661     objformat=`/usr/bin/objformat`
18662   else
18663     case $host_os in
18664     freebsd[123]*) objformat=aout ;;
18665     *) objformat=elf ;;
18666     esac
18667   fi
18668   version_type=freebsd-$objformat
18669   case $version_type in
18670     freebsd-elf*)
18671       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18672       need_version=no
18673       need_lib_prefix=no
18674       ;;
18675     freebsd-*)
18676       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18677       need_version=yes
18678       ;;
18679   esac
18680   shlibpath_var=LD_LIBRARY_PATH
18681   case $host_os in
18682   freebsd2*)
18683     shlibpath_overrides_runpath=yes
18684     ;;
18685   freebsd3.[01]* | freebsdelf3.[01]*)
18686     shlibpath_overrides_runpath=yes
18687     hardcode_into_libs=yes
18688     ;;
18689   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18690   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18691     shlibpath_overrides_runpath=no
18692     hardcode_into_libs=yes
18693     ;;
18694   *) # from 4.6 on, and DragonFly
18695     shlibpath_overrides_runpath=yes
18696     hardcode_into_libs=yes
18697     ;;
18698   esac
18699   ;;
18700
18701 gnu*)
18702   version_type=linux
18703   need_lib_prefix=no
18704   need_version=no
18705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18706   soname_spec='${libname}${release}${shared_ext}$major'
18707   shlibpath_var=LD_LIBRARY_PATH
18708   hardcode_into_libs=yes
18709   ;;
18710
18711 hpux9* | hpux10* | hpux11*)
18712   # Give a soname corresponding to the major version so that dld.sl refuses to
18713   # link against other versions.
18714   version_type=sunos
18715   need_lib_prefix=no
18716   need_version=no
18717   case $host_cpu in
18718   ia64*)
18719     shrext_cmds='.so'
18720     hardcode_into_libs=yes
18721     dynamic_linker="$host_os dld.so"
18722     shlibpath_var=LD_LIBRARY_PATH
18723     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18724     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18725     soname_spec='${libname}${release}${shared_ext}$major'
18726     if test "X$HPUX_IA64_MODE" = X32; then
18727       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18728     else
18729       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18730     fi
18731     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18732     ;;
18733    hppa*64*)
18734      shrext_cmds='.sl'
18735      hardcode_into_libs=yes
18736      dynamic_linker="$host_os dld.sl"
18737      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18738      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18739      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18740      soname_spec='${libname}${release}${shared_ext}$major'
18741      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18742      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18743      ;;
18744    *)
18745     shrext_cmds='.sl'
18746     dynamic_linker="$host_os dld.sl"
18747     shlibpath_var=SHLIB_PATH
18748     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18749     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18750     soname_spec='${libname}${release}${shared_ext}$major'
18751     ;;
18752   esac
18753   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18754   postinstall_cmds='chmod 555 $lib'
18755   ;;
18756
18757 interix[3-9]*)
18758   version_type=linux
18759   need_lib_prefix=no
18760   need_version=no
18761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18762   soname_spec='${libname}${release}${shared_ext}$major'
18763   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18764   shlibpath_var=LD_LIBRARY_PATH
18765   shlibpath_overrides_runpath=no
18766   hardcode_into_libs=yes
18767   ;;
18768
18769 irix5* | irix6* | nonstopux*)
18770   case $host_os in
18771     nonstopux*) version_type=nonstopux ;;
18772     *)
18773         if test "$lt_cv_prog_gnu_ld" = yes; then
18774                 version_type=linux
18775         else
18776                 version_type=irix
18777         fi ;;
18778   esac
18779   need_lib_prefix=no
18780   need_version=no
18781   soname_spec='${libname}${release}${shared_ext}$major'
18782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18783   case $host_os in
18784   irix5* | nonstopux*)
18785     libsuff= shlibsuff=
18786     ;;
18787   *)
18788     case $LD in # libtool.m4 will add one of these switches to LD
18789     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18790       libsuff= shlibsuff= libmagic=32-bit;;
18791     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18792       libsuff=32 shlibsuff=N32 libmagic=N32;;
18793     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18794       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18795     *) libsuff= shlibsuff= libmagic=never-match;;
18796     esac
18797     ;;
18798   esac
18799   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18800   shlibpath_overrides_runpath=no
18801   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18802   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18803   hardcode_into_libs=yes
18804   ;;
18805
18806 # No shared lib support for Linux oldld, aout, or coff.
18807 linux*oldld* | linux*aout* | linux*coff*)
18808   dynamic_linker=no
18809   ;;
18810
18811 # This must be Linux ELF.
18812 linux* | k*bsd*-gnu)
18813   version_type=linux
18814   need_lib_prefix=no
18815   need_version=no
18816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18817   soname_spec='${libname}${release}${shared_ext}$major'
18818   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18819   shlibpath_var=LD_LIBRARY_PATH
18820   shlibpath_overrides_runpath=no
18821   # This implies no fast_install, which is unacceptable.
18822   # Some rework will be needed to allow for fast_install
18823   # before this can be enabled.
18824   hardcode_into_libs=yes
18825
18826   # Append ld.so.conf contents to the search path
18827   if test -f /etc/ld.so.conf; then
18828     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18829     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18830   fi
18831
18832   # We used to test for /lib/ld.so.1 and disable shared libraries on
18833   # powerpc, because MkLinux only supported shared libraries with the
18834   # GNU dynamic linker.  Since this was broken with cross compilers,
18835   # most powerpc-linux boxes support dynamic linking these days and
18836   # people can always --disable-shared, the test was removed, and we
18837   # assume the GNU/Linux dynamic linker is in use.
18838   dynamic_linker='GNU/Linux ld.so'
18839   ;;
18840
18841 netbsdelf*-gnu)
18842   version_type=linux
18843   need_lib_prefix=no
18844   need_version=no
18845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18846   soname_spec='${libname}${release}${shared_ext}$major'
18847   shlibpath_var=LD_LIBRARY_PATH
18848   shlibpath_overrides_runpath=no
18849   hardcode_into_libs=yes
18850   dynamic_linker='NetBSD ld.elf_so'
18851   ;;
18852
18853 netbsd*)
18854   version_type=sunos
18855   need_lib_prefix=no
18856   need_version=no
18857   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18858     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18859     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18860     dynamic_linker='NetBSD (a.out) ld.so'
18861   else
18862     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18863     soname_spec='${libname}${release}${shared_ext}$major'
18864     dynamic_linker='NetBSD ld.elf_so'
18865   fi
18866   shlibpath_var=LD_LIBRARY_PATH
18867   shlibpath_overrides_runpath=yes
18868   hardcode_into_libs=yes
18869   ;;
18870
18871 newsos6)
18872   version_type=linux
18873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18874   shlibpath_var=LD_LIBRARY_PATH
18875   shlibpath_overrides_runpath=yes
18876   ;;
18877
18878 nto-qnx*)
18879   version_type=linux
18880   need_lib_prefix=no
18881   need_version=no
18882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18883   soname_spec='${libname}${release}${shared_ext}$major'
18884   shlibpath_var=LD_LIBRARY_PATH
18885   shlibpath_overrides_runpath=yes
18886   ;;
18887
18888 openbsd*)
18889   version_type=sunos
18890   sys_lib_dlsearch_path_spec="/usr/lib"
18891   need_lib_prefix=no
18892   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18893   case $host_os in
18894     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18895     *)                         need_version=no  ;;
18896   esac
18897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18898   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18899   shlibpath_var=LD_LIBRARY_PATH
18900   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18901     case $host_os in
18902       openbsd2.[89] | openbsd2.[89].*)
18903         shlibpath_overrides_runpath=no
18904         ;;
18905       *)
18906         shlibpath_overrides_runpath=yes
18907         ;;
18908       esac
18909   else
18910     shlibpath_overrides_runpath=yes
18911   fi
18912   ;;
18913
18914 os2*)
18915   libname_spec='$name'
18916   shrext_cmds=".dll"
18917   need_lib_prefix=no
18918   library_names_spec='$libname${shared_ext} $libname.a'
18919   dynamic_linker='OS/2 ld.exe'
18920   shlibpath_var=LIBPATH
18921   ;;
18922
18923 osf3* | osf4* | osf5*)
18924   version_type=osf
18925   need_lib_prefix=no
18926   need_version=no
18927   soname_spec='${libname}${release}${shared_ext}$major'
18928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18929   shlibpath_var=LD_LIBRARY_PATH
18930   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18931   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18932   ;;
18933
18934 rdos*)
18935   dynamic_linker=no
18936   ;;
18937
18938 solaris*)
18939   version_type=linux
18940   need_lib_prefix=no
18941   need_version=no
18942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18943   soname_spec='${libname}${release}${shared_ext}$major'
18944   shlibpath_var=LD_LIBRARY_PATH
18945   shlibpath_overrides_runpath=yes
18946   hardcode_into_libs=yes
18947   # ldd complains unless libraries are executable
18948   postinstall_cmds='chmod +x $lib'
18949   ;;
18950
18951 sunos4*)
18952   version_type=sunos
18953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18954   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18955   shlibpath_var=LD_LIBRARY_PATH
18956   shlibpath_overrides_runpath=yes
18957   if test "$with_gnu_ld" = yes; then
18958     need_lib_prefix=no
18959   fi
18960   need_version=yes
18961   ;;
18962
18963 sysv4 | sysv4.3*)
18964   version_type=linux
18965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18966   soname_spec='${libname}${release}${shared_ext}$major'
18967   shlibpath_var=LD_LIBRARY_PATH
18968   case $host_vendor in
18969     sni)
18970       shlibpath_overrides_runpath=no
18971       need_lib_prefix=no
18972       export_dynamic_flag_spec='${wl}-Blargedynsym'
18973       runpath_var=LD_RUN_PATH
18974       ;;
18975     siemens)
18976       need_lib_prefix=no
18977       ;;
18978     motorola)
18979       need_lib_prefix=no
18980       need_version=no
18981       shlibpath_overrides_runpath=no
18982       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18983       ;;
18984   esac
18985   ;;
18986
18987 sysv4*MP*)
18988   if test -d /usr/nec ;then
18989     version_type=linux
18990     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18991     soname_spec='$libname${shared_ext}.$major'
18992     shlibpath_var=LD_LIBRARY_PATH
18993   fi
18994   ;;
18995
18996 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18997   version_type=freebsd-elf
18998   need_lib_prefix=no
18999   need_version=no
19000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19001   soname_spec='${libname}${release}${shared_ext}$major'
19002   shlibpath_var=LD_LIBRARY_PATH
19003   hardcode_into_libs=yes
19004   if test "$with_gnu_ld" = yes; then
19005     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19006     shlibpath_overrides_runpath=no
19007   else
19008     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19009     shlibpath_overrides_runpath=yes
19010     case $host_os in
19011       sco3.2v5*)
19012         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19013         ;;
19014     esac
19015   fi
19016   sys_lib_dlsearch_path_spec='/usr/lib'
19017   ;;
19018
19019 uts4*)
19020   version_type=linux
19021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19022   soname_spec='${libname}${release}${shared_ext}$major'
19023   shlibpath_var=LD_LIBRARY_PATH
19024   ;;
19025
19026 *)
19027   dynamic_linker=no
19028   ;;
19029 esac
19030 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19031 echo "${ECHO_T}$dynamic_linker" >&6; }
19032 test "$dynamic_linker" = no && can_build_shared=no
19033
19034 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19035   echo $ECHO_N "(cached) $ECHO_C" >&6
19036 else
19037   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19038 fi
19039
19040 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19041 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19042   echo $ECHO_N "(cached) $ECHO_C" >&6
19043 else
19044   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19045 fi
19046
19047 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19048
19049 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19050 if test "$GCC" = yes; then
19051   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19052 fi
19053
19054 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19055 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19056 hardcode_action_GCJ=
19057 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19058    test -n "$runpath_var_GCJ" || \
19059    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19060
19061   # We can hardcode non-existant directories.
19062   if test "$hardcode_direct_GCJ" != no &&
19063      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19064      # have to relink, otherwise we might link with an installed library
19065      # when we should be linking with a yet-to-be-installed one
19066      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19067      test "$hardcode_minus_L_GCJ" != no; then
19068     # Linking always hardcodes the temporary library directory.
19069     hardcode_action_GCJ=relink
19070   else
19071     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19072     hardcode_action_GCJ=immediate
19073   fi
19074 else
19075   # We cannot hardcode anything, or else we can only hardcode existing
19076   # directories.
19077   hardcode_action_GCJ=unsupported
19078 fi
19079 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19080 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19081
19082 if test "$hardcode_action_GCJ" = relink; then
19083   # Fast installation is not supported
19084   enable_fast_install=no
19085 elif test "$shlibpath_overrides_runpath" = yes ||
19086      test "$enable_shared" = no; then
19087   # Fast installation is not necessary
19088   enable_fast_install=needless
19089 fi
19090
19091
19092 # The else clause should only fire when bootstrapping the
19093 # libtool distribution, otherwise you forgot to ship ltmain.sh
19094 # with your package, and you will get complaints that there are
19095 # no rules to generate ltmain.sh.
19096 if test -f "$ltmain"; then
19097   # See if we are running on zsh, and set the options which allow our commands through
19098   # without removal of \ escapes.
19099   if test -n "${ZSH_VERSION+set}" ; then
19100     setopt NO_GLOB_SUBST
19101   fi
19102   # Now quote all the things that may contain metacharacters while being
19103   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19104   # variables and quote the copies for generation of the libtool script.
19105   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19106     SED SHELL STRIP \
19107     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19108     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19109     deplibs_check_method reload_flag reload_cmds need_locks \
19110     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19111     lt_cv_sys_global_symbol_to_c_name_address \
19112     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19113     old_postinstall_cmds old_postuninstall_cmds \
19114     compiler_GCJ \
19115     CC_GCJ \
19116     LD_GCJ \
19117     lt_prog_compiler_wl_GCJ \
19118     lt_prog_compiler_pic_GCJ \
19119     lt_prog_compiler_static_GCJ \
19120     lt_prog_compiler_no_builtin_flag_GCJ \
19121     export_dynamic_flag_spec_GCJ \
19122     thread_safe_flag_spec_GCJ \
19123     whole_archive_flag_spec_GCJ \
19124     enable_shared_with_static_runtimes_GCJ \
19125     old_archive_cmds_GCJ \
19126     old_archive_from_new_cmds_GCJ \
19127     predep_objects_GCJ \
19128     postdep_objects_GCJ \
19129     predeps_GCJ \
19130     postdeps_GCJ \
19131     compiler_lib_search_path_GCJ \
19132     compiler_lib_search_dirs_GCJ \
19133     archive_cmds_GCJ \
19134     archive_expsym_cmds_GCJ \
19135     postinstall_cmds_GCJ \
19136     postuninstall_cmds_GCJ \
19137     old_archive_from_expsyms_cmds_GCJ \
19138     allow_undefined_flag_GCJ \
19139     no_undefined_flag_GCJ \
19140     export_symbols_cmds_GCJ \
19141     hardcode_libdir_flag_spec_GCJ \
19142     hardcode_libdir_flag_spec_ld_GCJ \
19143     hardcode_libdir_separator_GCJ \
19144     hardcode_automatic_GCJ \
19145     module_cmds_GCJ \
19146     module_expsym_cmds_GCJ \
19147     lt_cv_prog_compiler_c_o_GCJ \
19148     fix_srcfile_path_GCJ \
19149     exclude_expsyms_GCJ \
19150     include_expsyms_GCJ; do
19151
19152     case $var in
19153     old_archive_cmds_GCJ | \
19154     old_archive_from_new_cmds_GCJ | \
19155     archive_cmds_GCJ | \
19156     archive_expsym_cmds_GCJ | \
19157     module_cmds_GCJ | \
19158     module_expsym_cmds_GCJ | \
19159     old_archive_from_expsyms_cmds_GCJ | \
19160     export_symbols_cmds_GCJ | \
19161     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19162     postinstall_cmds | postuninstall_cmds | \
19163     old_postinstall_cmds | old_postuninstall_cmds | \
19164     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19165       # Double-quote double-evaled strings.
19166       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19167       ;;
19168     *)
19169       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19170       ;;
19171     esac
19172   done
19173
19174   case $lt_echo in
19175   *'\$0 --fallback-echo"')
19176     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19177     ;;
19178   esac
19179
19180 cfgfile="$ofile"
19181
19182   cat <<__EOF__ >> "$cfgfile"
19183 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19184
19185 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19186
19187 # Shell to use when invoking shell scripts.
19188 SHELL=$lt_SHELL
19189
19190 # Whether or not to build shared libraries.
19191 build_libtool_libs=$enable_shared
19192
19193 # Whether or not to build static libraries.
19194 build_old_libs=$enable_static
19195
19196 # Whether or not to add -lc for building shared libraries.
19197 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19198
19199 # Whether or not to disallow shared libs when runtime libs are static
19200 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19201
19202 # Whether or not to optimize for fast installation.
19203 fast_install=$enable_fast_install
19204
19205 # The host system.
19206 host_alias=$host_alias
19207 host=$host
19208 host_os=$host_os
19209
19210 # The build system.
19211 build_alias=$build_alias
19212 build=$build
19213 build_os=$build_os
19214
19215 # An echo program that does not interpret backslashes.
19216 echo=$lt_echo
19217
19218 # The archiver.
19219 AR=$lt_AR
19220 AR_FLAGS=$lt_AR_FLAGS
19221
19222 # A C compiler.
19223 LTCC=$lt_LTCC
19224
19225 # LTCC compiler flags.
19226 LTCFLAGS=$lt_LTCFLAGS
19227
19228 # A language-specific compiler.
19229 CC=$lt_compiler_GCJ
19230
19231 # Is the compiler the GNU C compiler?
19232 with_gcc=$GCC_GCJ
19233
19234 # An ERE matcher.
19235 EGREP=$lt_EGREP
19236
19237 # The linker used to build libraries.
19238 LD=$lt_LD_GCJ
19239
19240 # Whether we need hard or soft links.
19241 LN_S=$lt_LN_S
19242
19243 # A BSD-compatible nm program.
19244 NM=$lt_NM
19245
19246 # A symbol stripping program
19247 STRIP=$lt_STRIP
19248
19249 # Used to examine libraries when file_magic_cmd begins "file"
19250 MAGIC_CMD=$MAGIC_CMD
19251
19252 # Used on cygwin: DLL creation program.
19253 DLLTOOL="$DLLTOOL"
19254
19255 # Used on cygwin: object dumper.
19256 OBJDUMP="$OBJDUMP"
19257
19258 # Used on cygwin: assembler.
19259 AS="$AS"
19260
19261 # The name of the directory that contains temporary libtool files.
19262 objdir=$objdir
19263
19264 # How to create reloadable object files.
19265 reload_flag=$lt_reload_flag
19266 reload_cmds=$lt_reload_cmds
19267
19268 # How to pass a linker flag through the compiler.
19269 wl=$lt_lt_prog_compiler_wl_GCJ
19270
19271 # Object file suffix (normally "o").
19272 objext="$ac_objext"
19273
19274 # Old archive suffix (normally "a").
19275 libext="$libext"
19276
19277 # Shared library suffix (normally ".so").
19278 shrext_cmds='$shrext_cmds'
19279
19280 # Executable file suffix (normally "").
19281 exeext="$exeext"
19282
19283 # Additional compiler flags for building library objects.
19284 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19285 pic_mode=$pic_mode
19286
19287 # What is the maximum length of a command?
19288 max_cmd_len=$lt_cv_sys_max_cmd_len
19289
19290 # Does compiler simultaneously support -c and -o options?
19291 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19292
19293 # Must we lock files when doing compilation?
19294 need_locks=$lt_need_locks
19295
19296 # Do we need the lib prefix for modules?
19297 need_lib_prefix=$need_lib_prefix
19298
19299 # Do we need a version for libraries?
19300 need_version=$need_version
19301
19302 # Whether dlopen is supported.
19303 dlopen_support=$enable_dlopen
19304
19305 # Whether dlopen of programs is supported.
19306 dlopen_self=$enable_dlopen_self
19307
19308 # Whether dlopen of statically linked programs is supported.
19309 dlopen_self_static=$enable_dlopen_self_static
19310
19311 # Compiler flag to prevent dynamic linking.
19312 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19313
19314 # Compiler flag to turn off builtin functions.
19315 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19316
19317 # Compiler flag to allow reflexive dlopens.
19318 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19319
19320 # Compiler flag to generate shared objects directly from archives.
19321 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19322
19323 # Compiler flag to generate thread-safe objects.
19324 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19325
19326 # Library versioning type.
19327 version_type=$version_type
19328
19329 # Format of library name prefix.
19330 libname_spec=$lt_libname_spec
19331
19332 # List of archive names.  First name is the real one, the rest are links.
19333 # The last name is the one that the linker finds with -lNAME.
19334 library_names_spec=$lt_library_names_spec
19335
19336 # The coded name of the library, if different from the real name.
19337 soname_spec=$lt_soname_spec
19338
19339 # Commands used to build and install an old-style archive.
19340 RANLIB=$lt_RANLIB
19341 old_archive_cmds=$lt_old_archive_cmds_GCJ
19342 old_postinstall_cmds=$lt_old_postinstall_cmds
19343 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19344
19345 # Create an old-style archive from a shared archive.
19346 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19347
19348 # Create a temporary old-style archive to link instead of a shared archive.
19349 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19350
19351 # Commands used to build and install a shared archive.
19352 archive_cmds=$lt_archive_cmds_GCJ
19353 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19354 postinstall_cmds=$lt_postinstall_cmds
19355 postuninstall_cmds=$lt_postuninstall_cmds
19356
19357 # Commands used to build a loadable module (assumed same as above if empty)
19358 module_cmds=$lt_module_cmds_GCJ
19359 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19360
19361 # Commands to strip libraries.
19362 old_striplib=$lt_old_striplib
19363 striplib=$lt_striplib
19364
19365 # Dependencies to place before the objects being linked to create a
19366 # shared library.
19367 predep_objects=$lt_predep_objects_GCJ
19368
19369 # Dependencies to place after the objects being linked to create a
19370 # shared library.
19371 postdep_objects=$lt_postdep_objects_GCJ
19372
19373 # Dependencies to place before the objects being linked to create a
19374 # shared library.
19375 predeps=$lt_predeps_GCJ
19376
19377 # Dependencies to place after the objects being linked to create a
19378 # shared library.
19379 postdeps=$lt_postdeps_GCJ
19380
19381 # The directories searched by this compiler when creating a shared
19382 # library
19383 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19384
19385 # The library search path used internally by the compiler when linking
19386 # a shared library.
19387 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19388
19389 # Method to check whether dependent libraries are shared objects.
19390 deplibs_check_method=$lt_deplibs_check_method
19391
19392 # Command to use when deplibs_check_method == file_magic.
19393 file_magic_cmd=$lt_file_magic_cmd
19394
19395 # Flag that allows shared libraries with undefined symbols to be built.
19396 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19397
19398 # Flag that forces no undefined symbols.
19399 no_undefined_flag=$lt_no_undefined_flag_GCJ
19400
19401 # Commands used to finish a libtool library installation in a directory.
19402 finish_cmds=$lt_finish_cmds
19403
19404 # Same as above, but a single script fragment to be evaled but not shown.
19405 finish_eval=$lt_finish_eval
19406
19407 # Take the output of nm and produce a listing of raw symbols and C names.
19408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19409
19410 # Transform the output of nm in a proper C declaration
19411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19412
19413 # Transform the output of nm in a C name address pair
19414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19415
19416 # This is the shared library runtime path variable.
19417 runpath_var=$runpath_var
19418
19419 # This is the shared library path variable.
19420 shlibpath_var=$shlibpath_var
19421
19422 # Is shlibpath searched before the hard-coded library search path?
19423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19424
19425 # How to hardcode a shared library path into an executable.
19426 hardcode_action=$hardcode_action_GCJ
19427
19428 # Whether we should hardcode library paths into libraries.
19429 hardcode_into_libs=$hardcode_into_libs
19430
19431 # Flag to hardcode \$libdir into a binary during linking.
19432 # This must work even if \$libdir does not exist.
19433 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19434
19435 # If ld is used when linking, flag to hardcode \$libdir into
19436 # a binary during linking. This must work even if \$libdir does
19437 # not exist.
19438 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19439
19440 # Whether we need a single -rpath flag with a separated argument.
19441 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19442
19443 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19444 # resulting binary.
19445 hardcode_direct=$hardcode_direct_GCJ
19446
19447 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19448 # resulting binary.
19449 hardcode_minus_L=$hardcode_minus_L_GCJ
19450
19451 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19452 # the resulting binary.
19453 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19454
19455 # Set to yes if building a shared library automatically hardcodes DIR into the library
19456 # and all subsequent libraries and executables linked against it.
19457 hardcode_automatic=$hardcode_automatic_GCJ
19458
19459 # Variables whose values should be saved in libtool wrapper scripts and
19460 # restored at relink time.
19461 variables_saved_for_relink="$variables_saved_for_relink"
19462
19463 # Whether libtool must link a program against all its dependency libraries.
19464 link_all_deplibs=$link_all_deplibs_GCJ
19465
19466 # Compile-time system search path for libraries
19467 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19468
19469 # Run-time system search path for libraries
19470 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19471
19472 # Fix the shell variable \$srcfile for the compiler.
19473 fix_srcfile_path=$lt_fix_srcfile_path
19474
19475 # Set to yes if exported symbols are required.
19476 always_export_symbols=$always_export_symbols_GCJ
19477
19478 # The commands to list exported symbols.
19479 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19480
19481 # The commands to extract the exported symbol list from a shared archive.
19482 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19483
19484 # Symbols that should not be listed in the preloaded symbols.
19485 exclude_expsyms=$lt_exclude_expsyms_GCJ
19486
19487 # Symbols that must always be exported.
19488 include_expsyms=$lt_include_expsyms_GCJ
19489
19490 # ### END LIBTOOL TAG CONFIG: $tagname
19491
19492 __EOF__
19493
19494
19495 else
19496   # If there is no Makefile yet, we rely on a make rule to execute
19497   # `config.status --recheck' to rerun these tests and create the
19498   # libtool script then.
19499   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19500   if test -f "$ltmain_in"; then
19501     test -f Makefile && make "$ltmain"
19502   fi
19503 fi
19504
19505
19506 ac_ext=c
19507 ac_cpp='$CPP $CPPFLAGS'
19508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19511
19512 CC="$lt_save_CC"
19513
19514         else
19515           tagname=""
19516         fi
19517         ;;
19518
19519       RC)
19520
19521
19522 # Source file extension for RC test sources.
19523 ac_ext=rc
19524
19525 # Object file extension for compiled RC test sources.
19526 objext=o
19527 objext_RC=$objext
19528
19529 # Code to be used in simple compile tests
19530 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19531
19532 # Code to be used in simple link tests
19533 lt_simple_link_test_code="$lt_simple_compile_test_code"
19534
19535 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19536
19537 # If no C compiler was specified, use CC.
19538 LTCC=${LTCC-"$CC"}
19539
19540 # If no C compiler flags were specified, use CFLAGS.
19541 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19542
19543 # Allow CC to be a program name with arguments.
19544 compiler=$CC
19545
19546
19547 # save warnings/boilerplate of simple test code
19548 ac_outfile=conftest.$ac_objext
19549 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19550 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19551 _lt_compiler_boilerplate=`cat conftest.err`
19552 $rm conftest*
19553
19554 ac_outfile=conftest.$ac_objext
19555 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19556 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19557 _lt_linker_boilerplate=`cat conftest.err`
19558 $rm -r conftest*
19559
19560
19561 # Allow CC to be a program name with arguments.
19562 lt_save_CC="$CC"
19563 CC=${RC-"windres"}
19564 compiler=$CC
19565 compiler_RC=$CC
19566 for cc_temp in $compiler""; do
19567   case $cc_temp in
19568     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19569     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19570     \-*) ;;
19571     *) break;;
19572   esac
19573 done
19574 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19575
19576 lt_cv_prog_compiler_c_o_RC=yes
19577
19578 # The else clause should only fire when bootstrapping the
19579 # libtool distribution, otherwise you forgot to ship ltmain.sh
19580 # with your package, and you will get complaints that there are
19581 # no rules to generate ltmain.sh.
19582 if test -f "$ltmain"; then
19583   # See if we are running on zsh, and set the options which allow our commands through
19584   # without removal of \ escapes.
19585   if test -n "${ZSH_VERSION+set}" ; then
19586     setopt NO_GLOB_SUBST
19587   fi
19588   # Now quote all the things that may contain metacharacters while being
19589   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19590   # variables and quote the copies for generation of the libtool script.
19591   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19592     SED SHELL STRIP \
19593     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19594     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19595     deplibs_check_method reload_flag reload_cmds need_locks \
19596     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19597     lt_cv_sys_global_symbol_to_c_name_address \
19598     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19599     old_postinstall_cmds old_postuninstall_cmds \
19600     compiler_RC \
19601     CC_RC \
19602     LD_RC \
19603     lt_prog_compiler_wl_RC \
19604     lt_prog_compiler_pic_RC \
19605     lt_prog_compiler_static_RC \
19606     lt_prog_compiler_no_builtin_flag_RC \
19607     export_dynamic_flag_spec_RC \
19608     thread_safe_flag_spec_RC \
19609     whole_archive_flag_spec_RC \
19610     enable_shared_with_static_runtimes_RC \
19611     old_archive_cmds_RC \
19612     old_archive_from_new_cmds_RC \
19613     predep_objects_RC \
19614     postdep_objects_RC \
19615     predeps_RC \
19616     postdeps_RC \
19617     compiler_lib_search_path_RC \
19618     compiler_lib_search_dirs_RC \
19619     archive_cmds_RC \
19620     archive_expsym_cmds_RC \
19621     postinstall_cmds_RC \
19622     postuninstall_cmds_RC \
19623     old_archive_from_expsyms_cmds_RC \
19624     allow_undefined_flag_RC \
19625     no_undefined_flag_RC \
19626     export_symbols_cmds_RC \
19627     hardcode_libdir_flag_spec_RC \
19628     hardcode_libdir_flag_spec_ld_RC \
19629     hardcode_libdir_separator_RC \
19630     hardcode_automatic_RC \
19631     module_cmds_RC \
19632     module_expsym_cmds_RC \
19633     lt_cv_prog_compiler_c_o_RC \
19634     fix_srcfile_path_RC \
19635     exclude_expsyms_RC \
19636     include_expsyms_RC; do
19637
19638     case $var in
19639     old_archive_cmds_RC | \
19640     old_archive_from_new_cmds_RC | \
19641     archive_cmds_RC | \
19642     archive_expsym_cmds_RC | \
19643     module_cmds_RC | \
19644     module_expsym_cmds_RC | \
19645     old_archive_from_expsyms_cmds_RC | \
19646     export_symbols_cmds_RC | \
19647     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19648     postinstall_cmds | postuninstall_cmds | \
19649     old_postinstall_cmds | old_postuninstall_cmds | \
19650     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19651       # Double-quote double-evaled strings.
19652       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19653       ;;
19654     *)
19655       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19656       ;;
19657     esac
19658   done
19659
19660   case $lt_echo in
19661   *'\$0 --fallback-echo"')
19662     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19663     ;;
19664   esac
19665
19666 cfgfile="$ofile"
19667
19668   cat <<__EOF__ >> "$cfgfile"
19669 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19670
19671 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19672
19673 # Shell to use when invoking shell scripts.
19674 SHELL=$lt_SHELL
19675
19676 # Whether or not to build shared libraries.
19677 build_libtool_libs=$enable_shared
19678
19679 # Whether or not to build static libraries.
19680 build_old_libs=$enable_static
19681
19682 # Whether or not to add -lc for building shared libraries.
19683 build_libtool_need_lc=$archive_cmds_need_lc_RC
19684
19685 # Whether or not to disallow shared libs when runtime libs are static
19686 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19687
19688 # Whether or not to optimize for fast installation.
19689 fast_install=$enable_fast_install
19690
19691 # The host system.
19692 host_alias=$host_alias
19693 host=$host
19694 host_os=$host_os
19695
19696 # The build system.
19697 build_alias=$build_alias
19698 build=$build
19699 build_os=$build_os
19700
19701 # An echo program that does not interpret backslashes.
19702 echo=$lt_echo
19703
19704 # The archiver.
19705 AR=$lt_AR
19706 AR_FLAGS=$lt_AR_FLAGS
19707
19708 # A C compiler.
19709 LTCC=$lt_LTCC
19710
19711 # LTCC compiler flags.
19712 LTCFLAGS=$lt_LTCFLAGS
19713
19714 # A language-specific compiler.
19715 CC=$lt_compiler_RC
19716
19717 # Is the compiler the GNU C compiler?
19718 with_gcc=$GCC_RC
19719
19720 # An ERE matcher.
19721 EGREP=$lt_EGREP
19722
19723 # The linker used to build libraries.
19724 LD=$lt_LD_RC
19725
19726 # Whether we need hard or soft links.
19727 LN_S=$lt_LN_S
19728
19729 # A BSD-compatible nm program.
19730 NM=$lt_NM
19731
19732 # A symbol stripping program
19733 STRIP=$lt_STRIP
19734
19735 # Used to examine libraries when file_magic_cmd begins "file"
19736 MAGIC_CMD=$MAGIC_CMD
19737
19738 # Used on cygwin: DLL creation program.
19739 DLLTOOL="$DLLTOOL"
19740
19741 # Used on cygwin: object dumper.
19742 OBJDUMP="$OBJDUMP"
19743
19744 # Used on cygwin: assembler.
19745 AS="$AS"
19746
19747 # The name of the directory that contains temporary libtool files.
19748 objdir=$objdir
19749
19750 # How to create reloadable object files.
19751 reload_flag=$lt_reload_flag
19752 reload_cmds=$lt_reload_cmds
19753
19754 # How to pass a linker flag through the compiler.
19755 wl=$lt_lt_prog_compiler_wl_RC
19756
19757 # Object file suffix (normally "o").
19758 objext="$ac_objext"
19759
19760 # Old archive suffix (normally "a").
19761 libext="$libext"
19762
19763 # Shared library suffix (normally ".so").
19764 shrext_cmds='$shrext_cmds'
19765
19766 # Executable file suffix (normally "").
19767 exeext="$exeext"
19768
19769 # Additional compiler flags for building library objects.
19770 pic_flag=$lt_lt_prog_compiler_pic_RC
19771 pic_mode=$pic_mode
19772
19773 # What is the maximum length of a command?
19774 max_cmd_len=$lt_cv_sys_max_cmd_len
19775
19776 # Does compiler simultaneously support -c and -o options?
19777 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19778
19779 # Must we lock files when doing compilation?
19780 need_locks=$lt_need_locks
19781
19782 # Do we need the lib prefix for modules?
19783 need_lib_prefix=$need_lib_prefix
19784
19785 # Do we need a version for libraries?
19786 need_version=$need_version
19787
19788 # Whether dlopen is supported.
19789 dlopen_support=$enable_dlopen
19790
19791 # Whether dlopen of programs is supported.
19792 dlopen_self=$enable_dlopen_self
19793
19794 # Whether dlopen of statically linked programs is supported.
19795 dlopen_self_static=$enable_dlopen_self_static
19796
19797 # Compiler flag to prevent dynamic linking.
19798 link_static_flag=$lt_lt_prog_compiler_static_RC
19799
19800 # Compiler flag to turn off builtin functions.
19801 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19802
19803 # Compiler flag to allow reflexive dlopens.
19804 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19805
19806 # Compiler flag to generate shared objects directly from archives.
19807 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19808
19809 # Compiler flag to generate thread-safe objects.
19810 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19811
19812 # Library versioning type.
19813 version_type=$version_type
19814
19815 # Format of library name prefix.
19816 libname_spec=$lt_libname_spec
19817
19818 # List of archive names.  First name is the real one, the rest are links.
19819 # The last name is the one that the linker finds with -lNAME.
19820 library_names_spec=$lt_library_names_spec
19821
19822 # The coded name of the library, if different from the real name.
19823 soname_spec=$lt_soname_spec
19824
19825 # Commands used to build and install an old-style archive.
19826 RANLIB=$lt_RANLIB
19827 old_archive_cmds=$lt_old_archive_cmds_RC
19828 old_postinstall_cmds=$lt_old_postinstall_cmds
19829 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19830
19831 # Create an old-style archive from a shared archive.
19832 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19833
19834 # Create a temporary old-style archive to link instead of a shared archive.
19835 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19836
19837 # Commands used to build and install a shared archive.
19838 archive_cmds=$lt_archive_cmds_RC
19839 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19840 postinstall_cmds=$lt_postinstall_cmds
19841 postuninstall_cmds=$lt_postuninstall_cmds
19842
19843 # Commands used to build a loadable module (assumed same as above if empty)
19844 module_cmds=$lt_module_cmds_RC
19845 module_expsym_cmds=$lt_module_expsym_cmds_RC
19846
19847 # Commands to strip libraries.
19848 old_striplib=$lt_old_striplib
19849 striplib=$lt_striplib
19850
19851 # Dependencies to place before the objects being linked to create a
19852 # shared library.
19853 predep_objects=$lt_predep_objects_RC
19854
19855 # Dependencies to place after the objects being linked to create a
19856 # shared library.
19857 postdep_objects=$lt_postdep_objects_RC
19858
19859 # Dependencies to place before the objects being linked to create a
19860 # shared library.
19861 predeps=$lt_predeps_RC
19862
19863 # Dependencies to place after the objects being linked to create a
19864 # shared library.
19865 postdeps=$lt_postdeps_RC
19866
19867 # The directories searched by this compiler when creating a shared
19868 # library
19869 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19870
19871 # The library search path used internally by the compiler when linking
19872 # a shared library.
19873 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19874
19875 # Method to check whether dependent libraries are shared objects.
19876 deplibs_check_method=$lt_deplibs_check_method
19877
19878 # Command to use when deplibs_check_method == file_magic.
19879 file_magic_cmd=$lt_file_magic_cmd
19880
19881 # Flag that allows shared libraries with undefined symbols to be built.
19882 allow_undefined_flag=$lt_allow_undefined_flag_RC
19883
19884 # Flag that forces no undefined symbols.
19885 no_undefined_flag=$lt_no_undefined_flag_RC
19886
19887 # Commands used to finish a libtool library installation in a directory.
19888 finish_cmds=$lt_finish_cmds
19889
19890 # Same as above, but a single script fragment to be evaled but not shown.
19891 finish_eval=$lt_finish_eval
19892
19893 # Take the output of nm and produce a listing of raw symbols and C names.
19894 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19895
19896 # Transform the output of nm in a proper C declaration
19897 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19898
19899 # Transform the output of nm in a C name address pair
19900 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19901
19902 # This is the shared library runtime path variable.
19903 runpath_var=$runpath_var
19904
19905 # This is the shared library path variable.
19906 shlibpath_var=$shlibpath_var
19907
19908 # Is shlibpath searched before the hard-coded library search path?
19909 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19910
19911 # How to hardcode a shared library path into an executable.
19912 hardcode_action=$hardcode_action_RC
19913
19914 # Whether we should hardcode library paths into libraries.
19915 hardcode_into_libs=$hardcode_into_libs
19916
19917 # Flag to hardcode \$libdir into a binary during linking.
19918 # This must work even if \$libdir does not exist.
19919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19920
19921 # If ld is used when linking, flag to hardcode \$libdir into
19922 # a binary during linking. This must work even if \$libdir does
19923 # not exist.
19924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19925
19926 # Whether we need a single -rpath flag with a separated argument.
19927 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19928
19929 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19930 # resulting binary.
19931 hardcode_direct=$hardcode_direct_RC
19932
19933 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19934 # resulting binary.
19935 hardcode_minus_L=$hardcode_minus_L_RC
19936
19937 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19938 # the resulting binary.
19939 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19940
19941 # Set to yes if building a shared library automatically hardcodes DIR into the library
19942 # and all subsequent libraries and executables linked against it.
19943 hardcode_automatic=$hardcode_automatic_RC
19944
19945 # Variables whose values should be saved in libtool wrapper scripts and
19946 # restored at relink time.
19947 variables_saved_for_relink="$variables_saved_for_relink"
19948
19949 # Whether libtool must link a program against all its dependency libraries.
19950 link_all_deplibs=$link_all_deplibs_RC
19951
19952 # Compile-time system search path for libraries
19953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19954
19955 # Run-time system search path for libraries
19956 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19957
19958 # Fix the shell variable \$srcfile for the compiler.
19959 fix_srcfile_path=$lt_fix_srcfile_path
19960
19961 # Set to yes if exported symbols are required.
19962 always_export_symbols=$always_export_symbols_RC
19963
19964 # The commands to list exported symbols.
19965 export_symbols_cmds=$lt_export_symbols_cmds_RC
19966
19967 # The commands to extract the exported symbol list from a shared archive.
19968 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19969
19970 # Symbols that should not be listed in the preloaded symbols.
19971 exclude_expsyms=$lt_exclude_expsyms_RC
19972
19973 # Symbols that must always be exported.
19974 include_expsyms=$lt_include_expsyms_RC
19975
19976 # ### END LIBTOOL TAG CONFIG: $tagname
19977
19978 __EOF__
19979
19980
19981 else
19982   # If there is no Makefile yet, we rely on a make rule to execute
19983   # `config.status --recheck' to rerun these tests and create the
19984   # libtool script then.
19985   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19986   if test -f "$ltmain_in"; then
19987     test -f Makefile && make "$ltmain"
19988   fi
19989 fi
19990
19991
19992 ac_ext=c
19993 ac_cpp='$CPP $CPPFLAGS'
19994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19997
19998 CC="$lt_save_CC"
19999
20000         ;;
20001
20002       *)
20003         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20004 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20005    { (exit 1); exit 1; }; }
20006         ;;
20007       esac
20008
20009       # Append the new tag name to the list of available tags.
20010       if test -n "$tagname" ; then
20011       available_tags="$available_tags $tagname"
20012     fi
20013     fi
20014   done
20015   IFS="$lt_save_ifs"
20016
20017   # Now substitute the updated list of available tags.
20018   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20019     mv "${ofile}T" "$ofile"
20020     chmod +x "$ofile"
20021   else
20022     rm -f "${ofile}T"
20023     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20024 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20025    { (exit 1); exit 1; }; }
20026   fi
20027 fi
20028
20029
20030
20031 # This can be used to rebuild libtool when needed
20032 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20033
20034 # Always use our own libtool.
20035 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20036
20037 # Prevent multiple expansion
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050 # Check whether --with-system-libtool was given.
20051 if test "${with_system_libtool+set}" = set; then
20052   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
20053 set dummy libtool; ac_word=$2
20054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20056 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20057   echo $ECHO_N "(cached) $ECHO_C" >&6
20058 else
20059   case $LIBTOOL in
20060   [\\/]* | ?:[\\/]*)
20061   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20062   ;;
20063   *)
20064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20065 as_dummy="$PATH:/usr/local/bin"
20066 for as_dir in $as_dummy
20067 do
20068   IFS=$as_save_IFS
20069   test -z "$as_dir" && as_dir=.
20070   for ac_exec_ext in '' $ac_executable_extensions; do
20071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20072     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20074     break 2
20075   fi
20076 done
20077 done
20078 IFS=$as_save_IFS
20079
20080   ;;
20081 esac
20082 fi
20083 LIBTOOL=$ac_cv_path_LIBTOOL
20084 if test -n "$LIBTOOL"; then
20085   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20086 echo "${ECHO_T}$LIBTOOL" >&6; }
20087 else
20088   { echo "$as_me:$LINENO: result: no" >&5
20089 echo "${ECHO_T}no" >&6; }
20090 fi
20091
20092
20093 else
20094
20095   LIBTOOL="`pwd`/libtool"
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110 fi
20111
20112
20113
20114
20115 # Check whether --enable-strict-dependencies was given.
20116 if test "${enable_strict_dependencies+set}" = set; then
20117   enableval=$enable_strict_dependencies;
20118 fi
20119
20120
20121 docdir='${datadir}/doc/freeradius'
20122 { echo "$as_me:$LINENO: checking docdir" >&5
20123 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
20124
20125 # Check whether --with-docdir was given.
20126 if test "${with_docdir+set}" = set; then
20127   withval=$with_docdir;  case "$withval" in
20128     no)
20129         docdir=no
20130         ;;
20131     yes)
20132         ;;
20133     [\\/$]* | ?:[\\/]* )
20134         docdir="$withval"
20135         ;;
20136     *)
20137         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
20138 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
20139    { (exit 1); exit 1; }; }
20140         ;;
20141   esac
20142
20143 fi
20144
20145
20146 { echo "$as_me:$LINENO: result: $docdir" >&5
20147 echo "${ECHO_T}$docdir" >&6; }
20148 if test "x$docdir" = xno; then
20149         { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
20150 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
20151 fi
20152
20153 logdir='${localstatedir}/log/radius'
20154 { echo "$as_me:$LINENO: checking logdir" >&5
20155 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
20156
20157 # Check whether --with-logdir was given.
20158 if test "${with_logdir+set}" = set; then
20159   withval=$with_logdir;  case "$withval" in
20160     no)
20161         { { echo "$as_me:$LINENO: error: Need logdir" >&5
20162 echo "$as_me: error: Need logdir" >&2;}
20163    { (exit 1); exit 1; }; }
20164         ;;
20165     yes)
20166         ;;
20167     [\\/$]* | ?:[\\/]* )
20168         logdir="$withval"
20169         ;;
20170     *)
20171         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
20172 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
20173    { (exit 1); exit 1; }; }
20174         ;;
20175   esac
20176
20177 fi
20178
20179
20180 { echo "$as_me:$LINENO: result: $logdir" >&5
20181 echo "${ECHO_T}$logdir" >&6; }
20182
20183 radacctdir='${logdir}/radacct'
20184 { echo "$as_me:$LINENO: checking radacctdir" >&5
20185 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
20186
20187 # Check whether --with-radacctdir was given.
20188 if test "${with_radacctdir+set}" = set; then
20189   withval=$with_radacctdir;  case "$withval" in
20190     no)
20191         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
20192 echo "$as_me: error: Need radacctdir" >&2;}
20193    { (exit 1); exit 1; }; }
20194         ;;
20195     yes)
20196         ;;
20197     [\\/$]* | ?:[\\/]* )
20198         radacctdir="$withval"
20199         ;;
20200     *)
20201         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
20202 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
20203    { (exit 1); exit 1; }; }
20204         ;;
20205   esac
20206
20207 fi
20208
20209
20210 { echo "$as_me:$LINENO: result: $radacctdir" >&5
20211 echo "${ECHO_T}$radacctdir" >&6; }
20212
20213 raddbdir='${sysconfdir}/raddb'
20214 { echo "$as_me:$LINENO: checking raddbdir" >&5
20215 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
20216
20217 # Check whether --with-raddbdir was given.
20218 if test "${with_raddbdir+set}" = set; then
20219   withval=$with_raddbdir;  case "$withval" in
20220     no)
20221         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
20222 echo "$as_me: error: Need raddbdir" >&2;}
20223    { (exit 1); exit 1; }; }
20224         ;;
20225     yes)
20226         ;;
20227     [\\/$]* | ?:[\\/]* )
20228         raddbdir="$withval"
20229         ;;
20230     *)
20231         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
20232 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
20233    { (exit 1); exit 1; }; }
20234         ;;
20235   esac
20236
20237 fi
20238
20239
20240 { echo "$as_me:$LINENO: result: $raddbdir" >&5
20241 echo "${ECHO_T}$raddbdir" >&6; }
20242
20243 ASCEND_BINARY=yes
20244
20245 # Check whether --with-ascend-binary was given.
20246 if test "${with_ascend_binary+set}" = set; then
20247   withval=$with_ascend_binary;  case "$withval" in
20248     yes)
20249         ;;
20250     *)
20251         ASCEND_BINARY=""
20252   esac
20253
20254 fi
20255
20256 if test "X$ASCEND_BINARY" = "Xyes"; then
20257
20258 cat >>confdefs.h <<\_ACEOF
20259 #define ASCEND_BINARY
20260 _ACEOF
20261
20262 fi
20263
20264 WITH_THREADS=yes
20265
20266 # Check whether --with-threads was given.
20267 if test "${with_threads+set}" = set; then
20268   withval=$with_threads;  case "$withval" in
20269     yes)
20270         ;;
20271     *)
20272         WITH_THREADS=""
20273   esac
20274
20275 fi
20276
20277
20278 WITH_VMPS=yes
20279
20280 # Check whether --with-vmps was given.
20281 if test "${with_vmps+set}" = set; then
20282   withval=$with_vmps;  case "$withval" in
20283     yes)
20284         ;;
20285     *)
20286         WITH_VMPS=no
20287   esac
20288
20289 fi
20290
20291 if test "x$WITH_VMPS" = "xyes"; then
20292
20293 cat >>confdefs.h <<\_ACEOF
20294 #define WITH_VMPS 1
20295 _ACEOF
20296
20297 fi
20298
20299
20300 # Check whether --with-dhcp was given.
20301 if test "${with_dhcp+set}" = set; then
20302   withval=$with_dhcp;  case "$withval" in
20303     yes)
20304
20305 cat >>confdefs.h <<\_ACEOF
20306 #define WITH_DHCP 1
20307 _ACEOF
20308
20309         ;;
20310     *)
20311         ;;
20312   esac
20313
20314 fi
20315
20316
20317
20318 STATIC_MODULES=
20319
20320 # Check whether --with-static_modules was given.
20321 if test "${with_static_modules+set}" = set; then
20322   withval=$with_static_modules;
20323   for i in $withval; do
20324     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
20325   done
20326
20327 fi
20328
20329
20330 MODULES=
20331
20332 # Check whether --with-modules was given.
20333 if test "${with_modules+set}" = set; then
20334   withval=$with_modules;
20335  for i in $withval; do
20336    MODULES="$MODULES $i"
20337  done
20338
20339 fi
20340
20341
20342 # Check whether --enable-developer was given.
20343 if test "${enable_developer+set}" = set; then
20344   enableval=$enable_developer;  case "$enableval" in
20345     no)
20346         developer=no
20347         ;;
20348     *)
20349         developer=yes
20350   esac
20351
20352 fi
20353
20354
20355 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
20356     developer="yes"
20357 fi
20358
20359 if test "x$developer" != "xno" -a -d $srcdir/.git; then
20360     developer="yes"
20361 fi
20362
20363 EXPERIMENTAL=
20364
20365 # Check whether --with-experimental-modules was given.
20366 if test "${with_experimental_modules+set}" = set; then
20367   withval=$with_experimental_modules;  case "$withval" in
20368     yes)
20369         EXPERIMENTAL=yes
20370         ;;
20371     *)
20372   esac
20373
20374 fi
20375
20376
20377 WITH_OPENSSL=yes
20378
20379 # Check whether --with-openssl was given.
20380 if test "${with_openssl+set}" = set; then
20381   withval=$with_openssl;  case "$withval" in
20382     no)
20383         WITH_OPENSSL=no
20384         ;;
20385     *)
20386         WITH_OPENSSL=yes
20387         ;;
20388   esac
20389
20390 fi
20391
20392
20393 OPENSSL_INCLUDE_DIR=
20394
20395 # Check whether --with-openssl-includes was given.
20396 if test "${with_openssl_includes+set}" = set; then
20397   withval=$with_openssl_includes;  case "$withval" in
20398     *) OPENSSL_INCLUDE_DIR="$withval"
20399         ;;
20400   esac
20401
20402 fi
20403
20404
20405 OPENSSL_LIB_DIR=
20406
20407 # Check whether --with-openssl-libraries was given.
20408 if test "${with_openssl_libraries+set}" = set; then
20409   withval=$with_openssl_libraries;  case "$withval" in
20410     *) OPENSSL_LIB_DIR="$withval"
20411         ;;
20412   esac
20413
20414 fi
20415
20416
20417
20418
20419 # Check whether --with-rlm-FOO-lib-dir was given.
20420 if test "${with_rlm_FOO_lib_dir+set}" = set; then
20421   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
20422     *)
20423         ;;
20424   esac
20425
20426 fi
20427
20428
20429
20430 # Check whether --with-rlm-FOO-include-dir was given.
20431 if test "${with_rlm_FOO_include_dir+set}" = set; then
20432   withval=$with_rlm_FOO_include_dir;  case "$withval" in
20433     *)
20434         ;;
20435   esac
20436
20437 fi
20438
20439
20440
20441 WITH_UDPFROMTO=no
20442
20443 # Check whether --with-udpfromto was given.
20444 if test "${with_udpfromto+set}" = set; then
20445   withval=$with_udpfromto;  case "$withval" in
20446     yes)
20447         WITH_UDPFROMTO=yes
20448         ;;
20449     *)
20450         WITH_UDPFROMTO=no
20451   esac
20452
20453 fi
20454
20455
20456 if test "x$WITH_UDPFROMTO" = "xyes"; then
20457
20458 cat >>confdefs.h <<\_ACEOF
20459 #define WITH_UDPFROMTO
20460 _ACEOF
20461
20462 fi
20463
20464
20465 CHECKRAD=checkrad.pl
20466 # Extract the first word of "perl", so it can be a program name with args.
20467 set dummy perl; ac_word=$2
20468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20470 if test "${ac_cv_path_PERL+set}" = set; then
20471   echo $ECHO_N "(cached) $ECHO_C" >&6
20472 else
20473   case $PERL in
20474   [\\/]* | ?:[\\/]*)
20475   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20476   ;;
20477   *)
20478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20479 for as_dir in $PATH
20480 do
20481   IFS=$as_save_IFS
20482   test -z "$as_dir" && as_dir=.
20483   for ac_exec_ext in '' $ac_executable_extensions; do
20484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20485     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
20486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20487     break 2
20488   fi
20489 done
20490 done
20491 IFS=$as_save_IFS
20492
20493   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
20494   ;;
20495 esac
20496 fi
20497 PERL=$ac_cv_path_PERL
20498 if test -n "$PERL"; then
20499   { echo "$as_me:$LINENO: result: $PERL" >&5
20500 echo "${ECHO_T}$PERL" >&6; }
20501 else
20502   { echo "$as_me:$LINENO: result: no" >&5
20503 echo "${ECHO_T}no" >&6; }
20504 fi
20505
20506
20507 if test "x$ac_cv_path_PERL" = "x"; then
20508   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
20509 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20510 fi
20511 # Extract the first word of "snmpget", so it can be a program name with args.
20512 set dummy snmpget; ac_word=$2
20513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20515 if test "${ac_cv_path_SNMPGET+set}" = set; then
20516   echo $ECHO_N "(cached) $ECHO_C" >&6
20517 else
20518   case $SNMPGET in
20519   [\\/]* | ?:[\\/]*)
20520   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
20521   ;;
20522   *)
20523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20524 for as_dir in $PATH
20525 do
20526   IFS=$as_save_IFS
20527   test -z "$as_dir" && as_dir=.
20528   for ac_exec_ext in '' $ac_executable_extensions; do
20529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20530     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
20531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20532     break 2
20533   fi
20534 done
20535 done
20536 IFS=$as_save_IFS
20537
20538   ;;
20539 esac
20540 fi
20541 SNMPGET=$ac_cv_path_SNMPGET
20542 if test -n "$SNMPGET"; then
20543   { echo "$as_me:$LINENO: result: $SNMPGET" >&5
20544 echo "${ECHO_T}$SNMPGET" >&6; }
20545 else
20546   { echo "$as_me:$LINENO: result: no" >&5
20547 echo "${ECHO_T}no" >&6; }
20548 fi
20549
20550
20551 if test "x$ac_cv_path_SNMPGET" = "x"; then
20552   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
20553 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20554 fi
20555
20556 # Extract the first word of "snmpwalk", so it can be a program name with args.
20557 set dummy snmpwalk; ac_word=$2
20558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20560 if test "${ac_cv_path_SNMPWALK+set}" = set; then
20561   echo $ECHO_N "(cached) $ECHO_C" >&6
20562 else
20563   case $SNMPWALK in
20564   [\\/]* | ?:[\\/]*)
20565   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20566   ;;
20567   *)
20568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20569 for as_dir in $PATH
20570 do
20571   IFS=$as_save_IFS
20572   test -z "$as_dir" && as_dir=.
20573   for ac_exec_ext in '' $ac_executable_extensions; do
20574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20575     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20577     break 2
20578   fi
20579 done
20580 done
20581 IFS=$as_save_IFS
20582
20583   ;;
20584 esac
20585 fi
20586 SNMPWALK=$ac_cv_path_SNMPWALK
20587 if test -n "$SNMPWALK"; then
20588   { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20589 echo "${ECHO_T}$SNMPWALK" >&6; }
20590 else
20591   { echo "$as_me:$LINENO: result: no" >&5
20592 echo "${ECHO_T}no" >&6; }
20593 fi
20594
20595
20596 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20597   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20598 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20599 fi
20600
20601 # Extract the first word of "rusers", so it can be a program name with args.
20602 set dummy rusers; ac_word=$2
20603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20605 if test "${ac_cv_path_RUSERS+set}" = set; then
20606   echo $ECHO_N "(cached) $ECHO_C" >&6
20607 else
20608   case $RUSERS in
20609   [\\/]* | ?:[\\/]*)
20610   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20611   ;;
20612   *)
20613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20614 for as_dir in $PATH
20615 do
20616   IFS=$as_save_IFS
20617   test -z "$as_dir" && as_dir=.
20618   for ac_exec_ext in '' $ac_executable_extensions; do
20619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20620     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20622     break 2
20623   fi
20624 done
20625 done
20626 IFS=$as_save_IFS
20627
20628   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20629   ;;
20630 esac
20631 fi
20632 RUSERS=$ac_cv_path_RUSERS
20633 if test -n "$RUSERS"; then
20634   { echo "$as_me:$LINENO: result: $RUSERS" >&5
20635 echo "${ECHO_T}$RUSERS" >&6; }
20636 else
20637   { echo "$as_me:$LINENO: result: no" >&5
20638 echo "${ECHO_T}no" >&6; }
20639 fi
20640
20641
20642
20643 missing_dir=`cd $ac_aux_dir && pwd`
20644 # expand $ac_aux_dir to an absolute path
20645 am_aux_dir=`cd $ac_aux_dir && pwd`
20646
20647 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20648 # Use eval to expand $SHELL
20649 if eval "$MISSING --run true"; then
20650   am_missing_run="$MISSING --run "
20651 else
20652   am_missing_run=
20653   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20654 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20655 fi
20656
20657
20658 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20659
20660
20661 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20662
20663
20664 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20665
20666
20667 # Extract the first word of "locate", so it can be a program name with args.
20668 set dummy locate; ac_word=$2
20669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20671 if test "${ac_cv_path_LOCATE+set}" = set; then
20672   echo $ECHO_N "(cached) $ECHO_C" >&6
20673 else
20674   case $LOCATE in
20675   [\\/]* | ?:[\\/]*)
20676   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20677   ;;
20678   *)
20679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20680 for as_dir in $PATH
20681 do
20682   IFS=$as_save_IFS
20683   test -z "$as_dir" && as_dir=.
20684   for ac_exec_ext in '' $ac_executable_extensions; do
20685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20686     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20688     break 2
20689   fi
20690 done
20691 done
20692 IFS=$as_save_IFS
20693
20694   ;;
20695 esac
20696 fi
20697 LOCATE=$ac_cv_path_LOCATE
20698 if test -n "$LOCATE"; then
20699   { echo "$as_me:$LINENO: result: $LOCATE" >&5
20700 echo "${ECHO_T}$LOCATE" >&6; }
20701 else
20702   { echo "$as_me:$LINENO: result: no" >&5
20703 echo "${ECHO_T}no" >&6; }
20704 fi
20705
20706
20707 # Extract the first word of "dirname", so it can be a program name with args.
20708 set dummy dirname; ac_word=$2
20709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20711 if test "${ac_cv_path_DIRNAME+set}" = set; then
20712   echo $ECHO_N "(cached) $ECHO_C" >&6
20713 else
20714   case $DIRNAME in
20715   [\\/]* | ?:[\\/]*)
20716   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20717   ;;
20718   *)
20719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20720 for as_dir in $PATH
20721 do
20722   IFS=$as_save_IFS
20723   test -z "$as_dir" && as_dir=.
20724   for ac_exec_ext in '' $ac_executable_extensions; do
20725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20726     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20728     break 2
20729   fi
20730 done
20731 done
20732 IFS=$as_save_IFS
20733
20734   ;;
20735 esac
20736 fi
20737 DIRNAME=$ac_cv_path_DIRNAME
20738 if test -n "$DIRNAME"; then
20739   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20740 echo "${ECHO_T}$DIRNAME" >&6; }
20741 else
20742   { echo "$as_me:$LINENO: result: no" >&5
20743 echo "${ECHO_T}no" >&6; }
20744 fi
20745
20746
20747 # Extract the first word of "grep", so it can be a program name with args.
20748 set dummy grep; ac_word=$2
20749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20751 if test "${ac_cv_path_GREP+set}" = set; then
20752   echo $ECHO_N "(cached) $ECHO_C" >&6
20753 else
20754   case $GREP in
20755   [\\/]* | ?:[\\/]*)
20756   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20757   ;;
20758   *)
20759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20760 for as_dir in $PATH
20761 do
20762   IFS=$as_save_IFS
20763   test -z "$as_dir" && as_dir=.
20764   for ac_exec_ext in '' $ac_executable_extensions; do
20765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20766     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20768     break 2
20769   fi
20770 done
20771 done
20772 IFS=$as_save_IFS
20773
20774   ;;
20775 esac
20776 fi
20777 GREP=$ac_cv_path_GREP
20778 if test -n "$GREP"; then
20779   { echo "$as_me:$LINENO: result: $GREP" >&5
20780 echo "${ECHO_T}$GREP" >&6; }
20781 else
20782   { echo "$as_me:$LINENO: result: no" >&5
20783 echo "${ECHO_T}no" >&6; }
20784 fi
20785
20786
20787
20788
20789 old_CFLAGS=$CFLAGS
20790 if test "x$WITH_THREADS" = "xyes"; then
20791   if test $ac_cv_prog_suncc = "yes"; then
20792     CFLAGS="$CFLAGS -mt"
20793   fi
20794
20795
20796 for ac_header in pthread.h
20797 do
20798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20800   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20803   echo $ECHO_N "(cached) $ECHO_C" >&6
20804 fi
20805 ac_res=`eval echo '${'$as_ac_Header'}'`
20806                { echo "$as_me:$LINENO: result: $ac_res" >&5
20807 echo "${ECHO_T}$ac_res" >&6; }
20808 else
20809   # Is the header compilable?
20810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20812 cat >conftest.$ac_ext <<_ACEOF
20813 /* confdefs.h.  */
20814 _ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h.  */
20818 $ac_includes_default
20819 #include <$ac_header>
20820 _ACEOF
20821 rm -f conftest.$ac_objext
20822 if { (ac_try="$ac_compile"
20823 case "(($ac_try" in
20824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825   *) ac_try_echo=$ac_try;;
20826 esac
20827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828   (eval "$ac_compile") 2>conftest.er1
20829   ac_status=$?
20830   grep -v '^ *+' conftest.er1 >conftest.err
20831   rm -f conftest.er1
20832   cat conftest.err >&5
20833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834   (exit $ac_status); } && {
20835          test -z "$ac_c_werror_flag" ||
20836          test ! -s conftest.err
20837        } && test -s conftest.$ac_objext; then
20838   ac_header_compiler=yes
20839 else
20840   echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20842
20843         ac_header_compiler=no
20844 fi
20845
20846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20848 echo "${ECHO_T}$ac_header_compiler" >&6; }
20849
20850 # Is the header present?
20851 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20853 cat >conftest.$ac_ext <<_ACEOF
20854 /* confdefs.h.  */
20855 _ACEOF
20856 cat confdefs.h >>conftest.$ac_ext
20857 cat >>conftest.$ac_ext <<_ACEOF
20858 /* end confdefs.h.  */
20859 #include <$ac_header>
20860 _ACEOF
20861 if { (ac_try="$ac_cpp conftest.$ac_ext"
20862 case "(($ac_try" in
20863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864   *) ac_try_echo=$ac_try;;
20865 esac
20866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20868   ac_status=$?
20869   grep -v '^ *+' conftest.er1 >conftest.err
20870   rm -f conftest.er1
20871   cat conftest.err >&5
20872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873   (exit $ac_status); } >/dev/null && {
20874          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20875          test ! -s conftest.err
20876        }; then
20877   ac_header_preproc=yes
20878 else
20879   echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20881
20882   ac_header_preproc=no
20883 fi
20884
20885 rm -f conftest.err conftest.$ac_ext
20886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20887 echo "${ECHO_T}$ac_header_preproc" >&6; }
20888
20889 # So?  What about this header?
20890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20891   yes:no: )
20892     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20896     ac_header_preproc=yes
20897     ;;
20898   no:yes:* )
20899     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20901     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20902 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20903     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20905     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20906 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20907     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20909     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20911
20912     ;;
20913 esac
20914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20917   echo $ECHO_N "(cached) $ECHO_C" >&6
20918 else
20919   eval "$as_ac_Header=\$ac_header_preproc"
20920 fi
20921 ac_res=`eval echo '${'$as_ac_Header'}'`
20922                { echo "$as_me:$LINENO: result: $ac_res" >&5
20923 echo "${ECHO_T}$ac_res" >&6; }
20924
20925 fi
20926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20927   cat >>confdefs.h <<_ACEOF
20928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20929 _ACEOF
20930
20931 else
20932    WITH_THREADS="no"
20933 fi
20934
20935 done
20936
20937
20938   { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20939 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20940 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20941   echo $ECHO_N "(cached) $ECHO_C" >&6
20942 else
20943   ac_check_lib_save_LIBS=$LIBS
20944 LIBS="-lpthread  $LIBS"
20945 cat >conftest.$ac_ext <<_ACEOF
20946 /* confdefs.h.  */
20947 _ACEOF
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h.  */
20951
20952 /* Override any GCC internal prototype to avoid an error.
20953    Use char because int might match the return type of a GCC
20954    builtin and then its argument prototype would still apply.  */
20955 #ifdef __cplusplus
20956 extern "C"
20957 #endif
20958 char pthread_create ();
20959 int
20960 main ()
20961 {
20962 return pthread_create ();
20963   ;
20964   return 0;
20965 }
20966 _ACEOF
20967 rm -f conftest.$ac_objext conftest$ac_exeext
20968 if { (ac_try="$ac_link"
20969 case "(($ac_try" in
20970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971   *) ac_try_echo=$ac_try;;
20972 esac
20973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20974   (eval "$ac_link") 2>conftest.er1
20975   ac_status=$?
20976   grep -v '^ *+' conftest.er1 >conftest.err
20977   rm -f conftest.er1
20978   cat conftest.err >&5
20979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980   (exit $ac_status); } && {
20981          test -z "$ac_c_werror_flag" ||
20982          test ! -s conftest.err
20983        } && test -s conftest$ac_exeext &&
20984        $as_test_x conftest$ac_exeext; then
20985   ac_cv_lib_pthread_pthread_create=yes
20986 else
20987   echo "$as_me: failed program was:" >&5
20988 sed 's/^/| /' conftest.$ac_ext >&5
20989
20990         ac_cv_lib_pthread_pthread_create=no
20991 fi
20992
20993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20994       conftest$ac_exeext conftest.$ac_ext
20995 LIBS=$ac_check_lib_save_LIBS
20996 fi
20997 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20998 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20999 if test $ac_cv_lib_pthread_pthread_create = yes; then
21000    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
21001                   LIBS="$LIBS -lpthread"
21002 else
21003   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21004 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
21005 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21006   echo $ECHO_N "(cached) $ECHO_C" >&6
21007 else
21008   ac_check_lib_save_LIBS=$LIBS
21009 LIBS="-lc_r  $LIBS"
21010 cat >conftest.$ac_ext <<_ACEOF
21011 /* confdefs.h.  */
21012 _ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h.  */
21016
21017 /* Override any GCC internal prototype to avoid an error.
21018    Use char because int might match the return type of a GCC
21019    builtin and then its argument prototype would still apply.  */
21020 #ifdef __cplusplus
21021 extern "C"
21022 #endif
21023 char pthread_create ();
21024 int
21025 main ()
21026 {
21027 return pthread_create ();
21028   ;
21029   return 0;
21030 }
21031 _ACEOF
21032 rm -f conftest.$ac_objext conftest$ac_exeext
21033 if { (ac_try="$ac_link"
21034 case "(($ac_try" in
21035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036   *) ac_try_echo=$ac_try;;
21037 esac
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039   (eval "$ac_link") 2>conftest.er1
21040   ac_status=$?
21041   grep -v '^ *+' conftest.er1 >conftest.err
21042   rm -f conftest.er1
21043   cat conftest.err >&5
21044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045   (exit $ac_status); } && {
21046          test -z "$ac_c_werror_flag" ||
21047          test ! -s conftest.err
21048        } && test -s conftest$ac_exeext &&
21049        $as_test_x conftest$ac_exeext; then
21050   ac_cv_lib_c_r_pthread_create=yes
21051 else
21052   echo "$as_me: failed program was:" >&5
21053 sed 's/^/| /' conftest.$ac_ext >&5
21054
21055         ac_cv_lib_c_r_pthread_create=no
21056 fi
21057
21058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21059       conftest$ac_exeext conftest.$ac_ext
21060 LIBS=$ac_check_lib_save_LIBS
21061 fi
21062 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21063 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
21064 if test $ac_cv_lib_c_r_pthread_create = yes; then
21065    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
21066 else
21067    WITH_THREADS="no"
21068
21069 fi
21070
21071
21072 fi
21073
21074 fi
21075
21076 if test "x$WITH_THREADS" != "xyes"; then
21077   CFLAGS=$old_CFLAGS
21078   ac_cv_header_pthread_h="no"
21079   WITH_THREADS=no
21080 else
21081
21082   { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
21083 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
21084 if test "${ac_cv_search_sem_init+set}" = set; then
21085   echo $ECHO_N "(cached) $ECHO_C" >&6
21086 else
21087   ac_func_search_save_LIBS=$LIBS
21088 cat >conftest.$ac_ext <<_ACEOF
21089 /* confdefs.h.  */
21090 _ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h.  */
21094
21095 /* Override any GCC internal prototype to avoid an error.
21096    Use char because int might match the return type of a GCC
21097    builtin and then its argument prototype would still apply.  */
21098 #ifdef __cplusplus
21099 extern "C"
21100 #endif
21101 char sem_init ();
21102 int
21103 main ()
21104 {
21105 return sem_init ();
21106   ;
21107   return 0;
21108 }
21109 _ACEOF
21110 for ac_lib in '' pthread sem posix4 rt semaphore; do
21111   if test -z "$ac_lib"; then
21112     ac_res="none required"
21113   else
21114     ac_res=-l$ac_lib
21115     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21116   fi
21117   rm -f conftest.$ac_objext conftest$ac_exeext
21118 if { (ac_try="$ac_link"
21119 case "(($ac_try" in
21120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21121   *) ac_try_echo=$ac_try;;
21122 esac
21123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21124   (eval "$ac_link") 2>conftest.er1
21125   ac_status=$?
21126   grep -v '^ *+' conftest.er1 >conftest.err
21127   rm -f conftest.er1
21128   cat conftest.err >&5
21129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130   (exit $ac_status); } && {
21131          test -z "$ac_c_werror_flag" ||
21132          test ! -s conftest.err
21133        } && test -s conftest$ac_exeext &&
21134        $as_test_x conftest$ac_exeext; then
21135   ac_cv_search_sem_init=$ac_res
21136 else
21137   echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21139
21140
21141 fi
21142
21143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21144       conftest$ac_exeext
21145   if test "${ac_cv_search_sem_init+set}" = set; then
21146   break
21147 fi
21148 done
21149 if test "${ac_cv_search_sem_init+set}" = set; then
21150   :
21151 else
21152   ac_cv_search_sem_init=no
21153 fi
21154 rm conftest.$ac_ext
21155 LIBS=$ac_func_search_save_LIBS
21156 fi
21157 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
21158 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
21159 ac_res=$ac_cv_search_sem_init
21160 if test "$ac_res" != no; then
21161   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21162
21163 else
21164   { { 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
21165 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;}
21166    { (exit 1); exit 1; }; }
21167
21168 fi
21169
21170 fi
21171
21172
21173 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
21174 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
21175 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
21176   echo $ECHO_N "(cached) $ECHO_C" >&6
21177 else
21178   ac_check_lib_save_LIBS=$LIBS
21179 LIBS="-lsocket  $LIBS"
21180 cat >conftest.$ac_ext <<_ACEOF
21181 /* confdefs.h.  */
21182 _ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h.  */
21186
21187 /* Override any GCC internal prototype to avoid an error.
21188    Use char because int might match the return type of a GCC
21189    builtin and then its argument prototype would still apply.  */
21190 #ifdef __cplusplus
21191 extern "C"
21192 #endif
21193 char getsockname ();
21194 int
21195 main ()
21196 {
21197 return getsockname ();
21198   ;
21199   return 0;
21200 }
21201 _ACEOF
21202 rm -f conftest.$ac_objext conftest$ac_exeext
21203 if { (ac_try="$ac_link"
21204 case "(($ac_try" in
21205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21206   *) ac_try_echo=$ac_try;;
21207 esac
21208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21209   (eval "$ac_link") 2>conftest.er1
21210   ac_status=$?
21211   grep -v '^ *+' conftest.er1 >conftest.err
21212   rm -f conftest.er1
21213   cat conftest.err >&5
21214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215   (exit $ac_status); } && {
21216          test -z "$ac_c_werror_flag" ||
21217          test ! -s conftest.err
21218        } && test -s conftest$ac_exeext &&
21219        $as_test_x conftest$ac_exeext; then
21220   ac_cv_lib_socket_getsockname=yes
21221 else
21222   echo "$as_me: failed program was:" >&5
21223 sed 's/^/| /' conftest.$ac_ext >&5
21224
21225         ac_cv_lib_socket_getsockname=no
21226 fi
21227
21228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21229       conftest$ac_exeext conftest.$ac_ext
21230 LIBS=$ac_check_lib_save_LIBS
21231 fi
21232 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
21233 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
21234 if test $ac_cv_lib_socket_getsockname = yes; then
21235   cat >>confdefs.h <<_ACEOF
21236 #define HAVE_LIBSOCKET 1
21237 _ACEOF
21238
21239   LIBS="-lsocket $LIBS"
21240
21241 fi
21242
21243
21244
21245 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
21246 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
21247 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
21248   echo $ECHO_N "(cached) $ECHO_C" >&6
21249 else
21250   ac_check_lib_save_LIBS=$LIBS
21251 LIBS="-lresolv  $LIBS"
21252 cat >conftest.$ac_ext <<_ACEOF
21253 /* confdefs.h.  */
21254 _ACEOF
21255 cat confdefs.h >>conftest.$ac_ext
21256 cat >>conftest.$ac_ext <<_ACEOF
21257 /* end confdefs.h.  */
21258
21259 /* Override any GCC internal prototype to avoid an error.
21260    Use char because int might match the return type of a GCC
21261    builtin and then its argument prototype would still apply.  */
21262 #ifdef __cplusplus
21263 extern "C"
21264 #endif
21265 char inet_aton ();
21266 int
21267 main ()
21268 {
21269 return inet_aton ();
21270   ;
21271   return 0;
21272 }
21273 _ACEOF
21274 rm -f conftest.$ac_objext conftest$ac_exeext
21275 if { (ac_try="$ac_link"
21276 case "(($ac_try" in
21277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278   *) ac_try_echo=$ac_try;;
21279 esac
21280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21281   (eval "$ac_link") 2>conftest.er1
21282   ac_status=$?
21283   grep -v '^ *+' conftest.er1 >conftest.err
21284   rm -f conftest.er1
21285   cat conftest.err >&5
21286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287   (exit $ac_status); } && {
21288          test -z "$ac_c_werror_flag" ||
21289          test ! -s conftest.err
21290        } && test -s conftest$ac_exeext &&
21291        $as_test_x conftest$ac_exeext; then
21292   ac_cv_lib_resolv_inet_aton=yes
21293 else
21294   echo "$as_me: failed program was:" >&5
21295 sed 's/^/| /' conftest.$ac_ext >&5
21296
21297         ac_cv_lib_resolv_inet_aton=no
21298 fi
21299
21300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21301       conftest$ac_exeext conftest.$ac_ext
21302 LIBS=$ac_check_lib_save_LIBS
21303 fi
21304 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
21305 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
21306 if test $ac_cv_lib_resolv_inet_aton = yes; then
21307   cat >>confdefs.h <<_ACEOF
21308 #define HAVE_LIBRESOLV 1
21309 _ACEOF
21310
21311   LIBS="-lresolv $LIBS"
21312
21313 fi
21314
21315
21316
21317 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
21318 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
21319 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
21320   echo $ECHO_N "(cached) $ECHO_C" >&6
21321 else
21322   ac_check_lib_save_LIBS=$LIBS
21323 LIBS="-lnsl  $LIBS"
21324 cat >conftest.$ac_ext <<_ACEOF
21325 /* confdefs.h.  */
21326 _ACEOF
21327 cat confdefs.h >>conftest.$ac_ext
21328 cat >>conftest.$ac_ext <<_ACEOF
21329 /* end confdefs.h.  */
21330
21331 /* Override any GCC internal prototype to avoid an error.
21332    Use char because int might match the return type of a GCC
21333    builtin and then its argument prototype would still apply.  */
21334 #ifdef __cplusplus
21335 extern "C"
21336 #endif
21337 char inet_ntoa ();
21338 int
21339 main ()
21340 {
21341 return inet_ntoa ();
21342   ;
21343   return 0;
21344 }
21345 _ACEOF
21346 rm -f conftest.$ac_objext conftest$ac_exeext
21347 if { (ac_try="$ac_link"
21348 case "(($ac_try" in
21349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21350   *) ac_try_echo=$ac_try;;
21351 esac
21352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21353   (eval "$ac_link") 2>conftest.er1
21354   ac_status=$?
21355   grep -v '^ *+' conftest.er1 >conftest.err
21356   rm -f conftest.er1
21357   cat conftest.err >&5
21358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359   (exit $ac_status); } && {
21360          test -z "$ac_c_werror_flag" ||
21361          test ! -s conftest.err
21362        } && test -s conftest$ac_exeext &&
21363        $as_test_x conftest$ac_exeext; then
21364   ac_cv_lib_nsl_inet_ntoa=yes
21365 else
21366   echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21368
21369         ac_cv_lib_nsl_inet_ntoa=no
21370 fi
21371
21372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21373       conftest$ac_exeext conftest.$ac_ext
21374 LIBS=$ac_check_lib_save_LIBS
21375 fi
21376 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
21377 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
21378 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
21379   cat >>confdefs.h <<_ACEOF
21380 #define HAVE_LIBNSL 1
21381 _ACEOF
21382
21383   LIBS="-lnsl $LIBS"
21384
21385 fi
21386
21387
21388 OPENSSL_LIBS=
21389 if test "x$WITH_OPENSSL" = xyes; then
21390   old_LIBS=$LIBS
21391   old_LDFLAGS="$LDFLAGS"
21392   if test "x$OPENSSL_LIB_DIR" != "x"; then
21393     LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
21394   fi
21395   { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21396 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
21397 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
21398   echo $ECHO_N "(cached) $ECHO_C" >&6
21399 else
21400   ac_check_lib_save_LIBS=$LIBS
21401 LIBS="-lcrypto  $LIBS"
21402 cat >conftest.$ac_ext <<_ACEOF
21403 /* confdefs.h.  */
21404 _ACEOF
21405 cat confdefs.h >>conftest.$ac_ext
21406 cat >>conftest.$ac_ext <<_ACEOF
21407 /* end confdefs.h.  */
21408
21409 /* Override any GCC internal prototype to avoid an error.
21410    Use char because int might match the return type of a GCC
21411    builtin and then its argument prototype would still apply.  */
21412 #ifdef __cplusplus
21413 extern "C"
21414 #endif
21415 char DH_new ();
21416 int
21417 main ()
21418 {
21419 return DH_new ();
21420   ;
21421   return 0;
21422 }
21423 _ACEOF
21424 rm -f conftest.$ac_objext conftest$ac_exeext
21425 if { (ac_try="$ac_link"
21426 case "(($ac_try" in
21427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21428   *) ac_try_echo=$ac_try;;
21429 esac
21430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21431   (eval "$ac_link") 2>conftest.er1
21432   ac_status=$?
21433   grep -v '^ *+' conftest.er1 >conftest.err
21434   rm -f conftest.er1
21435   cat conftest.err >&5
21436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437   (exit $ac_status); } && {
21438          test -z "$ac_c_werror_flag" ||
21439          test ! -s conftest.err
21440        } && test -s conftest$ac_exeext &&
21441        $as_test_x conftest$ac_exeext; then
21442   ac_cv_lib_crypto_DH_new=yes
21443 else
21444   echo "$as_me: failed program was:" >&5
21445 sed 's/^/| /' conftest.$ac_ext >&5
21446
21447         ac_cv_lib_crypto_DH_new=no
21448 fi
21449
21450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21451       conftest$ac_exeext conftest.$ac_ext
21452 LIBS=$ac_check_lib_save_LIBS
21453 fi
21454 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
21455 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
21456 if test $ac_cv_lib_crypto_DH_new = yes; then
21457
21458         LIBS="-lcrypto $LIBS"
21459
21460 cat >>confdefs.h <<\_ACEOF
21461 #define HAVE_LIBCRYPTO 1
21462 _ACEOF
21463
21464         { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21465 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
21466 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
21467   echo $ECHO_N "(cached) $ECHO_C" >&6
21468 else
21469   ac_check_lib_save_LIBS=$LIBS
21470 LIBS="-lssl  $LIBS"
21471 cat >conftest.$ac_ext <<_ACEOF
21472 /* confdefs.h.  */
21473 _ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h.  */
21477
21478 /* Override any GCC internal prototype to avoid an error.
21479    Use char because int might match the return type of a GCC
21480    builtin and then its argument prototype would still apply.  */
21481 #ifdef __cplusplus
21482 extern "C"
21483 #endif
21484 char SSL_new ();
21485 int
21486 main ()
21487 {
21488 return SSL_new ();
21489   ;
21490   return 0;
21491 }
21492 _ACEOF
21493 rm -f conftest.$ac_objext conftest$ac_exeext
21494 if { (ac_try="$ac_link"
21495 case "(($ac_try" in
21496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21497   *) ac_try_echo=$ac_try;;
21498 esac
21499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21500   (eval "$ac_link") 2>conftest.er1
21501   ac_status=$?
21502   grep -v '^ *+' conftest.er1 >conftest.err
21503   rm -f conftest.er1
21504   cat conftest.err >&5
21505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506   (exit $ac_status); } && {
21507          test -z "$ac_c_werror_flag" ||
21508          test ! -s conftest.err
21509        } && test -s conftest$ac_exeext &&
21510        $as_test_x conftest$ac_exeext; then
21511   ac_cv_lib_ssl_SSL_new=yes
21512 else
21513   echo "$as_me: failed program was:" >&5
21514 sed 's/^/| /' conftest.$ac_ext >&5
21515
21516         ac_cv_lib_ssl_SSL_new=no
21517 fi
21518
21519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21520       conftest$ac_exeext conftest.$ac_ext
21521 LIBS=$ac_check_lib_save_LIBS
21522 fi
21523 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
21524 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
21525 if test $ac_cv_lib_ssl_SSL_new = yes; then
21526
21527
21528 cat >>confdefs.h <<\_ACEOF
21529 #define HAVE_LIBSSL 1
21530 _ACEOF
21531
21532                 if test "x$OPENSSL_LIB_DIR" != "x"; then
21533                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21534                 fi
21535                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21536
21537 fi
21538
21539
21540 fi
21541
21542   LIBS=$old_LIBS
21543   LDFLAGS="$old_LDFLAGS"
21544 fi
21545
21546
21547 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
21548 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
21549 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
21550   echo $ECHO_N "(cached) $ECHO_C" >&6
21551 else
21552   ac_check_lib_save_LIBS=$LIBS
21553 LIBS="-lws2_32  $LIBS"
21554 cat >conftest.$ac_ext <<_ACEOF
21555 /* confdefs.h.  */
21556 _ACEOF
21557 cat confdefs.h >>conftest.$ac_ext
21558 cat >>conftest.$ac_ext <<_ACEOF
21559 /* end confdefs.h.  */
21560
21561 /* Override any GCC internal prototype to avoid an error.
21562    Use char because int might match the return type of a GCC
21563    builtin and then its argument prototype would still apply.  */
21564 #ifdef __cplusplus
21565 extern "C"
21566 #endif
21567 char htonl ();
21568 int
21569 main ()
21570 {
21571 return htonl ();
21572   ;
21573   return 0;
21574 }
21575 _ACEOF
21576 rm -f conftest.$ac_objext conftest$ac_exeext
21577 if { (ac_try="$ac_link"
21578 case "(($ac_try" in
21579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21580   *) ac_try_echo=$ac_try;;
21581 esac
21582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21583   (eval "$ac_link") 2>conftest.er1
21584   ac_status=$?
21585   grep -v '^ *+' conftest.er1 >conftest.err
21586   rm -f conftest.er1
21587   cat conftest.err >&5
21588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589   (exit $ac_status); } && {
21590          test -z "$ac_c_werror_flag" ||
21591          test ! -s conftest.err
21592        } && test -s conftest$ac_exeext &&
21593        $as_test_x conftest$ac_exeext; then
21594   ac_cv_lib_ws2_32_htonl=yes
21595 else
21596   echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.$ac_ext >&5
21598
21599         ac_cv_lib_ws2_32_htonl=no
21600 fi
21601
21602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21603       conftest$ac_exeext conftest.$ac_ext
21604 LIBS=$ac_check_lib_save_LIBS
21605 fi
21606 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21607 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21608 if test $ac_cv_lib_ws2_32_htonl = yes; then
21609   cat >>confdefs.h <<_ACEOF
21610 #define HAVE_LIBWS2_32 1
21611 _ACEOF
21612
21613   LIBS="-lws2_32 $LIBS"
21614
21615 fi
21616
21617
21618 PCAP_LIBS=
21619 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21620 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21621 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21622   echo $ECHO_N "(cached) $ECHO_C" >&6
21623 else
21624   ac_check_lib_save_LIBS=$LIBS
21625 LIBS="-lpcap  $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 pcap_open_live ();
21640 int
21641 main ()
21642 {
21643 return pcap_open_live ();
21644   ;
21645   return 0;
21646 }
21647 _ACEOF
21648 rm -f conftest.$ac_objext conftest$ac_exeext
21649 if { (ac_try="$ac_link"
21650 case "(($ac_try" in
21651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21652   *) ac_try_echo=$ac_try;;
21653 esac
21654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21655   (eval "$ac_link") 2>conftest.er1
21656   ac_status=$?
21657   grep -v '^ *+' conftest.er1 >conftest.err
21658   rm -f conftest.er1
21659   cat conftest.err >&5
21660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661   (exit $ac_status); } && {
21662          test -z "$ac_c_werror_flag" ||
21663          test ! -s conftest.err
21664        } && test -s conftest$ac_exeext &&
21665        $as_test_x conftest$ac_exeext; then
21666   ac_cv_lib_pcap_pcap_open_live=yes
21667 else
21668   echo "$as_me: failed program was:" >&5
21669 sed 's/^/| /' conftest.$ac_ext >&5
21670
21671         ac_cv_lib_pcap_pcap_open_live=no
21672 fi
21673
21674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21675       conftest$ac_exeext conftest.$ac_ext
21676 LIBS=$ac_check_lib_save_LIBS
21677 fi
21678 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21679 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21680 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21681    PCAP_LIBS="-lpcap"
21682
21683 cat >>confdefs.h <<\_ACEOF
21684 #define HAVE_LIBPCAP 1
21685 _ACEOF
21686
21687
21688 else
21689    { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21690 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21691 fi
21692
21693
21694
21695   { echo "$as_me:$LINENO: checking for a readline compatible library" >&5
21696 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6; }
21697 if test "${ac_cv_lib_readline+set}" = set; then
21698   echo $ECHO_N "(cached) $ECHO_C" >&6
21699 else
21700
21701     ORIG_LIBS=$LIBS
21702     for readline_lib in readline edit editline; do
21703       for termcap_lib in "" termcap curses ncurses; do
21704         if test -z "$termcap_lib"; then
21705           TRY_LIB="-l$readline_lib"
21706         else
21707           TRY_LIB="-l$readline_lib -l$termcap_lib"
21708         fi
21709         LIBS="$ORIG_LIBS $TRY_LIB"
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 readline ();
21724 int
21725 main ()
21726 {
21727 return readline ();
21728   ;
21729   return 0;
21730 }
21731 _ACEOF
21732 rm -f conftest.$ac_objext conftest$ac_exeext
21733 if { (ac_try="$ac_link"
21734 case "(($ac_try" in
21735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736   *) ac_try_echo=$ac_try;;
21737 esac
21738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21739   (eval "$ac_link") 2>conftest.er1
21740   ac_status=$?
21741   grep -v '^ *+' conftest.er1 >conftest.err
21742   rm -f conftest.er1
21743   cat conftest.err >&5
21744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745   (exit $ac_status); } && {
21746          test -z "$ac_c_werror_flag" ||
21747          test ! -s conftest.err
21748        } && test -s conftest$ac_exeext &&
21749        $as_test_x conftest$ac_exeext; then
21750   ac_cv_lib_readline="$TRY_LIB"
21751 else
21752   echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21754
21755
21756 fi
21757
21758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21759       conftest$ac_exeext conftest.$ac_ext
21760         if test -n "$ac_cv_lib_readline"; then
21761           LIBREADLINE="$TRY_LIB"
21762
21763           break
21764         fi
21765       done
21766       if test -n "$ac_cv_lib_readline"; then
21767         break
21768       fi
21769     done
21770     if test -z "$ac_cv_lib_readline"; then
21771       ac_cv_lib_readline="no"
21772     fi
21773     LIBS=$ORIG_LIBS
21774
21775 fi
21776 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
21777 echo "${ECHO_T}$ac_cv_lib_readline" >&6; }
21778
21779   if test "$ac_cv_lib_readline" != "no"; then
21780
21781 cat >>confdefs.h <<\_ACEOF
21782 #define HAVE_LIBREADLINE 1
21783 _ACEOF
21784
21785
21786
21787 for ac_header in readline.h readline/readline.h
21788 do
21789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21791   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21794   echo $ECHO_N "(cached) $ECHO_C" >&6
21795 fi
21796 ac_res=`eval echo '${'$as_ac_Header'}'`
21797                { echo "$as_me:$LINENO: result: $ac_res" >&5
21798 echo "${ECHO_T}$ac_res" >&6; }
21799 else
21800   # Is the header compilable?
21801 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21803 cat >conftest.$ac_ext <<_ACEOF
21804 /* confdefs.h.  */
21805 _ACEOF
21806 cat confdefs.h >>conftest.$ac_ext
21807 cat >>conftest.$ac_ext <<_ACEOF
21808 /* end confdefs.h.  */
21809 $ac_includes_default
21810 #include <$ac_header>
21811 _ACEOF
21812 rm -f conftest.$ac_objext
21813 if { (ac_try="$ac_compile"
21814 case "(($ac_try" in
21815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21816   *) ac_try_echo=$ac_try;;
21817 esac
21818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21819   (eval "$ac_compile") 2>conftest.er1
21820   ac_status=$?
21821   grep -v '^ *+' conftest.er1 >conftest.err
21822   rm -f conftest.er1
21823   cat conftest.err >&5
21824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825   (exit $ac_status); } && {
21826          test -z "$ac_c_werror_flag" ||
21827          test ! -s conftest.err
21828        } && test -s conftest.$ac_objext; then
21829   ac_header_compiler=yes
21830 else
21831   echo "$as_me: failed program was:" >&5
21832 sed 's/^/| /' conftest.$ac_ext >&5
21833
21834         ac_header_compiler=no
21835 fi
21836
21837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21839 echo "${ECHO_T}$ac_header_compiler" >&6; }
21840
21841 # Is the header present?
21842 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21844 cat >conftest.$ac_ext <<_ACEOF
21845 /* confdefs.h.  */
21846 _ACEOF
21847 cat confdefs.h >>conftest.$ac_ext
21848 cat >>conftest.$ac_ext <<_ACEOF
21849 /* end confdefs.h.  */
21850 #include <$ac_header>
21851 _ACEOF
21852 if { (ac_try="$ac_cpp conftest.$ac_ext"
21853 case "(($ac_try" in
21854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21855   *) ac_try_echo=$ac_try;;
21856 esac
21857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21858   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21859   ac_status=$?
21860   grep -v '^ *+' conftest.er1 >conftest.err
21861   rm -f conftest.er1
21862   cat conftest.err >&5
21863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864   (exit $ac_status); } >/dev/null && {
21865          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21866          test ! -s conftest.err
21867        }; then
21868   ac_header_preproc=yes
21869 else
21870   echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.$ac_ext >&5
21872
21873   ac_header_preproc=no
21874 fi
21875
21876 rm -f conftest.err conftest.$ac_ext
21877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21878 echo "${ECHO_T}$ac_header_preproc" >&6; }
21879
21880 # So?  What about this header?
21881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21882   yes:no: )
21883     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21885     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21887     ac_header_preproc=yes
21888     ;;
21889   no:yes:* )
21890     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21892     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21893 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21894     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21896     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21897 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21898     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21900     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21902
21903     ;;
21904 esac
21905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21908   echo $ECHO_N "(cached) $ECHO_C" >&6
21909 else
21910   eval "$as_ac_Header=\$ac_header_preproc"
21911 fi
21912 ac_res=`eval echo '${'$as_ac_Header'}'`
21913                { echo "$as_me:$LINENO: result: $ac_res" >&5
21914 echo "${ECHO_T}$ac_res" >&6; }
21915
21916 fi
21917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21918   cat >>confdefs.h <<_ACEOF
21919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21920 _ACEOF
21921
21922 fi
21923
21924 done
21925
21926     { echo "$as_me:$LINENO: checking whether readline supports history" >&5
21927 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6; }
21928 if test "${ac_cv_lib_readline_history+set}" = set; then
21929   echo $ECHO_N "(cached) $ECHO_C" >&6
21930 else
21931
21932       ac_cv_lib_readline_history="no"
21933       cat >conftest.$ac_ext <<_ACEOF
21934 /* confdefs.h.  */
21935 _ACEOF
21936 cat confdefs.h >>conftest.$ac_ext
21937 cat >>conftest.$ac_ext <<_ACEOF
21938 /* end confdefs.h.  */
21939
21940 /* Override any GCC internal prototype to avoid an error.
21941    Use char because int might match the return type of a GCC
21942    builtin and then its argument prototype would still apply.  */
21943 #ifdef __cplusplus
21944 extern "C"
21945 #endif
21946 char add_history ();
21947 int
21948 main ()
21949 {
21950 return add_history ();
21951   ;
21952   return 0;
21953 }
21954 _ACEOF
21955 rm -f conftest.$ac_objext conftest$ac_exeext
21956 if { (ac_try="$ac_link"
21957 case "(($ac_try" in
21958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21959   *) ac_try_echo=$ac_try;;
21960 esac
21961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21962   (eval "$ac_link") 2>conftest.er1
21963   ac_status=$?
21964   grep -v '^ *+' conftest.er1 >conftest.err
21965   rm -f conftest.er1
21966   cat conftest.err >&5
21967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968   (exit $ac_status); } && {
21969          test -z "$ac_c_werror_flag" ||
21970          test ! -s conftest.err
21971        } && test -s conftest$ac_exeext &&
21972        $as_test_x conftest$ac_exeext; then
21973   ac_cv_lib_readline_history="yes"
21974 else
21975   echo "$as_me: failed program was:" >&5
21976 sed 's/^/| /' conftest.$ac_ext >&5
21977
21978
21979 fi
21980
21981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21982       conftest$ac_exeext conftest.$ac_ext
21983
21984 fi
21985 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
21986 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6; }
21987     if test "$ac_cv_lib_readline_history" = "yes"; then
21988
21989 cat >>confdefs.h <<\_ACEOF
21990 #define HAVE_READLINE_HISTORY 1
21991 _ACEOF
21992
21993
21994
21995 for ac_header in history.h readline/history.h
21996 do
21997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21999   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22002   echo $ECHO_N "(cached) $ECHO_C" >&6
22003 fi
22004 ac_res=`eval echo '${'$as_ac_Header'}'`
22005                { echo "$as_me:$LINENO: result: $ac_res" >&5
22006 echo "${ECHO_T}$ac_res" >&6; }
22007 else
22008   # Is the header compilable?
22009 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22011 cat >conftest.$ac_ext <<_ACEOF
22012 /* confdefs.h.  */
22013 _ACEOF
22014 cat confdefs.h >>conftest.$ac_ext
22015 cat >>conftest.$ac_ext <<_ACEOF
22016 /* end confdefs.h.  */
22017 $ac_includes_default
22018 #include <$ac_header>
22019 _ACEOF
22020 rm -f conftest.$ac_objext
22021 if { (ac_try="$ac_compile"
22022 case "(($ac_try" in
22023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024   *) ac_try_echo=$ac_try;;
22025 esac
22026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22027   (eval "$ac_compile") 2>conftest.er1
22028   ac_status=$?
22029   grep -v '^ *+' conftest.er1 >conftest.err
22030   rm -f conftest.er1
22031   cat conftest.err >&5
22032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033   (exit $ac_status); } && {
22034          test -z "$ac_c_werror_flag" ||
22035          test ! -s conftest.err
22036        } && test -s conftest.$ac_objext; then
22037   ac_header_compiler=yes
22038 else
22039   echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22041
22042         ac_header_compiler=no
22043 fi
22044
22045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22047 echo "${ECHO_T}$ac_header_compiler" >&6; }
22048
22049 # Is the header present?
22050 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22052 cat >conftest.$ac_ext <<_ACEOF
22053 /* confdefs.h.  */
22054 _ACEOF
22055 cat confdefs.h >>conftest.$ac_ext
22056 cat >>conftest.$ac_ext <<_ACEOF
22057 /* end confdefs.h.  */
22058 #include <$ac_header>
22059 _ACEOF
22060 if { (ac_try="$ac_cpp conftest.$ac_ext"
22061 case "(($ac_try" in
22062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22063   *) ac_try_echo=$ac_try;;
22064 esac
22065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22066   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22067   ac_status=$?
22068   grep -v '^ *+' conftest.er1 >conftest.err
22069   rm -f conftest.er1
22070   cat conftest.err >&5
22071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072   (exit $ac_status); } >/dev/null && {
22073          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22074          test ! -s conftest.err
22075        }; then
22076   ac_header_preproc=yes
22077 else
22078   echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22080
22081   ac_header_preproc=no
22082 fi
22083
22084 rm -f conftest.err conftest.$ac_ext
22085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22086 echo "${ECHO_T}$ac_header_preproc" >&6; }
22087
22088 # So?  What about this header?
22089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22090   yes:no: )
22091     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22095     ac_header_preproc=yes
22096     ;;
22097   no:yes:* )
22098     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22100     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22101 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22102     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22104     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22105 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22106     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22108     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22110
22111     ;;
22112 esac
22113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22116   echo $ECHO_N "(cached) $ECHO_C" >&6
22117 else
22118   eval "$as_ac_Header=\$ac_header_preproc"
22119 fi
22120 ac_res=`eval echo '${'$as_ac_Header'}'`
22121                { echo "$as_me:$LINENO: result: $ac_res" >&5
22122 echo "${ECHO_T}$ac_res" >&6; }
22123
22124 fi
22125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22126   cat >>confdefs.h <<_ACEOF
22127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22128 _ACEOF
22129
22130 fi
22131
22132 done
22133
22134     fi
22135   fi
22136
22137
22138
22139 case "$host" in
22140 *-interix*)
22141         CFLAGS="$CFLAGS -D_ALL_SOURCE"
22142         ;;
22143 *-darwin*)
22144         CFLAGS="$CFLAGS -DDARWIN"
22145         LIBS="-framework DirectoryService $LIBS"
22146         ;;
22147 esac
22148
22149
22150
22151
22152
22153
22154 ac_header_dirent=no
22155 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22156   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22157 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22158 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22160   echo $ECHO_N "(cached) $ECHO_C" >&6
22161 else
22162   cat >conftest.$ac_ext <<_ACEOF
22163 /* confdefs.h.  */
22164 _ACEOF
22165 cat confdefs.h >>conftest.$ac_ext
22166 cat >>conftest.$ac_ext <<_ACEOF
22167 /* end confdefs.h.  */
22168 #include <sys/types.h>
22169 #include <$ac_hdr>
22170
22171 int
22172 main ()
22173 {
22174 if ((DIR *) 0)
22175 return 0;
22176   ;
22177   return 0;
22178 }
22179 _ACEOF
22180 rm -f conftest.$ac_objext
22181 if { (ac_try="$ac_compile"
22182 case "(($ac_try" in
22183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22184   *) ac_try_echo=$ac_try;;
22185 esac
22186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22187   (eval "$ac_compile") 2>conftest.er1
22188   ac_status=$?
22189   grep -v '^ *+' conftest.er1 >conftest.err
22190   rm -f conftest.er1
22191   cat conftest.err >&5
22192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193   (exit $ac_status); } && {
22194          test -z "$ac_c_werror_flag" ||
22195          test ! -s conftest.err
22196        } && test -s conftest.$ac_objext; then
22197   eval "$as_ac_Header=yes"
22198 else
22199   echo "$as_me: failed program was:" >&5
22200 sed 's/^/| /' conftest.$ac_ext >&5
22201
22202         eval "$as_ac_Header=no"
22203 fi
22204
22205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22206 fi
22207 ac_res=`eval echo '${'$as_ac_Header'}'`
22208                { echo "$as_me:$LINENO: result: $ac_res" >&5
22209 echo "${ECHO_T}$ac_res" >&6; }
22210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22211   cat >>confdefs.h <<_ACEOF
22212 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22213 _ACEOF
22214
22215 ac_header_dirent=$ac_hdr; break
22216 fi
22217
22218 done
22219 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22220 if test $ac_header_dirent = dirent.h; then
22221   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22222 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22223 if test "${ac_cv_search_opendir+set}" = set; then
22224   echo $ECHO_N "(cached) $ECHO_C" >&6
22225 else
22226   ac_func_search_save_LIBS=$LIBS
22227 cat >conftest.$ac_ext <<_ACEOF
22228 /* confdefs.h.  */
22229 _ACEOF
22230 cat confdefs.h >>conftest.$ac_ext
22231 cat >>conftest.$ac_ext <<_ACEOF
22232 /* end confdefs.h.  */
22233
22234 /* Override any GCC internal prototype to avoid an error.
22235    Use char because int might match the return type of a GCC
22236    builtin and then its argument prototype would still apply.  */
22237 #ifdef __cplusplus
22238 extern "C"
22239 #endif
22240 char opendir ();
22241 int
22242 main ()
22243 {
22244 return opendir ();
22245   ;
22246   return 0;
22247 }
22248 _ACEOF
22249 for ac_lib in '' dir; do
22250   if test -z "$ac_lib"; then
22251     ac_res="none required"
22252   else
22253     ac_res=-l$ac_lib
22254     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22255   fi
22256   rm -f conftest.$ac_objext conftest$ac_exeext
22257 if { (ac_try="$ac_link"
22258 case "(($ac_try" in
22259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260   *) ac_try_echo=$ac_try;;
22261 esac
22262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263   (eval "$ac_link") 2>conftest.er1
22264   ac_status=$?
22265   grep -v '^ *+' conftest.er1 >conftest.err
22266   rm -f conftest.er1
22267   cat conftest.err >&5
22268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269   (exit $ac_status); } && {
22270          test -z "$ac_c_werror_flag" ||
22271          test ! -s conftest.err
22272        } && test -s conftest$ac_exeext &&
22273        $as_test_x conftest$ac_exeext; then
22274   ac_cv_search_opendir=$ac_res
22275 else
22276   echo "$as_me: failed program was:" >&5
22277 sed 's/^/| /' conftest.$ac_ext >&5
22278
22279
22280 fi
22281
22282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22283       conftest$ac_exeext
22284   if test "${ac_cv_search_opendir+set}" = set; then
22285   break
22286 fi
22287 done
22288 if test "${ac_cv_search_opendir+set}" = set; then
22289   :
22290 else
22291   ac_cv_search_opendir=no
22292 fi
22293 rm conftest.$ac_ext
22294 LIBS=$ac_func_search_save_LIBS
22295 fi
22296 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22297 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22298 ac_res=$ac_cv_search_opendir
22299 if test "$ac_res" != no; then
22300   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22301
22302 fi
22303
22304 else
22305   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22306 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22307 if test "${ac_cv_search_opendir+set}" = set; then
22308   echo $ECHO_N "(cached) $ECHO_C" >&6
22309 else
22310   ac_func_search_save_LIBS=$LIBS
22311 cat >conftest.$ac_ext <<_ACEOF
22312 /* confdefs.h.  */
22313 _ACEOF
22314 cat confdefs.h >>conftest.$ac_ext
22315 cat >>conftest.$ac_ext <<_ACEOF
22316 /* end confdefs.h.  */
22317
22318 /* Override any GCC internal prototype to avoid an error.
22319    Use char because int might match the return type of a GCC
22320    builtin and then its argument prototype would still apply.  */
22321 #ifdef __cplusplus
22322 extern "C"
22323 #endif
22324 char opendir ();
22325 int
22326 main ()
22327 {
22328 return opendir ();
22329   ;
22330   return 0;
22331 }
22332 _ACEOF
22333 for ac_lib in '' x; do
22334   if test -z "$ac_lib"; then
22335     ac_res="none required"
22336   else
22337     ac_res=-l$ac_lib
22338     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22339   fi
22340   rm -f conftest.$ac_objext conftest$ac_exeext
22341 if { (ac_try="$ac_link"
22342 case "(($ac_try" in
22343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22344   *) ac_try_echo=$ac_try;;
22345 esac
22346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22347   (eval "$ac_link") 2>conftest.er1
22348   ac_status=$?
22349   grep -v '^ *+' conftest.er1 >conftest.err
22350   rm -f conftest.er1
22351   cat conftest.err >&5
22352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353   (exit $ac_status); } && {
22354          test -z "$ac_c_werror_flag" ||
22355          test ! -s conftest.err
22356        } && test -s conftest$ac_exeext &&
22357        $as_test_x conftest$ac_exeext; then
22358   ac_cv_search_opendir=$ac_res
22359 else
22360   echo "$as_me: failed program was:" >&5
22361 sed 's/^/| /' conftest.$ac_ext >&5
22362
22363
22364 fi
22365
22366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22367       conftest$ac_exeext
22368   if test "${ac_cv_search_opendir+set}" = set; then
22369   break
22370 fi
22371 done
22372 if test "${ac_cv_search_opendir+set}" = set; then
22373   :
22374 else
22375   ac_cv_search_opendir=no
22376 fi
22377 rm conftest.$ac_ext
22378 LIBS=$ac_func_search_save_LIBS
22379 fi
22380 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22381 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22382 ac_res=$ac_cv_search_opendir
22383 if test "$ac_res" != no; then
22384   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22385
22386 fi
22387
22388 fi
22389
22390 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22391 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22392 if test "${ac_cv_header_stdc+set}" = set; then
22393   echo $ECHO_N "(cached) $ECHO_C" >&6
22394 else
22395   cat >conftest.$ac_ext <<_ACEOF
22396 /* confdefs.h.  */
22397 _ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h.  */
22401 #include <stdlib.h>
22402 #include <stdarg.h>
22403 #include <string.h>
22404 #include <float.h>
22405
22406 int
22407 main ()
22408 {
22409
22410   ;
22411   return 0;
22412 }
22413 _ACEOF
22414 rm -f conftest.$ac_objext
22415 if { (ac_try="$ac_compile"
22416 case "(($ac_try" in
22417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22418   *) ac_try_echo=$ac_try;;
22419 esac
22420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22421   (eval "$ac_compile") 2>conftest.er1
22422   ac_status=$?
22423   grep -v '^ *+' conftest.er1 >conftest.err
22424   rm -f conftest.er1
22425   cat conftest.err >&5
22426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427   (exit $ac_status); } && {
22428          test -z "$ac_c_werror_flag" ||
22429          test ! -s conftest.err
22430        } && test -s conftest.$ac_objext; then
22431   ac_cv_header_stdc=yes
22432 else
22433   echo "$as_me: failed program was:" >&5
22434 sed 's/^/| /' conftest.$ac_ext >&5
22435
22436         ac_cv_header_stdc=no
22437 fi
22438
22439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22440
22441 if test $ac_cv_header_stdc = yes; then
22442   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22443   cat >conftest.$ac_ext <<_ACEOF
22444 /* confdefs.h.  */
22445 _ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h.  */
22449 #include <string.h>
22450
22451 _ACEOF
22452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22453   $EGREP "memchr" >/dev/null 2>&1; then
22454   :
22455 else
22456   ac_cv_header_stdc=no
22457 fi
22458 rm -f conftest*
22459
22460 fi
22461
22462 if test $ac_cv_header_stdc = yes; then
22463   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22464   cat >conftest.$ac_ext <<_ACEOF
22465 /* confdefs.h.  */
22466 _ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h.  */
22470 #include <stdlib.h>
22471
22472 _ACEOF
22473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22474   $EGREP "free" >/dev/null 2>&1; then
22475   :
22476 else
22477   ac_cv_header_stdc=no
22478 fi
22479 rm -f conftest*
22480
22481 fi
22482
22483 if test $ac_cv_header_stdc = yes; then
22484   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22485   if test "$cross_compiling" = yes; then
22486   :
22487 else
22488   cat >conftest.$ac_ext <<_ACEOF
22489 /* confdefs.h.  */
22490 _ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h.  */
22494 #include <ctype.h>
22495 #include <stdlib.h>
22496 #if ((' ' & 0x0FF) == 0x020)
22497 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22498 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22499 #else
22500 # define ISLOWER(c) \
22501                    (('a' <= (c) && (c) <= 'i') \
22502                      || ('j' <= (c) && (c) <= 'r') \
22503                      || ('s' <= (c) && (c) <= 'z'))
22504 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22505 #endif
22506
22507 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22508 int
22509 main ()
22510 {
22511   int i;
22512   for (i = 0; i < 256; i++)
22513     if (XOR (islower (i), ISLOWER (i))
22514         || toupper (i) != TOUPPER (i))
22515       return 2;
22516   return 0;
22517 }
22518 _ACEOF
22519 rm -f conftest$ac_exeext
22520 if { (ac_try="$ac_link"
22521 case "(($ac_try" in
22522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22523   *) ac_try_echo=$ac_try;;
22524 esac
22525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22526   (eval "$ac_link") 2>&5
22527   ac_status=$?
22528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22530   { (case "(($ac_try" in
22531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22532   *) ac_try_echo=$ac_try;;
22533 esac
22534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22535   (eval "$ac_try") 2>&5
22536   ac_status=$?
22537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538   (exit $ac_status); }; }; then
22539   :
22540 else
22541   echo "$as_me: program exited with status $ac_status" >&5
22542 echo "$as_me: failed program was:" >&5
22543 sed 's/^/| /' conftest.$ac_ext >&5
22544
22545 ( exit $ac_status )
22546 ac_cv_header_stdc=no
22547 fi
22548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22549 fi
22550
22551
22552 fi
22553 fi
22554 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22555 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22556 if test $ac_cv_header_stdc = yes; then
22557
22558 cat >>confdefs.h <<\_ACEOF
22559 #define STDC_HEADERS 1
22560 _ACEOF
22561
22562 fi
22563
22564 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22565 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22566 if test "${ac_cv_header_time+set}" = set; then
22567   echo $ECHO_N "(cached) $ECHO_C" >&6
22568 else
22569   cat >conftest.$ac_ext <<_ACEOF
22570 /* confdefs.h.  */
22571 _ACEOF
22572 cat confdefs.h >>conftest.$ac_ext
22573 cat >>conftest.$ac_ext <<_ACEOF
22574 /* end confdefs.h.  */
22575 #include <sys/types.h>
22576 #include <sys/time.h>
22577 #include <time.h>
22578
22579 int
22580 main ()
22581 {
22582 if ((struct tm *) 0)
22583 return 0;
22584   ;
22585   return 0;
22586 }
22587 _ACEOF
22588 rm -f conftest.$ac_objext
22589 if { (ac_try="$ac_compile"
22590 case "(($ac_try" in
22591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22592   *) ac_try_echo=$ac_try;;
22593 esac
22594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22595   (eval "$ac_compile") 2>conftest.er1
22596   ac_status=$?
22597   grep -v '^ *+' conftest.er1 >conftest.err
22598   rm -f conftest.er1
22599   cat conftest.err >&5
22600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601   (exit $ac_status); } && {
22602          test -z "$ac_c_werror_flag" ||
22603          test ! -s conftest.err
22604        } && test -s conftest.$ac_objext; then
22605   ac_cv_header_time=yes
22606 else
22607   echo "$as_me: failed program was:" >&5
22608 sed 's/^/| /' conftest.$ac_ext >&5
22609
22610         ac_cv_header_time=no
22611 fi
22612
22613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22614 fi
22615 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22616 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22617 if test $ac_cv_header_time = yes; then
22618
22619 cat >>confdefs.h <<\_ACEOF
22620 #define TIME_WITH_SYS_TIME 1
22621 _ACEOF
22622
22623 fi
22624
22625 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22626 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22627 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22628   echo $ECHO_N "(cached) $ECHO_C" >&6
22629 else
22630   cat >conftest.$ac_ext <<_ACEOF
22631 /* confdefs.h.  */
22632 _ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h.  */
22636 #include <sys/types.h>
22637 #include <sys/wait.h>
22638 #ifndef WEXITSTATUS
22639 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22640 #endif
22641 #ifndef WIFEXITED
22642 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22643 #endif
22644
22645 int
22646 main ()
22647 {
22648   int s;
22649   wait (&s);
22650   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22651   ;
22652   return 0;
22653 }
22654 _ACEOF
22655 rm -f conftest.$ac_objext
22656 if { (ac_try="$ac_compile"
22657 case "(($ac_try" in
22658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22659   *) ac_try_echo=$ac_try;;
22660 esac
22661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22662   (eval "$ac_compile") 2>conftest.er1
22663   ac_status=$?
22664   grep -v '^ *+' conftest.er1 >conftest.err
22665   rm -f conftest.er1
22666   cat conftest.err >&5
22667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668   (exit $ac_status); } && {
22669          test -z "$ac_c_werror_flag" ||
22670          test ! -s conftest.err
22671        } && test -s conftest.$ac_objext; then
22672   ac_cv_header_sys_wait_h=yes
22673 else
22674   echo "$as_me: failed program was:" >&5
22675 sed 's/^/| /' conftest.$ac_ext >&5
22676
22677         ac_cv_header_sys_wait_h=no
22678 fi
22679
22680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22681 fi
22682 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22683 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22684 if test $ac_cv_header_sys_wait_h = yes; then
22685
22686 cat >>confdefs.h <<\_ACEOF
22687 #define HAVE_SYS_WAIT_H 1
22688 _ACEOF
22689
22690 fi
22691
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728 for ac_header in \
22729         unistd.h \
22730         crypt.h \
22731         errno.h \
22732         resource.h \
22733         sys/resource.h \
22734         getopt.h \
22735         malloc.h \
22736         utmp.h \
22737         utmpx.h \
22738         signal.h \
22739         sys/select.h \
22740         syslog.h \
22741         inttypes.h \
22742         stdint.h \
22743         stdio.h \
22744         netdb.h \
22745         semaphore.h \
22746         arpa/inet.h \
22747         netinet/in.h \
22748         sys/types.h \
22749         sys/socket.h \
22750         winsock.h \
22751         sys/time.h \
22752         sys/wait.h \
22753         sys/security.h \
22754         fcntl.h \
22755         sys/fcntl.h \
22756         sys/prctl.h \
22757         sys/un.h \
22758         glob.h \
22759         prot.h \
22760         pwd.h \
22761         grp.h \
22762         sia.h \
22763         siad.h
22764
22765 do
22766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22768   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22771   echo $ECHO_N "(cached) $ECHO_C" >&6
22772 fi
22773 ac_res=`eval echo '${'$as_ac_Header'}'`
22774                { echo "$as_me:$LINENO: result: $ac_res" >&5
22775 echo "${ECHO_T}$ac_res" >&6; }
22776 else
22777   # Is the header compilable?
22778 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22780 cat >conftest.$ac_ext <<_ACEOF
22781 /* confdefs.h.  */
22782 _ACEOF
22783 cat confdefs.h >>conftest.$ac_ext
22784 cat >>conftest.$ac_ext <<_ACEOF
22785 /* end confdefs.h.  */
22786 $ac_includes_default
22787 #include <$ac_header>
22788 _ACEOF
22789 rm -f conftest.$ac_objext
22790 if { (ac_try="$ac_compile"
22791 case "(($ac_try" in
22792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793   *) ac_try_echo=$ac_try;;
22794 esac
22795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22796   (eval "$ac_compile") 2>conftest.er1
22797   ac_status=$?
22798   grep -v '^ *+' conftest.er1 >conftest.err
22799   rm -f conftest.er1
22800   cat conftest.err >&5
22801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802   (exit $ac_status); } && {
22803          test -z "$ac_c_werror_flag" ||
22804          test ! -s conftest.err
22805        } && test -s conftest.$ac_objext; then
22806   ac_header_compiler=yes
22807 else
22808   echo "$as_me: failed program was:" >&5
22809 sed 's/^/| /' conftest.$ac_ext >&5
22810
22811         ac_header_compiler=no
22812 fi
22813
22814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22816 echo "${ECHO_T}$ac_header_compiler" >&6; }
22817
22818 # Is the header present?
22819 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22821 cat >conftest.$ac_ext <<_ACEOF
22822 /* confdefs.h.  */
22823 _ACEOF
22824 cat confdefs.h >>conftest.$ac_ext
22825 cat >>conftest.$ac_ext <<_ACEOF
22826 /* end confdefs.h.  */
22827 #include <$ac_header>
22828 _ACEOF
22829 if { (ac_try="$ac_cpp conftest.$ac_ext"
22830 case "(($ac_try" in
22831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22832   *) ac_try_echo=$ac_try;;
22833 esac
22834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22835   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22836   ac_status=$?
22837   grep -v '^ *+' conftest.er1 >conftest.err
22838   rm -f conftest.er1
22839   cat conftest.err >&5
22840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841   (exit $ac_status); } >/dev/null && {
22842          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22843          test ! -s conftest.err
22844        }; then
22845   ac_header_preproc=yes
22846 else
22847   echo "$as_me: failed program was:" >&5
22848 sed 's/^/| /' conftest.$ac_ext >&5
22849
22850   ac_header_preproc=no
22851 fi
22852
22853 rm -f conftest.err conftest.$ac_ext
22854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22855 echo "${ECHO_T}$ac_header_preproc" >&6; }
22856
22857 # So?  What about this header?
22858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22859   yes:no: )
22860     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22862     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22864     ac_header_preproc=yes
22865     ;;
22866   no:yes:* )
22867     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22869     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22870 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22871     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22873     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22874 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22877     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22879
22880     ;;
22881 esac
22882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22885   echo $ECHO_N "(cached) $ECHO_C" >&6
22886 else
22887   eval "$as_ac_Header=\$ac_header_preproc"
22888 fi
22889 ac_res=`eval echo '${'$as_ac_Header'}'`
22890                { echo "$as_me:$LINENO: result: $ac_res" >&5
22891 echo "${ECHO_T}$ac_res" >&6; }
22892
22893 fi
22894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22895   cat >>confdefs.h <<_ACEOF
22896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22897 _ACEOF
22898
22899 fi
22900
22901 done
22902
22903
22904
22905 for ac_header in net/if.h
22906 do
22907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22911   echo $ECHO_N "(cached) $ECHO_C" >&6
22912 else
22913   cat >conftest.$ac_ext <<_ACEOF
22914 /* confdefs.h.  */
22915 _ACEOF
22916 cat confdefs.h >>conftest.$ac_ext
22917 cat >>conftest.$ac_ext <<_ACEOF
22918 /* end confdefs.h.  */
22919 #ifdef HAVE_SYS_SOCKET_H
22920 # include <sys/socket.h>
22921 # endif
22922
22923
22924 #include <$ac_header>
22925 _ACEOF
22926 rm -f conftest.$ac_objext
22927 if { (ac_try="$ac_compile"
22928 case "(($ac_try" in
22929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22930   *) ac_try_echo=$ac_try;;
22931 esac
22932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22933   (eval "$ac_compile") 2>conftest.er1
22934   ac_status=$?
22935   grep -v '^ *+' conftest.er1 >conftest.err
22936   rm -f conftest.er1
22937   cat conftest.err >&5
22938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939   (exit $ac_status); } && {
22940          test -z "$ac_c_werror_flag" ||
22941          test ! -s conftest.err
22942        } && test -s conftest.$ac_objext; then
22943   eval "$as_ac_Header=yes"
22944 else
22945   echo "$as_me: failed program was:" >&5
22946 sed 's/^/| /' conftest.$ac_ext >&5
22947
22948         eval "$as_ac_Header=no"
22949 fi
22950
22951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22952 fi
22953 ac_res=`eval echo '${'$as_ac_Header'}'`
22954                { echo "$as_me:$LINENO: result: $ac_res" >&5
22955 echo "${ECHO_T}$ac_res" >&6; }
22956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22957   cat >>confdefs.h <<_ACEOF
22958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22959 _ACEOF
22960
22961 fi
22962
22963 done
22964
22965
22966 REGEX=no
22967 if test "${ac_cv_header_regex_h+set}" = set; then
22968   { echo "$as_me:$LINENO: checking for regex.h" >&5
22969 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22970 if test "${ac_cv_header_regex_h+set}" = set; then
22971   echo $ECHO_N "(cached) $ECHO_C" >&6
22972 fi
22973 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22974 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22975 else
22976   # Is the header compilable?
22977 { echo "$as_me:$LINENO: checking regex.h usability" >&5
22978 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
22979 cat >conftest.$ac_ext <<_ACEOF
22980 /* confdefs.h.  */
22981 _ACEOF
22982 cat confdefs.h >>conftest.$ac_ext
22983 cat >>conftest.$ac_ext <<_ACEOF
22984 /* end confdefs.h.  */
22985 $ac_includes_default
22986 #include <regex.h>
22987 _ACEOF
22988 rm -f conftest.$ac_objext
22989 if { (ac_try="$ac_compile"
22990 case "(($ac_try" in
22991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22992   *) ac_try_echo=$ac_try;;
22993 esac
22994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22995   (eval "$ac_compile") 2>conftest.er1
22996   ac_status=$?
22997   grep -v '^ *+' conftest.er1 >conftest.err
22998   rm -f conftest.er1
22999   cat conftest.err >&5
23000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001   (exit $ac_status); } && {
23002          test -z "$ac_c_werror_flag" ||
23003          test ! -s conftest.err
23004        } && test -s conftest.$ac_objext; then
23005   ac_header_compiler=yes
23006 else
23007   echo "$as_me: failed program was:" >&5
23008 sed 's/^/| /' conftest.$ac_ext >&5
23009
23010         ac_header_compiler=no
23011 fi
23012
23013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23015 echo "${ECHO_T}$ac_header_compiler" >&6; }
23016
23017 # Is the header present?
23018 { echo "$as_me:$LINENO: checking regex.h presence" >&5
23019 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
23020 cat >conftest.$ac_ext <<_ACEOF
23021 /* confdefs.h.  */
23022 _ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h.  */
23026 #include <regex.h>
23027 _ACEOF
23028 if { (ac_try="$ac_cpp conftest.$ac_ext"
23029 case "(($ac_try" in
23030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23031   *) ac_try_echo=$ac_try;;
23032 esac
23033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23035   ac_status=$?
23036   grep -v '^ *+' conftest.er1 >conftest.err
23037   rm -f conftest.er1
23038   cat conftest.err >&5
23039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040   (exit $ac_status); } >/dev/null && {
23041          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23042          test ! -s conftest.err
23043        }; then
23044   ac_header_preproc=yes
23045 else
23046   echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23048
23049   ac_header_preproc=no
23050 fi
23051
23052 rm -f conftest.err conftest.$ac_ext
23053 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23054 echo "${ECHO_T}$ac_header_preproc" >&6; }
23055
23056 # So?  What about this header?
23057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23058   yes:no: )
23059     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23060 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23061     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23062 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23063     ac_header_preproc=yes
23064     ;;
23065   no:yes:* )
23066     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23067 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
23068     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
23069 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
23070     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23071 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23072     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
23073 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23074     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23075 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
23076     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23077 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
23078
23079     ;;
23080 esac
23081 { echo "$as_me:$LINENO: checking for regex.h" >&5
23082 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
23083 if test "${ac_cv_header_regex_h+set}" = set; then
23084   echo $ECHO_N "(cached) $ECHO_C" >&6
23085 else
23086   ac_cv_header_regex_h=$ac_header_preproc
23087 fi
23088 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23089 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
23090
23091 fi
23092 if test $ac_cv_header_regex_h = yes; then
23093
23094 cat >>confdefs.h <<\_ACEOF
23095 #define HAVE_REGEX_H
23096 _ACEOF
23097
23098 fi
23099
23100
23101 if test "x$ac_cv_header_regex_h" = "xyes"; then
23102   REGEX_EXTENDED=no
23103   REGEX=yes
23104   cat >conftest.$ac_ext <<_ACEOF
23105 /* confdefs.h.  */
23106 _ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h.  */
23110 #include <regex.h>
23111      #ifdef REG_EXTENDED
23112        yes
23113      #endif
23114
23115 _ACEOF
23116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23117   $EGREP "yes" >/dev/null 2>&1; then
23118
23119 cat >>confdefs.h <<\_ACEOF
23120 #define HAVE_REG_EXTENDED
23121 _ACEOF
23122  REGEX_EXTENDED=yes
23123 fi
23124 rm -f conftest*
23125
23126 fi
23127
23128
23129
23130 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
23131 then
23132
23133 cat >>confdefs.h <<\_ACEOF
23134 #define OSFC2
23135 _ACEOF
23136
23137 fi
23138
23139 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
23140 then
23141
23142 cat >>confdefs.h <<\_ACEOF
23143 #define OSFSIA
23144 _ACEOF
23145
23146 fi
23147
23148 OPENSSL_INCLUDE="-DNO_OPENSSL"
23149 if test "x$WITH_OPENSSL" = xyes; then
23150   if test "x$OPENSSL_LIBS" = "x"; then
23151     { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
23152 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
23153   else
23154     old_CPPFLAGS=$CPPFLAGS
23155     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23156         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
23157     fi
23158         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
23159
23160
23161
23162
23163
23164 for ac_header in \
23165         openssl/ssl.h \
23166         openssl/crypto.h \
23167         openssl/err.h \
23168         openssl/evp.h \
23169         openssl/engine.h
23170 do
23171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23173   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23176   echo $ECHO_N "(cached) $ECHO_C" >&6
23177 fi
23178 ac_res=`eval echo '${'$as_ac_Header'}'`
23179                { echo "$as_me:$LINENO: result: $ac_res" >&5
23180 echo "${ECHO_T}$ac_res" >&6; }
23181 else
23182   # Is the header compilable?
23183 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23185 cat >conftest.$ac_ext <<_ACEOF
23186 /* confdefs.h.  */
23187 _ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h.  */
23191 $ac_includes_default
23192 #include <$ac_header>
23193 _ACEOF
23194 rm -f conftest.$ac_objext
23195 if { (ac_try="$ac_compile"
23196 case "(($ac_try" in
23197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23198   *) ac_try_echo=$ac_try;;
23199 esac
23200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23201   (eval "$ac_compile") 2>conftest.er1
23202   ac_status=$?
23203   grep -v '^ *+' conftest.er1 >conftest.err
23204   rm -f conftest.er1
23205   cat conftest.err >&5
23206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207   (exit $ac_status); } && {
23208          test -z "$ac_c_werror_flag" ||
23209          test ! -s conftest.err
23210        } && test -s conftest.$ac_objext; then
23211   ac_header_compiler=yes
23212 else
23213   echo "$as_me: failed program was:" >&5
23214 sed 's/^/| /' conftest.$ac_ext >&5
23215
23216         ac_header_compiler=no
23217 fi
23218
23219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23221 echo "${ECHO_T}$ac_header_compiler" >&6; }
23222
23223 # Is the header present?
23224 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23226 cat >conftest.$ac_ext <<_ACEOF
23227 /* confdefs.h.  */
23228 _ACEOF
23229 cat confdefs.h >>conftest.$ac_ext
23230 cat >>conftest.$ac_ext <<_ACEOF
23231 /* end confdefs.h.  */
23232 #include <$ac_header>
23233 _ACEOF
23234 if { (ac_try="$ac_cpp conftest.$ac_ext"
23235 case "(($ac_try" in
23236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23237   *) ac_try_echo=$ac_try;;
23238 esac
23239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23240   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23241   ac_status=$?
23242   grep -v '^ *+' conftest.er1 >conftest.err
23243   rm -f conftest.er1
23244   cat conftest.err >&5
23245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246   (exit $ac_status); } >/dev/null && {
23247          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23248          test ! -s conftest.err
23249        }; then
23250   ac_header_preproc=yes
23251 else
23252   echo "$as_me: failed program was:" >&5
23253 sed 's/^/| /' conftest.$ac_ext >&5
23254
23255   ac_header_preproc=no
23256 fi
23257
23258 rm -f conftest.err conftest.$ac_ext
23259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23260 echo "${ECHO_T}$ac_header_preproc" >&6; }
23261
23262 # So?  What about this header?
23263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23264   yes:no: )
23265     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23266 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23267     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23268 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23269     ac_header_preproc=yes
23270     ;;
23271   no:yes:* )
23272     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23273 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23274     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23275 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23276     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23277 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23278     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23279 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23280     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23282     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23283 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23284
23285     ;;
23286 esac
23287 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23290   echo $ECHO_N "(cached) $ECHO_C" >&6
23291 else
23292   eval "$as_ac_Header=\$ac_header_preproc"
23293 fi
23294 ac_res=`eval echo '${'$as_ac_Header'}'`
23295                { echo "$as_me:$LINENO: result: $ac_res" >&5
23296 echo "${ECHO_T}$ac_res" >&6; }
23297
23298 fi
23299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23300   cat >>confdefs.h <<_ACEOF
23301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23302 _ACEOF
23303
23304 else
23305   OPENSSL_LIBS=
23306
23307 fi
23308
23309 done
23310
23311     if test "x$OPENSSL_LIBS" != "x"; then
23312         { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
23313 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
23314         cat >conftest.$ac_ext <<_ACEOF
23315 /* confdefs.h.  */
23316 _ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h.  */
23320 #include <openssl/crypto.h>
23321              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
23322              yes
23323              #endif
23324
23325 _ACEOF
23326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23327   $EGREP "yes" >/dev/null 2>&1; then
23328   goodssl="yes"
23329 fi
23330 rm -f conftest*
23331
23332         if test "x$goodssl" != "xyes"; then
23333             { echo "$as_me:$LINENO: result: no" >&5
23334 echo "${ECHO_T}no" >&6; }
23335             OPENSSL_LIBS=
23336         else
23337             { echo "$as_me:$LINENO: result: yes" >&5
23338 echo "${ECHO_T}yes" >&6; }
23339             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23340                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
23341             else
23342                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
23343             fi
23344         fi
23345     fi
23346     CPPFLAGS=$old_CPPFLAGS
23347   fi
23348 fi
23349
23350
23351 export OPENSSL_LIBS
23352
23353 if test "x$PCAP_LIBS" = x; then
23354     { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
23355 echo "$as_me: skipping test for pcap.h." >&6;}
23356 else
23357     if test "${ac_cv_header_pcap_h+set}" = set; then
23358   { echo "$as_me:$LINENO: checking for pcap.h" >&5
23359 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23360 if test "${ac_cv_header_pcap_h+set}" = set; then
23361   echo $ECHO_N "(cached) $ECHO_C" >&6
23362 fi
23363 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23364 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23365 else
23366   # Is the header compilable?
23367 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
23368 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
23369 cat >conftest.$ac_ext <<_ACEOF
23370 /* confdefs.h.  */
23371 _ACEOF
23372 cat confdefs.h >>conftest.$ac_ext
23373 cat >>conftest.$ac_ext <<_ACEOF
23374 /* end confdefs.h.  */
23375 $ac_includes_default
23376 #include <pcap.h>
23377 _ACEOF
23378 rm -f conftest.$ac_objext
23379 if { (ac_try="$ac_compile"
23380 case "(($ac_try" in
23381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23382   *) ac_try_echo=$ac_try;;
23383 esac
23384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23385   (eval "$ac_compile") 2>conftest.er1
23386   ac_status=$?
23387   grep -v '^ *+' conftest.er1 >conftest.err
23388   rm -f conftest.er1
23389   cat conftest.err >&5
23390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391   (exit $ac_status); } && {
23392          test -z "$ac_c_werror_flag" ||
23393          test ! -s conftest.err
23394        } && test -s conftest.$ac_objext; then
23395   ac_header_compiler=yes
23396 else
23397   echo "$as_me: failed program was:" >&5
23398 sed 's/^/| /' conftest.$ac_ext >&5
23399
23400         ac_header_compiler=no
23401 fi
23402
23403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23405 echo "${ECHO_T}$ac_header_compiler" >&6; }
23406
23407 # Is the header present?
23408 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
23409 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
23410 cat >conftest.$ac_ext <<_ACEOF
23411 /* confdefs.h.  */
23412 _ACEOF
23413 cat confdefs.h >>conftest.$ac_ext
23414 cat >>conftest.$ac_ext <<_ACEOF
23415 /* end confdefs.h.  */
23416 #include <pcap.h>
23417 _ACEOF
23418 if { (ac_try="$ac_cpp conftest.$ac_ext"
23419 case "(($ac_try" in
23420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23421   *) ac_try_echo=$ac_try;;
23422 esac
23423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23424   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23425   ac_status=$?
23426   grep -v '^ *+' conftest.er1 >conftest.err
23427   rm -f conftest.er1
23428   cat conftest.err >&5
23429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430   (exit $ac_status); } >/dev/null && {
23431          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23432          test ! -s conftest.err
23433        }; then
23434   ac_header_preproc=yes
23435 else
23436   echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23438
23439   ac_header_preproc=no
23440 fi
23441
23442 rm -f conftest.err conftest.$ac_ext
23443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23444 echo "${ECHO_T}$ac_header_preproc" >&6; }
23445
23446 # So?  What about this header?
23447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23448   yes:no: )
23449     { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
23450 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23451     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
23452 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
23453     ac_header_preproc=yes
23454     ;;
23455   no:yes:* )
23456     { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
23457 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
23458     { echo "$as_me:$LINENO: WARNING: pcap.h:     check for missing prerequisite headers?" >&5
23459 echo "$as_me: WARNING: pcap.h:     check for missing prerequisite headers?" >&2;}
23460     { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
23461 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
23462     { echo "$as_me:$LINENO: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&5
23463 echo "$as_me: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23464     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
23465 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
23466     { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
23467 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
23468
23469     ;;
23470 esac
23471 { echo "$as_me:$LINENO: checking for pcap.h" >&5
23472 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23473 if test "${ac_cv_header_pcap_h+set}" = set; then
23474   echo $ECHO_N "(cached) $ECHO_C" >&6
23475 else
23476   ac_cv_header_pcap_h=$ac_header_preproc
23477 fi
23478 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23479 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23480
23481 fi
23482 if test $ac_cv_header_pcap_h = yes; then
23483
23484 cat >>confdefs.h <<\_ACEOF
23485 #define HAVE_PCAP_H 1
23486 _ACEOF
23487
23488 else
23489    PCAP_LIBS=
23490         { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
23491 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
23492
23493 fi
23494
23495
23496 fi
23497
23498
23499
23500 { echo "$as_me:$LINENO: checking for off_t" >&5
23501 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23502 if test "${ac_cv_type_off_t+set}" = set; then
23503   echo $ECHO_N "(cached) $ECHO_C" >&6
23504 else
23505   cat >conftest.$ac_ext <<_ACEOF
23506 /* confdefs.h.  */
23507 _ACEOF
23508 cat confdefs.h >>conftest.$ac_ext
23509 cat >>conftest.$ac_ext <<_ACEOF
23510 /* end confdefs.h.  */
23511 $ac_includes_default
23512 typedef off_t ac__type_new_;
23513 int
23514 main ()
23515 {
23516 if ((ac__type_new_ *) 0)
23517   return 0;
23518 if (sizeof (ac__type_new_))
23519   return 0;
23520   ;
23521   return 0;
23522 }
23523 _ACEOF
23524 rm -f conftest.$ac_objext
23525 if { (ac_try="$ac_compile"
23526 case "(($ac_try" in
23527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23528   *) ac_try_echo=$ac_try;;
23529 esac
23530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23531   (eval "$ac_compile") 2>conftest.er1
23532   ac_status=$?
23533   grep -v '^ *+' conftest.er1 >conftest.err
23534   rm -f conftest.er1
23535   cat conftest.err >&5
23536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537   (exit $ac_status); } && {
23538          test -z "$ac_c_werror_flag" ||
23539          test ! -s conftest.err
23540        } && test -s conftest.$ac_objext; then
23541   ac_cv_type_off_t=yes
23542 else
23543   echo "$as_me: failed program was:" >&5
23544 sed 's/^/| /' conftest.$ac_ext >&5
23545
23546         ac_cv_type_off_t=no
23547 fi
23548
23549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23550 fi
23551 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23552 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23553 if test $ac_cv_type_off_t = yes; then
23554   :
23555 else
23556
23557 cat >>confdefs.h <<_ACEOF
23558 #define off_t long int
23559 _ACEOF
23560
23561 fi
23562
23563 { echo "$as_me:$LINENO: checking for pid_t" >&5
23564 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23565 if test "${ac_cv_type_pid_t+set}" = set; then
23566   echo $ECHO_N "(cached) $ECHO_C" >&6
23567 else
23568   cat >conftest.$ac_ext <<_ACEOF
23569 /* confdefs.h.  */
23570 _ACEOF
23571 cat confdefs.h >>conftest.$ac_ext
23572 cat >>conftest.$ac_ext <<_ACEOF
23573 /* end confdefs.h.  */
23574 $ac_includes_default
23575 typedef pid_t ac__type_new_;
23576 int
23577 main ()
23578 {
23579 if ((ac__type_new_ *) 0)
23580   return 0;
23581 if (sizeof (ac__type_new_))
23582   return 0;
23583   ;
23584   return 0;
23585 }
23586 _ACEOF
23587 rm -f conftest.$ac_objext
23588 if { (ac_try="$ac_compile"
23589 case "(($ac_try" in
23590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23591   *) ac_try_echo=$ac_try;;
23592 esac
23593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594   (eval "$ac_compile") 2>conftest.er1
23595   ac_status=$?
23596   grep -v '^ *+' conftest.er1 >conftest.err
23597   rm -f conftest.er1
23598   cat conftest.err >&5
23599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600   (exit $ac_status); } && {
23601          test -z "$ac_c_werror_flag" ||
23602          test ! -s conftest.err
23603        } && test -s conftest.$ac_objext; then
23604   ac_cv_type_pid_t=yes
23605 else
23606   echo "$as_me: failed program was:" >&5
23607 sed 's/^/| /' conftest.$ac_ext >&5
23608
23609         ac_cv_type_pid_t=no
23610 fi
23611
23612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23613 fi
23614 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23615 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23616 if test $ac_cv_type_pid_t = yes; then
23617   :
23618 else
23619
23620 cat >>confdefs.h <<_ACEOF
23621 #define pid_t int
23622 _ACEOF
23623
23624 fi
23625
23626 { echo "$as_me:$LINENO: checking for size_t" >&5
23627 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23628 if test "${ac_cv_type_size_t+set}" = set; then
23629   echo $ECHO_N "(cached) $ECHO_C" >&6
23630 else
23631   cat >conftest.$ac_ext <<_ACEOF
23632 /* confdefs.h.  */
23633 _ACEOF
23634 cat confdefs.h >>conftest.$ac_ext
23635 cat >>conftest.$ac_ext <<_ACEOF
23636 /* end confdefs.h.  */
23637 $ac_includes_default
23638 typedef size_t ac__type_new_;
23639 int
23640 main ()
23641 {
23642 if ((ac__type_new_ *) 0)
23643   return 0;
23644 if (sizeof (ac__type_new_))
23645   return 0;
23646   ;
23647   return 0;
23648 }
23649 _ACEOF
23650 rm -f conftest.$ac_objext
23651 if { (ac_try="$ac_compile"
23652 case "(($ac_try" in
23653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23654   *) ac_try_echo=$ac_try;;
23655 esac
23656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23657   (eval "$ac_compile") 2>conftest.er1
23658   ac_status=$?
23659   grep -v '^ *+' conftest.er1 >conftest.err
23660   rm -f conftest.er1
23661   cat conftest.err >&5
23662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663   (exit $ac_status); } && {
23664          test -z "$ac_c_werror_flag" ||
23665          test ! -s conftest.err
23666        } && test -s conftest.$ac_objext; then
23667   ac_cv_type_size_t=yes
23668 else
23669   echo "$as_me: failed program was:" >&5
23670 sed 's/^/| /' conftest.$ac_ext >&5
23671
23672         ac_cv_type_size_t=no
23673 fi
23674
23675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23676 fi
23677 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23678 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23679 if test $ac_cv_type_size_t = yes; then
23680   :
23681 else
23682
23683 cat >>confdefs.h <<_ACEOF
23684 #define size_t unsigned int
23685 _ACEOF
23686
23687 fi
23688
23689 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23690 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23691 if test "${ac_cv_type_uid_t+set}" = set; then
23692   echo $ECHO_N "(cached) $ECHO_C" >&6
23693 else
23694   cat >conftest.$ac_ext <<_ACEOF
23695 /* confdefs.h.  */
23696 _ACEOF
23697 cat confdefs.h >>conftest.$ac_ext
23698 cat >>conftest.$ac_ext <<_ACEOF
23699 /* end confdefs.h.  */
23700 #include <sys/types.h>
23701
23702 _ACEOF
23703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23704   $EGREP "uid_t" >/dev/null 2>&1; then
23705   ac_cv_type_uid_t=yes
23706 else
23707   ac_cv_type_uid_t=no
23708 fi
23709 rm -f conftest*
23710
23711 fi
23712 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23713 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23714 if test $ac_cv_type_uid_t = no; then
23715
23716 cat >>confdefs.h <<\_ACEOF
23717 #define uid_t int
23718 _ACEOF
23719
23720
23721 cat >>confdefs.h <<\_ACEOF
23722 #define gid_t int
23723 _ACEOF
23724
23725 fi
23726
23727
23728
23729   { echo "$as_me:$LINENO: checking for socklen_t" >&5
23730 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23731 if test "${ac_cv_type_socklen_t+set}" = set; then
23732   echo $ECHO_N "(cached) $ECHO_C" >&6
23733 else
23734    ac_cv_type_socklen_t=no
23735       cat >conftest.$ac_ext <<_ACEOF
23736 /* confdefs.h.  */
23737 _ACEOF
23738 cat confdefs.h >>conftest.$ac_ext
23739 cat >>conftest.$ac_ext <<_ACEOF
23740 /* end confdefs.h.  */
23741 #ifdef HAVE_SYS_TYPES_H
23742 #include <sys/types.h>
23743 #endif
23744 #ifdef HAVE_SYS_SOCKET_H
23745 #include <sys/socket.h>
23746 #endif
23747
23748 int
23749 main ()
23750 {
23751 socklen_t foo
23752   ;
23753   return 0;
23754 }
23755 _ACEOF
23756 rm -f conftest.$ac_objext
23757 if { (ac_try="$ac_compile"
23758 case "(($ac_try" in
23759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23760   *) ac_try_echo=$ac_try;;
23761 esac
23762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23763   (eval "$ac_compile") 2>conftest.er1
23764   ac_status=$?
23765   grep -v '^ *+' conftest.er1 >conftest.err
23766   rm -f conftest.er1
23767   cat conftest.err >&5
23768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769   (exit $ac_status); } && {
23770          test -z "$ac_c_werror_flag" ||
23771          test ! -s conftest.err
23772        } && test -s conftest.$ac_objext; then
23773   ac_cv_type_socklen_t=yes
23774 else
23775   echo "$as_me: failed program was:" >&5
23776 sed 's/^/| /' conftest.$ac_ext >&5
23777
23778
23779 fi
23780
23781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23782
23783
23784 fi
23785 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23786 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23787
23788   if test "$ac_cv_type_socklen_t" != "yes"; then
23789
23790 cat >>confdefs.h <<\_ACEOF
23791 #define socklen_t int
23792 _ACEOF
23793
23794   fi
23795
23796
23797
23798   { echo "$as_me:$LINENO: checking for uint8_t" >&5
23799 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23800 if test "${ac_cv_type_uint8_t+set}" = set; then
23801   echo $ECHO_N "(cached) $ECHO_C" >&6
23802 else
23803    ac_cv_type_uint8_t=no
23804       cat >conftest.$ac_ext <<_ACEOF
23805 /* confdefs.h.  */
23806 _ACEOF
23807 cat confdefs.h >>conftest.$ac_ext
23808 cat >>conftest.$ac_ext <<_ACEOF
23809 /* end confdefs.h.  */
23810 #ifdef HAVE_INTTYPES_H
23811 #include <inttypes.h>
23812 #endif
23813 #ifdef HAVE_STDINT_H
23814 #include <stdint.h>
23815 #endif
23816
23817 int
23818 main ()
23819 {
23820 uint8_t foo
23821   ;
23822   return 0;
23823 }
23824 _ACEOF
23825 rm -f conftest.$ac_objext
23826 if { (ac_try="$ac_compile"
23827 case "(($ac_try" in
23828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23829   *) ac_try_echo=$ac_try;;
23830 esac
23831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23832   (eval "$ac_compile") 2>conftest.er1
23833   ac_status=$?
23834   grep -v '^ *+' conftest.er1 >conftest.err
23835   rm -f conftest.er1
23836   cat conftest.err >&5
23837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838   (exit $ac_status); } && {
23839          test -z "$ac_c_werror_flag" ||
23840          test ! -s conftest.err
23841        } && test -s conftest.$ac_objext; then
23842   ac_cv_type_uint8_t=yes
23843 else
23844   echo "$as_me: failed program was:" >&5
23845 sed 's/^/| /' conftest.$ac_ext >&5
23846
23847
23848 fi
23849
23850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23851
23852
23853 fi
23854 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23855 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23856
23857   if test "$ac_cv_type_uint8_t" != "yes"; then
23858
23859 cat >>confdefs.h <<\_ACEOF
23860 #define uint8_t unsigned char
23861 _ACEOF
23862
23863   fi
23864
23865
23866
23867   { echo "$as_me:$LINENO: checking for uint16_t" >&5
23868 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
23869 if test "${ac_cv_type_uint16_t+set}" = set; then
23870   echo $ECHO_N "(cached) $ECHO_C" >&6
23871 else
23872    ac_cv_type_uint16_t=no
23873       cat >conftest.$ac_ext <<_ACEOF
23874 /* confdefs.h.  */
23875 _ACEOF
23876 cat confdefs.h >>conftest.$ac_ext
23877 cat >>conftest.$ac_ext <<_ACEOF
23878 /* end confdefs.h.  */
23879 #ifdef HAVE_INTTYPES_H
23880 #include <inttypes.h>
23881 #endif
23882 #ifdef HAVE_STDINT_H
23883 #include <stdint.h>
23884 #endif
23885
23886 int
23887 main ()
23888 {
23889 uint16_t foo
23890   ;
23891   return 0;
23892 }
23893 _ACEOF
23894 rm -f conftest.$ac_objext
23895 if { (ac_try="$ac_compile"
23896 case "(($ac_try" in
23897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898   *) ac_try_echo=$ac_try;;
23899 esac
23900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23901   (eval "$ac_compile") 2>conftest.er1
23902   ac_status=$?
23903   grep -v '^ *+' conftest.er1 >conftest.err
23904   rm -f conftest.er1
23905   cat conftest.err >&5
23906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907   (exit $ac_status); } && {
23908          test -z "$ac_c_werror_flag" ||
23909          test ! -s conftest.err
23910        } && test -s conftest.$ac_objext; then
23911   ac_cv_type_uint16_t=yes
23912 else
23913   echo "$as_me: failed program was:" >&5
23914 sed 's/^/| /' conftest.$ac_ext >&5
23915
23916
23917 fi
23918
23919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23920
23921
23922 fi
23923 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
23924 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
23925
23926   if test "$ac_cv_type_uint16_t" != "yes"; then
23927
23928 cat >>confdefs.h <<\_ACEOF
23929 #define uint16_t unsigned short
23930 _ACEOF
23931
23932   fi
23933
23934
23935
23936   { echo "$as_me:$LINENO: checking for uint32_t" >&5
23937 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
23938 if test "${ac_cv_type_uint32_t+set}" = set; then
23939   echo $ECHO_N "(cached) $ECHO_C" >&6
23940 else
23941    ac_cv_type_uint32_t=no
23942       cat >conftest.$ac_ext <<_ACEOF
23943 /* confdefs.h.  */
23944 _ACEOF
23945 cat confdefs.h >>conftest.$ac_ext
23946 cat >>conftest.$ac_ext <<_ACEOF
23947 /* end confdefs.h.  */
23948 #ifdef HAVE_INTTYPES_H
23949 #include <inttypes.h>
23950 #endif
23951 #ifdef HAVE_STDINT_H
23952 #include <stdint.h>
23953 #endif
23954
23955 int
23956 main ()
23957 {
23958 uint32_t foo
23959   ;
23960   return 0;
23961 }
23962 _ACEOF
23963 rm -f conftest.$ac_objext
23964 if { (ac_try="$ac_compile"
23965 case "(($ac_try" in
23966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23967   *) ac_try_echo=$ac_try;;
23968 esac
23969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23970   (eval "$ac_compile") 2>conftest.er1
23971   ac_status=$?
23972   grep -v '^ *+' conftest.er1 >conftest.err
23973   rm -f conftest.er1
23974   cat conftest.err >&5
23975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976   (exit $ac_status); } && {
23977          test -z "$ac_c_werror_flag" ||
23978          test ! -s conftest.err
23979        } && test -s conftest.$ac_objext; then
23980   ac_cv_type_uint32_t=yes
23981 else
23982   echo "$as_me: failed program was:" >&5
23983 sed 's/^/| /' conftest.$ac_ext >&5
23984
23985
23986 fi
23987
23988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23989
23990
23991 fi
23992 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
23993 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
23994
23995   if test "$ac_cv_type_uint32_t" != "yes"; then
23996
23997 cat >>confdefs.h <<\_ACEOF
23998 #define uint32_t unsigned int
23999 _ACEOF
24000
24001   fi
24002
24003
24004 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
24005 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
24006 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
24007   echo $ECHO_N "(cached) $ECHO_C" >&6
24008 else
24009   cat >conftest.$ac_ext <<_ACEOF
24010 /* confdefs.h.  */
24011 _ACEOF
24012 cat confdefs.h >>conftest.$ac_ext
24013 cat >>conftest.$ac_ext <<_ACEOF
24014 /* end confdefs.h.  */
24015
24016 #ifdef HAVE_NETINET_IN_H
24017 #include <netinet/in.h>
24018 #endif
24019
24020
24021 typedef struct in6_addr ac__type_new_;
24022 int
24023 main ()
24024 {
24025 if ((ac__type_new_ *) 0)
24026   return 0;
24027 if (sizeof (ac__type_new_))
24028   return 0;
24029   ;
24030   return 0;
24031 }
24032 _ACEOF
24033 rm -f conftest.$ac_objext
24034 if { (ac_try="$ac_compile"
24035 case "(($ac_try" in
24036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24037   *) ac_try_echo=$ac_try;;
24038 esac
24039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24040   (eval "$ac_compile") 2>conftest.er1
24041   ac_status=$?
24042   grep -v '^ *+' conftest.er1 >conftest.err
24043   rm -f conftest.er1
24044   cat conftest.err >&5
24045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046   (exit $ac_status); } && {
24047          test -z "$ac_c_werror_flag" ||
24048          test ! -s conftest.err
24049        } && test -s conftest.$ac_objext; then
24050   ac_cv_type_struct_in6_addr=yes
24051 else
24052   echo "$as_me: failed program was:" >&5
24053 sed 's/^/| /' conftest.$ac_ext >&5
24054
24055         ac_cv_type_struct_in6_addr=no
24056 fi
24057
24058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24059 fi
24060 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
24061 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
24062 if test $ac_cv_type_struct_in6_addr = yes; then
24063
24064 cat >>confdefs.h <<\_ACEOF
24065 #define HAVE_STRUCT_IN6_ADDR 1
24066 _ACEOF
24067
24068 fi
24069
24070
24071 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
24072 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
24073 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
24074   echo $ECHO_N "(cached) $ECHO_C" >&6
24075 else
24076   cat >conftest.$ac_ext <<_ACEOF
24077 /* confdefs.h.  */
24078 _ACEOF
24079 cat confdefs.h >>conftest.$ac_ext
24080 cat >>conftest.$ac_ext <<_ACEOF
24081 /* end confdefs.h.  */
24082
24083 #ifdef HAVE_NETINET_IN_H
24084 #include <netinet/in.h>
24085 #endif
24086 #ifdef HAVE_SYS_SOCKET_H
24087 #include <sys/socket.h>
24088 #endif
24089
24090
24091 typedef struct sockaddr_storage ac__type_new_;
24092 int
24093 main ()
24094 {
24095 if ((ac__type_new_ *) 0)
24096   return 0;
24097 if (sizeof (ac__type_new_))
24098   return 0;
24099   ;
24100   return 0;
24101 }
24102 _ACEOF
24103 rm -f conftest.$ac_objext
24104 if { (ac_try="$ac_compile"
24105 case "(($ac_try" in
24106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24107   *) ac_try_echo=$ac_try;;
24108 esac
24109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24110   (eval "$ac_compile") 2>conftest.er1
24111   ac_status=$?
24112   grep -v '^ *+' conftest.er1 >conftest.err
24113   rm -f conftest.er1
24114   cat conftest.err >&5
24115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116   (exit $ac_status); } && {
24117          test -z "$ac_c_werror_flag" ||
24118          test ! -s conftest.err
24119        } && test -s conftest.$ac_objext; then
24120   ac_cv_type_struct_sockaddr_storage=yes
24121 else
24122   echo "$as_me: failed program was:" >&5
24123 sed 's/^/| /' conftest.$ac_ext >&5
24124
24125         ac_cv_type_struct_sockaddr_storage=no
24126 fi
24127
24128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24129 fi
24130 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
24131 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
24132 if test $ac_cv_type_struct_sockaddr_storage = yes; then
24133
24134 cat >>confdefs.h <<\_ACEOF
24135 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
24136 _ACEOF
24137
24138 fi
24139
24140
24141 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
24142 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
24143 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
24144   echo $ECHO_N "(cached) $ECHO_C" >&6
24145 else
24146   cat >conftest.$ac_ext <<_ACEOF
24147 /* confdefs.h.  */
24148 _ACEOF
24149 cat confdefs.h >>conftest.$ac_ext
24150 cat >>conftest.$ac_ext <<_ACEOF
24151 /* end confdefs.h.  */
24152
24153 #ifdef HAVE_NETINET_IN_H
24154 #include <netinet/in.h>
24155 #endif
24156
24157
24158 typedef struct sockaddr_in6 ac__type_new_;
24159 int
24160 main ()
24161 {
24162 if ((ac__type_new_ *) 0)
24163   return 0;
24164 if (sizeof (ac__type_new_))
24165   return 0;
24166   ;
24167   return 0;
24168 }
24169 _ACEOF
24170 rm -f conftest.$ac_objext
24171 if { (ac_try="$ac_compile"
24172 case "(($ac_try" in
24173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24174   *) ac_try_echo=$ac_try;;
24175 esac
24176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24177   (eval "$ac_compile") 2>conftest.er1
24178   ac_status=$?
24179   grep -v '^ *+' conftest.er1 >conftest.err
24180   rm -f conftest.er1
24181   cat conftest.err >&5
24182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183   (exit $ac_status); } && {
24184          test -z "$ac_c_werror_flag" ||
24185          test ! -s conftest.err
24186        } && test -s conftest.$ac_objext; then
24187   ac_cv_type_struct_sockaddr_in6=yes
24188 else
24189   echo "$as_me: failed program was:" >&5
24190 sed 's/^/| /' conftest.$ac_ext >&5
24191
24192         ac_cv_type_struct_sockaddr_in6=no
24193 fi
24194
24195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24196 fi
24197 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
24198 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
24199 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
24200
24201 cat >>confdefs.h <<\_ACEOF
24202 #define HAVE_STRUCT_SOCKADDR_IN6 1
24203 _ACEOF
24204
24205 fi
24206
24207
24208 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24209 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
24210 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
24211   echo $ECHO_N "(cached) $ECHO_C" >&6
24212 else
24213   cat >conftest.$ac_ext <<_ACEOF
24214 /* confdefs.h.  */
24215 _ACEOF
24216 cat confdefs.h >>conftest.$ac_ext
24217 cat >>conftest.$ac_ext <<_ACEOF
24218 /* end confdefs.h.  */
24219
24220 #ifdef HAVE_SYS_TYPES_H
24221 #include <sys/types.h>
24222 #endif
24223 #ifdef HAVE_SYS_SOCKET_H
24224 #include <sys/socket.h>
24225 #endif
24226 #ifdef HAVE_NETDB_H
24227 #include <netdb.h>
24228 #endif
24229
24230
24231 typedef struct addrinfo ac__type_new_;
24232 int
24233 main ()
24234 {
24235 if ((ac__type_new_ *) 0)
24236   return 0;
24237 if (sizeof (ac__type_new_))
24238   return 0;
24239   ;
24240   return 0;
24241 }
24242 _ACEOF
24243 rm -f conftest.$ac_objext
24244 if { (ac_try="$ac_compile"
24245 case "(($ac_try" in
24246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24247   *) ac_try_echo=$ac_try;;
24248 esac
24249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24250   (eval "$ac_compile") 2>conftest.er1
24251   ac_status=$?
24252   grep -v '^ *+' conftest.er1 >conftest.err
24253   rm -f conftest.er1
24254   cat conftest.err >&5
24255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256   (exit $ac_status); } && {
24257          test -z "$ac_c_werror_flag" ||
24258          test ! -s conftest.err
24259        } && test -s conftest.$ac_objext; then
24260   ac_cv_type_struct_addrinfo=yes
24261 else
24262   echo "$as_me: failed program was:" >&5
24263 sed 's/^/| /' conftest.$ac_ext >&5
24264
24265         ac_cv_type_struct_addrinfo=no
24266 fi
24267
24268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24269 fi
24270 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
24271 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
24272 if test $ac_cv_type_struct_addrinfo = yes; then
24273
24274 cat >>confdefs.h <<\_ACEOF
24275 #define HAVE_STRUCT_ADDRINFO 1
24276 _ACEOF
24277
24278 fi
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288
24289
24290
24291
24292
24293
24294
24295
24296
24297
24298
24299
24300
24301
24302
24303
24304
24305
24306
24307
24308
24309
24310
24311
24312
24313 for ac_func in \
24314         getopt_long \
24315         lockf \
24316         strsignal \
24317         sigaction \
24318         sigprocmask \
24319         pthread_sigmask \
24320         snprintf \
24321         vsnprintf \
24322         setsid \
24323         strncasecmp \
24324         strcasecmp \
24325         localtime_r \
24326         ctime_r \
24327         gmtime_r \
24328         strsep \
24329         inet_aton \
24330         inet_pton \
24331         inet_ntop \
24332         setlinebuf \
24333         setvbuf \
24334         getusershell \
24335         initgroups \
24336         getaddrinfo \
24337         getnameinfo \
24338         closefrom \
24339         gettimeofday \
24340         getpeereid \
24341         setuid \
24342         setresuid \
24343         getresuid \
24344         strlcat \
24345         strlcpy
24346
24347 do
24348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24349 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24352   echo $ECHO_N "(cached) $ECHO_C" >&6
24353 else
24354   cat >conftest.$ac_ext <<_ACEOF
24355 /* confdefs.h.  */
24356 _ACEOF
24357 cat confdefs.h >>conftest.$ac_ext
24358 cat >>conftest.$ac_ext <<_ACEOF
24359 /* end confdefs.h.  */
24360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24361    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24362 #define $ac_func innocuous_$ac_func
24363
24364 /* System header to define __stub macros and hopefully few prototypes,
24365     which can conflict with char $ac_func (); below.
24366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24367     <limits.h> exists even on freestanding compilers.  */
24368
24369 #ifdef __STDC__
24370 # include <limits.h>
24371 #else
24372 # include <assert.h>
24373 #endif
24374
24375 #undef $ac_func
24376
24377 /* Override any GCC internal prototype to avoid an error.
24378    Use char because int might match the return type of a GCC
24379    builtin and then its argument prototype would still apply.  */
24380 #ifdef __cplusplus
24381 extern "C"
24382 #endif
24383 char $ac_func ();
24384 /* The GNU C library defines this for functions which it implements
24385     to always fail with ENOSYS.  Some functions are actually named
24386     something starting with __ and the normal name is an alias.  */
24387 #if defined __stub_$ac_func || defined __stub___$ac_func
24388 choke me
24389 #endif
24390
24391 int
24392 main ()
24393 {
24394 return $ac_func ();
24395   ;
24396   return 0;
24397 }
24398 _ACEOF
24399 rm -f conftest.$ac_objext conftest$ac_exeext
24400 if { (ac_try="$ac_link"
24401 case "(($ac_try" in
24402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24403   *) ac_try_echo=$ac_try;;
24404 esac
24405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24406   (eval "$ac_link") 2>conftest.er1
24407   ac_status=$?
24408   grep -v '^ *+' conftest.er1 >conftest.err
24409   rm -f conftest.er1
24410   cat conftest.err >&5
24411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412   (exit $ac_status); } && {
24413          test -z "$ac_c_werror_flag" ||
24414          test ! -s conftest.err
24415        } && test -s conftest$ac_exeext &&
24416        $as_test_x conftest$ac_exeext; then
24417   eval "$as_ac_var=yes"
24418 else
24419   echo "$as_me: failed program was:" >&5
24420 sed 's/^/| /' conftest.$ac_ext >&5
24421
24422         eval "$as_ac_var=no"
24423 fi
24424
24425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24426       conftest$ac_exeext conftest.$ac_ext
24427 fi
24428 ac_res=`eval echo '${'$as_ac_var'}'`
24429                { echo "$as_me:$LINENO: result: $ac_res" >&5
24430 echo "${ECHO_T}$ac_res" >&6; }
24431 if test `eval echo '${'$as_ac_var'}'` = yes; then
24432   cat >>confdefs.h <<_ACEOF
24433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24434 _ACEOF
24435
24436 fi
24437 done
24438
24439 for ac_func in \
24440         crypt \
24441         strncasecmp \
24442         strcasecmp \
24443         inet_aton \
24444         setlinebuf \
24445         getusershell \
24446         endusershell
24447
24448 do
24449 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
24450 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
24451 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
24452   echo $ECHO_N "(cached) $ECHO_C" >&6
24453 else
24454   cat >conftest.$ac_ext <<_ACEOF
24455 /* confdefs.h.  */
24456 _ACEOF
24457 cat confdefs.h >>conftest.$ac_ext
24458 cat >>conftest.$ac_ext <<_ACEOF
24459 /* end confdefs.h.  */
24460
24461 #include <stdio.h>
24462 #include <string.h>
24463 #ifdef HAVE_UNISTD_H
24464 #include <unistd.h>
24465 #endif
24466 #ifdef HAVE_CRYPT_H
24467 #include <crypt.h>
24468 #endif
24469 #ifdef HAVE_ERRNO_H
24470 #include <errno.h>
24471 #endif
24472 #ifdef HAVE_RESOURCE_H
24473 #include <resource.h>
24474 #endif
24475 #ifdef HAVE_GETOPT_H
24476 #include <getopt.h>
24477 #endif
24478 #ifdef HAVE_MALLOC_H
24479 #include <malloc.h>
24480 #endif
24481 #ifdef HAVE_UTMP_H
24482 #include <utmp.h>
24483 #endif
24484 #ifdef HAVE_UTMPX_H
24485 #include <utmpx.h>
24486 #endif
24487 #ifdef HAVE_SYS_SELECT_H
24488 #include <sys/select.h>
24489 #endif
24490 #ifdef HAVE_DLFCN_H
24491 #include <dlfcn.h>
24492 #endif
24493 #ifdef HAVE_REGEX_H
24494 #include <regex.h>
24495 #endif
24496 #ifdef HAVE_SYSLOG_H
24497 #include <syslog.h>
24498 #endif
24499 #ifdef HAVE_INTTYPES_H
24500 #include <inttypes.h>
24501 #endif
24502 #ifdef HAVE_STDINT_H
24503 #include <stdint.h>
24504 #endif
24505 #ifdef HAVE_ARPA_INET_H
24506 #include <arpa/inet.h>
24507 #endif
24508
24509 int
24510 main ()
24511 {
24512 char *(*pfn) = (char *(*)) $ac_func
24513   ;
24514   return 0;
24515 }
24516 _ACEOF
24517 rm -f conftest.$ac_objext
24518 if { (ac_try="$ac_compile"
24519 case "(($ac_try" in
24520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24521   *) ac_try_echo=$ac_try;;
24522 esac
24523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24524   (eval "$ac_compile") 2>conftest.er1
24525   ac_status=$?
24526   grep -v '^ *+' conftest.er1 >conftest.err
24527   rm -f conftest.er1
24528   cat conftest.err >&5
24529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530   (exit $ac_status); } && {
24531          test -z "$ac_c_werror_flag" ||
24532          test ! -s conftest.err
24533        } && test -s conftest.$ac_objext; then
24534   eval "radius_cv_decl_needed_$ac_func=no"
24535 else
24536   echo "$as_me: failed program was:" >&5
24537 sed 's/^/| /' conftest.$ac_ext >&5
24538
24539         eval "radius_cv_decl_needed_$ac_func=yes"
24540 fi
24541
24542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24543 fi
24544
24545 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
24546   { echo "$as_me:$LINENO: result: yes" >&5
24547 echo "${ECHO_T}yes" >&6; }
24548   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24549   cat >>confdefs.h <<_ACEOF
24550 #define $radius_tr_decl 1
24551 _ACEOF
24552
24553 else
24554   { echo "$as_me:$LINENO: result: no" >&5
24555 echo "${ECHO_T}no" >&6; }
24556 fi
24557
24558 done
24559
24560
24561 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24562 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24563 if test "${ac_cv_type_signal+set}" = set; then
24564   echo $ECHO_N "(cached) $ECHO_C" >&6
24565 else
24566   cat >conftest.$ac_ext <<_ACEOF
24567 /* confdefs.h.  */
24568 _ACEOF
24569 cat confdefs.h >>conftest.$ac_ext
24570 cat >>conftest.$ac_ext <<_ACEOF
24571 /* end confdefs.h.  */
24572 #include <sys/types.h>
24573 #include <signal.h>
24574
24575 int
24576 main ()
24577 {
24578 return *(signal (0, 0)) (0) == 1;
24579   ;
24580   return 0;
24581 }
24582 _ACEOF
24583 rm -f conftest.$ac_objext
24584 if { (ac_try="$ac_compile"
24585 case "(($ac_try" in
24586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24587   *) ac_try_echo=$ac_try;;
24588 esac
24589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24590   (eval "$ac_compile") 2>conftest.er1
24591   ac_status=$?
24592   grep -v '^ *+' conftest.er1 >conftest.err
24593   rm -f conftest.er1
24594   cat conftest.err >&5
24595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596   (exit $ac_status); } && {
24597          test -z "$ac_c_werror_flag" ||
24598          test ! -s conftest.err
24599        } && test -s conftest.$ac_objext; then
24600   ac_cv_type_signal=int
24601 else
24602   echo "$as_me: failed program was:" >&5
24603 sed 's/^/| /' conftest.$ac_ext >&5
24604
24605         ac_cv_type_signal=void
24606 fi
24607
24608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24609 fi
24610 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24611 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24612
24613 cat >>confdefs.h <<_ACEOF
24614 #define RETSIGTYPE $ac_cv_type_signal
24615 _ACEOF
24616
24617
24618
24619 if test "x$ac_cv_header_utmpx_h" = "xyes"
24620 then
24621
24622   { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
24623 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
24624
24625
24626   cat >conftest.$ac_ext <<_ACEOF
24627 /* confdefs.h.  */
24628 _ACEOF
24629 cat confdefs.h >>conftest.$ac_ext
24630 cat >>conftest.$ac_ext <<_ACEOF
24631 /* end confdefs.h.  */
24632
24633 #include <utmpx.h>
24634 #ifndef offsetof
24635 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24636 #endif
24637
24638 int
24639 main ()
24640 {
24641  int foo = offsetof(struct utmpx, ut_xtime)
24642   ;
24643   return 0;
24644 }
24645 _ACEOF
24646 rm -f conftest.$ac_objext
24647 if { (ac_try="$ac_compile"
24648 case "(($ac_try" in
24649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24650   *) ac_try_echo=$ac_try;;
24651 esac
24652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24653   (eval "$ac_compile") 2>conftest.er1
24654   ac_status=$?
24655   grep -v '^ *+' conftest.er1 >conftest.err
24656   rm -f conftest.er1
24657   cat conftest.err >&5
24658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659   (exit $ac_status); } && {
24660          test -z "$ac_c_werror_flag" ||
24661          test ! -s conftest.err
24662        } && test -s conftest.$ac_objext; then
24663   has_element=" "
24664 else
24665   echo "$as_me: failed program was:" >&5
24666 sed 's/^/| /' conftest.$ac_ext >&5
24667
24668         has_element=
24669 fi
24670
24671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24672
24673   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
24674   if test "x$has_element" != "x"; then
24675     { echo "$as_me:$LINENO: result: yes" >&5
24676 echo "${ECHO_T}yes" >&6; }
24677     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
24678   else
24679     { echo "$as_me:$LINENO: result: no" >&5
24680 echo "${ECHO_T}no" >&6; }
24681     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
24682  fi
24683
24684  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
24685  then
24686
24687 cat >>confdefs.h <<\_ACEOF
24688 #define ut_xtime ut_tv.tv_sec
24689 _ACEOF
24690
24691  fi
24692 fi
24693
24694
24695   { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
24696 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
24697
24698
24699   cat >conftest.$ac_ext <<_ACEOF
24700 /* confdefs.h.  */
24701 _ACEOF
24702 cat confdefs.h >>conftest.$ac_ext
24703 cat >>conftest.$ac_ext <<_ACEOF
24704 /* end confdefs.h.  */
24705
24706 #include <netinet/in.h>
24707 #ifndef offsetof
24708 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24709 #endif
24710
24711 int
24712 main ()
24713 {
24714  int foo = offsetof(struct in_pktinfo, ipi_addr)
24715   ;
24716   return 0;
24717 }
24718 _ACEOF
24719 rm -f conftest.$ac_objext
24720 if { (ac_try="$ac_compile"
24721 case "(($ac_try" in
24722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24723   *) ac_try_echo=$ac_try;;
24724 esac
24725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24726   (eval "$ac_compile") 2>conftest.er1
24727   ac_status=$?
24728   grep -v '^ *+' conftest.er1 >conftest.err
24729   rm -f conftest.er1
24730   cat conftest.err >&5
24731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732   (exit $ac_status); } && {
24733          test -z "$ac_c_werror_flag" ||
24734          test ! -s conftest.err
24735        } && test -s conftest.$ac_objext; then
24736   has_element=" "
24737 else
24738   echo "$as_me: failed program was:" >&5
24739 sed 's/^/| /' conftest.$ac_ext >&5
24740
24741         has_element=
24742 fi
24743
24744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24745
24746   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
24747   if test "x$has_element" != "x"; then
24748     { echo "$as_me:$LINENO: result: yes" >&5
24749 echo "${ECHO_T}yes" >&6; }
24750     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
24751   else
24752     { echo "$as_me:$LINENO: result: no" >&5
24753 echo "${ECHO_T}no" >&6; }
24754     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
24755  fi
24756
24757 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
24758 then
24759
24760 cat >>confdefs.h <<\_ACEOF
24761 #define HAVE_IP_PKTINFO
24762 _ACEOF
24763
24764 fi
24765
24766
24767   { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
24768 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
24769
24770
24771   cat >conftest.$ac_ext <<_ACEOF
24772 /* confdefs.h.  */
24773 _ACEOF
24774 cat confdefs.h >>conftest.$ac_ext
24775 cat >>conftest.$ac_ext <<_ACEOF
24776 /* end confdefs.h.  */
24777
24778 #include <netinet/in.h>
24779 #ifndef offsetof
24780 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24781 #endif
24782
24783 int
24784 main ()
24785 {
24786  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
24787   ;
24788   return 0;
24789 }
24790 _ACEOF
24791 rm -f conftest.$ac_objext
24792 if { (ac_try="$ac_compile"
24793 case "(($ac_try" in
24794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24795   *) ac_try_echo=$ac_try;;
24796 esac
24797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24798   (eval "$ac_compile") 2>conftest.er1
24799   ac_status=$?
24800   grep -v '^ *+' conftest.er1 >conftest.err
24801   rm -f conftest.er1
24802   cat conftest.err >&5
24803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804   (exit $ac_status); } && {
24805          test -z "$ac_c_werror_flag" ||
24806          test ! -s conftest.err
24807        } && test -s conftest.$ac_objext; then
24808   has_element=" "
24809 else
24810   echo "$as_me: failed program was:" >&5
24811 sed 's/^/| /' conftest.$ac_ext >&5
24812
24813         has_element=
24814 fi
24815
24816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24817
24818   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
24819   if test "x$has_element" != "x"; then
24820     { echo "$as_me:$LINENO: result: yes" >&5
24821 echo "${ECHO_T}yes" >&6; }
24822     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
24823   else
24824     { echo "$as_me:$LINENO: result: no" >&5
24825 echo "${ECHO_T}no" >&6; }
24826     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
24827  fi
24828
24829 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
24830 then
24831
24832 cat >>confdefs.h <<\_ACEOF
24833 #define HAVE_IN6_PKTINFO
24834 _ACEOF
24835
24836 fi
24837
24838
24839 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24840 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24841 if test "${ac_cv_c_const+set}" = set; then
24842   echo $ECHO_N "(cached) $ECHO_C" >&6
24843 else
24844   cat >conftest.$ac_ext <<_ACEOF
24845 /* confdefs.h.  */
24846 _ACEOF
24847 cat confdefs.h >>conftest.$ac_ext
24848 cat >>conftest.$ac_ext <<_ACEOF
24849 /* end confdefs.h.  */
24850
24851 int
24852 main ()
24853 {
24854 /* FIXME: Include the comments suggested by Paul. */
24855 #ifndef __cplusplus
24856   /* Ultrix mips cc rejects this.  */
24857   typedef int charset[2];
24858   const charset cs;
24859   /* SunOS 4.1.1 cc rejects this.  */
24860   char const *const *pcpcc;
24861   char **ppc;
24862   /* NEC SVR4.0.2 mips cc rejects this.  */
24863   struct point {int x, y;};
24864   static struct point const zero = {0,0};
24865   /* AIX XL C 1.02.0.0 rejects this.
24866      It does not let you subtract one const X* pointer from another in
24867      an arm of an if-expression whose if-part is not a constant
24868      expression */
24869   const char *g = "string";
24870   pcpcc = &g + (g ? g-g : 0);
24871   /* HPUX 7.0 cc rejects these. */
24872   ++pcpcc;
24873   ppc = (char**) pcpcc;
24874   pcpcc = (char const *const *) ppc;
24875   { /* SCO 3.2v4 cc rejects this.  */
24876     char *t;
24877     char const *s = 0 ? (char *) 0 : (char const *) 0;
24878
24879     *t++ = 0;
24880     if (s) return 0;
24881   }
24882   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24883     int x[] = {25, 17};
24884     const int *foo = &x[0];
24885     ++foo;
24886   }
24887   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24888     typedef const int *iptr;
24889     iptr p = 0;
24890     ++p;
24891   }
24892   { /* AIX XL C 1.02.0.0 rejects this saying
24893        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24894     struct s { int j; const int *ap[3]; };
24895     struct s *b; b->j = 5;
24896   }
24897   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24898     const int foo = 10;
24899     if (!foo) return 0;
24900   }
24901   return !cs[0] && !zero.x;
24902 #endif
24903
24904   ;
24905   return 0;
24906 }
24907 _ACEOF
24908 rm -f conftest.$ac_objext
24909 if { (ac_try="$ac_compile"
24910 case "(($ac_try" in
24911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24912   *) ac_try_echo=$ac_try;;
24913 esac
24914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24915   (eval "$ac_compile") 2>conftest.er1
24916   ac_status=$?
24917   grep -v '^ *+' conftest.er1 >conftest.err
24918   rm -f conftest.er1
24919   cat conftest.err >&5
24920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921   (exit $ac_status); } && {
24922          test -z "$ac_c_werror_flag" ||
24923          test ! -s conftest.err
24924        } && test -s conftest.$ac_objext; then
24925   ac_cv_c_const=yes
24926 else
24927   echo "$as_me: failed program was:" >&5
24928 sed 's/^/| /' conftest.$ac_ext >&5
24929
24930         ac_cv_c_const=no
24931 fi
24932
24933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24934 fi
24935 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24936 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24937 if test $ac_cv_c_const = no; then
24938
24939 cat >>confdefs.h <<\_ACEOF
24940 #define const
24941 _ACEOF
24942
24943 fi
24944
24945
24946 { echo "$as_me:$LINENO: checking type of OS" >&5
24947 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
24948 OS=`uname -s`
24949 { echo "$as_me:$LINENO: result: $OS" >&5
24950 echo "${ECHO_T}$OS" >&6; }
24951 if test "$OS" = "OS/2"; then
24952         LIBPREFIX=
24953 else
24954         LIBPREFIX=lib
24955 fi
24956
24957
24958 if test "x$GCC" = "xyes"; then
24959     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
24960 fi
24961
24962 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
24963 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
24964 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
24965   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
24966   CFLAGS="$CFLAGS $devflags"
24967   INSTALLSTRIP=""
24968   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
24969 echo "${ECHO_T}yes.  Using $devflags" >&6; }
24970 else
24971   devflags=""
24972   CFLAGS="$CFLAGS -DNDEBUG"
24973   INSTALLSTRIP=""
24974   { echo "$as_me:$LINENO: result: no." >&5
24975 echo "${ECHO_T}no." >&6; }
24976 fi
24977
24978
24979     { echo "$as_me:$LINENO: checking for TLS" >&5
24980 echo $ECHO_N "checking for TLS... $ECHO_C" >&6; }
24981     if test "$cross_compiling" = yes; then
24982   have_tls=no
24983 else
24984   cat >conftest.$ac_ext <<_ACEOF
24985 /* confdefs.h.  */
24986 _ACEOF
24987 cat confdefs.h >>conftest.$ac_ext
24988 cat >>conftest.$ac_ext <<_ACEOF
24989 /* end confdefs.h.  */
24990  static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
24991 _ACEOF
24992 rm -f conftest$ac_exeext
24993 if { (ac_try="$ac_link"
24994 case "(($ac_try" in
24995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996   *) ac_try_echo=$ac_try;;
24997 esac
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999   (eval "$ac_link") 2>&5
25000   ac_status=$?
25001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25003   { (case "(($ac_try" in
25004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25005   *) ac_try_echo=$ac_try;;
25006 esac
25007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25008   (eval "$ac_try") 2>&5
25009   ac_status=$?
25010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011   (exit $ac_status); }; }; then
25012   have_tls=yes
25013 else
25014   echo "$as_me: program exited with status $ac_status" >&5
25015 echo "$as_me: failed program was:" >&5
25016 sed 's/^/| /' conftest.$ac_ext >&5
25017
25018 ( exit $ac_status )
25019 have_tls=no
25020 fi
25021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25022 fi
25023
25024
25025     { echo "$as_me:$LINENO: result: $have_tls" >&5
25026 echo "${ECHO_T}$have_tls" >&6; }
25027     if test "$have_tls" = "yes"; then
25028
25029 cat >>confdefs.h <<\_ACEOF
25030 #define HAVE_THREAD_TLS 1
25031 _ACEOF
25032
25033     fi
25034
25035
25036
25037 old_LIBS="$LIBS"
25038 LIBS="$LIBS $LIBLTDL"
25039 { echo "$as_me:$LINENO: checking for lt_dladvise_init" >&5
25040 echo $ECHO_N "checking for lt_dladvise_init... $ECHO_C" >&6; }
25041 if test "${ac_cv_func_lt_dladvise_init+set}" = set; then
25042   echo $ECHO_N "(cached) $ECHO_C" >&6
25043 else
25044   cat >conftest.$ac_ext <<_ACEOF
25045 /* confdefs.h.  */
25046 _ACEOF
25047 cat confdefs.h >>conftest.$ac_ext
25048 cat >>conftest.$ac_ext <<_ACEOF
25049 /* end confdefs.h.  */
25050 /* Define lt_dladvise_init to an innocuous variant, in case <limits.h> declares lt_dladvise_init.
25051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25052 #define lt_dladvise_init innocuous_lt_dladvise_init
25053
25054 /* System header to define __stub macros and hopefully few prototypes,
25055     which can conflict with char lt_dladvise_init (); below.
25056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25057     <limits.h> exists even on freestanding compilers.  */
25058
25059 #ifdef __STDC__
25060 # include <limits.h>
25061 #else
25062 # include <assert.h>
25063 #endif
25064
25065 #undef lt_dladvise_init
25066
25067 /* Override any GCC internal prototype to avoid an error.
25068    Use char because int might match the return type of a GCC
25069    builtin and then its argument prototype would still apply.  */
25070 #ifdef __cplusplus
25071 extern "C"
25072 #endif
25073 char lt_dladvise_init ();
25074 /* The GNU C library defines this for functions which it implements
25075     to always fail with ENOSYS.  Some functions are actually named
25076     something starting with __ and the normal name is an alias.  */
25077 #if defined __stub_lt_dladvise_init || defined __stub___lt_dladvise_init
25078 choke me
25079 #endif
25080
25081 int
25082 main ()
25083 {
25084 return lt_dladvise_init ();
25085   ;
25086   return 0;
25087 }
25088 _ACEOF
25089 rm -f conftest.$ac_objext conftest$ac_exeext
25090 if { (ac_try="$ac_link"
25091 case "(($ac_try" in
25092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25093   *) ac_try_echo=$ac_try;;
25094 esac
25095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25096   (eval "$ac_link") 2>conftest.er1
25097   ac_status=$?
25098   grep -v '^ *+' conftest.er1 >conftest.err
25099   rm -f conftest.er1
25100   cat conftest.err >&5
25101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102   (exit $ac_status); } && {
25103          test -z "$ac_c_werror_flag" ||
25104          test ! -s conftest.err
25105        } && test -s conftest$ac_exeext &&
25106        $as_test_x conftest$ac_exeext; then
25107   ac_cv_func_lt_dladvise_init=yes
25108 else
25109   echo "$as_me: failed program was:" >&5
25110 sed 's/^/| /' conftest.$ac_ext >&5
25111
25112         ac_cv_func_lt_dladvise_init=no
25113 fi
25114
25115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25116       conftest$ac_exeext conftest.$ac_ext
25117 fi
25118 { echo "$as_me:$LINENO: result: $ac_cv_func_lt_dladvise_init" >&5
25119 echo "${ECHO_T}$ac_cv_func_lt_dladvise_init" >&6; }
25120 if test $ac_cv_func_lt_dladvise_init = yes; then
25121
25122 cat >>confdefs.h <<\_ACEOF
25123 #define HAVE_HAVE_LT_DLADVISE_INIT
25124 _ACEOF
25125
25126 fi
25127
25128 LIBS="$old_LIBS"
25129
25130 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
25131 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
25132 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
25133   echo $ECHO_N "(cached) $ECHO_C" >&6
25134 else
25135   ac_check_lib_save_LIBS=$LIBS
25136 LIBS="-lcrypt  $LIBS"
25137 cat >conftest.$ac_ext <<_ACEOF
25138 /* confdefs.h.  */
25139 _ACEOF
25140 cat confdefs.h >>conftest.$ac_ext
25141 cat >>conftest.$ac_ext <<_ACEOF
25142 /* end confdefs.h.  */
25143
25144 /* Override any GCC internal prototype to avoid an error.
25145    Use char because int might match the return type of a GCC
25146    builtin and then its argument prototype would still apply.  */
25147 #ifdef __cplusplus
25148 extern "C"
25149 #endif
25150 char crypt ();
25151 int
25152 main ()
25153 {
25154 return crypt ();
25155   ;
25156   return 0;
25157 }
25158 _ACEOF
25159 rm -f conftest.$ac_objext conftest$ac_exeext
25160 if { (ac_try="$ac_link"
25161 case "(($ac_try" in
25162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25163   *) ac_try_echo=$ac_try;;
25164 esac
25165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25166   (eval "$ac_link") 2>conftest.er1
25167   ac_status=$?
25168   grep -v '^ *+' conftest.er1 >conftest.err
25169   rm -f conftest.er1
25170   cat conftest.err >&5
25171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172   (exit $ac_status); } && {
25173          test -z "$ac_c_werror_flag" ||
25174          test ! -s conftest.err
25175        } && test -s conftest$ac_exeext &&
25176        $as_test_x conftest$ac_exeext; then
25177   ac_cv_lib_crypt_crypt=yes
25178 else
25179   echo "$as_me: failed program was:" >&5
25180 sed 's/^/| /' conftest.$ac_ext >&5
25181
25182         ac_cv_lib_crypt_crypt=no
25183 fi
25184
25185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25186       conftest$ac_exeext conftest.$ac_ext
25187 LIBS=$ac_check_lib_save_LIBS
25188 fi
25189 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
25190 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
25191 if test $ac_cv_lib_crypt_crypt = yes; then
25192   CRYPTLIB="-lcrypt"
25193
25194 fi
25195
25196 if test "$CRYPTLIB" != ""; then
25197
25198 cat >>confdefs.h <<\_ACEOF
25199 #define HAVE_CRYPT
25200 _ACEOF
25201
25202 else
25203   { echo "$as_me:$LINENO: checking for crypt" >&5
25204 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
25205 if test "${ac_cv_func_crypt+set}" = set; then
25206   echo $ECHO_N "(cached) $ECHO_C" >&6
25207 else
25208   cat >conftest.$ac_ext <<_ACEOF
25209 /* confdefs.h.  */
25210 _ACEOF
25211 cat confdefs.h >>conftest.$ac_ext
25212 cat >>conftest.$ac_ext <<_ACEOF
25213 /* end confdefs.h.  */
25214 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
25215    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25216 #define crypt innocuous_crypt
25217
25218 /* System header to define __stub macros and hopefully few prototypes,
25219     which can conflict with char crypt (); below.
25220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25221     <limits.h> exists even on freestanding compilers.  */
25222
25223 #ifdef __STDC__
25224 # include <limits.h>
25225 #else
25226 # include <assert.h>
25227 #endif
25228
25229 #undef crypt
25230
25231 /* Override any GCC internal prototype to avoid an error.
25232    Use char because int might match the return type of a GCC
25233    builtin and then its argument prototype would still apply.  */
25234 #ifdef __cplusplus
25235 extern "C"
25236 #endif
25237 char crypt ();
25238 /* The GNU C library defines this for functions which it implements
25239     to always fail with ENOSYS.  Some functions are actually named
25240     something starting with __ and the normal name is an alias.  */
25241 #if defined __stub_crypt || defined __stub___crypt
25242 choke me
25243 #endif
25244
25245 int
25246 main ()
25247 {
25248 return crypt ();
25249   ;
25250   return 0;
25251 }
25252 _ACEOF
25253 rm -f conftest.$ac_objext conftest$ac_exeext
25254 if { (ac_try="$ac_link"
25255 case "(($ac_try" in
25256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25257   *) ac_try_echo=$ac_try;;
25258 esac
25259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25260   (eval "$ac_link") 2>conftest.er1
25261   ac_status=$?
25262   grep -v '^ *+' conftest.er1 >conftest.err
25263   rm -f conftest.er1
25264   cat conftest.err >&5
25265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266   (exit $ac_status); } && {
25267          test -z "$ac_c_werror_flag" ||
25268          test ! -s conftest.err
25269        } && test -s conftest$ac_exeext &&
25270        $as_test_x conftest$ac_exeext; then
25271   ac_cv_func_crypt=yes
25272 else
25273   echo "$as_me: failed program was:" >&5
25274 sed 's/^/| /' conftest.$ac_ext >&5
25275
25276         ac_cv_func_crypt=no
25277 fi
25278
25279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25280       conftest$ac_exeext conftest.$ac_ext
25281 fi
25282 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
25283 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
25284 if test $ac_cv_func_crypt = yes; then
25285
25286 cat >>confdefs.h <<\_ACEOF
25287 #define HAVE_CRYPT
25288 _ACEOF
25289
25290 fi
25291
25292 fi
25293
25294 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
25295 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
25296 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
25297   echo $ECHO_N "(cached) $ECHO_C" >&6
25298 else
25299   ac_check_lib_save_LIBS=$LIBS
25300 LIBS="-lcipher  $LIBS"
25301 cat >conftest.$ac_ext <<_ACEOF
25302 /* confdefs.h.  */
25303 _ACEOF
25304 cat confdefs.h >>conftest.$ac_ext
25305 cat >>conftest.$ac_ext <<_ACEOF
25306 /* end confdefs.h.  */
25307
25308 /* Override any GCC internal prototype to avoid an error.
25309    Use char because int might match the return type of a GCC
25310    builtin and then its argument prototype would still apply.  */
25311 #ifdef __cplusplus
25312 extern "C"
25313 #endif
25314 char setkey ();
25315 int
25316 main ()
25317 {
25318 return setkey ();
25319   ;
25320   return 0;
25321 }
25322 _ACEOF
25323 rm -f conftest.$ac_objext conftest$ac_exeext
25324 if { (ac_try="$ac_link"
25325 case "(($ac_try" in
25326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25327   *) ac_try_echo=$ac_try;;
25328 esac
25329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25330   (eval "$ac_link") 2>conftest.er1
25331   ac_status=$?
25332   grep -v '^ *+' conftest.er1 >conftest.err
25333   rm -f conftest.er1
25334   cat conftest.err >&5
25335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336   (exit $ac_status); } && {
25337          test -z "$ac_c_werror_flag" ||
25338          test ! -s conftest.err
25339        } && test -s conftest$ac_exeext &&
25340        $as_test_x conftest$ac_exeext; then
25341   ac_cv_lib_cipher_setkey=yes
25342 else
25343   echo "$as_me: failed program was:" >&5
25344 sed 's/^/| /' conftest.$ac_ext >&5
25345
25346         ac_cv_lib_cipher_setkey=no
25347 fi
25348
25349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25350       conftest$ac_exeext conftest.$ac_ext
25351 LIBS=$ac_check_lib_save_LIBS
25352 fi
25353 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
25354 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
25355 if test $ac_cv_lib_cipher_setkey = yes; then
25356   CRYPTLIB="${CRYPTLIB} -lcipher"
25357
25358 fi
25359
25360
25361
25362
25363 cat >>confdefs.h <<\_ACEOF
25364 #define GNUSTYLE 1
25365 _ACEOF
25366
25367
25368 cat >>confdefs.h <<\_ACEOF
25369 #define SYSVSTYLE 2
25370 _ACEOF
25371
25372
25373 cat >>confdefs.h <<\_ACEOF
25374 #define BSDSTYLE 3
25375 _ACEOF
25376
25377 gethostbyaddrrstyle=""
25378 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
25379 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
25380 case "$host" in
25381 *-freebsd*)
25382         { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
25383 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
25384 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
25385   echo $ECHO_N "(cached) $ECHO_C" >&6
25386 else
25387   cat >conftest.$ac_ext <<_ACEOF
25388 /* confdefs.h.  */
25389 _ACEOF
25390 cat confdefs.h >>conftest.$ac_ext
25391 cat >>conftest.$ac_ext <<_ACEOF
25392 /* end confdefs.h.  */
25393
25394 #ifdef HAVE_NETDB_H
25395 #include <netdb.h>
25396 #endif
25397
25398
25399 int
25400 main ()
25401 {
25402 #ifndef gethostbyaddr_r
25403   (void) gethostbyaddr_r;
25404 #endif
25405
25406   ;
25407   return 0;
25408 }
25409 _ACEOF
25410 rm -f conftest.$ac_objext
25411 if { (ac_try="$ac_compile"
25412 case "(($ac_try" in
25413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25414   *) ac_try_echo=$ac_try;;
25415 esac
25416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25417   (eval "$ac_compile") 2>conftest.er1
25418   ac_status=$?
25419   grep -v '^ *+' conftest.er1 >conftest.err
25420   rm -f conftest.er1
25421   cat conftest.err >&5
25422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423   (exit $ac_status); } && {
25424          test -z "$ac_c_werror_flag" ||
25425          test ! -s conftest.err
25426        } && test -s conftest.$ac_objext; then
25427   ac_cv_have_decl_gethostbyaddr_r=yes
25428 else
25429   echo "$as_me: failed program was:" >&5
25430 sed 's/^/| /' conftest.$ac_ext >&5
25431
25432         ac_cv_have_decl_gethostbyaddr_r=no
25433 fi
25434
25435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25436 fi
25437 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
25438 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
25439 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
25440
25441 cat >>confdefs.h <<_ACEOF
25442 #define HAVE_DECL_GETHOSTBYADDR_R 1
25443 _ACEOF
25444
25445
25446 else
25447   cat >>confdefs.h <<_ACEOF
25448 #define HAVE_DECL_GETHOSTBYADDR_R 0
25449 _ACEOF
25450
25451
25452
25453 cat >>confdefs.h <<\_ACEOF
25454 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25455 _ACEOF
25456
25457                 gethostbyaddrrstyle=BSD
25458                 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
25459 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
25460
25461 fi
25462
25463
25464         ;;
25465 esac
25466 if test "x$gethostbyaddrrstyle" = "x"; then
25467         cat >conftest.$ac_ext <<_ACEOF
25468 /* confdefs.h.  */
25469 _ACEOF
25470 cat confdefs.h >>conftest.$ac_ext
25471 cat >>conftest.$ac_ext <<_ACEOF
25472 /* end confdefs.h.  */
25473
25474 #include <stdio.h>
25475 #include <netdb.h>
25476
25477 int
25478 main ()
25479 {
25480  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
25481   ;
25482   return 0;
25483 }
25484 _ACEOF
25485 rm -f conftest.$ac_objext conftest$ac_exeext
25486 if { (ac_try="$ac_link"
25487 case "(($ac_try" in
25488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25489   *) ac_try_echo=$ac_try;;
25490 esac
25491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25492   (eval "$ac_link") 2>conftest.er1
25493   ac_status=$?
25494   grep -v '^ *+' conftest.er1 >conftest.err
25495   rm -f conftest.er1
25496   cat conftest.err >&5
25497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498   (exit $ac_status); } && {
25499          test -z "$ac_c_werror_flag" ||
25500          test ! -s conftest.err
25501        } && test -s conftest$ac_exeext &&
25502        $as_test_x conftest$ac_exeext; then
25503
25504
25505 cat >>confdefs.h <<\_ACEOF
25506 #define GETHOSTBYADDRRSTYLE GNUSTYLE
25507 _ACEOF
25508
25509         gethostbyaddrrstyle=GNU
25510
25511 else
25512   echo "$as_me: failed program was:" >&5
25513 sed 's/^/| /' conftest.$ac_ext >&5
25514
25515
25516 fi
25517
25518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25519       conftest$ac_exeext conftest.$ac_ext
25520 fi
25521 if test "x$gethostbyaddrrstyle" = "x"; then
25522         cat >conftest.$ac_ext <<_ACEOF
25523 /* confdefs.h.  */
25524 _ACEOF
25525 cat confdefs.h >>conftest.$ac_ext
25526 cat >>conftest.$ac_ext <<_ACEOF
25527 /* end confdefs.h.  */
25528
25529 #include <stdio.h>
25530 #include <netdb.h>
25531
25532 int
25533 main ()
25534 {
25535  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
25536   ;
25537   return 0;
25538 }
25539 _ACEOF
25540 rm -f conftest.$ac_objext conftest$ac_exeext
25541 if { (ac_try="$ac_link"
25542 case "(($ac_try" in
25543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25544   *) ac_try_echo=$ac_try;;
25545 esac
25546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25547   (eval "$ac_link") 2>conftest.er1
25548   ac_status=$?
25549   grep -v '^ *+' conftest.er1 >conftest.err
25550   rm -f conftest.er1
25551   cat conftest.err >&5
25552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553   (exit $ac_status); } && {
25554          test -z "$ac_c_werror_flag" ||
25555          test ! -s conftest.err
25556        } && test -s conftest$ac_exeext &&
25557        $as_test_x conftest$ac_exeext; then
25558
25559
25560 cat >>confdefs.h <<\_ACEOF
25561 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
25562 _ACEOF
25563
25564                 gethostbyaddrrstyle=SYSV
25565
25566 else
25567   echo "$as_me: failed program was:" >&5
25568 sed 's/^/| /' conftest.$ac_ext >&5
25569
25570
25571 fi
25572
25573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25574       conftest$ac_exeext conftest.$ac_ext
25575 fi
25576 if test "x$gethostbyaddrrstyle" = "x"; then
25577         cat >conftest.$ac_ext <<_ACEOF
25578 /* confdefs.h.  */
25579 _ACEOF
25580 cat confdefs.h >>conftest.$ac_ext
25581 cat >>conftest.$ac_ext <<_ACEOF
25582 /* end confdefs.h.  */
25583
25584 #include <stdio.h>
25585 #include <netdb.h>
25586
25587 int
25588 main ()
25589 {
25590  gethostbyaddr(NULL, 0, 0)
25591   ;
25592   return 0;
25593 }
25594 _ACEOF
25595 rm -f conftest.$ac_objext conftest$ac_exeext
25596 if { (ac_try="$ac_link"
25597 case "(($ac_try" in
25598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25599   *) ac_try_echo=$ac_try;;
25600 esac
25601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25602   (eval "$ac_link") 2>conftest.er1
25603   ac_status=$?
25604   grep -v '^ *+' conftest.er1 >conftest.err
25605   rm -f conftest.er1
25606   cat conftest.err >&5
25607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608   (exit $ac_status); } && {
25609          test -z "$ac_c_werror_flag" ||
25610          test ! -s conftest.err
25611        } && test -s conftest$ac_exeext &&
25612        $as_test_x conftest$ac_exeext; then
25613
25614
25615 cat >>confdefs.h <<\_ACEOF
25616 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25617 _ACEOF
25618
25619                 gethostbyaddrrstyle=BSD
25620
25621 else
25622   echo "$as_me: failed program was:" >&5
25623 sed 's/^/| /' conftest.$ac_ext >&5
25624
25625
25626 fi
25627
25628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25629       conftest$ac_exeext conftest.$ac_ext
25630 fi
25631
25632 if test "x$gethostbyaddrrstyle" = "x"; then
25633         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25634 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25635 else
25636         { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
25637 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
25638 fi
25639
25640 if test "x$gethostbyaddrrstyle" = "xBSD"; then
25641         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
25642 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
25643 fi
25644
25645 gethostbynamerstyle=""
25646 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
25647 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
25648 cat >conftest.$ac_ext <<_ACEOF
25649 /* confdefs.h.  */
25650 _ACEOF
25651 cat confdefs.h >>conftest.$ac_ext
25652 cat >>conftest.$ac_ext <<_ACEOF
25653 /* end confdefs.h.  */
25654
25655 #include <stdio.h>
25656 #include <netdb.h>
25657
25658 int
25659 main ()
25660 {
25661  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
25662   ;
25663   return 0;
25664 }
25665 _ACEOF
25666 rm -f conftest.$ac_objext conftest$ac_exeext
25667 if { (ac_try="$ac_link"
25668 case "(($ac_try" in
25669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25670   *) ac_try_echo=$ac_try;;
25671 esac
25672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25673   (eval "$ac_link") 2>conftest.er1
25674   ac_status=$?
25675   grep -v '^ *+' conftest.er1 >conftest.err
25676   rm -f conftest.er1
25677   cat conftest.err >&5
25678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679   (exit $ac_status); } && {
25680          test -z "$ac_c_werror_flag" ||
25681          test ! -s conftest.err
25682        } && test -s conftest$ac_exeext &&
25683        $as_test_x conftest$ac_exeext; then
25684
25685
25686 cat >>confdefs.h <<\_ACEOF
25687 #define GETHOSTBYNAMERSTYLE GNUSTYLE
25688 _ACEOF
25689
25690         gethostbynamerstyle=GNU
25691
25692 else
25693   echo "$as_me: failed program was:" >&5
25694 sed 's/^/| /' conftest.$ac_ext >&5
25695
25696
25697 fi
25698
25699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25700       conftest$ac_exeext conftest.$ac_ext
25701 if test "x$gethostbynamerstyle" = "x"; then
25702         cat >conftest.$ac_ext <<_ACEOF
25703 /* confdefs.h.  */
25704 _ACEOF
25705 cat confdefs.h >>conftest.$ac_ext
25706 cat >>conftest.$ac_ext <<_ACEOF
25707 /* end confdefs.h.  */
25708
25709 #include <stdio.h>
25710 #include <netdb.h>
25711
25712 int
25713 main ()
25714 {
25715  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25716   ;
25717   return 0;
25718 }
25719 _ACEOF
25720 rm -f conftest.$ac_objext conftest$ac_exeext
25721 if { (ac_try="$ac_link"
25722 case "(($ac_try" in
25723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25724   *) ac_try_echo=$ac_try;;
25725 esac
25726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25727   (eval "$ac_link") 2>conftest.er1
25728   ac_status=$?
25729   grep -v '^ *+' conftest.er1 >conftest.err
25730   rm -f conftest.er1
25731   cat conftest.err >&5
25732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25733   (exit $ac_status); } && {
25734          test -z "$ac_c_werror_flag" ||
25735          test ! -s conftest.err
25736        } && test -s conftest$ac_exeext &&
25737        $as_test_x conftest$ac_exeext; then
25738
25739
25740 cat >>confdefs.h <<\_ACEOF
25741 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25742 _ACEOF
25743
25744                 gethostbynamerstyle=SYSV
25745
25746 else
25747   echo "$as_me: failed program was:" >&5
25748 sed 's/^/| /' conftest.$ac_ext >&5
25749
25750
25751 fi
25752
25753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25754       conftest$ac_exeext conftest.$ac_ext
25755 fi
25756 if test "x$gethostbynamerstyle" = "x"; then
25757         cat >conftest.$ac_ext <<_ACEOF
25758 /* confdefs.h.  */
25759 _ACEOF
25760 cat confdefs.h >>conftest.$ac_ext
25761 cat >>conftest.$ac_ext <<_ACEOF
25762 /* end confdefs.h.  */
25763
25764 #include <stdio.h>
25765 #include <netdb.h>
25766
25767 int
25768 main ()
25769 {
25770  gethostbyname(NULL)
25771   ;
25772   return 0;
25773 }
25774 _ACEOF
25775 rm -f conftest.$ac_objext conftest$ac_exeext
25776 if { (ac_try="$ac_link"
25777 case "(($ac_try" in
25778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25779   *) ac_try_echo=$ac_try;;
25780 esac
25781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25782   (eval "$ac_link") 2>conftest.er1
25783   ac_status=$?
25784   grep -v '^ *+' conftest.er1 >conftest.err
25785   rm -f conftest.er1
25786   cat conftest.err >&5
25787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788   (exit $ac_status); } && {
25789          test -z "$ac_c_werror_flag" ||
25790          test ! -s conftest.err
25791        } && test -s conftest$ac_exeext &&
25792        $as_test_x conftest$ac_exeext; then
25793
25794
25795 cat >>confdefs.h <<\_ACEOF
25796 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25797 _ACEOF
25798
25799                 gethostbynamerstyle=BSD
25800
25801 else
25802   echo "$as_me: failed program was:" >&5
25803 sed 's/^/| /' conftest.$ac_ext >&5
25804
25805
25806 fi
25807
25808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25809       conftest$ac_exeext conftest.$ac_ext
25810 fi
25811
25812 if test "x$gethostbynamerstyle" = "x"; then
25813         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25814 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25815 else
25816         { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25817 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25818 fi
25819
25820 if test "x$gethostbynamerstyle" = "xBSD"; then
25821         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25822 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25823 fi
25824
25825
25826 cat >>confdefs.h <<\_ACEOF
25827 #define POSIXSTYLE 1
25828 _ACEOF
25829
25830
25831 cat >>confdefs.h <<\_ACEOF
25832 #define SOLARISSTYLE 2
25833 _ACEOF
25834
25835 ctimerstyle=""
25836 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25837 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
25838 cat >conftest.$ac_ext <<_ACEOF
25839 /* confdefs.h.  */
25840 _ACEOF
25841 cat confdefs.h >>conftest.$ac_ext
25842 cat >>conftest.$ac_ext <<_ACEOF
25843 /* end confdefs.h.  */
25844
25845 #include <time.h>
25846
25847 int
25848 main ()
25849 {
25850  ctime_r(NULL, NULL, 0)
25851   ;
25852   return 0;
25853 }
25854 _ACEOF
25855 rm -f conftest.$ac_objext conftest$ac_exeext
25856 if { (ac_try="$ac_link"
25857 case "(($ac_try" in
25858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25859   *) ac_try_echo=$ac_try;;
25860 esac
25861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25862   (eval "$ac_link") 2>conftest.er1
25863   ac_status=$?
25864   grep -v '^ *+' conftest.er1 >conftest.err
25865   rm -f conftest.er1
25866   cat conftest.err >&5
25867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868   (exit $ac_status); } && {
25869          test -z "$ac_c_werror_flag" ||
25870          test ! -s conftest.err
25871        } && test -s conftest$ac_exeext &&
25872        $as_test_x conftest$ac_exeext; then
25873
25874
25875 cat >>confdefs.h <<\_ACEOF
25876 #define CTIMERSTYLE SOLARISSTYLE
25877 _ACEOF
25878
25879         ctimerstyle="SOLARIS"
25880
25881 else
25882   echo "$as_me: failed program was:" >&5
25883 sed 's/^/| /' conftest.$ac_ext >&5
25884
25885
25886 fi
25887
25888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25889       conftest$ac_exeext conftest.$ac_ext
25890 if test "x$ctimerstyle" = "x"; then
25891         cat >conftest.$ac_ext <<_ACEOF
25892 /* confdefs.h.  */
25893 _ACEOF
25894 cat confdefs.h >>conftest.$ac_ext
25895 cat >>conftest.$ac_ext <<_ACEOF
25896 /* end confdefs.h.  */
25897
25898 #include <time.h>
25899
25900 int
25901 main ()
25902 {
25903  ctime_r(NULL, NULL)
25904   ;
25905   return 0;
25906 }
25907 _ACEOF
25908 rm -f conftest.$ac_objext conftest$ac_exeext
25909 if { (ac_try="$ac_link"
25910 case "(($ac_try" in
25911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25912   *) ac_try_echo=$ac_try;;
25913 esac
25914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25915   (eval "$ac_link") 2>conftest.er1
25916   ac_status=$?
25917   grep -v '^ *+' conftest.er1 >conftest.err
25918   rm -f conftest.er1
25919   cat conftest.err >&5
25920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921   (exit $ac_status); } && {
25922          test -z "$ac_c_werror_flag" ||
25923          test ! -s conftest.err
25924        } && test -s conftest$ac_exeext &&
25925        $as_test_x conftest$ac_exeext; then
25926
25927
25928 cat >>confdefs.h <<\_ACEOF
25929 #define CTIMERSTYLE POSIXSTYLE
25930 _ACEOF
25931
25932                 ctimerstyle="POSIX"
25933
25934 else
25935   echo "$as_me: failed program was:" >&5
25936 sed 's/^/| /' conftest.$ac_ext >&5
25937
25938
25939 fi
25940
25941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25942       conftest$ac_exeext conftest.$ac_ext
25943 fi
25944
25945 if test "x$ctimerstyle" = "x"; then
25946         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25947 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25948 else
25949         { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25950 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
25951 fi
25952
25953 HOSTINFO=$host
25954
25955
25956
25957 top_builddir=`pwd`
25958 export top_builddir
25959 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25960 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
25961
25962
25963
25964
25965
25966 mysubdirs="$LIBLTDLPATH"
25967 if test "x$EXPERIMENTAL" = "xyes"; then
25968   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
25969     mysubdirs=`echo $mysubdirs $bar`
25970 else
25971         for bar in `cat "${srcdir}"/src/modules/stable`; do
25972     if test -f "${srcdir}"/src/modules/$bar/configure; then
25973       mysubdirs="$mysubdirs src/modules/$bar"
25974     fi
25975   done
25976 fi
25977
25978 if test "x$EXPERIMENTAL" = "xyes"; then
25979   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
25980     MODULES="$MODULES $foo"
25981   done
25982 else
25983             for foo in `cat "${srcdir}"/src/modules/stable`; do
25984     MODULES="$MODULES $foo"
25985    done
25986 fi
25987
25988 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
25989
25990
25991
25992
25993 ac_config_commands="$ac_config_commands stamp-h"
25994
25995 ac_config_commands="$ac_config_commands build-radpaths-h"
25996
25997 ac_config_commands="$ac_config_commands main-chmod"
25998
25999 ac_config_commands="$ac_config_commands scripts-chmod"
26000
26001
26002
26003
26004
26005 USE_SHARED_LIBS=$enable_shared
26006
26007 USE_STATIC_LIBS=$enable_static
26008
26009
26010
26011
26012
26013
26014
26015   unset ac_cv_env_LIBS_set
26016   unset ac_cv_env_LIBS_value
26017
26018   ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
26019
26020 cat >confcache <<\_ACEOF
26021 # This file is a shell script that caches the results of configure
26022 # tests run on this system so they can be shared between configure
26023 # scripts and configure runs, see configure's option --config-cache.
26024 # It is not useful on other systems.  If it contains results you don't
26025 # want to keep, you may remove or edit it.
26026 #
26027 # config.status only pays attention to the cache file if you give it
26028 # the --recheck option to rerun configure.
26029 #
26030 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26031 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26032 # following values.
26033
26034 _ACEOF
26035
26036 # The following way of writing the cache mishandles newlines in values,
26037 # but we know of no workaround that is simple, portable, and efficient.
26038 # So, we kill variables containing newlines.
26039 # Ultrix sh set writes to stderr and can't be redirected directly,
26040 # and sets the high bit in the cache file unless we assign to the vars.
26041 (
26042   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26043     eval ac_val=\$$ac_var
26044     case $ac_val in #(
26045     *${as_nl}*)
26046       case $ac_var in #(
26047       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26048 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26049       esac
26050       case $ac_var in #(
26051       _ | IFS | as_nl) ;; #(
26052       *) $as_unset $ac_var ;;
26053       esac ;;
26054     esac
26055   done
26056
26057   (set) 2>&1 |
26058     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26059     *${as_nl}ac_space=\ *)
26060       # `set' does not quote correctly, so add quotes (double-quote
26061       # substitution turns \\\\ into \\, and sed turns \\ into \).
26062       sed -n \
26063         "s/'/'\\\\''/g;
26064           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26065       ;; #(
26066     *)
26067       # `set' quotes correctly as required by POSIX, so do not add quotes.
26068       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26069       ;;
26070     esac |
26071     sort
26072 ) |
26073   sed '
26074      /^ac_cv_env_/b end
26075      t clear
26076      :clear
26077      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26078      t end
26079      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26080      :end' >>confcache
26081 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26082   if test -w "$cache_file"; then
26083     test "x$cache_file" != "x/dev/null" &&
26084       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26085 echo "$as_me: updating cache $cache_file" >&6;}
26086     cat confcache >$cache_file
26087   else
26088     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26089 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26090   fi
26091 fi
26092 rm -f confcache
26093
26094 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26095 # Let make expand exec_prefix.
26096 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26097
26098 DEFS=-DHAVE_CONFIG_H
26099
26100 ac_libobjs=
26101 ac_ltlibobjs=
26102 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26103   # 1. Remove the extension, and $U if already installed.
26104   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26105   ac_i=`echo "$ac_i" | sed "$ac_script"`
26106   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26107   #    will be set to the directory where LIBOBJS objects are built.
26108   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26109   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26110 done
26111 LIBOBJS=$ac_libobjs
26112
26113 LTLIBOBJS=$ac_ltlibobjs
26114
26115
26116
26117 : ${CONFIG_STATUS=./config.status}
26118 ac_clean_files_save=$ac_clean_files
26119 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26120 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26121 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26122 cat >$CONFIG_STATUS <<_ACEOF
26123 #! $SHELL
26124 # Generated by $as_me.
26125 # Run this file to recreate the current configuration.
26126 # Compiler output produced by configure, useful for debugging
26127 # configure, is in config.log if it exists.
26128
26129 debug=false
26130 ac_cs_recheck=false
26131 ac_cs_silent=false
26132 SHELL=\${CONFIG_SHELL-$SHELL}
26133 _ACEOF
26134
26135 cat >>$CONFIG_STATUS <<\_ACEOF
26136 ## --------------------- ##
26137 ## M4sh Initialization.  ##
26138 ## --------------------- ##
26139
26140 # Be more Bourne compatible
26141 DUALCASE=1; export DUALCASE # for MKS sh
26142 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26143   emulate sh
26144   NULLCMD=:
26145   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26146   # is contrary to our usage.  Disable this feature.
26147   alias -g '${1+"$@"}'='"$@"'
26148   setopt NO_GLOB_SUBST
26149 else
26150   case `(set -o) 2>/dev/null` in
26151   *posix*) set -o posix ;;
26152 esac
26153
26154 fi
26155
26156
26157
26158
26159 # PATH needs CR
26160 # Avoid depending upon Character Ranges.
26161 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26162 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26163 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26164 as_cr_digits='0123456789'
26165 as_cr_alnum=$as_cr_Letters$as_cr_digits
26166
26167 # The user is always right.
26168 if test "${PATH_SEPARATOR+set}" != set; then
26169   echo "#! /bin/sh" >conf$$.sh
26170   echo  "exit 0"   >>conf$$.sh
26171   chmod +x conf$$.sh
26172   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26173     PATH_SEPARATOR=';'
26174   else
26175     PATH_SEPARATOR=:
26176   fi
26177   rm -f conf$$.sh
26178 fi
26179
26180 # Support unset when possible.
26181 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26182   as_unset=unset
26183 else
26184   as_unset=false
26185 fi
26186
26187
26188 # IFS
26189 # We need space, tab and new line, in precisely that order.  Quoting is
26190 # there to prevent editors from complaining about space-tab.
26191 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26192 # splitting by setting IFS to empty value.)
26193 as_nl='
26194 '
26195 IFS=" ""        $as_nl"
26196
26197 # Find who we are.  Look in the path if we contain no directory separator.
26198 case $0 in
26199   *[\\/]* ) as_myself=$0 ;;
26200   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26201 for as_dir in $PATH
26202 do
26203   IFS=$as_save_IFS
26204   test -z "$as_dir" && as_dir=.
26205   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26206 done
26207 IFS=$as_save_IFS
26208
26209      ;;
26210 esac
26211 # We did not find ourselves, most probably we were run as `sh COMMAND'
26212 # in which case we are not to be found in the path.
26213 if test "x$as_myself" = x; then
26214   as_myself=$0
26215 fi
26216 if test ! -f "$as_myself"; then
26217   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26218   { (exit 1); exit 1; }
26219 fi
26220
26221 # Work around bugs in pre-3.0 UWIN ksh.
26222 for as_var in ENV MAIL MAILPATH
26223 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26224 done
26225 PS1='$ '
26226 PS2='> '
26227 PS4='+ '
26228
26229 # NLS nuisances.
26230 for as_var in \
26231   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26232   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26233   LC_TELEPHONE LC_TIME
26234 do
26235   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26236     eval $as_var=C; export $as_var
26237   else
26238     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26239   fi
26240 done
26241
26242 # Required to use basename.
26243 if expr a : '\(a\)' >/dev/null 2>&1 &&
26244    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26245   as_expr=expr
26246 else
26247   as_expr=false
26248 fi
26249
26250 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26251   as_basename=basename
26252 else
26253   as_basename=false
26254 fi
26255
26256
26257 # Name of the executable.
26258 as_me=`$as_basename -- "$0" ||
26259 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26260          X"$0" : 'X\(//\)$' \| \
26261          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26262 echo X/"$0" |
26263     sed '/^.*\/\([^/][^/]*\)\/*$/{
26264             s//\1/
26265             q
26266           }
26267           /^X\/\(\/\/\)$/{
26268             s//\1/
26269             q
26270           }
26271           /^X\/\(\/\).*/{
26272             s//\1/
26273             q
26274           }
26275           s/.*/./; q'`
26276
26277 # CDPATH.
26278 $as_unset CDPATH
26279
26280
26281
26282   as_lineno_1=$LINENO
26283   as_lineno_2=$LINENO
26284   test "x$as_lineno_1" != "x$as_lineno_2" &&
26285   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26286
26287   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26288   # uniformly replaced by the line number.  The first 'sed' inserts a
26289   # line-number line after each line using $LINENO; the second 'sed'
26290   # does the real work.  The second script uses 'N' to pair each
26291   # line-number line with the line containing $LINENO, and appends
26292   # trailing '-' during substitution so that $LINENO is not a special
26293   # case at line end.
26294   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26295   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26296   # E. McMahon (1931-1989) for sed's syntax.  :-)
26297   sed -n '
26298     p
26299     /[$]LINENO/=
26300   ' <$as_myself |
26301     sed '
26302       s/[$]LINENO.*/&-/
26303       t lineno
26304       b
26305       :lineno
26306       N
26307       :loop
26308       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26309       t loop
26310       s/-\n.*//
26311     ' >$as_me.lineno &&
26312   chmod +x "$as_me.lineno" ||
26313     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26314    { (exit 1); exit 1; }; }
26315
26316   # Don't try to exec as it changes $[0], causing all sort of problems
26317   # (the dirname of $[0] is not the place where we might find the
26318   # original and so on.  Autoconf is especially sensitive to this).
26319   . "./$as_me.lineno"
26320   # Exit status is that of the last command.
26321   exit
26322 }
26323
26324
26325 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26326   as_dirname=dirname
26327 else
26328   as_dirname=false
26329 fi
26330
26331 ECHO_C= ECHO_N= ECHO_T=
26332 case `echo -n x` in
26333 -n*)
26334   case `echo 'x\c'` in
26335   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26336   *)   ECHO_C='\c';;
26337   esac;;
26338 *)
26339   ECHO_N='-n';;
26340 esac
26341
26342 if expr a : '\(a\)' >/dev/null 2>&1 &&
26343    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26344   as_expr=expr
26345 else
26346   as_expr=false
26347 fi
26348
26349 rm -f conf$$ conf$$.exe conf$$.file
26350 if test -d conf$$.dir; then
26351   rm -f conf$$.dir/conf$$.file
26352 else
26353   rm -f conf$$.dir
26354   mkdir conf$$.dir
26355 fi
26356 echo >conf$$.file
26357 if ln -s conf$$.file conf$$ 2>/dev/null; then
26358   as_ln_s='ln -s'
26359   # ... but there are two gotchas:
26360   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26361   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26362   # In both cases, we have to default to `cp -p'.
26363   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26364     as_ln_s='cp -p'
26365 elif ln conf$$.file conf$$ 2>/dev/null; then
26366   as_ln_s=ln
26367 else
26368   as_ln_s='cp -p'
26369 fi
26370 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26371 rmdir conf$$.dir 2>/dev/null
26372
26373 if mkdir -p . 2>/dev/null; then
26374   as_mkdir_p=:
26375 else
26376   test -d ./-p && rmdir ./-p
26377   as_mkdir_p=false
26378 fi
26379
26380 if test -x / >/dev/null 2>&1; then
26381   as_test_x='test -x'
26382 else
26383   if ls -dL / >/dev/null 2>&1; then
26384     as_ls_L_option=L
26385   else
26386     as_ls_L_option=
26387   fi
26388   as_test_x='
26389     eval sh -c '\''
26390       if test -d "$1"; then
26391         test -d "$1/.";
26392       else
26393         case $1 in
26394         -*)set "./$1";;
26395         esac;
26396         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26397         ???[sx]*):;;*)false;;esac;fi
26398     '\'' sh
26399   '
26400 fi
26401 as_executable_p=$as_test_x
26402
26403 # Sed expression to map a string onto a valid CPP name.
26404 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26405
26406 # Sed expression to map a string onto a valid variable name.
26407 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26408
26409
26410 exec 6>&1
26411
26412 # Save the log message, to keep $[0] and so on meaningful, and to
26413 # report actual input values of CONFIG_FILES etc. instead of their
26414 # values after options handling.
26415 ac_log="
26416 This file was extended by $as_me, which was
26417 generated by GNU Autoconf 2.61.  Invocation command line was
26418
26419   CONFIG_FILES    = $CONFIG_FILES
26420   CONFIG_HEADERS  = $CONFIG_HEADERS
26421   CONFIG_LINKS    = $CONFIG_LINKS
26422   CONFIG_COMMANDS = $CONFIG_COMMANDS
26423   $ $0 $@
26424
26425 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26426 "
26427
26428 _ACEOF
26429
26430 cat >>$CONFIG_STATUS <<_ACEOF
26431 # Files that config.status was made for.
26432 config_files="$ac_config_files"
26433 config_headers="$ac_config_headers"
26434 config_commands="$ac_config_commands"
26435
26436 _ACEOF
26437
26438 cat >>$CONFIG_STATUS <<\_ACEOF
26439 ac_cs_usage="\
26440 \`$as_me' instantiates files from templates according to the
26441 current configuration.
26442
26443 Usage: $0 [OPTIONS] [FILE]...
26444
26445   -h, --help       print this help, then exit
26446   -V, --version    print version number and configuration settings, then exit
26447   -q, --quiet      do not print progress messages
26448   -d, --debug      don't remove temporary files
26449       --recheck    update $as_me by reconfiguring in the same conditions
26450   --file=FILE[:TEMPLATE]
26451                    instantiate the configuration file FILE
26452   --header=FILE[:TEMPLATE]
26453                    instantiate the configuration header FILE
26454
26455 Configuration files:
26456 $config_files
26457
26458 Configuration headers:
26459 $config_headers
26460
26461 Configuration commands:
26462 $config_commands
26463
26464 Report bugs to <bug-autoconf@gnu.org>."
26465
26466 _ACEOF
26467 cat >>$CONFIG_STATUS <<_ACEOF
26468 ac_cs_version="\\
26469 config.status
26470 configured by $0, generated by GNU Autoconf 2.61,
26471   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26472
26473 Copyright (C) 2006 Free Software Foundation, Inc.
26474 This config.status script is free software; the Free Software Foundation
26475 gives unlimited permission to copy, distribute and modify it."
26476
26477 ac_pwd='$ac_pwd'
26478 srcdir='$srcdir'
26479 _ACEOF
26480
26481 cat >>$CONFIG_STATUS <<\_ACEOF
26482 # If no file are specified by the user, then we need to provide default
26483 # value.  By we need to know if files were specified by the user.
26484 ac_need_defaults=:
26485 while test $# != 0
26486 do
26487   case $1 in
26488   --*=*)
26489     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26490     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26491     ac_shift=:
26492     ;;
26493   *)
26494     ac_option=$1
26495     ac_optarg=$2
26496     ac_shift=shift
26497     ;;
26498   esac
26499
26500   case $ac_option in
26501   # Handling of the options.
26502   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26503     ac_cs_recheck=: ;;
26504   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26505     echo "$ac_cs_version"; exit ;;
26506   --debug | --debu | --deb | --de | --d | -d )
26507     debug=: ;;
26508   --file | --fil | --fi | --f )
26509     $ac_shift
26510     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26511     ac_need_defaults=false;;
26512   --header | --heade | --head | --hea )
26513     $ac_shift
26514     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26515     ac_need_defaults=false;;
26516   --he | --h)
26517     # Conflict between --help and --header
26518     { echo "$as_me: error: ambiguous option: $1
26519 Try \`$0 --help' for more information." >&2
26520    { (exit 1); exit 1; }; };;
26521   --help | --hel | -h )
26522     echo "$ac_cs_usage"; exit ;;
26523   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26524   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26525     ac_cs_silent=: ;;
26526
26527   # This is an error.
26528   -*) { echo "$as_me: error: unrecognized option: $1
26529 Try \`$0 --help' for more information." >&2
26530    { (exit 1); exit 1; }; } ;;
26531
26532   *) ac_config_targets="$ac_config_targets $1"
26533      ac_need_defaults=false ;;
26534
26535   esac
26536   shift
26537 done
26538
26539 ac_configure_extra_args=
26540
26541 if $ac_cs_silent; then
26542   exec 6>/dev/null
26543   ac_configure_extra_args="$ac_configure_extra_args --silent"
26544 fi
26545
26546 _ACEOF
26547 cat >>$CONFIG_STATUS <<_ACEOF
26548 if \$ac_cs_recheck; then
26549   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26550   CONFIG_SHELL=$SHELL
26551   export CONFIG_SHELL
26552   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26553 fi
26554
26555 _ACEOF
26556 cat >>$CONFIG_STATUS <<\_ACEOF
26557 exec 5>>config.log
26558 {
26559   echo
26560   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26561 ## Running $as_me. ##
26562 _ASBOX
26563   echo "$ac_log"
26564 } >&5
26565
26566 _ACEOF
26567 cat >>$CONFIG_STATUS <<_ACEOF
26568 _ACEOF
26569
26570 cat >>$CONFIG_STATUS <<\_ACEOF
26571
26572 # Handling of arguments.
26573 for ac_config_target in $ac_config_targets
26574 do
26575   case $ac_config_target in
26576     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
26577     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
26578     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
26579     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
26580     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
26581     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
26582     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
26583     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
26584     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
26585     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
26586     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
26587     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
26588     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
26589     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
26590     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
26591     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
26592     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
26593     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
26594     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
26595
26596   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26597 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26598    { (exit 1); exit 1; }; };;
26599   esac
26600 done
26601
26602
26603 # If the user did not use the arguments to specify the items to instantiate,
26604 # then the envvar interface is used.  Set only those that are not.
26605 # We use the long form for the default assignment because of an extremely
26606 # bizarre bug on SunOS 4.1.3.
26607 if $ac_need_defaults; then
26608   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26609   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26610   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26611 fi
26612
26613 # Have a temporary directory for convenience.  Make it in the build tree
26614 # simply because there is no reason against having it here, and in addition,
26615 # creating and moving files from /tmp can sometimes cause problems.
26616 # Hook for its removal unless debugging.
26617 # Note that there is a small window in which the directory will not be cleaned:
26618 # after its creation but before its name has been assigned to `$tmp'.
26619 $debug ||
26620 {
26621   tmp=
26622   trap 'exit_status=$?
26623   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26624 ' 0
26625   trap '{ (exit 1); exit 1; }' 1 2 13 15
26626 }
26627 # Create a (secure) tmp directory for tmp files.
26628
26629 {
26630   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26631   test -n "$tmp" && test -d "$tmp"
26632 }  ||
26633 {
26634   tmp=./conf$$-$RANDOM
26635   (umask 077 && mkdir "$tmp")
26636 } ||
26637 {
26638    echo "$me: cannot create a temporary directory in ." >&2
26639    { (exit 1); exit 1; }
26640 }
26641
26642 #
26643 # Set up the sed scripts for CONFIG_FILES section.
26644 #
26645
26646 # No need to generate the scripts if there are no CONFIG_FILES.
26647 # This happens for instance when ./config.status config.h
26648 if test -n "$CONFIG_FILES"; then
26649
26650 _ACEOF
26651
26652
26653
26654 ac_delim='%!_!# '
26655 for ac_last_try in false false false false false :; do
26656   cat >conf$$subs.sed <<_ACEOF
26657 SHELL!$SHELL$ac_delim
26658 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26659 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26660 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26661 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26662 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26663 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26664 exec_prefix!$exec_prefix$ac_delim
26665 prefix!$prefix$ac_delim
26666 program_transform_name!$program_transform_name$ac_delim
26667 bindir!$bindir$ac_delim
26668 sbindir!$sbindir$ac_delim
26669 libexecdir!$libexecdir$ac_delim
26670 datarootdir!$datarootdir$ac_delim
26671 datadir!$datadir$ac_delim
26672 sysconfdir!$sysconfdir$ac_delim
26673 sharedstatedir!$sharedstatedir$ac_delim
26674 localstatedir!$localstatedir$ac_delim
26675 includedir!$includedir$ac_delim
26676 oldincludedir!$oldincludedir$ac_delim
26677 docdir!$docdir$ac_delim
26678 infodir!$infodir$ac_delim
26679 htmldir!$htmldir$ac_delim
26680 dvidir!$dvidir$ac_delim
26681 pdfdir!$pdfdir$ac_delim
26682 psdir!$psdir$ac_delim
26683 libdir!$libdir$ac_delim
26684 localedir!$localedir$ac_delim
26685 mandir!$mandir$ac_delim
26686 DEFS!$DEFS$ac_delim
26687 ECHO_C!$ECHO_C$ac_delim
26688 ECHO_N!$ECHO_N$ac_delim
26689 ECHO_T!$ECHO_T$ac_delim
26690 LIBS!$LIBS$ac_delim
26691 build_alias!$build_alias$ac_delim
26692 host_alias!$host_alias$ac_delim
26693 target_alias!$target_alias$ac_delim
26694 CC!$CC$ac_delim
26695 CFLAGS!$CFLAGS$ac_delim
26696 LDFLAGS!$LDFLAGS$ac_delim
26697 CPPFLAGS!$CPPFLAGS$ac_delim
26698 ac_ct_CC!$ac_ct_CC$ac_delim
26699 EXEEXT!$EXEEXT$ac_delim
26700 OBJEXT!$OBJEXT$ac_delim
26701 CXX!$CXX$ac_delim
26702 CXXFLAGS!$CXXFLAGS$ac_delim
26703 ac_ct_CXX!$ac_ct_CXX$ac_delim
26704 CPP!$CPP$ac_delim
26705 GREP!$GREP$ac_delim
26706 EGREP!$EGREP$ac_delim
26707 RANLIB!$RANLIB$ac_delim
26708 GMAKE!$GMAKE$ac_delim
26709 MAKE!$MAKE$ac_delim
26710 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
26711 LIBTOOL!$LIBTOOL$ac_delim
26712 build!$build$ac_delim
26713 build_cpu!$build_cpu$ac_delim
26714 build_vendor!$build_vendor$ac_delim
26715 build_os!$build_os$ac_delim
26716 host!$host$ac_delim
26717 host_cpu!$host_cpu$ac_delim
26718 host_vendor!$host_vendor$ac_delim
26719 host_os!$host_os$ac_delim
26720 SED!$SED$ac_delim
26721 LN_S!$LN_S$ac_delim
26722 ECHO!$ECHO$ac_delim
26723 AR!$AR$ac_delim
26724 STRIP!$STRIP$ac_delim
26725 DSYMUTIL!$DSYMUTIL$ac_delim
26726 NMEDIT!$NMEDIT$ac_delim
26727 CXXCPP!$CXXCPP$ac_delim
26728 F77!$F77$ac_delim
26729 FFLAGS!$FFLAGS$ac_delim
26730 ac_ct_F77!$ac_ct_F77$ac_delim
26731 logdir!$logdir$ac_delim
26732 radacctdir!$radacctdir$ac_delim
26733 raddbdir!$raddbdir$ac_delim
26734 PERL!$PERL$ac_delim
26735 SNMPGET!$SNMPGET$ac_delim
26736 SNMPWALK!$SNMPWALK$ac_delim
26737 RUSERS!$RUSERS$ac_delim
26738 ACLOCAL!$ACLOCAL$ac_delim
26739 AUTOCONF!$AUTOCONF$ac_delim
26740 AUTOHEADER!$AUTOHEADER$ac_delim
26741 LOCATE!$LOCATE$ac_delim
26742 DIRNAME!$DIRNAME$ac_delim
26743 LIBREADLINE!$LIBREADLINE$ac_delim
26744 REGEX!$REGEX$ac_delim
26745 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26746 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26747 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26748 PCAP_LIBS!$PCAP_LIBS$ac_delim
26749 LIBPREFIX!$LIBPREFIX$ac_delim
26750 CRYPTLIB!$CRYPTLIB$ac_delim
26751 HOSTINFO!$HOSTINFO$ac_delim
26752 LIBLTDL!$LIBLTDL$ac_delim
26753 INCLTDL!$INCLTDL$ac_delim
26754 _ACEOF
26755
26756   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26757     break
26758   elif $ac_last_try; then
26759     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26760 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26761    { (exit 1); exit 1; }; }
26762   else
26763     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26764   fi
26765 done
26766
26767 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26768 if test -n "$ac_eof"; then
26769   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26770   ac_eof=`expr $ac_eof + 1`
26771 fi
26772
26773 cat >>$CONFIG_STATUS <<_ACEOF
26774 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26775 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26776 _ACEOF
26777 sed '
26778 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26779 s/^/s,@/; s/!/@,|#_!!_#|/
26780 :n
26781 t n
26782 s/'"$ac_delim"'$/,g/; t
26783 s/$/\\/; p
26784 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26785 ' >>$CONFIG_STATUS <conf$$subs.sed
26786 rm -f conf$$subs.sed
26787 cat >>$CONFIG_STATUS <<_ACEOF
26788 CEOF$ac_eof
26789 _ACEOF
26790
26791
26792 ac_delim='%!_!# '
26793 for ac_last_try in false false false false false :; do
26794   cat >conf$$subs.sed <<_ACEOF
26795 subdirs!$subdirs$ac_delim
26796 MODULES!$MODULES$ac_delim
26797 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26798 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26799 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26800 STATIC_MODULES!$STATIC_MODULES$ac_delim
26801 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26802 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26803 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26804 LIBOBJS!$LIBOBJS$ac_delim
26805 LTLIBOBJS!$LTLIBOBJS$ac_delim
26806 _ACEOF
26807
26808   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
26809     break
26810   elif $ac_last_try; then
26811     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26812 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26813    { (exit 1); exit 1; }; }
26814   else
26815     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26816   fi
26817 done
26818
26819 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26820 if test -n "$ac_eof"; then
26821   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26822   ac_eof=`expr $ac_eof + 1`
26823 fi
26824
26825 cat >>$CONFIG_STATUS <<_ACEOF
26826 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26828 _ACEOF
26829 sed '
26830 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26831 s/^/s,@/; s/!/@,|#_!!_#|/
26832 :n
26833 t n
26834 s/'"$ac_delim"'$/,g/; t
26835 s/$/\\/; p
26836 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26837 ' >>$CONFIG_STATUS <conf$$subs.sed
26838 rm -f conf$$subs.sed
26839 cat >>$CONFIG_STATUS <<_ACEOF
26840 :end
26841 s/|#_!!_#|//g
26842 CEOF$ac_eof
26843 _ACEOF
26844
26845
26846 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26847 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26848 # trailing colons and then remove the whole line if VPATH becomes empty
26849 # (actually we leave an empty line to preserve line numbers).
26850 if test "x$srcdir" = x.; then
26851   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26852 s/:*\$(srcdir):*/:/
26853 s/:*\${srcdir}:*/:/
26854 s/:*@srcdir@:*/:/
26855 s/^\([^=]*=[     ]*\):*/\1/
26856 s/:*$//
26857 s/^[^=]*=[       ]*$//
26858 }'
26859 fi
26860
26861 cat >>$CONFIG_STATUS <<\_ACEOF
26862 fi # test -n "$CONFIG_FILES"
26863
26864
26865 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
26866 do
26867   case $ac_tag in
26868   :[FHLC]) ac_mode=$ac_tag; continue;;
26869   esac
26870   case $ac_mode$ac_tag in
26871   :[FHL]*:*);;
26872   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26873 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26874    { (exit 1); exit 1; }; };;
26875   :[FH]-) ac_tag=-:-;;
26876   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26877   esac
26878   ac_save_IFS=$IFS
26879   IFS=:
26880   set x $ac_tag
26881   IFS=$ac_save_IFS
26882   shift
26883   ac_file=$1
26884   shift
26885
26886   case $ac_mode in
26887   :L) ac_source=$1;;
26888   :[FH])
26889     ac_file_inputs=
26890     for ac_f
26891     do
26892       case $ac_f in
26893       -) ac_f="$tmp/stdin";;
26894       *) # Look for the file first in the build tree, then in the source tree
26895          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26896          # because $ac_f cannot contain `:'.
26897          test -f "$ac_f" ||
26898            case $ac_f in
26899            [\\/$]*) false;;
26900            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26901            esac ||
26902            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26903 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26904    { (exit 1); exit 1; }; };;
26905       esac
26906       ac_file_inputs="$ac_file_inputs $ac_f"
26907     done
26908
26909     # Let's still pretend it is `configure' which instantiates (i.e., don't
26910     # use $as_me), people would be surprised to read:
26911     #    /* config.h.  Generated by config.status.  */
26912     configure_input="Generated from "`IFS=:
26913           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26914     if test x"$ac_file" != x-; then
26915       configure_input="$ac_file.  $configure_input"
26916       { echo "$as_me:$LINENO: creating $ac_file" >&5
26917 echo "$as_me: creating $ac_file" >&6;}
26918     fi
26919
26920     case $ac_tag in
26921     *:-:* | *:-) cat >"$tmp/stdin";;
26922     esac
26923     ;;
26924   esac
26925
26926   ac_dir=`$as_dirname -- "$ac_file" ||
26927 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26928          X"$ac_file" : 'X\(//\)[^/]' \| \
26929          X"$ac_file" : 'X\(//\)$' \| \
26930          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26931 echo X"$ac_file" |
26932     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26933             s//\1/
26934             q
26935           }
26936           /^X\(\/\/\)[^/].*/{
26937             s//\1/
26938             q
26939           }
26940           /^X\(\/\/\)$/{
26941             s//\1/
26942             q
26943           }
26944           /^X\(\/\).*/{
26945             s//\1/
26946             q
26947           }
26948           s/.*/./; q'`
26949   { as_dir="$ac_dir"
26950   case $as_dir in #(
26951   -*) as_dir=./$as_dir;;
26952   esac
26953   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26954     as_dirs=
26955     while :; do
26956       case $as_dir in #(
26957       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26958       *) as_qdir=$as_dir;;
26959       esac
26960       as_dirs="'$as_qdir' $as_dirs"
26961       as_dir=`$as_dirname -- "$as_dir" ||
26962 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26963          X"$as_dir" : 'X\(//\)[^/]' \| \
26964          X"$as_dir" : 'X\(//\)$' \| \
26965          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26966 echo X"$as_dir" |
26967     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26968             s//\1/
26969             q
26970           }
26971           /^X\(\/\/\)[^/].*/{
26972             s//\1/
26973             q
26974           }
26975           /^X\(\/\/\)$/{
26976             s//\1/
26977             q
26978           }
26979           /^X\(\/\).*/{
26980             s//\1/
26981             q
26982           }
26983           s/.*/./; q'`
26984       test -d "$as_dir" && break
26985     done
26986     test -z "$as_dirs" || eval "mkdir $as_dirs"
26987   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26988 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26989    { (exit 1); exit 1; }; }; }
26990   ac_builddir=.
26991
26992 case "$ac_dir" in
26993 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26994 *)
26995   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26996   # A ".." for each directory in $ac_dir_suffix.
26997   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26998   case $ac_top_builddir_sub in
26999   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27000   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27001   esac ;;
27002 esac
27003 ac_abs_top_builddir=$ac_pwd
27004 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27005 # for backward compatibility:
27006 ac_top_builddir=$ac_top_build_prefix
27007
27008 case $srcdir in
27009   .)  # We are building in place.
27010     ac_srcdir=.
27011     ac_top_srcdir=$ac_top_builddir_sub
27012     ac_abs_top_srcdir=$ac_pwd ;;
27013   [\\/]* | ?:[\\/]* )  # Absolute name.
27014     ac_srcdir=$srcdir$ac_dir_suffix;
27015     ac_top_srcdir=$srcdir
27016     ac_abs_top_srcdir=$srcdir ;;
27017   *) # Relative name.
27018     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27019     ac_top_srcdir=$ac_top_build_prefix$srcdir
27020     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27021 esac
27022 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27023
27024
27025   case $ac_mode in
27026   :F)
27027   #
27028   # CONFIG_FILE
27029   #
27030
27031 _ACEOF
27032
27033 cat >>$CONFIG_STATUS <<\_ACEOF
27034 # If the template does not know about datarootdir, expand it.
27035 # FIXME: This hack should be removed a few years after 2.60.
27036 ac_datarootdir_hack=; ac_datarootdir_seen=
27037
27038 case `sed -n '/datarootdir/ {
27039   p
27040   q
27041 }
27042 /@datadir@/p
27043 /@docdir@/p
27044 /@infodir@/p
27045 /@localedir@/p
27046 /@mandir@/p
27047 ' $ac_file_inputs` in
27048 *datarootdir*) ac_datarootdir_seen=yes;;
27049 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27050   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27051 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27052 _ACEOF
27053 cat >>$CONFIG_STATUS <<_ACEOF
27054   ac_datarootdir_hack='
27055   s&@datadir@&$datadir&g
27056   s&@docdir@&$docdir&g
27057   s&@infodir@&$infodir&g
27058   s&@localedir@&$localedir&g
27059   s&@mandir@&$mandir&g
27060     s&\\\${datarootdir}&$datarootdir&g' ;;
27061 esac
27062 _ACEOF
27063
27064 # Neutralize VPATH when `$srcdir' = `.'.
27065 # Shell code in configure.ac might set extrasub.
27066 # FIXME: do we really want to maintain this feature?
27067 cat >>$CONFIG_STATUS <<_ACEOF
27068   sed "$ac_vpsub
27069 $extrasub
27070 _ACEOF
27071 cat >>$CONFIG_STATUS <<\_ACEOF
27072 :t
27073 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27074 s&@configure_input@&$configure_input&;t t
27075 s&@top_builddir@&$ac_top_builddir_sub&;t t
27076 s&@srcdir@&$ac_srcdir&;t t
27077 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27078 s&@top_srcdir@&$ac_top_srcdir&;t t
27079 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27080 s&@builddir@&$ac_builddir&;t t
27081 s&@abs_builddir@&$ac_abs_builddir&;t t
27082 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27083 $ac_datarootdir_hack
27084 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27085
27086 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27087   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27088   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27089   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27090 which seems to be undefined.  Please make sure it is defined." >&5
27091 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27092 which seems to be undefined.  Please make sure it is defined." >&2;}
27093
27094   rm -f "$tmp/stdin"
27095   case $ac_file in
27096   -) cat "$tmp/out"; rm -f "$tmp/out";;
27097   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27098   esac
27099  ;;
27100   :H)
27101   #
27102   # CONFIG_HEADER
27103   #
27104 _ACEOF
27105
27106 # Transform confdefs.h into a sed script `conftest.defines', that
27107 # substitutes the proper values into config.h.in to produce config.h.
27108 rm -f conftest.defines conftest.tail
27109 # First, append a space to every undef/define line, to ease matching.
27110 echo 's/$/ /' >conftest.defines
27111 # Then, protect against being on the right side of a sed subst, or in
27112 # an unquoted here document, in config.status.  If some macros were
27113 # called several times there might be several #defines for the same
27114 # symbol, which is useless.  But do not sort them, since the last
27115 # AC_DEFINE must be honored.
27116 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27117 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27118 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27119 # PARAMS is the parameter list in the macro definition--in most cases, it's
27120 # just an empty string.
27121 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27122 ac_dB='\\)[      (].*,\\1define\\2'
27123 ac_dC=' '
27124 ac_dD=' ,'
27125
27126 uniq confdefs.h |
27127   sed -n '
27128         t rset
27129         :rset
27130         s/^[     ]*#[    ]*define[       ][      ]*//
27131         t ok
27132         d
27133         :ok
27134         s/[\\&,]/\\&/g
27135         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27136         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27137   ' >>conftest.defines
27138
27139 # Remove the space that was appended to ease matching.
27140 # Then replace #undef with comments.  This is necessary, for
27141 # example, in the case of _POSIX_SOURCE, which is predefined and required
27142 # on some systems where configure will not decide to define it.
27143 # (The regexp can be short, since the line contains either #define or #undef.)
27144 echo 's/ $//
27145 s,^[     #]*u.*,/* & */,' >>conftest.defines
27146
27147 # Break up conftest.defines:
27148 ac_max_sed_lines=50
27149
27150 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27151 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27152 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27153 # et cetera.
27154 ac_in='$ac_file_inputs'
27155 ac_out='"$tmp/out1"'
27156 ac_nxt='"$tmp/out2"'
27157
27158 while :
27159 do
27160   # Write a here document:
27161     cat >>$CONFIG_STATUS <<_ACEOF
27162     # First, check the format of the line:
27163     cat >"\$tmp/defines.sed" <<\\CEOF
27164 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27165 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27166 b
27167 :def
27168 _ACEOF
27169   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27170   echo 'CEOF
27171     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27172   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27173   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27174   grep . conftest.tail >/dev/null || break
27175   rm -f conftest.defines
27176   mv conftest.tail conftest.defines
27177 done
27178 rm -f conftest.defines conftest.tail
27179
27180 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27181 cat >>$CONFIG_STATUS <<\_ACEOF
27182   if test x"$ac_file" != x-; then
27183     echo "/* $configure_input  */" >"$tmp/config.h"
27184     cat "$ac_result" >>"$tmp/config.h"
27185     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27186       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27187 echo "$as_me: $ac_file is unchanged" >&6;}
27188     else
27189       rm -f $ac_file
27190       mv "$tmp/config.h" $ac_file
27191     fi
27192   else
27193     echo "/* $configure_input  */"
27194     cat "$ac_result"
27195   fi
27196   rm -f "$tmp/out12"
27197  ;;
27198
27199   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27200 echo "$as_me: executing $ac_file commands" >&6;}
27201  ;;
27202   esac
27203
27204
27205   case $ac_file$ac_mode in
27206     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
27207     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
27208     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
27209     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
27210
27211   esac
27212 done # for ac_tag
27213
27214
27215 { (exit 0); exit 0; }
27216 _ACEOF
27217 chmod +x $CONFIG_STATUS
27218 ac_clean_files=$ac_clean_files_save
27219
27220
27221 # configure is writing to config.log, and then calls config.status.
27222 # config.status does its own redirection, appending to config.log.
27223 # Unfortunately, on DOS this fails, as config.log is still kept open
27224 # by configure, so config.status won't be able to write to it; its
27225 # output is simply discarded.  So we exec the FD to /dev/null,
27226 # effectively closing config.log, so it can be properly (re)opened and
27227 # appended to by config.status.  When coming back to configure, we
27228 # need to make the FD available again.
27229 if test "$no_create" != yes; then
27230   ac_cs_success=:
27231   ac_config_status_args=
27232   test "$silent" = yes &&
27233     ac_config_status_args="$ac_config_status_args --quiet"
27234   exec 5>/dev/null
27235   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27236   exec 5>>config.log
27237   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27238   # would make configure fail if this is the last instruction.
27239   $ac_cs_success || { (exit 1); exit 1; }
27240 fi
27241
27242 #
27243 # CONFIG_SUBDIRS section.
27244 #
27245 if test "$no_recursion" != yes; then
27246
27247   # Remove --cache-file and --srcdir arguments so they do not pile up.
27248   ac_sub_configure_args=
27249   ac_prev=
27250   eval "set x $ac_configure_args"
27251   shift
27252   for ac_arg
27253   do
27254     if test -n "$ac_prev"; then
27255       ac_prev=
27256       continue
27257     fi
27258     case $ac_arg in
27259     -cache-file | --cache-file | --cache-fil | --cache-fi \
27260     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27261       ac_prev=cache_file ;;
27262     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27263     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27264     | --c=*)
27265       ;;
27266     --config-cache | -C)
27267       ;;
27268     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27269       ac_prev=srcdir ;;
27270     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27271       ;;
27272     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27273       ac_prev=prefix ;;
27274     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27275       ;;
27276     *)
27277       case $ac_arg in
27278       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27279       esac
27280       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27281     esac
27282   done
27283
27284   # Always prepend --prefix to ensure using the same prefix
27285   # in subdir configurations.
27286   ac_arg="--prefix=$prefix"
27287   case $ac_arg in
27288   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27289   esac
27290   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27291
27292   # Pass --silent
27293   if test "$silent" = yes; then
27294     ac_sub_configure_args="--silent $ac_sub_configure_args"
27295   fi
27296
27297   ac_popdir=`pwd`
27298   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27299
27300     # Do not complain, so a configure script can configure whichever
27301     # parts of a large source tree are present.
27302     test -d "$srcdir/$ac_dir" || continue
27303
27304     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27305     echo "$as_me:$LINENO: $ac_msg" >&5
27306     echo "$ac_msg" >&6
27307     { as_dir="$ac_dir"
27308   case $as_dir in #(
27309   -*) as_dir=./$as_dir;;
27310   esac
27311   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27312     as_dirs=
27313     while :; do
27314       case $as_dir in #(
27315       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27316       *) as_qdir=$as_dir;;
27317       esac
27318       as_dirs="'$as_qdir' $as_dirs"
27319       as_dir=`$as_dirname -- "$as_dir" ||
27320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27321          X"$as_dir" : 'X\(//\)[^/]' \| \
27322          X"$as_dir" : 'X\(//\)$' \| \
27323          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27324 echo X"$as_dir" |
27325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27326             s//\1/
27327             q
27328           }
27329           /^X\(\/\/\)[^/].*/{
27330             s//\1/
27331             q
27332           }
27333           /^X\(\/\/\)$/{
27334             s//\1/
27335             q
27336           }
27337           /^X\(\/\).*/{
27338             s//\1/
27339             q
27340           }
27341           s/.*/./; q'`
27342       test -d "$as_dir" && break
27343     done
27344     test -z "$as_dirs" || eval "mkdir $as_dirs"
27345   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27346 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27347    { (exit 1); exit 1; }; }; }
27348     ac_builddir=.
27349
27350 case "$ac_dir" in
27351 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27352 *)
27353   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27354   # A ".." for each directory in $ac_dir_suffix.
27355   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27356   case $ac_top_builddir_sub in
27357   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27358   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27359   esac ;;
27360 esac
27361 ac_abs_top_builddir=$ac_pwd
27362 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27363 # for backward compatibility:
27364 ac_top_builddir=$ac_top_build_prefix
27365
27366 case $srcdir in
27367   .)  # We are building in place.
27368     ac_srcdir=.
27369     ac_top_srcdir=$ac_top_builddir_sub
27370     ac_abs_top_srcdir=$ac_pwd ;;
27371   [\\/]* | ?:[\\/]* )  # Absolute name.
27372     ac_srcdir=$srcdir$ac_dir_suffix;
27373     ac_top_srcdir=$srcdir
27374     ac_abs_top_srcdir=$srcdir ;;
27375   *) # Relative name.
27376     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27377     ac_top_srcdir=$ac_top_build_prefix$srcdir
27378     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27379 esac
27380 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27381
27382
27383     cd "$ac_dir"
27384
27385     # Check for guested configure; otherwise get Cygnus style configure.
27386     if test -f "$ac_srcdir/configure.gnu"; then
27387       ac_sub_configure=$ac_srcdir/configure.gnu
27388     elif test -f "$ac_srcdir/configure"; then
27389       ac_sub_configure=$ac_srcdir/configure
27390     elif test -f "$ac_srcdir/configure.in"; then
27391       # This should be Cygnus configure.
27392       ac_sub_configure=$ac_aux_dir/configure
27393     else
27394       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27395 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27396       ac_sub_configure=
27397     fi
27398
27399     # The recursion is here.
27400     if test -n "$ac_sub_configure"; then
27401       # Make the cache file name correct relative to the subdirectory.
27402       case $cache_file in
27403       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27404       *) # Relative name.
27405         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27406       esac
27407
27408       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27409 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27410       # The eval makes quoting arguments work.
27411       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27412            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27413         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27414 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27415    { (exit 1); exit 1; }; }
27416     fi
27417
27418     cd "$ac_popdir"
27419   done
27420 fi
27421
27422